diff --git a/VERSION b/VERSION index ae9a76b..a458a24 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.0.0 +9.7.0 diff --git a/google/api/annotations_pb.js b/google/api/annotations_pb.js index 0652b05..53c05ed 100644 --- a/google/api/annotations_pb.js +++ b/google/api/annotations_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var google_api_http_pb = require('../../google/api/http_pb.js'); goog.object.extend(proto, google_api_http_pb); diff --git a/google/api/auth_grpc_pb.js b/google/api/auth_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/auth_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/auth_pb.js b/google/api/auth_pb.js new file mode 100644 index 0000000..e69addb --- /dev/null +++ b/google/api/auth_pb.js @@ -0,0 +1,1542 @@ +// source: google/api/auth.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.AuthProvider', null, global); +goog.exportSymbol('proto.google.api.AuthRequirement', null, global); +goog.exportSymbol('proto.google.api.Authentication', null, global); +goog.exportSymbol('proto.google.api.AuthenticationRule', null, global); +goog.exportSymbol('proto.google.api.JwtLocation', null, global); +goog.exportSymbol('proto.google.api.JwtLocation.InCase', null, global); +goog.exportSymbol('proto.google.api.OAuthRequirements', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Authentication = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Authentication.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Authentication, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Authentication.displayName = 'proto.google.api.Authentication'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.AuthenticationRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthenticationRule.repeatedFields_, null); +}; +goog.inherits(proto.google.api.AuthenticationRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.AuthenticationRule.displayName = 'proto.google.api.AuthenticationRule'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.JwtLocation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.JwtLocation.oneofGroups_); +}; +goog.inherits(proto.google.api.JwtLocation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.JwtLocation.displayName = 'proto.google.api.JwtLocation'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.AuthProvider = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.AuthProvider.repeatedFields_, null); +}; +goog.inherits(proto.google.api.AuthProvider, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.AuthProvider.displayName = 'proto.google.api.AuthProvider'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.OAuthRequirements = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.OAuthRequirements, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.OAuthRequirements.displayName = 'proto.google.api.OAuthRequirements'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.AuthRequirement = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.AuthRequirement, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.AuthRequirement.displayName = 'proto.google.api.AuthRequirement'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Authentication.repeatedFields_ = [3,4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Authentication.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Authentication.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Authentication} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Authentication.toObject = function(includeInstance, msg) { + var f, obj = { + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.google.api.AuthenticationRule.toObject, includeInstance), + providersList: jspb.Message.toObjectList(msg.getProvidersList(), + proto.google.api.AuthProvider.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Authentication} + */ +proto.google.api.Authentication.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Authentication; + return proto.google.api.Authentication.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Authentication} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Authentication} + */ +proto.google.api.Authentication.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 3: + var value = new proto.google.api.AuthenticationRule; + reader.readMessage(value,proto.google.api.AuthenticationRule.deserializeBinaryFromReader); + msg.addRules(value); + break; + case 4: + var value = new proto.google.api.AuthProvider; + reader.readMessage(value,proto.google.api.AuthProvider.deserializeBinaryFromReader); + msg.addProviders(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Authentication.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Authentication.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Authentication} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Authentication.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.google.api.AuthenticationRule.serializeBinaryToWriter + ); + } + f = message.getProvidersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.google.api.AuthProvider.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AuthenticationRule rules = 3; + * @return {!Array} + */ +proto.google.api.Authentication.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthenticationRule, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Authentication} returns this +*/ +proto.google.api.Authentication.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.google.api.AuthenticationRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.AuthenticationRule} + */ +proto.google.api.Authentication.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.AuthenticationRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Authentication} returns this + */ +proto.google.api.Authentication.prototype.clearRulesList = function() { + return this.setRulesList([]); +}; + + +/** + * repeated AuthProvider providers = 4; + * @return {!Array} + */ +proto.google.api.Authentication.prototype.getProvidersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthProvider, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Authentication} returns this +*/ +proto.google.api.Authentication.prototype.setProvidersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.google.api.AuthProvider=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.AuthProvider} + */ +proto.google.api.Authentication.prototype.addProviders = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.AuthProvider, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Authentication} returns this + */ +proto.google.api.Authentication.prototype.clearProvidersList = function() { + return this.setProvidersList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.AuthenticationRule.repeatedFields_ = [7]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.AuthenticationRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.AuthenticationRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.AuthenticationRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.AuthenticationRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + oauth: (f = msg.getOauth()) && proto.google.api.OAuthRequirements.toObject(includeInstance, f), + allowWithoutCredential: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(), + proto.google.api.AuthRequirement.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.AuthenticationRule} + */ +proto.google.api.AuthenticationRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.AuthenticationRule; + return proto.google.api.AuthenticationRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.AuthenticationRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.AuthenticationRule} + */ +proto.google.api.AuthenticationRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = new proto.google.api.OAuthRequirements; + reader.readMessage(value,proto.google.api.OAuthRequirements.deserializeBinaryFromReader); + msg.setOauth(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowWithoutCredential(value); + break; + case 7: + var value = new proto.google.api.AuthRequirement; + reader.readMessage(value,proto.google.api.AuthRequirement.deserializeBinaryFromReader); + msg.addRequirements(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.AuthenticationRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.AuthenticationRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.AuthenticationRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.AuthenticationRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getOauth(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.google.api.OAuthRequirements.serializeBinaryToWriter + ); + } + f = message.getAllowWithoutCredential(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getRequirementsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + proto.google.api.AuthRequirement.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.AuthenticationRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthenticationRule} returns this + */ +proto.google.api.AuthenticationRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional OAuthRequirements oauth = 2; + * @return {?proto.google.api.OAuthRequirements} + */ +proto.google.api.AuthenticationRule.prototype.getOauth = function() { + return /** @type{?proto.google.api.OAuthRequirements} */ ( + jspb.Message.getWrapperField(this, proto.google.api.OAuthRequirements, 2)); +}; + + +/** + * @param {?proto.google.api.OAuthRequirements|undefined} value + * @return {!proto.google.api.AuthenticationRule} returns this +*/ +proto.google.api.AuthenticationRule.prototype.setOauth = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.AuthenticationRule} returns this + */ +proto.google.api.AuthenticationRule.prototype.clearOauth = function() { + return this.setOauth(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.AuthenticationRule.prototype.hasOauth = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bool allow_without_credential = 5; + * @return {boolean} + */ +proto.google.api.AuthenticationRule.prototype.getAllowWithoutCredential = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.google.api.AuthenticationRule} returns this + */ +proto.google.api.AuthenticationRule.prototype.setAllowWithoutCredential = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * repeated AuthRequirement requirements = 7; + * @return {!Array} + */ +proto.google.api.AuthenticationRule.prototype.getRequirementsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.AuthRequirement, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.AuthenticationRule} returns this +*/ +proto.google.api.AuthenticationRule.prototype.setRequirementsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.google.api.AuthRequirement=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.AuthRequirement} + */ +proto.google.api.AuthenticationRule.prototype.addRequirements = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.google.api.AuthRequirement, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.AuthenticationRule} returns this + */ +proto.google.api.AuthenticationRule.prototype.clearRequirementsList = function() { + return this.setRequirementsList([]); +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.google.api.JwtLocation.oneofGroups_ = [[1,2,4]]; + +/** + * @enum {number} + */ +proto.google.api.JwtLocation.InCase = { + IN_NOT_SET: 0, + HEADER: 1, + QUERY: 2, + COOKIE: 4 +}; + +/** + * @return {proto.google.api.JwtLocation.InCase} + */ +proto.google.api.JwtLocation.prototype.getInCase = function() { + return /** @type {proto.google.api.JwtLocation.InCase} */(jspb.Message.computeOneofCase(this, proto.google.api.JwtLocation.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.JwtLocation.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.JwtLocation.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.JwtLocation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.JwtLocation.toObject = function(includeInstance, msg) { + var f, obj = { + header: jspb.Message.getFieldWithDefault(msg, 1, ""), + query: jspb.Message.getFieldWithDefault(msg, 2, ""), + cookie: jspb.Message.getFieldWithDefault(msg, 4, ""), + valuePrefix: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.JwtLocation} + */ +proto.google.api.JwtLocation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.JwtLocation; + return proto.google.api.JwtLocation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.JwtLocation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.JwtLocation} + */ +proto.google.api.JwtLocation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setHeader(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setQuery(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setCookie(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setValuePrefix(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.JwtLocation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.JwtLocation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.JwtLocation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.JwtLocation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeString( + 4, + f + ); + } + f = message.getValuePrefix(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string header = 1; + * @return {string} + */ +proto.google.api.JwtLocation.prototype.getHeader = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.JwtLocation} returns this + */ +proto.google.api.JwtLocation.prototype.setHeader = function(value) { + return jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.google.api.JwtLocation} returns this + */ +proto.google.api.JwtLocation.prototype.clearHeader = function() { + return jspb.Message.setOneofField(this, 1, proto.google.api.JwtLocation.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.JwtLocation.prototype.hasHeader = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string query = 2; + * @return {string} + */ +proto.google.api.JwtLocation.prototype.getQuery = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.JwtLocation} returns this + */ +proto.google.api.JwtLocation.prototype.setQuery = function(value) { + return jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.google.api.JwtLocation} returns this + */ +proto.google.api.JwtLocation.prototype.clearQuery = function() { + return jspb.Message.setOneofField(this, 2, proto.google.api.JwtLocation.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.JwtLocation.prototype.hasQuery = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string cookie = 4; + * @return {string} + */ +proto.google.api.JwtLocation.prototype.getCookie = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.JwtLocation} returns this + */ +proto.google.api.JwtLocation.prototype.setCookie = function(value) { + return jspb.Message.setOneofField(this, 4, proto.google.api.JwtLocation.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.google.api.JwtLocation} returns this + */ +proto.google.api.JwtLocation.prototype.clearCookie = function() { + return jspb.Message.setOneofField(this, 4, proto.google.api.JwtLocation.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.JwtLocation.prototype.hasCookie = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string value_prefix = 3; + * @return {string} + */ +proto.google.api.JwtLocation.prototype.getValuePrefix = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.JwtLocation} returns this + */ +proto.google.api.JwtLocation.prototype.setValuePrefix = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.AuthProvider.repeatedFields_ = [6]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.AuthProvider.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.AuthProvider.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.AuthProvider} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.AuthProvider.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + issuer: jspb.Message.getFieldWithDefault(msg, 2, ""), + jwksUri: jspb.Message.getFieldWithDefault(msg, 3, ""), + audiences: jspb.Message.getFieldWithDefault(msg, 4, ""), + authorizationUrl: jspb.Message.getFieldWithDefault(msg, 5, ""), + jwtLocationsList: jspb.Message.toObjectList(msg.getJwtLocationsList(), + proto.google.api.JwtLocation.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.AuthProvider} + */ +proto.google.api.AuthProvider.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.AuthProvider; + return proto.google.api.AuthProvider.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.AuthProvider} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.AuthProvider} + */ +proto.google.api.AuthProvider.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setIssuer(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setJwksUri(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAudiences(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAuthorizationUrl(value); + break; + case 6: + var value = new proto.google.api.JwtLocation; + reader.readMessage(value,proto.google.api.JwtLocation.deserializeBinaryFromReader); + msg.addJwtLocations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.AuthProvider.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.AuthProvider.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.AuthProvider} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.AuthProvider.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getIssuer(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getJwksUri(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAudiences(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAuthorizationUrl(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getJwtLocationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.google.api.JwtLocation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.google.api.AuthProvider.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthProvider} returns this + */ +proto.google.api.AuthProvider.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string issuer = 2; + * @return {string} + */ +proto.google.api.AuthProvider.prototype.getIssuer = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthProvider} returns this + */ +proto.google.api.AuthProvider.prototype.setIssuer = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string jwks_uri = 3; + * @return {string} + */ +proto.google.api.AuthProvider.prototype.getJwksUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthProvider} returns this + */ +proto.google.api.AuthProvider.prototype.setJwksUri = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string audiences = 4; + * @return {string} + */ +proto.google.api.AuthProvider.prototype.getAudiences = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthProvider} returns this + */ +proto.google.api.AuthProvider.prototype.setAudiences = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string authorization_url = 5; + * @return {string} + */ +proto.google.api.AuthProvider.prototype.getAuthorizationUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthProvider} returns this + */ +proto.google.api.AuthProvider.prototype.setAuthorizationUrl = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * repeated JwtLocation jwt_locations = 6; + * @return {!Array} + */ +proto.google.api.AuthProvider.prototype.getJwtLocationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.JwtLocation, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.AuthProvider} returns this +*/ +proto.google.api.AuthProvider.prototype.setJwtLocationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.google.api.JwtLocation=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.JwtLocation} + */ +proto.google.api.AuthProvider.prototype.addJwtLocations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.api.JwtLocation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.AuthProvider} returns this + */ +proto.google.api.AuthProvider.prototype.clearJwtLocationsList = function() { + return this.setJwtLocationsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.OAuthRequirements.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.OAuthRequirements.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.OAuthRequirements} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.OAuthRequirements.toObject = function(includeInstance, msg) { + var f, obj = { + canonicalScopes: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.OAuthRequirements} + */ +proto.google.api.OAuthRequirements.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.OAuthRequirements; + return proto.google.api.OAuthRequirements.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.OAuthRequirements} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.OAuthRequirements} + */ +proto.google.api.OAuthRequirements.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setCanonicalScopes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.OAuthRequirements.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.OAuthRequirements.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.OAuthRequirements} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.OAuthRequirements.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCanonicalScopes(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string canonical_scopes = 1; + * @return {string} + */ +proto.google.api.OAuthRequirements.prototype.getCanonicalScopes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.OAuthRequirements} returns this + */ +proto.google.api.OAuthRequirements.prototype.setCanonicalScopes = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.AuthRequirement.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.AuthRequirement.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.AuthRequirement} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.AuthRequirement.toObject = function(includeInstance, msg) { + var f, obj = { + providerId: jspb.Message.getFieldWithDefault(msg, 1, ""), + audiences: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.AuthRequirement} + */ +proto.google.api.AuthRequirement.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.AuthRequirement; + return proto.google.api.AuthRequirement.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.AuthRequirement} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.AuthRequirement} + */ +proto.google.api.AuthRequirement.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setProviderId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAudiences(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.AuthRequirement.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.AuthRequirement.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.AuthRequirement} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.AuthRequirement.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProviderId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAudiences(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string provider_id = 1; + * @return {string} + */ +proto.google.api.AuthRequirement.prototype.getProviderId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthRequirement} returns this + */ +proto.google.api.AuthRequirement.prototype.setProviderId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string audiences = 2; + * @return {string} + */ +proto.google.api.AuthRequirement.prototype.getAudiences = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.AuthRequirement} returns this + */ +proto.google.api.AuthRequirement.prototype.setAudiences = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/backend_grpc_pb.js b/google/api/backend_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/backend_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/backend_pb.js b/google/api/backend_pb.js new file mode 100644 index 0000000..a85e0fe --- /dev/null +++ b/google/api/backend_pb.js @@ -0,0 +1,705 @@ +// source: google/api/backend.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Backend', null, global); +goog.exportSymbol('proto.google.api.BackendRule', null, global); +goog.exportSymbol('proto.google.api.BackendRule.AuthenticationCase', null, global); +goog.exportSymbol('proto.google.api.BackendRule.PathTranslation', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Backend = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Backend.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Backend, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Backend.displayName = 'proto.google.api.Backend'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.BackendRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.BackendRule.oneofGroups_); +}; +goog.inherits(proto.google.api.BackendRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.BackendRule.displayName = 'proto.google.api.BackendRule'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Backend.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Backend.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Backend.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Backend} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Backend.toObject = function(includeInstance, msg) { + var f, obj = { + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.google.api.BackendRule.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Backend} + */ +proto.google.api.Backend.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Backend; + return proto.google.api.Backend.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Backend} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Backend} + */ +proto.google.api.Backend.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.BackendRule; + reader.readMessage(value,proto.google.api.BackendRule.deserializeBinaryFromReader); + msg.addRules(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Backend.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Backend.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Backend} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Backend.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.google.api.BackendRule.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated BackendRule rules = 1; + * @return {!Array} + */ +proto.google.api.Backend.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.BackendRule, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Backend} returns this +*/ +proto.google.api.Backend.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.api.BackendRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.BackendRule} + */ +proto.google.api.Backend.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.BackendRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Backend} returns this + */ +proto.google.api.Backend.prototype.clearRulesList = function() { + return this.setRulesList([]); +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.google.api.BackendRule.oneofGroups_ = [[7,8]]; + +/** + * @enum {number} + */ +proto.google.api.BackendRule.AuthenticationCase = { + AUTHENTICATION_NOT_SET: 0, + JWT_AUDIENCE: 7, + DISABLE_AUTH: 8 +}; + +/** + * @return {proto.google.api.BackendRule.AuthenticationCase} + */ +proto.google.api.BackendRule.prototype.getAuthenticationCase = function() { + return /** @type {proto.google.api.BackendRule.AuthenticationCase} */(jspb.Message.computeOneofCase(this, proto.google.api.BackendRule.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.BackendRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.BackendRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.BackendRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.BackendRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + address: jspb.Message.getFieldWithDefault(msg, 2, ""), + deadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + minDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + operationDeadline: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + pathTranslation: jspb.Message.getFieldWithDefault(msg, 6, 0), + jwtAudience: jspb.Message.getFieldWithDefault(msg, 7, ""), + disableAuth: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + protocol: jspb.Message.getFieldWithDefault(msg, 9, ""), + overridesByRequestProtocolMap: (f = msg.getOverridesByRequestProtocolMap()) ? f.toObject(includeInstance, proto.google.api.BackendRule.toObject) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.BackendRule} + */ +proto.google.api.BackendRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.BackendRule; + return proto.google.api.BackendRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.BackendRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.BackendRule} + */ +proto.google.api.BackendRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAddress(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setDeadline(value); + break; + case 4: + var value = /** @type {number} */ (reader.readDouble()); + msg.setMinDeadline(value); + break; + case 5: + var value = /** @type {number} */ (reader.readDouble()); + msg.setOperationDeadline(value); + break; + case 6: + var value = /** @type {!proto.google.api.BackendRule.PathTranslation} */ (reader.readEnum()); + msg.setPathTranslation(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setJwtAudience(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDisableAuth(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setProtocol(value); + break; + case 10: + var value = msg.getOverridesByRequestProtocolMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.api.BackendRule.deserializeBinaryFromReader, "", new proto.google.api.BackendRule()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.BackendRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.BackendRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.BackendRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.BackendRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDeadline(); + if (f !== 0.0) { + writer.writeDouble( + 3, + f + ); + } + f = message.getMinDeadline(); + if (f !== 0.0) { + writer.writeDouble( + 4, + f + ); + } + f = message.getOperationDeadline(); + if (f !== 0.0) { + writer.writeDouble( + 5, + f + ); + } + f = message.getPathTranslation(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool( + 8, + f + ); + } + f = message.getProtocol(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getOverridesByRequestProtocolMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.api.BackendRule.serializeBinaryToWriter); + } +}; + + +/** + * @enum {number} + */ +proto.google.api.BackendRule.PathTranslation = { + PATH_TRANSLATION_UNSPECIFIED: 0, + CONSTANT_ADDRESS: 1, + APPEND_PATH_TO_ADDRESS: 2 +}; + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.BackendRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string address = 2; + * @return {string} + */ +proto.google.api.BackendRule.prototype.getAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setAddress = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional double deadline = 3; + * @return {number} + */ +proto.google.api.BackendRule.prototype.getDeadline = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setDeadline = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional double min_deadline = 4; + * @return {number} + */ +proto.google.api.BackendRule.prototype.getMinDeadline = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setMinDeadline = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + +/** + * optional double operation_deadline = 5; + * @return {number} + */ +proto.google.api.BackendRule.prototype.getOperationDeadline = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setOperationDeadline = function(value) { + return jspb.Message.setProto3FloatField(this, 5, value); +}; + + +/** + * optional PathTranslation path_translation = 6; + * @return {!proto.google.api.BackendRule.PathTranslation} + */ +proto.google.api.BackendRule.prototype.getPathTranslation = function() { + return /** @type {!proto.google.api.BackendRule.PathTranslation} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.google.api.BackendRule.PathTranslation} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setPathTranslation = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); +}; + + +/** + * optional string jwt_audience = 7; + * @return {string} + */ +proto.google.api.BackendRule.prototype.getJwtAudience = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setJwtAudience = function(value) { + return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.clearJwtAudience = function() { + return jspb.Message.setOneofField(this, 7, proto.google.api.BackendRule.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.BackendRule.prototype.hasJwtAudience = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bool disable_auth = 8; + * @return {boolean} + */ +proto.google.api.BackendRule.prototype.getDisableAuth = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setDisableAuth = function(value) { + return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.clearDisableAuth = function() { + return jspb.Message.setOneofField(this, 8, proto.google.api.BackendRule.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.BackendRule.prototype.hasDisableAuth = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional string protocol = 9; + * @return {string} + */ +proto.google.api.BackendRule.prototype.getProtocol = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.setProtocol = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * map overrides_by_request_protocol = 10; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.BackendRule.prototype.getOverridesByRequestProtocolMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 10, opt_noLazyCreate, + proto.google.api.BackendRule)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.BackendRule} returns this + */ +proto.google.api.BackendRule.prototype.clearOverridesByRequestProtocolMap = function() { + this.getOverridesByRequestProtocolMap().clear(); + return this; +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/billing_grpc_pb.js b/google/api/billing_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/billing_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/billing_pb.js b/google/api/billing_pb.js new file mode 100644 index 0000000..e23074c --- /dev/null +++ b/google/api/billing_pb.js @@ -0,0 +1,414 @@ +// source: google/api/billing.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Billing', null, global); +goog.exportSymbol('proto.google.api.Billing.BillingDestination', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Billing = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Billing, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Billing.displayName = 'proto.google.api.Billing'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Billing.BillingDestination = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Billing.BillingDestination.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Billing.BillingDestination, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Billing.BillingDestination.displayName = 'proto.google.api.Billing.BillingDestination'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Billing.repeatedFields_ = [8]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Billing.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Billing.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Billing} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Billing.toObject = function(includeInstance, msg) { + var f, obj = { + consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), + proto.google.api.Billing.BillingDestination.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Billing} + */ +proto.google.api.Billing.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Billing; + return proto.google.api.Billing.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Billing} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Billing} + */ +proto.google.api.Billing.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 8: + var value = new proto.google.api.Billing.BillingDestination; + reader.readMessage(value,proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader); + msg.addConsumerDestinations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Billing.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Billing.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Billing} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Billing.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getConsumerDestinationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.google.api.Billing.BillingDestination.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Billing.BillingDestination.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Billing.BillingDestination.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Billing.BillingDestination.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Billing.BillingDestination} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Billing.BillingDestination.toObject = function(includeInstance, msg) { + var f, obj = { + monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""), + metricsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Billing.BillingDestination} + */ +proto.google.api.Billing.BillingDestination.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Billing.BillingDestination; + return proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Billing.BillingDestination} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Billing.BillingDestination} + */ +proto.google.api.Billing.BillingDestination.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMonitoredResource(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addMetrics(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Billing.BillingDestination.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Billing.BillingDestination.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Billing.BillingDestination} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Billing.BillingDestination.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMonitoredResource(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMetricsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional string monitored_resource = 1; + * @return {string} + */ +proto.google.api.Billing.BillingDestination.prototype.getMonitoredResource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Billing.BillingDestination} returns this + */ +proto.google.api.Billing.BillingDestination.prototype.setMonitoredResource = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string metrics = 2; + * @return {!Array} + */ +proto.google.api.Billing.BillingDestination.prototype.getMetricsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Billing.BillingDestination} returns this + */ +proto.google.api.Billing.BillingDestination.prototype.setMetricsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.Billing.BillingDestination} returns this + */ +proto.google.api.Billing.BillingDestination.prototype.addMetrics = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Billing.BillingDestination} returns this + */ +proto.google.api.Billing.BillingDestination.prototype.clearMetricsList = function() { + return this.setMetricsList([]); +}; + + +/** + * repeated BillingDestination consumer_destinations = 8; + * @return {!Array} + */ +proto.google.api.Billing.prototype.getConsumerDestinationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Billing.BillingDestination, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Billing} returns this +*/ +proto.google.api.Billing.prototype.setConsumerDestinationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.google.api.Billing.BillingDestination=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Billing.BillingDestination} + */ +proto.google.api.Billing.prototype.addConsumerDestinations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.api.Billing.BillingDestination, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Billing} returns this + */ +proto.google.api.Billing.prototype.clearConsumerDestinationsList = function() { + return this.setConsumerDestinationsList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/client_grpc_pb.js b/google/api/client_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/client_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/client_pb.js b/google/api/client_pb.js new file mode 100644 index 0000000..06eb9fc --- /dev/null +++ b/google/api/client_pb.js @@ -0,0 +1,3635 @@ +// source: google/api/client.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); +goog.object.extend(proto, google_api_launch_stage_pb); +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +goog.exportSymbol('proto.google.api.ClientLibraryDestination', null, global); +goog.exportSymbol('proto.google.api.ClientLibraryOrganization', null, global); +goog.exportSymbol('proto.google.api.ClientLibrarySettings', null, global); +goog.exportSymbol('proto.google.api.CommonLanguageSettings', null, global); +goog.exportSymbol('proto.google.api.CppSettings', null, global); +goog.exportSymbol('proto.google.api.DotnetSettings', null, global); +goog.exportSymbol('proto.google.api.GoSettings', null, global); +goog.exportSymbol('proto.google.api.JavaSettings', null, global); +goog.exportSymbol('proto.google.api.MethodSettings', null, global); +goog.exportSymbol('proto.google.api.MethodSettings.LongRunning', null, global); +goog.exportSymbol('proto.google.api.NodeSettings', null, global); +goog.exportSymbol('proto.google.api.PhpSettings', null, global); +goog.exportSymbol('proto.google.api.Publishing', null, global); +goog.exportSymbol('proto.google.api.PythonSettings', null, global); +goog.exportSymbol('proto.google.api.RubySettings', null, global); +goog.exportSymbol('proto.google.api.defaultHost', null, global); +goog.exportSymbol('proto.google.api.methodSignatureList', null, global); +goog.exportSymbol('proto.google.api.oauthScopes', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.CommonLanguageSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.CommonLanguageSettings.repeatedFields_, null); +}; +goog.inherits(proto.google.api.CommonLanguageSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.CommonLanguageSettings.displayName = 'proto.google.api.CommonLanguageSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.ClientLibrarySettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.ClientLibrarySettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.ClientLibrarySettings.displayName = 'proto.google.api.ClientLibrarySettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Publishing = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Publishing.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Publishing, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Publishing.displayName = 'proto.google.api.Publishing'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.JavaSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.JavaSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.JavaSettings.displayName = 'proto.google.api.JavaSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.CppSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.CppSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.CppSettings.displayName = 'proto.google.api.CppSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.PhpSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.PhpSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.PhpSettings.displayName = 'proto.google.api.PhpSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.PythonSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.PythonSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.PythonSettings.displayName = 'proto.google.api.PythonSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.NodeSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.NodeSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.NodeSettings.displayName = 'proto.google.api.NodeSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.DotnetSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.DotnetSettings.repeatedFields_, null); +}; +goog.inherits(proto.google.api.DotnetSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.DotnetSettings.displayName = 'proto.google.api.DotnetSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.RubySettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.RubySettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.RubySettings.displayName = 'proto.google.api.RubySettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.GoSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.GoSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.GoSettings.displayName = 'proto.google.api.GoSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MethodSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.MethodSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MethodSettings.displayName = 'proto.google.api.MethodSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MethodSettings.LongRunning = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.MethodSettings.LongRunning, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MethodSettings.LongRunning.displayName = 'proto.google.api.MethodSettings.LongRunning'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.CommonLanguageSettings.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.CommonLanguageSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.CommonLanguageSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.CommonLanguageSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.CommonLanguageSettings.toObject = function(includeInstance, msg) { + var f, obj = { + referenceDocsUri: jspb.Message.getFieldWithDefault(msg, 1, ""), + destinationsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.CommonLanguageSettings} + */ +proto.google.api.CommonLanguageSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.CommonLanguageSettings; + return proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.CommonLanguageSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.CommonLanguageSettings} + */ +proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setReferenceDocsUri(value); + break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addDestinations(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.CommonLanguageSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.CommonLanguageSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.CommonLanguageSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getReferenceDocsUri(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDestinationsList(); + if (f.length > 0) { + writer.writePackedEnum( + 2, + f + ); + } +}; + + +/** + * optional string reference_docs_uri = 1; + * @return {string} + */ +proto.google.api.CommonLanguageSettings.prototype.getReferenceDocsUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.CommonLanguageSettings} returns this + */ +proto.google.api.CommonLanguageSettings.prototype.setReferenceDocsUri = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated ClientLibraryDestination destinations = 2; + * @return {!Array} + */ +proto.google.api.CommonLanguageSettings.prototype.getDestinationsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.CommonLanguageSettings} returns this + */ +proto.google.api.CommonLanguageSettings.prototype.setDestinationsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {!proto.google.api.ClientLibraryDestination} value + * @param {number=} opt_index + * @return {!proto.google.api.CommonLanguageSettings} returns this + */ +proto.google.api.CommonLanguageSettings.prototype.addDestinations = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.CommonLanguageSettings} returns this + */ +proto.google.api.CommonLanguageSettings.prototype.clearDestinationsList = function() { + return this.setDestinationsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.ClientLibrarySettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.ClientLibrarySettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.ClientLibrarySettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ClientLibrarySettings.toObject = function(includeInstance, msg) { + var f, obj = { + version: jspb.Message.getFieldWithDefault(msg, 1, ""), + launchStage: jspb.Message.getFieldWithDefault(msg, 2, 0), + restNumericEnums: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + javaSettings: (f = msg.getJavaSettings()) && proto.google.api.JavaSettings.toObject(includeInstance, f), + cppSettings: (f = msg.getCppSettings()) && proto.google.api.CppSettings.toObject(includeInstance, f), + phpSettings: (f = msg.getPhpSettings()) && proto.google.api.PhpSettings.toObject(includeInstance, f), + pythonSettings: (f = msg.getPythonSettings()) && proto.google.api.PythonSettings.toObject(includeInstance, f), + nodeSettings: (f = msg.getNodeSettings()) && proto.google.api.NodeSettings.toObject(includeInstance, f), + dotnetSettings: (f = msg.getDotnetSettings()) && proto.google.api.DotnetSettings.toObject(includeInstance, f), + rubySettings: (f = msg.getRubySettings()) && proto.google.api.RubySettings.toObject(includeInstance, f), + goSettings: (f = msg.getGoSettings()) && proto.google.api.GoSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.ClientLibrarySettings} + */ +proto.google.api.ClientLibrarySettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.ClientLibrarySettings; + return proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.ClientLibrarySettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.ClientLibrarySettings} + */ +proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setVersion(value); + break; + case 2: + var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); + msg.setLaunchStage(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRestNumericEnums(value); + break; + case 21: + var value = new proto.google.api.JavaSettings; + reader.readMessage(value,proto.google.api.JavaSettings.deserializeBinaryFromReader); + msg.setJavaSettings(value); + break; + case 22: + var value = new proto.google.api.CppSettings; + reader.readMessage(value,proto.google.api.CppSettings.deserializeBinaryFromReader); + msg.setCppSettings(value); + break; + case 23: + var value = new proto.google.api.PhpSettings; + reader.readMessage(value,proto.google.api.PhpSettings.deserializeBinaryFromReader); + msg.setPhpSettings(value); + break; + case 24: + var value = new proto.google.api.PythonSettings; + reader.readMessage(value,proto.google.api.PythonSettings.deserializeBinaryFromReader); + msg.setPythonSettings(value); + break; + case 25: + var value = new proto.google.api.NodeSettings; + reader.readMessage(value,proto.google.api.NodeSettings.deserializeBinaryFromReader); + msg.setNodeSettings(value); + break; + case 26: + var value = new proto.google.api.DotnetSettings; + reader.readMessage(value,proto.google.api.DotnetSettings.deserializeBinaryFromReader); + msg.setDotnetSettings(value); + break; + case 27: + var value = new proto.google.api.RubySettings; + reader.readMessage(value,proto.google.api.RubySettings.deserializeBinaryFromReader); + msg.setRubySettings(value); + break; + case 28: + var value = new proto.google.api.GoSettings; + reader.readMessage(value,proto.google.api.GoSettings.deserializeBinaryFromReader); + msg.setGoSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.ClientLibrarySettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.ClientLibrarySettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.ClientLibrarySettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ClientLibrarySettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLaunchStage(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getRestNumericEnums(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getJavaSettings(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.google.api.JavaSettings.serializeBinaryToWriter + ); + } + f = message.getCppSettings(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.google.api.CppSettings.serializeBinaryToWriter + ); + } + f = message.getPhpSettings(); + if (f != null) { + writer.writeMessage( + 23, + f, + proto.google.api.PhpSettings.serializeBinaryToWriter + ); + } + f = message.getPythonSettings(); + if (f != null) { + writer.writeMessage( + 24, + f, + proto.google.api.PythonSettings.serializeBinaryToWriter + ); + } + f = message.getNodeSettings(); + if (f != null) { + writer.writeMessage( + 25, + f, + proto.google.api.NodeSettings.serializeBinaryToWriter + ); + } + f = message.getDotnetSettings(); + if (f != null) { + writer.writeMessage( + 26, + f, + proto.google.api.DotnetSettings.serializeBinaryToWriter + ); + } + f = message.getRubySettings(); + if (f != null) { + writer.writeMessage( + 27, + f, + proto.google.api.RubySettings.serializeBinaryToWriter + ); + } + f = message.getGoSettings(); + if (f != null) { + writer.writeMessage( + 28, + f, + proto.google.api.GoSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string version = 1; + * @return {string} + */ +proto.google.api.ClientLibrarySettings.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional LaunchStage launch_stage = 2; + * @return {!proto.google.api.LaunchStage} + */ +proto.google.api.ClientLibrarySettings.prototype.getLaunchStage = function() { + return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.google.api.LaunchStage} value + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.setLaunchStage = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional bool rest_numeric_enums = 3; + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.getRestNumericEnums = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.setRestNumericEnums = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional JavaSettings java_settings = 21; + * @return {?proto.google.api.JavaSettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getJavaSettings = function() { + return /** @type{?proto.google.api.JavaSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.JavaSettings, 21)); +}; + + +/** + * @param {?proto.google.api.JavaSettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setJavaSettings = function(value) { + return jspb.Message.setWrapperField(this, 21, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearJavaSettings = function() { + return this.setJavaSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasJavaSettings = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional CppSettings cpp_settings = 22; + * @return {?proto.google.api.CppSettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getCppSettings = function() { + return /** @type{?proto.google.api.CppSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CppSettings, 22)); +}; + + +/** + * @param {?proto.google.api.CppSettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setCppSettings = function(value) { + return jspb.Message.setWrapperField(this, 22, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearCppSettings = function() { + return this.setCppSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasCppSettings = function() { + return jspb.Message.getField(this, 22) != null; +}; + + +/** + * optional PhpSettings php_settings = 23; + * @return {?proto.google.api.PhpSettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getPhpSettings = function() { + return /** @type{?proto.google.api.PhpSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.PhpSettings, 23)); +}; + + +/** + * @param {?proto.google.api.PhpSettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setPhpSettings = function(value) { + return jspb.Message.setWrapperField(this, 23, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearPhpSettings = function() { + return this.setPhpSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasPhpSettings = function() { + return jspb.Message.getField(this, 23) != null; +}; + + +/** + * optional PythonSettings python_settings = 24; + * @return {?proto.google.api.PythonSettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getPythonSettings = function() { + return /** @type{?proto.google.api.PythonSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.PythonSettings, 24)); +}; + + +/** + * @param {?proto.google.api.PythonSettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setPythonSettings = function(value) { + return jspb.Message.setWrapperField(this, 24, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearPythonSettings = function() { + return this.setPythonSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasPythonSettings = function() { + return jspb.Message.getField(this, 24) != null; +}; + + +/** + * optional NodeSettings node_settings = 25; + * @return {?proto.google.api.NodeSettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getNodeSettings = function() { + return /** @type{?proto.google.api.NodeSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.NodeSettings, 25)); +}; + + +/** + * @param {?proto.google.api.NodeSettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setNodeSettings = function(value) { + return jspb.Message.setWrapperField(this, 25, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearNodeSettings = function() { + return this.setNodeSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasNodeSettings = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional DotnetSettings dotnet_settings = 26; + * @return {?proto.google.api.DotnetSettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getDotnetSettings = function() { + return /** @type{?proto.google.api.DotnetSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.DotnetSettings, 26)); +}; + + +/** + * @param {?proto.google.api.DotnetSettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setDotnetSettings = function(value) { + return jspb.Message.setWrapperField(this, 26, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearDotnetSettings = function() { + return this.setDotnetSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasDotnetSettings = function() { + return jspb.Message.getField(this, 26) != null; +}; + + +/** + * optional RubySettings ruby_settings = 27; + * @return {?proto.google.api.RubySettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getRubySettings = function() { + return /** @type{?proto.google.api.RubySettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.RubySettings, 27)); +}; + + +/** + * @param {?proto.google.api.RubySettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setRubySettings = function(value) { + return jspb.Message.setWrapperField(this, 27, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearRubySettings = function() { + return this.setRubySettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasRubySettings = function() { + return jspb.Message.getField(this, 27) != null; +}; + + +/** + * optional GoSettings go_settings = 28; + * @return {?proto.google.api.GoSettings} + */ +proto.google.api.ClientLibrarySettings.prototype.getGoSettings = function() { + return /** @type{?proto.google.api.GoSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.GoSettings, 28)); +}; + + +/** + * @param {?proto.google.api.GoSettings|undefined} value + * @return {!proto.google.api.ClientLibrarySettings} returns this +*/ +proto.google.api.ClientLibrarySettings.prototype.setGoSettings = function(value) { + return jspb.Message.setWrapperField(this, 28, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.ClientLibrarySettings} returns this + */ +proto.google.api.ClientLibrarySettings.prototype.clearGoSettings = function() { + return this.setGoSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.ClientLibrarySettings.prototype.hasGoSettings = function() { + return jspb.Message.getField(this, 28) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Publishing.repeatedFields_ = [2,105,109]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Publishing.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Publishing.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Publishing} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Publishing.toObject = function(includeInstance, msg) { + var f, obj = { + methodSettingsList: jspb.Message.toObjectList(msg.getMethodSettingsList(), + proto.google.api.MethodSettings.toObject, includeInstance), + newIssueUri: jspb.Message.getFieldWithDefault(msg, 101, ""), + documentationUri: jspb.Message.getFieldWithDefault(msg, 102, ""), + apiShortName: jspb.Message.getFieldWithDefault(msg, 103, ""), + githubLabel: jspb.Message.getFieldWithDefault(msg, 104, ""), + codeownerGithubTeamsList: (f = jspb.Message.getRepeatedField(msg, 105)) == null ? undefined : f, + docTagPrefix: jspb.Message.getFieldWithDefault(msg, 106, ""), + organization: jspb.Message.getFieldWithDefault(msg, 107, 0), + librarySettingsList: jspb.Message.toObjectList(msg.getLibrarySettingsList(), + proto.google.api.ClientLibrarySettings.toObject, includeInstance), + protoReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 110, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Publishing} + */ +proto.google.api.Publishing.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Publishing; + return proto.google.api.Publishing.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Publishing} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Publishing} + */ +proto.google.api.Publishing.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = new proto.google.api.MethodSettings; + reader.readMessage(value,proto.google.api.MethodSettings.deserializeBinaryFromReader); + msg.addMethodSettings(value); + break; + case 101: + var value = /** @type {string} */ (reader.readString()); + msg.setNewIssueUri(value); + break; + case 102: + var value = /** @type {string} */ (reader.readString()); + msg.setDocumentationUri(value); + break; + case 103: + var value = /** @type {string} */ (reader.readString()); + msg.setApiShortName(value); + break; + case 104: + var value = /** @type {string} */ (reader.readString()); + msg.setGithubLabel(value); + break; + case 105: + var value = /** @type {string} */ (reader.readString()); + msg.addCodeownerGithubTeams(value); + break; + case 106: + var value = /** @type {string} */ (reader.readString()); + msg.setDocTagPrefix(value); + break; + case 107: + var value = /** @type {!proto.google.api.ClientLibraryOrganization} */ (reader.readEnum()); + msg.setOrganization(value); + break; + case 109: + var value = new proto.google.api.ClientLibrarySettings; + reader.readMessage(value,proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader); + msg.addLibrarySettings(value); + break; + case 110: + var value = /** @type {string} */ (reader.readString()); + msg.setProtoReferenceDocumentationUri(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Publishing.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Publishing.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Publishing} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Publishing.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMethodSettingsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.google.api.MethodSettings.serializeBinaryToWriter + ); + } + f = message.getNewIssueUri(); + if (f.length > 0) { + writer.writeString( + 101, + f + ); + } + f = message.getDocumentationUri(); + if (f.length > 0) { + writer.writeString( + 102, + f + ); + } + f = message.getApiShortName(); + if (f.length > 0) { + writer.writeString( + 103, + f + ); + } + f = message.getGithubLabel(); + if (f.length > 0) { + writer.writeString( + 104, + f + ); + } + f = message.getCodeownerGithubTeamsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 105, + f + ); + } + f = message.getDocTagPrefix(); + if (f.length > 0) { + writer.writeString( + 106, + f + ); + } + f = message.getOrganization(); + if (f !== 0.0) { + writer.writeEnum( + 107, + f + ); + } + f = message.getLibrarySettingsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 109, + f, + proto.google.api.ClientLibrarySettings.serializeBinaryToWriter + ); + } + f = message.getProtoReferenceDocumentationUri(); + if (f.length > 0) { + writer.writeString( + 110, + f + ); + } +}; + + +/** + * repeated MethodSettings method_settings = 2; + * @return {!Array} + */ +proto.google.api.Publishing.prototype.getMethodSettingsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.MethodSettings, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Publishing} returns this +*/ +proto.google.api.Publishing.prototype.setMethodSettingsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.MethodSettings=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.MethodSettings} + */ +proto.google.api.Publishing.prototype.addMethodSettings = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.MethodSettings, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.clearMethodSettingsList = function() { + return this.setMethodSettingsList([]); +}; + + +/** + * optional string new_issue_uri = 101; + * @return {string} + */ +proto.google.api.Publishing.prototype.getNewIssueUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setNewIssueUri = function(value) { + return jspb.Message.setProto3StringField(this, 101, value); +}; + + +/** + * optional string documentation_uri = 102; + * @return {string} + */ +proto.google.api.Publishing.prototype.getDocumentationUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setDocumentationUri = function(value) { + return jspb.Message.setProto3StringField(this, 102, value); +}; + + +/** + * optional string api_short_name = 103; + * @return {string} + */ +proto.google.api.Publishing.prototype.getApiShortName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 103, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setApiShortName = function(value) { + return jspb.Message.setProto3StringField(this, 103, value); +}; + + +/** + * optional string github_label = 104; + * @return {string} + */ +proto.google.api.Publishing.prototype.getGithubLabel = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 104, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setGithubLabel = function(value) { + return jspb.Message.setProto3StringField(this, 104, value); +}; + + +/** + * repeated string codeowner_github_teams = 105; + * @return {!Array} + */ +proto.google.api.Publishing.prototype.getCodeownerGithubTeamsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 105)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setCodeownerGithubTeamsList = function(value) { + return jspb.Message.setField(this, 105, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.addCodeownerGithubTeams = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 105, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.clearCodeownerGithubTeamsList = function() { + return this.setCodeownerGithubTeamsList([]); +}; + + +/** + * optional string doc_tag_prefix = 106; + * @return {string} + */ +proto.google.api.Publishing.prototype.getDocTagPrefix = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 106, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setDocTagPrefix = function(value) { + return jspb.Message.setProto3StringField(this, 106, value); +}; + + +/** + * optional ClientLibraryOrganization organization = 107; + * @return {!proto.google.api.ClientLibraryOrganization} + */ +proto.google.api.Publishing.prototype.getOrganization = function() { + return /** @type {!proto.google.api.ClientLibraryOrganization} */ (jspb.Message.getFieldWithDefault(this, 107, 0)); +}; + + +/** + * @param {!proto.google.api.ClientLibraryOrganization} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setOrganization = function(value) { + return jspb.Message.setProto3EnumField(this, 107, value); +}; + + +/** + * repeated ClientLibrarySettings library_settings = 109; + * @return {!Array} + */ +proto.google.api.Publishing.prototype.getLibrarySettingsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.ClientLibrarySettings, 109)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Publishing} returns this +*/ +proto.google.api.Publishing.prototype.setLibrarySettingsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 109, value); +}; + + +/** + * @param {!proto.google.api.ClientLibrarySettings=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.ClientLibrarySettings} + */ +proto.google.api.Publishing.prototype.addLibrarySettings = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 109, opt_value, proto.google.api.ClientLibrarySettings, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.clearLibrarySettingsList = function() { + return this.setLibrarySettingsList([]); +}; + + +/** + * optional string proto_reference_documentation_uri = 110; + * @return {string} + */ +proto.google.api.Publishing.prototype.getProtoReferenceDocumentationUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 110, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Publishing} returns this + */ +proto.google.api.Publishing.prototype.setProtoReferenceDocumentationUri = function(value) { + return jspb.Message.setProto3StringField(this, 110, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.JavaSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.JavaSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.JavaSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.JavaSettings.toObject = function(includeInstance, msg) { + var f, obj = { + libraryPackage: jspb.Message.getFieldWithDefault(msg, 1, ""), + serviceClassNamesMap: (f = msg.getServiceClassNamesMap()) ? f.toObject(includeInstance, undefined) : [], + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.JavaSettings} + */ +proto.google.api.JavaSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.JavaSettings; + return proto.google.api.JavaSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.JavaSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.JavaSettings} + */ +proto.google.api.JavaSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setLibraryPackage(value); + break; + case 2: + var value = msg.getServiceClassNamesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 3: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.JavaSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.JavaSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.JavaSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.JavaSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLibraryPackage(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getServiceClassNamesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string library_package = 1; + * @return {string} + */ +proto.google.api.JavaSettings.prototype.getLibraryPackage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.JavaSettings} returns this + */ +proto.google.api.JavaSettings.prototype.setLibraryPackage = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * map service_class_names = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.JavaSettings.prototype.getServiceClassNamesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.JavaSettings} returns this + */ +proto.google.api.JavaSettings.prototype.clearServiceClassNamesMap = function() { + this.getServiceClassNamesMap().clear(); + return this; +}; + + +/** + * optional CommonLanguageSettings common = 3; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.JavaSettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 3)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.JavaSettings} returns this +*/ +proto.google.api.JavaSettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.JavaSettings} returns this + */ +proto.google.api.JavaSettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.JavaSettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.CppSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.CppSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.CppSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.CppSettings.toObject = function(includeInstance, msg) { + var f, obj = { + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.CppSettings} + */ +proto.google.api.CppSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.CppSettings; + return proto.google.api.CppSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.CppSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.CppSettings} + */ +proto.google.api.CppSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.CppSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.CppSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.CppSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.CppSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional CommonLanguageSettings common = 1; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.CppSettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.CppSettings} returns this +*/ +proto.google.api.CppSettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.CppSettings} returns this + */ +proto.google.api.CppSettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.CppSettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.PhpSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.PhpSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.PhpSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.PhpSettings.toObject = function(includeInstance, msg) { + var f, obj = { + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.PhpSettings} + */ +proto.google.api.PhpSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.PhpSettings; + return proto.google.api.PhpSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.PhpSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.PhpSettings} + */ +proto.google.api.PhpSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.PhpSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.PhpSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.PhpSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.PhpSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional CommonLanguageSettings common = 1; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.PhpSettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.PhpSettings} returns this +*/ +proto.google.api.PhpSettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.PhpSettings} returns this + */ +proto.google.api.PhpSettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.PhpSettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.PythonSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.PythonSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.PythonSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.PythonSettings.toObject = function(includeInstance, msg) { + var f, obj = { + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.PythonSettings} + */ +proto.google.api.PythonSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.PythonSettings; + return proto.google.api.PythonSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.PythonSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.PythonSettings} + */ +proto.google.api.PythonSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.PythonSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.PythonSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.PythonSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.PythonSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional CommonLanguageSettings common = 1; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.PythonSettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.PythonSettings} returns this +*/ +proto.google.api.PythonSettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.PythonSettings} returns this + */ +proto.google.api.PythonSettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.PythonSettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.NodeSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.NodeSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.NodeSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.NodeSettings.toObject = function(includeInstance, msg) { + var f, obj = { + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.NodeSettings} + */ +proto.google.api.NodeSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.NodeSettings; + return proto.google.api.NodeSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.NodeSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.NodeSettings} + */ +proto.google.api.NodeSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.NodeSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.NodeSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.NodeSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.NodeSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional CommonLanguageSettings common = 1; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.NodeSettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.NodeSettings} returns this +*/ +proto.google.api.NodeSettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.NodeSettings} returns this + */ +proto.google.api.NodeSettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.NodeSettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.DotnetSettings.repeatedFields_ = [4,5,6]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.DotnetSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.DotnetSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.DotnetSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.DotnetSettings.toObject = function(includeInstance, msg) { + var f, obj = { + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f), + renamedServicesMap: (f = msg.getRenamedServicesMap()) ? f.toObject(includeInstance, undefined) : [], + renamedResourcesMap: (f = msg.getRenamedResourcesMap()) ? f.toObject(includeInstance, undefined) : [], + ignoredResourcesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + forcedNamespaceAliasesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + handwrittenSignaturesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.DotnetSettings} + */ +proto.google.api.DotnetSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.DotnetSettings; + return proto.google.api.DotnetSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.DotnetSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.DotnetSettings} + */ +proto.google.api.DotnetSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + case 2: + var value = msg.getRenamedServicesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 3: + var value = msg.getRenamedResourcesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addIgnoredResources(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addForcedNamespaceAliases(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addHandwrittenSignatures(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.DotnetSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.DotnetSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.DotnetSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.DotnetSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } + f = message.getRenamedServicesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getRenamedResourcesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getIgnoredResourcesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getForcedNamespaceAliasesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getHandwrittenSignaturesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } +}; + + +/** + * optional CommonLanguageSettings common = 1; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.DotnetSettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.DotnetSettings} returns this +*/ +proto.google.api.DotnetSettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.DotnetSettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * map renamed_services = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.DotnetSettings.prototype.getRenamedServicesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.clearRenamedServicesMap = function() { + this.getRenamedServicesMap().clear(); + return this; +}; + + +/** + * map renamed_resources = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.DotnetSettings.prototype.getRenamedResourcesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.clearRenamedResourcesMap = function() { + this.getRenamedResourcesMap().clear(); + return this; +}; + + +/** + * repeated string ignored_resources = 4; + * @return {!Array} + */ +proto.google.api.DotnetSettings.prototype.getIgnoredResourcesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.setIgnoredResourcesList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.addIgnoredResources = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.clearIgnoredResourcesList = function() { + return this.setIgnoredResourcesList([]); +}; + + +/** + * repeated string forced_namespace_aliases = 5; + * @return {!Array} + */ +proto.google.api.DotnetSettings.prototype.getForcedNamespaceAliasesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.setForcedNamespaceAliasesList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.addForcedNamespaceAliases = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.clearForcedNamespaceAliasesList = function() { + return this.setForcedNamespaceAliasesList([]); +}; + + +/** + * repeated string handwritten_signatures = 6; + * @return {!Array} + */ +proto.google.api.DotnetSettings.prototype.getHandwrittenSignaturesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.setHandwrittenSignaturesList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.addHandwrittenSignatures = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.DotnetSettings} returns this + */ +proto.google.api.DotnetSettings.prototype.clearHandwrittenSignaturesList = function() { + return this.setHandwrittenSignaturesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.RubySettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.RubySettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.RubySettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.RubySettings.toObject = function(includeInstance, msg) { + var f, obj = { + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.RubySettings} + */ +proto.google.api.RubySettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.RubySettings; + return proto.google.api.RubySettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.RubySettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.RubySettings} + */ +proto.google.api.RubySettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.RubySettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.RubySettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.RubySettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.RubySettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional CommonLanguageSettings common = 1; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.RubySettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.RubySettings} returns this +*/ +proto.google.api.RubySettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.RubySettings} returns this + */ +proto.google.api.RubySettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.RubySettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.GoSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.GoSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.GoSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.GoSettings.toObject = function(includeInstance, msg) { + var f, obj = { + common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.GoSettings} + */ +proto.google.api.GoSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.GoSettings; + return proto.google.api.GoSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.GoSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.GoSettings} + */ +proto.google.api.GoSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.CommonLanguageSettings; + reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader); + msg.setCommon(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.GoSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.GoSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.GoSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.GoSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommon(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.CommonLanguageSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional CommonLanguageSettings common = 1; + * @return {?proto.google.api.CommonLanguageSettings} + */ +proto.google.api.GoSettings.prototype.getCommon = function() { + return /** @type{?proto.google.api.CommonLanguageSettings} */ ( + jspb.Message.getWrapperField(this, proto.google.api.CommonLanguageSettings, 1)); +}; + + +/** + * @param {?proto.google.api.CommonLanguageSettings|undefined} value + * @return {!proto.google.api.GoSettings} returns this +*/ +proto.google.api.GoSettings.prototype.setCommon = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.GoSettings} returns this + */ +proto.google.api.GoSettings.prototype.clearCommon = function() { + return this.setCommon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.GoSettings.prototype.hasCommon = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MethodSettings.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MethodSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MethodSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MethodSettings.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + longRunning: (f = msg.getLongRunning()) && proto.google.api.MethodSettings.LongRunning.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MethodSettings} + */ +proto.google.api.MethodSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MethodSettings; + return proto.google.api.MethodSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MethodSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MethodSettings} + */ +proto.google.api.MethodSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = new proto.google.api.MethodSettings.LongRunning; + reader.readMessage(value,proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader); + msg.setLongRunning(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MethodSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MethodSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MethodSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MethodSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLongRunning(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MethodSettings.LongRunning.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MethodSettings.LongRunning.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MethodSettings.LongRunning} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MethodSettings.LongRunning.toObject = function(includeInstance, msg) { + var f, obj = { + initialPollDelay: (f = msg.getInitialPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + pollDelayMultiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + maxPollDelay: (f = msg.getMaxPollDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + totalPollTimeout: (f = msg.getTotalPollTimeout()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MethodSettings.LongRunning} + */ +proto.google.api.MethodSettings.LongRunning.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MethodSettings.LongRunning; + return proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MethodSettings.LongRunning} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MethodSettings.LongRunning} + */ +proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setInitialPollDelay(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setPollDelayMultiplier(value); + break; + case 3: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setMaxPollDelay(value); + break; + case 4: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setTotalPollTimeout(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MethodSettings.LongRunning.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MethodSettings.LongRunning} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInitialPollDelay(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getPollDelayMultiplier(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } + f = message.getMaxPollDelay(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getTotalPollTimeout(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.Duration initial_poll_delay = 1; + * @return {?proto.google.protobuf.Duration} + */ +proto.google.api.MethodSettings.LongRunning.prototype.getInitialPollDelay = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.google.api.MethodSettings.LongRunning} returns this +*/ +proto.google.api.MethodSettings.LongRunning.prototype.setInitialPollDelay = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MethodSettings.LongRunning} returns this + */ +proto.google.api.MethodSettings.LongRunning.prototype.clearInitialPollDelay = function() { + return this.setInitialPollDelay(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MethodSettings.LongRunning.prototype.hasInitialPollDelay = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional float poll_delay_multiplier = 2; + * @return {number} + */ +proto.google.api.MethodSettings.LongRunning.prototype.getPollDelayMultiplier = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.MethodSettings.LongRunning} returns this + */ +proto.google.api.MethodSettings.LongRunning.prototype.setPollDelayMultiplier = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * optional google.protobuf.Duration max_poll_delay = 3; + * @return {?proto.google.protobuf.Duration} + */ +proto.google.api.MethodSettings.LongRunning.prototype.getMaxPollDelay = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.google.api.MethodSettings.LongRunning} returns this +*/ +proto.google.api.MethodSettings.LongRunning.prototype.setMaxPollDelay = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MethodSettings.LongRunning} returns this + */ +proto.google.api.MethodSettings.LongRunning.prototype.clearMaxPollDelay = function() { + return this.setMaxPollDelay(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MethodSettings.LongRunning.prototype.hasMaxPollDelay = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional google.protobuf.Duration total_poll_timeout = 4; + * @return {?proto.google.protobuf.Duration} + */ +proto.google.api.MethodSettings.LongRunning.prototype.getTotalPollTimeout = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.google.api.MethodSettings.LongRunning} returns this +*/ +proto.google.api.MethodSettings.LongRunning.prototype.setTotalPollTimeout = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MethodSettings.LongRunning} returns this + */ +proto.google.api.MethodSettings.LongRunning.prototype.clearTotalPollTimeout = function() { + return this.setTotalPollTimeout(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MethodSettings.LongRunning.prototype.hasTotalPollTimeout = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.MethodSettings.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MethodSettings} returns this + */ +proto.google.api.MethodSettings.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional LongRunning long_running = 2; + * @return {?proto.google.api.MethodSettings.LongRunning} + */ +proto.google.api.MethodSettings.prototype.getLongRunning = function() { + return /** @type{?proto.google.api.MethodSettings.LongRunning} */ ( + jspb.Message.getWrapperField(this, proto.google.api.MethodSettings.LongRunning, 2)); +}; + + +/** + * @param {?proto.google.api.MethodSettings.LongRunning|undefined} value + * @return {!proto.google.api.MethodSettings} returns this +*/ +proto.google.api.MethodSettings.prototype.setLongRunning = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MethodSettings} returns this + */ +proto.google.api.MethodSettings.prototype.clearLongRunning = function() { + return this.setLongRunning(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MethodSettings.prototype.hasLongRunning = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * @enum {number} + */ +proto.google.api.ClientLibraryOrganization = { + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: 0, + CLOUD: 1, + ADS: 2, + PHOTOS: 3, + STREET_VIEW: 4, + SHOPPING: 5, + GEO: 6, + GENERATIVE_AI: 7 +}; + +/** + * @enum {number} + */ +proto.google.api.ClientLibraryDestination = { + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED: 0, + GITHUB: 10, + PACKAGE_MANAGER: 20 +}; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `methodSignatureList`. + * @type {!jspb.ExtensionFieldInfo>} + */ +proto.google.api.methodSignatureList = new jspb.ExtensionFieldInfo( + 1051, + {methodSignatureList: 0}, + null, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + null), + 1); + +google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[1051] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.methodSignatureList, + jspb.BinaryReader.prototype.readString, + jspb.BinaryWriter.prototype.writeRepeatedString, + undefined, + undefined, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.MethodOptions.extensions[1051] = proto.google.api.methodSignatureList; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `defaultHost`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.defaultHost = new jspb.ExtensionFieldInfo( + 1049, + {defaultHost: 0}, + null, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + null), + 0); + +google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1049] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.defaultHost, + jspb.BinaryReader.prototype.readString, + jspb.BinaryWriter.prototype.writeString, + undefined, + undefined, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.ServiceOptions.extensions[1049] = proto.google.api.defaultHost; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `oauthScopes`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.oauthScopes = new jspb.ExtensionFieldInfo( + 1050, + {oauthScopes: 0}, + null, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + null), + 0); + +google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1050] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.oauthScopes, + jspb.BinaryReader.prototype.readString, + jspb.BinaryWriter.prototype.writeString, + undefined, + undefined, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.ServiceOptions.extensions[1050] = proto.google.api.oauthScopes; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/config_change_grpc_pb.js b/google/api/config_change_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/config_change_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/config_change_pb.js b/google/api/config_change_pb.js new file mode 100644 index 0000000..567eba5 --- /dev/null +++ b/google/api/config_change_pb.js @@ -0,0 +1,489 @@ +// source: google/api/config_change.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Advice', null, global); +goog.exportSymbol('proto.google.api.ChangeType', null, global); +goog.exportSymbol('proto.google.api.ConfigChange', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.ConfigChange = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ConfigChange.repeatedFields_, null); +}; +goog.inherits(proto.google.api.ConfigChange, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.ConfigChange.displayName = 'proto.google.api.ConfigChange'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Advice = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.Advice, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Advice.displayName = 'proto.google.api.Advice'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.ConfigChange.repeatedFields_ = [5]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.ConfigChange.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.ConfigChange.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.ConfigChange} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ConfigChange.toObject = function(includeInstance, msg) { + var f, obj = { + element: jspb.Message.getFieldWithDefault(msg, 1, ""), + oldValue: jspb.Message.getFieldWithDefault(msg, 2, ""), + newValue: jspb.Message.getFieldWithDefault(msg, 3, ""), + changeType: jspb.Message.getFieldWithDefault(msg, 4, 0), + advicesList: jspb.Message.toObjectList(msg.getAdvicesList(), + proto.google.api.Advice.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.ConfigChange} + */ +proto.google.api.ConfigChange.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.ConfigChange; + return proto.google.api.ConfigChange.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.ConfigChange} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.ConfigChange} + */ +proto.google.api.ConfigChange.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setElement(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setOldValue(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setNewValue(value); + break; + case 4: + var value = /** @type {!proto.google.api.ChangeType} */ (reader.readEnum()); + msg.setChangeType(value); + break; + case 5: + var value = new proto.google.api.Advice; + reader.readMessage(value,proto.google.api.Advice.deserializeBinaryFromReader); + msg.addAdvices(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.ConfigChange.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.ConfigChange.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.ConfigChange} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ConfigChange.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getElement(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getOldValue(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getNewValue(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getChangeType(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getAdvicesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.google.api.Advice.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string element = 1; + * @return {string} + */ +proto.google.api.ConfigChange.prototype.getElement = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ConfigChange} returns this + */ +proto.google.api.ConfigChange.prototype.setElement = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string old_value = 2; + * @return {string} + */ +proto.google.api.ConfigChange.prototype.getOldValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ConfigChange} returns this + */ +proto.google.api.ConfigChange.prototype.setOldValue = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string new_value = 3; + * @return {string} + */ +proto.google.api.ConfigChange.prototype.getNewValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ConfigChange} returns this + */ +proto.google.api.ConfigChange.prototype.setNewValue = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional ChangeType change_type = 4; + * @return {!proto.google.api.ChangeType} + */ +proto.google.api.ConfigChange.prototype.getChangeType = function() { + return /** @type {!proto.google.api.ChangeType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.google.api.ChangeType} value + * @return {!proto.google.api.ConfigChange} returns this + */ +proto.google.api.ConfigChange.prototype.setChangeType = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * repeated Advice advices = 5; + * @return {!Array} + */ +proto.google.api.ConfigChange.prototype.getAdvicesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Advice, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ConfigChange} returns this +*/ +proto.google.api.ConfigChange.prototype.setAdvicesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.google.api.Advice=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Advice} + */ +proto.google.api.ConfigChange.prototype.addAdvices = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Advice, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ConfigChange} returns this + */ +proto.google.api.ConfigChange.prototype.clearAdvicesList = function() { + return this.setAdvicesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Advice.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Advice.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Advice} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Advice.toObject = function(includeInstance, msg) { + var f, obj = { + description: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Advice} + */ +proto.google.api.Advice.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Advice; + return proto.google.api.Advice.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Advice} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Advice} + */ +proto.google.api.Advice.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Advice.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Advice.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Advice} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Advice.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.google.api.Advice.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Advice} returns this + */ +proto.google.api.Advice.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * @enum {number} + */ +proto.google.api.ChangeType = { + CHANGE_TYPE_UNSPECIFIED: 0, + ADDED: 1, + REMOVED: 2, + MODIFIED: 3 +}; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/consumer_grpc_pb.js b/google/api/consumer_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/consumer_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/consumer_pb.js b/google/api/consumer_pb.js new file mode 100644 index 0000000..cfeaa66 --- /dev/null +++ b/google/api/consumer_pb.js @@ -0,0 +1,430 @@ +// source: google/api/consumer.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.ProjectProperties', null, global); +goog.exportSymbol('proto.google.api.Property', null, global); +goog.exportSymbol('proto.google.api.Property.PropertyType', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.ProjectProperties = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ProjectProperties.repeatedFields_, null); +}; +goog.inherits(proto.google.api.ProjectProperties, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.ProjectProperties.displayName = 'proto.google.api.ProjectProperties'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Property = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.Property, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Property.displayName = 'proto.google.api.Property'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.ProjectProperties.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.ProjectProperties.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.ProjectProperties.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.ProjectProperties} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ProjectProperties.toObject = function(includeInstance, msg) { + var f, obj = { + propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(), + proto.google.api.Property.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.ProjectProperties} + */ +proto.google.api.ProjectProperties.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.ProjectProperties; + return proto.google.api.ProjectProperties.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.ProjectProperties} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.ProjectProperties} + */ +proto.google.api.ProjectProperties.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.Property; + reader.readMessage(value,proto.google.api.Property.deserializeBinaryFromReader); + msg.addProperties(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.ProjectProperties.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.ProjectProperties.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.ProjectProperties} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ProjectProperties.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPropertiesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.google.api.Property.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Property properties = 1; + * @return {!Array} + */ +proto.google.api.ProjectProperties.prototype.getPropertiesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Property, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ProjectProperties} returns this +*/ +proto.google.api.ProjectProperties.prototype.setPropertiesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.api.Property=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Property} + */ +proto.google.api.ProjectProperties.prototype.addProperties = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Property, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ProjectProperties} returns this + */ +proto.google.api.ProjectProperties.prototype.clearPropertiesList = function() { + return this.setPropertiesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Property.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Property.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Property} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Property.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 2, 0), + description: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Property} + */ +proto.google.api.Property.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Property; + return proto.google.api.Property.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Property} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Property} + */ +proto.google.api.Property.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {!proto.google.api.Property.PropertyType} */ (reader.readEnum()); + msg.setType(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Property.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Property.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Property} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Property.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.google.api.Property.PropertyType = { + UNSPECIFIED: 0, + INT64: 1, + BOOL: 2, + STRING: 3, + DOUBLE: 4 +}; + +/** + * optional string name = 1; + * @return {string} + */ +proto.google.api.Property.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Property} returns this + */ +proto.google.api.Property.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional PropertyType type = 2; + * @return {!proto.google.api.Property.PropertyType} + */ +proto.google.api.Property.prototype.getType = function() { + return /** @type {!proto.google.api.Property.PropertyType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.google.api.Property.PropertyType} value + * @return {!proto.google.api.Property} returns this + */ +proto.google.api.Property.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.google.api.Property.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Property} returns this + */ +proto.google.api.Property.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/context_grpc_pb.js b/google/api/context_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/context_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/context_pb.js b/google/api/context_pb.js new file mode 100644 index 0000000..d5feef5 --- /dev/null +++ b/google/api/context_pb.js @@ -0,0 +1,561 @@ +// source: google/api/context.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Context', null, global); +goog.exportSymbol('proto.google.api.ContextRule', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Context = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Context.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Context, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Context.displayName = 'proto.google.api.Context'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.ContextRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ContextRule.repeatedFields_, null); +}; +goog.inherits(proto.google.api.ContextRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.ContextRule.displayName = 'proto.google.api.ContextRule'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Context.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Context.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Context.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Context} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Context.toObject = function(includeInstance, msg) { + var f, obj = { + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.google.api.ContextRule.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Context} + */ +proto.google.api.Context.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Context; + return proto.google.api.Context.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Context} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Context} + */ +proto.google.api.Context.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.ContextRule; + reader.readMessage(value,proto.google.api.ContextRule.deserializeBinaryFromReader); + msg.addRules(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Context.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Context.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Context} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Context.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.google.api.ContextRule.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ContextRule rules = 1; + * @return {!Array} + */ +proto.google.api.Context.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.ContextRule, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Context} returns this +*/ +proto.google.api.Context.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.api.ContextRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.ContextRule} + */ +proto.google.api.Context.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.ContextRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Context} returns this + */ +proto.google.api.Context.prototype.clearRulesList = function() { + return this.setRulesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.ContextRule.repeatedFields_ = [2,3,4,5]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.ContextRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.ContextRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.ContextRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ContextRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + requestedList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + providedList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + allowedRequestExtensionsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + allowedResponseExtensionsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.ContextRule} + */ +proto.google.api.ContextRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.ContextRule; + return proto.google.api.ContextRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.ContextRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.ContextRule} + */ +proto.google.api.ContextRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addRequested(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addProvided(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addAllowedRequestExtensions(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addAllowedResponseExtensions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.ContextRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.ContextRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.ContextRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ContextRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getRequestedList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getProvidedList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getAllowedRequestExtensionsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getAllowedResponseExtensionsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.ContextRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string requested = 2; + * @return {!Array} + */ +proto.google.api.ContextRule.prototype.getRequestedList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.setRequestedList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.addRequested = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.clearRequestedList = function() { + return this.setRequestedList([]); +}; + + +/** + * repeated string provided = 3; + * @return {!Array} + */ +proto.google.api.ContextRule.prototype.getProvidedList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.setProvidedList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.addProvided = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.clearProvidedList = function() { + return this.setProvidedList([]); +}; + + +/** + * repeated string allowed_request_extensions = 4; + * @return {!Array} + */ +proto.google.api.ContextRule.prototype.getAllowedRequestExtensionsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.setAllowedRequestExtensionsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.addAllowedRequestExtensions = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.clearAllowedRequestExtensionsList = function() { + return this.setAllowedRequestExtensionsList([]); +}; + + +/** + * repeated string allowed_response_extensions = 5; + * @return {!Array} + */ +proto.google.api.ContextRule.prototype.getAllowedResponseExtensionsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.setAllowedResponseExtensionsList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.addAllowedResponseExtensions = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ContextRule} returns this + */ +proto.google.api.ContextRule.prototype.clearAllowedResponseExtensionsList = function() { + return this.setAllowedResponseExtensionsList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/control_grpc_pb.js b/google/api/control_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/control_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/control_pb.js b/google/api/control_pb.js new file mode 100644 index 0000000..f76c50b --- /dev/null +++ b/google/api/control_pb.js @@ -0,0 +1,238 @@ +// source: google/api/control.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_api_policy_pb = require('../../google/api/policy_pb.js'); +goog.object.extend(proto, google_api_policy_pb); +goog.exportSymbol('proto.google.api.Control', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Control = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Control.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Control, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Control.displayName = 'proto.google.api.Control'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Control.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Control.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Control.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Control} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Control.toObject = function(includeInstance, msg) { + var f, obj = { + environment: jspb.Message.getFieldWithDefault(msg, 1, ""), + methodPoliciesList: jspb.Message.toObjectList(msg.getMethodPoliciesList(), + google_api_policy_pb.MethodPolicy.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Control} + */ +proto.google.api.Control.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Control; + return proto.google.api.Control.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Control} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Control} + */ +proto.google.api.Control.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setEnvironment(value); + break; + case 4: + var value = new google_api_policy_pb.MethodPolicy; + reader.readMessage(value,google_api_policy_pb.MethodPolicy.deserializeBinaryFromReader); + msg.addMethodPolicies(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Control.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Control.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Control} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Control.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnvironment(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMethodPoliciesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + google_api_policy_pb.MethodPolicy.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string environment = 1; + * @return {string} + */ +proto.google.api.Control.prototype.getEnvironment = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Control} returns this + */ +proto.google.api.Control.prototype.setEnvironment = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated MethodPolicy method_policies = 4; + * @return {!Array} + */ +proto.google.api.Control.prototype.getMethodPoliciesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_policy_pb.MethodPolicy, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Control} returns this +*/ +proto.google.api.Control.prototype.setMethodPoliciesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.google.api.MethodPolicy=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.MethodPolicy} + */ +proto.google.api.Control.prototype.addMethodPolicies = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.MethodPolicy, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Control} returns this + */ +proto.google.api.Control.prototype.clearMethodPoliciesList = function() { + return this.setMethodPoliciesList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/distribution_grpc_pb.js b/google/api/distribution_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/distribution_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/distribution_pb.js b/google/api/distribution_pb.js new file mode 100644 index 0000000..7f93d03 --- /dev/null +++ b/google/api/distribution_pb.js @@ -0,0 +1,1805 @@ +// source: google/api/distribution.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); +goog.object.extend(proto, google_protobuf_any_pb); +var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +goog.object.extend(proto, google_protobuf_timestamp_pb); +goog.exportSymbol('proto.google.api.Distribution', null, global); +goog.exportSymbol('proto.google.api.Distribution.BucketOptions', null, global); +goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Explicit', null, global); +goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Exponential', null, global); +goog.exportSymbol('proto.google.api.Distribution.BucketOptions.Linear', null, global); +goog.exportSymbol('proto.google.api.Distribution.BucketOptions.OptionsCase', null, global); +goog.exportSymbol('proto.google.api.Distribution.Exemplar', null, global); +goog.exportSymbol('proto.google.api.Distribution.Range', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Distribution = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Distribution, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Distribution.displayName = 'proto.google.api.Distribution'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Distribution.Range = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.Distribution.Range, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Distribution.Range.displayName = 'proto.google.api.Distribution.Range'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Distribution.BucketOptions = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.Distribution.BucketOptions.oneofGroups_); +}; +goog.inherits(proto.google.api.Distribution.BucketOptions, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Distribution.BucketOptions.displayName = 'proto.google.api.Distribution.BucketOptions'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Distribution.BucketOptions.Linear = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.Distribution.BucketOptions.Linear, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Distribution.BucketOptions.Linear.displayName = 'proto.google.api.Distribution.BucketOptions.Linear'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Distribution.BucketOptions.Exponential = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.Distribution.BucketOptions.Exponential, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Distribution.BucketOptions.Exponential.displayName = 'proto.google.api.Distribution.BucketOptions.Exponential'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Distribution.BucketOptions.Explicit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Distribution.BucketOptions.Explicit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Distribution.BucketOptions.Explicit.displayName = 'proto.google.api.Distribution.BucketOptions.Explicit'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Distribution.Exemplar = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Distribution.Exemplar.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Distribution.Exemplar, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Distribution.Exemplar.displayName = 'proto.google.api.Distribution.Exemplar'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Distribution.repeatedFields_ = [7,10]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Distribution.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Distribution.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Distribution} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.toObject = function(includeInstance, msg) { + var f, obj = { + count: jspb.Message.getFieldWithDefault(msg, 1, 0), + mean: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + sumOfSquaredDeviation: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + range: (f = msg.getRange()) && proto.google.api.Distribution.Range.toObject(includeInstance, f), + bucketOptions: (f = msg.getBucketOptions()) && proto.google.api.Distribution.BucketOptions.toObject(includeInstance, f), + bucketCountsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + exemplarsList: jspb.Message.toObjectList(msg.getExemplarsList(), + proto.google.api.Distribution.Exemplar.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Distribution} + */ +proto.google.api.Distribution.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Distribution; + return proto.google.api.Distribution.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Distribution} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Distribution} + */ +proto.google.api.Distribution.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt64()); + msg.setCount(value); + break; + case 2: + var value = /** @type {number} */ (reader.readDouble()); + msg.setMean(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setSumOfSquaredDeviation(value); + break; + case 4: + var value = new proto.google.api.Distribution.Range; + reader.readMessage(value,proto.google.api.Distribution.Range.deserializeBinaryFromReader); + msg.setRange(value); + break; + case 6: + var value = new proto.google.api.Distribution.BucketOptions; + reader.readMessage(value,proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader); + msg.setBucketOptions(value); + break; + case 7: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]); + for (var i = 0; i < values.length; i++) { + msg.addBucketCounts(values[i]); + } + break; + case 10: + var value = new proto.google.api.Distribution.Exemplar; + reader.readMessage(value,proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader); + msg.addExemplars(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Distribution.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Distribution.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Distribution} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCount(); + if (f !== 0) { + writer.writeInt64( + 1, + f + ); + } + f = message.getMean(); + if (f !== 0.0) { + writer.writeDouble( + 2, + f + ); + } + f = message.getSumOfSquaredDeviation(); + if (f !== 0.0) { + writer.writeDouble( + 3, + f + ); + } + f = message.getRange(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.google.api.Distribution.Range.serializeBinaryToWriter + ); + } + f = message.getBucketOptions(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter + ); + } + f = message.getBucketCountsList(); + if (f.length > 0) { + writer.writePackedInt64( + 7, + f + ); + } + f = message.getExemplarsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 10, + f, + proto.google.api.Distribution.Exemplar.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Distribution.Range.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Distribution.Range.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Distribution.Range} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.Range.toObject = function(includeInstance, msg) { + var f, obj = { + min: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + max: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Distribution.Range} + */ +proto.google.api.Distribution.Range.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Distribution.Range; + return proto.google.api.Distribution.Range.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Distribution.Range} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Distribution.Range} + */ +proto.google.api.Distribution.Range.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readDouble()); + msg.setMin(value); + break; + case 2: + var value = /** @type {number} */ (reader.readDouble()); + msg.setMax(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Distribution.Range.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Distribution.Range.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Distribution.Range} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.Range.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMin(); + if (f !== 0.0) { + writer.writeDouble( + 1, + f + ); + } + f = message.getMax(); + if (f !== 0.0) { + writer.writeDouble( + 2, + f + ); + } +}; + + +/** + * optional double min = 1; + * @return {number} + */ +proto.google.api.Distribution.Range.prototype.getMin = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.Range} returns this + */ +proto.google.api.Distribution.Range.prototype.setMin = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional double max = 2; + * @return {number} + */ +proto.google.api.Distribution.Range.prototype.getMax = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.Range} returns this + */ +proto.google.api.Distribution.Range.prototype.setMax = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.google.api.Distribution.BucketOptions.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.google.api.Distribution.BucketOptions.OptionsCase = { + OPTIONS_NOT_SET: 0, + LINEAR_BUCKETS: 1, + EXPONENTIAL_BUCKETS: 2, + EXPLICIT_BUCKETS: 3 +}; + +/** + * @return {proto.google.api.Distribution.BucketOptions.OptionsCase} + */ +proto.google.api.Distribution.BucketOptions.prototype.getOptionsCase = function() { + return /** @type {proto.google.api.Distribution.BucketOptions.OptionsCase} */(jspb.Message.computeOneofCase(this, proto.google.api.Distribution.BucketOptions.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Distribution.BucketOptions.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Distribution.BucketOptions.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Distribution.BucketOptions} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.toObject = function(includeInstance, msg) { + var f, obj = { + linearBuckets: (f = msg.getLinearBuckets()) && proto.google.api.Distribution.BucketOptions.Linear.toObject(includeInstance, f), + exponentialBuckets: (f = msg.getExponentialBuckets()) && proto.google.api.Distribution.BucketOptions.Exponential.toObject(includeInstance, f), + explicitBuckets: (f = msg.getExplicitBuckets()) && proto.google.api.Distribution.BucketOptions.Explicit.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Distribution.BucketOptions} + */ +proto.google.api.Distribution.BucketOptions.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Distribution.BucketOptions; + return proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Distribution.BucketOptions} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Distribution.BucketOptions} + */ +proto.google.api.Distribution.BucketOptions.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.Distribution.BucketOptions.Linear; + reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader); + msg.setLinearBuckets(value); + break; + case 2: + var value = new proto.google.api.Distribution.BucketOptions.Exponential; + reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader); + msg.setExponentialBuckets(value); + break; + case 3: + var value = new proto.google.api.Distribution.BucketOptions.Explicit; + reader.readMessage(value,proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader); + msg.setExplicitBuckets(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Distribution.BucketOptions.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Distribution.BucketOptions} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLinearBuckets(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter + ); + } + f = message.getExponentialBuckets(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter + ); + } + f = message.getExplicitBuckets(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter + ); + } +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Distribution.BucketOptions.Linear.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.Linear.toObject = function(includeInstance, msg) { + var f, obj = { + numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0), + width: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + offset: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Distribution.BucketOptions.Linear} + */ +proto.google.api.Distribution.BucketOptions.Linear.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Distribution.BucketOptions.Linear; + return proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Distribution.BucketOptions.Linear} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Distribution.BucketOptions.Linear} + */ +proto.google.api.Distribution.BucketOptions.Linear.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumFiniteBuckets(value); + break; + case 2: + var value = /** @type {number} */ (reader.readDouble()); + msg.setWidth(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setOffset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Distribution.BucketOptions.Linear} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.Linear.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNumFiniteBuckets(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getWidth(); + if (f !== 0.0) { + writer.writeDouble( + 2, + f + ); + } + f = message.getOffset(); + if (f !== 0.0) { + writer.writeDouble( + 3, + f + ); + } +}; + + +/** + * optional int32 num_finite_buckets = 1; + * @return {number} + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.getNumFiniteBuckets = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.setNumFiniteBuckets = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional double width = 2; + * @return {number} + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.getWidth = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.setWidth = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * optional double offset = 3; + * @return {number} + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.getOffset = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.BucketOptions.Linear} returns this + */ +proto.google.api.Distribution.BucketOptions.Linear.prototype.setOffset = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Distribution.BucketOptions.Exponential.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.Exponential.toObject = function(includeInstance, msg) { + var f, obj = { + numFiniteBuckets: jspb.Message.getFieldWithDefault(msg, 1, 0), + growthFactor: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + scale: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Distribution.BucketOptions.Exponential} + */ +proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Distribution.BucketOptions.Exponential; + return proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Distribution.BucketOptions.Exponential} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Distribution.BucketOptions.Exponential} + */ +proto.google.api.Distribution.BucketOptions.Exponential.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setNumFiniteBuckets(value); + break; + case 2: + var value = /** @type {number} */ (reader.readDouble()); + msg.setGrowthFactor(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setScale(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Distribution.BucketOptions.Exponential} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.Exponential.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNumFiniteBuckets(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getGrowthFactor(); + if (f !== 0.0) { + writer.writeDouble( + 2, + f + ); + } + f = message.getScale(); + if (f !== 0.0) { + writer.writeDouble( + 3, + f + ); + } +}; + + +/** + * optional int32 num_finite_buckets = 1; + * @return {number} + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.getNumFiniteBuckets = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.setNumFiniteBuckets = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional double growth_factor = 2; + * @return {number} + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.getGrowthFactor = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.setGrowthFactor = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * optional double scale = 3; + * @return {number} + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.getScale = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.BucketOptions.Exponential} returns this + */ +proto.google.api.Distribution.BucketOptions.Exponential.prototype.setScale = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Distribution.BucketOptions.Explicit.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Distribution.BucketOptions.Explicit.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Distribution.BucketOptions.Explicit.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.Explicit.toObject = function(includeInstance, msg) { + var f, obj = { + boundsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Distribution.BucketOptions.Explicit} + */ +proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Distribution.BucketOptions.Explicit; + return proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Distribution.BucketOptions.Explicit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Distribution.BucketOptions.Explicit} + */ +proto.google.api.Distribution.BucketOptions.Explicit.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]); + for (var i = 0; i < values.length; i++) { + msg.addBounds(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Distribution.BucketOptions.Explicit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Distribution.BucketOptions.Explicit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.BucketOptions.Explicit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBoundsList(); + if (f.length > 0) { + writer.writePackedDouble( + 1, + f + ); + } +}; + + +/** + * repeated double bounds = 1; + * @return {!Array} + */ +proto.google.api.Distribution.BucketOptions.Explicit.prototype.getBoundsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this + */ +proto.google.api.Distribution.BucketOptions.Explicit.prototype.setBoundsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this + */ +proto.google.api.Distribution.BucketOptions.Explicit.prototype.addBounds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Distribution.BucketOptions.Explicit} returns this + */ +proto.google.api.Distribution.BucketOptions.Explicit.prototype.clearBoundsList = function() { + return this.setBoundsList([]); +}; + + +/** + * optional Linear linear_buckets = 1; + * @return {?proto.google.api.Distribution.BucketOptions.Linear} + */ +proto.google.api.Distribution.BucketOptions.prototype.getLinearBuckets = function() { + return /** @type{?proto.google.api.Distribution.BucketOptions.Linear} */ ( + jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Linear, 1)); +}; + + +/** + * @param {?proto.google.api.Distribution.BucketOptions.Linear|undefined} value + * @return {!proto.google.api.Distribution.BucketOptions} returns this +*/ +proto.google.api.Distribution.BucketOptions.prototype.setLinearBuckets = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Distribution.BucketOptions} returns this + */ +proto.google.api.Distribution.BucketOptions.prototype.clearLinearBuckets = function() { + return this.setLinearBuckets(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Distribution.BucketOptions.prototype.hasLinearBuckets = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Exponential exponential_buckets = 2; + * @return {?proto.google.api.Distribution.BucketOptions.Exponential} + */ +proto.google.api.Distribution.BucketOptions.prototype.getExponentialBuckets = function() { + return /** @type{?proto.google.api.Distribution.BucketOptions.Exponential} */ ( + jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Exponential, 2)); +}; + + +/** + * @param {?proto.google.api.Distribution.BucketOptions.Exponential|undefined} value + * @return {!proto.google.api.Distribution.BucketOptions} returns this +*/ +proto.google.api.Distribution.BucketOptions.prototype.setExponentialBuckets = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Distribution.BucketOptions} returns this + */ +proto.google.api.Distribution.BucketOptions.prototype.clearExponentialBuckets = function() { + return this.setExponentialBuckets(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Distribution.BucketOptions.prototype.hasExponentialBuckets = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Explicit explicit_buckets = 3; + * @return {?proto.google.api.Distribution.BucketOptions.Explicit} + */ +proto.google.api.Distribution.BucketOptions.prototype.getExplicitBuckets = function() { + return /** @type{?proto.google.api.Distribution.BucketOptions.Explicit} */ ( + jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions.Explicit, 3)); +}; + + +/** + * @param {?proto.google.api.Distribution.BucketOptions.Explicit|undefined} value + * @return {!proto.google.api.Distribution.BucketOptions} returns this +*/ +proto.google.api.Distribution.BucketOptions.prototype.setExplicitBuckets = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.google.api.Distribution.BucketOptions.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Distribution.BucketOptions} returns this + */ +proto.google.api.Distribution.BucketOptions.prototype.clearExplicitBuckets = function() { + return this.setExplicitBuckets(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Distribution.BucketOptions.prototype.hasExplicitBuckets = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Distribution.Exemplar.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Distribution.Exemplar.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Distribution.Exemplar.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Distribution.Exemplar} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.Exemplar.toObject = function(includeInstance, msg) { + var f, obj = { + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + attachmentsList: jspb.Message.toObjectList(msg.getAttachmentsList(), + google_protobuf_any_pb.Any.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Distribution.Exemplar} + */ +proto.google.api.Distribution.Exemplar.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Distribution.Exemplar; + return proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Distribution.Exemplar} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Distribution.Exemplar} + */ +proto.google.api.Distribution.Exemplar.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readDouble()); + msg.setValue(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTimestamp(value); + break; + case 3: + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.addAttachments(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Distribution.Exemplar.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Distribution.Exemplar.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Distribution.Exemplar} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Distribution.Exemplar.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValue(); + if (f !== 0.0) { + writer.writeDouble( + 1, + f + ); + } + f = message.getTimestamp(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAttachmentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + google_protobuf_any_pb.Any.serializeBinaryToWriter + ); + } +}; + + +/** + * optional double value = 1; + * @return {number} + */ +proto.google.api.Distribution.Exemplar.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution.Exemplar} returns this + */ +proto.google.api.Distribution.Exemplar.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional google.protobuf.Timestamp timestamp = 2; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.google.api.Distribution.Exemplar.prototype.getTimestamp = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.google.api.Distribution.Exemplar} returns this +*/ +proto.google.api.Distribution.Exemplar.prototype.setTimestamp = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Distribution.Exemplar} returns this + */ +proto.google.api.Distribution.Exemplar.prototype.clearTimestamp = function() { + return this.setTimestamp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Distribution.Exemplar.prototype.hasTimestamp = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated google.protobuf.Any attachments = 3; + * @return {!Array} + */ +proto.google.api.Distribution.Exemplar.prototype.getAttachmentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Distribution.Exemplar} returns this +*/ +proto.google.api.Distribution.Exemplar.prototype.setAttachmentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.google.protobuf.Any=} opt_value + * @param {number=} opt_index + * @return {!proto.google.protobuf.Any} + */ +proto.google.api.Distribution.Exemplar.prototype.addAttachments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Distribution.Exemplar} returns this + */ +proto.google.api.Distribution.Exemplar.prototype.clearAttachmentsList = function() { + return this.setAttachmentsList([]); +}; + + +/** + * optional int64 count = 1; + * @return {number} + */ +proto.google.api.Distribution.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional double mean = 2; + * @return {number} + */ +proto.google.api.Distribution.prototype.getMean = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.setMean = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * optional double sum_of_squared_deviation = 3; + * @return {number} + */ +proto.google.api.Distribution.prototype.getSumOfSquaredDeviation = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.setSumOfSquaredDeviation = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional Range range = 4; + * @return {?proto.google.api.Distribution.Range} + */ +proto.google.api.Distribution.prototype.getRange = function() { + return /** @type{?proto.google.api.Distribution.Range} */ ( + jspb.Message.getWrapperField(this, proto.google.api.Distribution.Range, 4)); +}; + + +/** + * @param {?proto.google.api.Distribution.Range|undefined} value + * @return {!proto.google.api.Distribution} returns this +*/ +proto.google.api.Distribution.prototype.setRange = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.clearRange = function() { + return this.setRange(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Distribution.prototype.hasRange = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional BucketOptions bucket_options = 6; + * @return {?proto.google.api.Distribution.BucketOptions} + */ +proto.google.api.Distribution.prototype.getBucketOptions = function() { + return /** @type{?proto.google.api.Distribution.BucketOptions} */ ( + jspb.Message.getWrapperField(this, proto.google.api.Distribution.BucketOptions, 6)); +}; + + +/** + * @param {?proto.google.api.Distribution.BucketOptions|undefined} value + * @return {!proto.google.api.Distribution} returns this +*/ +proto.google.api.Distribution.prototype.setBucketOptions = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.clearBucketOptions = function() { + return this.setBucketOptions(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Distribution.prototype.hasBucketOptions = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * repeated int64 bucket_counts = 7; + * @return {!Array} + */ +proto.google.api.Distribution.prototype.getBucketCountsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.setBucketCountsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.addBucketCounts = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.clearBucketCountsList = function() { + return this.setBucketCountsList([]); +}; + + +/** + * repeated Exemplar exemplars = 10; + * @return {!Array} + */ +proto.google.api.Distribution.prototype.getExemplarsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Distribution.Exemplar, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Distribution} returns this +*/ +proto.google.api.Distribution.prototype.setExemplarsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 10, value); +}; + + +/** + * @param {!proto.google.api.Distribution.Exemplar=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Distribution.Exemplar} + */ +proto.google.api.Distribution.prototype.addExemplars = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.google.api.Distribution.Exemplar, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Distribution} returns this + */ +proto.google.api.Distribution.prototype.clearExemplarsList = function() { + return this.setExemplarsList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/documentation_grpc_pb.js b/google/api/documentation_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/documentation_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/documentation_pb.js b/google/api/documentation_pb.js new file mode 100644 index 0000000..4ff34dc --- /dev/null +++ b/google/api/documentation_pb.js @@ -0,0 +1,833 @@ +// source: google/api/documentation.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Documentation', null, global); +goog.exportSymbol('proto.google.api.DocumentationRule', null, global); +goog.exportSymbol('proto.google.api.Page', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Documentation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Documentation.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Documentation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Documentation.displayName = 'proto.google.api.Documentation'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.DocumentationRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.DocumentationRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.DocumentationRule.displayName = 'proto.google.api.DocumentationRule'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Page = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Page.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Page, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Page.displayName = 'proto.google.api.Page'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Documentation.repeatedFields_ = [5,3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Documentation.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Documentation.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Documentation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Documentation.toObject = function(includeInstance, msg) { + var f, obj = { + summary: jspb.Message.getFieldWithDefault(msg, 1, ""), + pagesList: jspb.Message.toObjectList(msg.getPagesList(), + proto.google.api.Page.toObject, includeInstance), + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.google.api.DocumentationRule.toObject, includeInstance), + documentationRootUrl: jspb.Message.getFieldWithDefault(msg, 4, ""), + serviceRootUrl: jspb.Message.getFieldWithDefault(msg, 6, ""), + overview: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Documentation} + */ +proto.google.api.Documentation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Documentation; + return proto.google.api.Documentation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Documentation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Documentation} + */ +proto.google.api.Documentation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSummary(value); + break; + case 5: + var value = new proto.google.api.Page; + reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader); + msg.addPages(value); + break; + case 3: + var value = new proto.google.api.DocumentationRule; + reader.readMessage(value,proto.google.api.DocumentationRule.deserializeBinaryFromReader); + msg.addRules(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDocumentationRootUrl(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setServiceRootUrl(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setOverview(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Documentation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Documentation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Documentation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Documentation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSummary(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPagesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.google.api.Page.serializeBinaryToWriter + ); + } + f = message.getRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.google.api.DocumentationRule.serializeBinaryToWriter + ); + } + f = message.getDocumentationRootUrl(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getServiceRootUrl(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getOverview(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string summary = 1; + * @return {string} + */ +proto.google.api.Documentation.prototype.getSummary = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Documentation} returns this + */ +proto.google.api.Documentation.prototype.setSummary = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated Page pages = 5; + * @return {!Array} + */ +proto.google.api.Documentation.prototype.getPagesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Documentation} returns this +*/ +proto.google.api.Documentation.prototype.setPagesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.google.api.Page=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Page} + */ +proto.google.api.Documentation.prototype.addPages = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.api.Page, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Documentation} returns this + */ +proto.google.api.Documentation.prototype.clearPagesList = function() { + return this.setPagesList([]); +}; + + +/** + * repeated DocumentationRule rules = 3; + * @return {!Array} + */ +proto.google.api.Documentation.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.DocumentationRule, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Documentation} returns this +*/ +proto.google.api.Documentation.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.google.api.DocumentationRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.DocumentationRule} + */ +proto.google.api.Documentation.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.DocumentationRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Documentation} returns this + */ +proto.google.api.Documentation.prototype.clearRulesList = function() { + return this.setRulesList([]); +}; + + +/** + * optional string documentation_root_url = 4; + * @return {string} + */ +proto.google.api.Documentation.prototype.getDocumentationRootUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Documentation} returns this + */ +proto.google.api.Documentation.prototype.setDocumentationRootUrl = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string service_root_url = 6; + * @return {string} + */ +proto.google.api.Documentation.prototype.getServiceRootUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Documentation} returns this + */ +proto.google.api.Documentation.prototype.setServiceRootUrl = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string overview = 2; + * @return {string} + */ +proto.google.api.Documentation.prototype.getOverview = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Documentation} returns this + */ +proto.google.api.Documentation.prototype.setOverview = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.DocumentationRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.DocumentationRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.DocumentationRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.DocumentationRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + deprecationDescription: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.DocumentationRule} + */ +proto.google.api.DocumentationRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.DocumentationRule; + return proto.google.api.DocumentationRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.DocumentationRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.DocumentationRule} + */ +proto.google.api.DocumentationRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDeprecationDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.DocumentationRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.DocumentationRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.DocumentationRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.DocumentationRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDeprecationDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.DocumentationRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.DocumentationRule} returns this + */ +proto.google.api.DocumentationRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.google.api.DocumentationRule.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.DocumentationRule} returns this + */ +proto.google.api.DocumentationRule.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string deprecation_description = 3; + * @return {string} + */ +proto.google.api.DocumentationRule.prototype.getDeprecationDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.DocumentationRule} returns this + */ +proto.google.api.DocumentationRule.prototype.setDeprecationDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Page.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Page.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Page.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Page} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Page.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + content: jspb.Message.getFieldWithDefault(msg, 2, ""), + subpagesList: jspb.Message.toObjectList(msg.getSubpagesList(), + proto.google.api.Page.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Page} + */ +proto.google.api.Page.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Page; + return proto.google.api.Page.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Page} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Page} + */ +proto.google.api.Page.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setContent(value); + break; + case 3: + var value = new proto.google.api.Page; + reader.readMessage(value,proto.google.api.Page.deserializeBinaryFromReader); + msg.addSubpages(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Page.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Page.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Page} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Page.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getContent(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getSubpagesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.google.api.Page.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.google.api.Page.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Page} returns this + */ +proto.google.api.Page.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string content = 2; + * @return {string} + */ +proto.google.api.Page.prototype.getContent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Page} returns this + */ +proto.google.api.Page.prototype.setContent = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated Page subpages = 3; + * @return {!Array} + */ +proto.google.api.Page.prototype.getSubpagesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Page, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Page} returns this +*/ +proto.google.api.Page.prototype.setSubpagesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.google.api.Page=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Page} + */ +proto.google.api.Page.prototype.addSubpages = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.Page, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Page} returns this + */ +proto.google.api.Page.prototype.clearSubpagesList = function() { + return this.setSubpagesList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/endpoint_grpc_pb.js b/google/api/endpoint_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/endpoint_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/endpoint_pb.js b/google/api/endpoint_pb.js new file mode 100644 index 0000000..dec44a8 --- /dev/null +++ b/google/api/endpoint_pb.js @@ -0,0 +1,292 @@ +// source: google/api/endpoint.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Endpoint', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Endpoint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Endpoint.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Endpoint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Endpoint.displayName = 'proto.google.api.Endpoint'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Endpoint.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Endpoint.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Endpoint.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Endpoint} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Endpoint.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + aliasesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + target: jspb.Message.getFieldWithDefault(msg, 101, ""), + allowCors: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Endpoint} + */ +proto.google.api.Endpoint.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Endpoint; + return proto.google.api.Endpoint.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Endpoint} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Endpoint} + */ +proto.google.api.Endpoint.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addAliases(value); + break; + case 101: + var value = /** @type {string} */ (reader.readString()); + msg.setTarget(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowCors(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Endpoint.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Endpoint.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Endpoint} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Endpoint.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAliasesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getTarget(); + if (f.length > 0) { + writer.writeString( + 101, + f + ); + } + f = message.getAllowCors(); + if (f) { + writer.writeBool( + 5, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.google.api.Endpoint.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Endpoint} returns this + */ +proto.google.api.Endpoint.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string aliases = 2; + * @return {!Array} + */ +proto.google.api.Endpoint.prototype.getAliasesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Endpoint} returns this + */ +proto.google.api.Endpoint.prototype.setAliasesList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.Endpoint} returns this + */ +proto.google.api.Endpoint.prototype.addAliases = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Endpoint} returns this + */ +proto.google.api.Endpoint.prototype.clearAliasesList = function() { + return this.setAliasesList([]); +}; + + +/** + * optional string target = 101; + * @return {string} + */ +proto.google.api.Endpoint.prototype.getTarget = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Endpoint} returns this + */ +proto.google.api.Endpoint.prototype.setTarget = function(value) { + return jspb.Message.setProto3StringField(this, 101, value); +}; + + +/** + * optional bool allow_cors = 5; + * @return {boolean} + */ +proto.google.api.Endpoint.prototype.getAllowCors = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.google.api.Endpoint} returns this + */ +proto.google.api.Endpoint.prototype.setAllowCors = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/error_reason_grpc_pb.js b/google/api/error_reason_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/error_reason_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/error_reason_pb.js b/google/api/error_reason_pb.js new file mode 100644 index 0000000..8848ab7 --- /dev/null +++ b/google/api/error_reason_pb.js @@ -0,0 +1,61 @@ +// source: google/api/error_reason.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.ErrorReason', null, global); +/** + * @enum {number} + */ +proto.google.api.ErrorReason = { + ERROR_REASON_UNSPECIFIED: 0, + SERVICE_DISABLED: 1, + BILLING_DISABLED: 2, + API_KEY_INVALID: 3, + API_KEY_SERVICE_BLOCKED: 4, + API_KEY_HTTP_REFERRER_BLOCKED: 7, + API_KEY_IP_ADDRESS_BLOCKED: 8, + API_KEY_ANDROID_APP_BLOCKED: 9, + API_KEY_IOS_APP_BLOCKED: 13, + RATE_LIMIT_EXCEEDED: 5, + RESOURCE_QUOTA_EXCEEDED: 6, + LOCATION_TAX_POLICY_VIOLATED: 10, + USER_PROJECT_DENIED: 11, + CONSUMER_SUSPENDED: 12, + CONSUMER_INVALID: 14, + SECURITY_POLICY_VIOLATED: 15, + ACCESS_TOKEN_EXPIRED: 16, + ACCESS_TOKEN_SCOPE_INSUFFICIENT: 17, + ACCOUNT_STATE_INVALID: 18, + ACCESS_TOKEN_TYPE_UNSUPPORTED: 19, + CREDENTIALS_MISSING: 20, + RESOURCE_PROJECT_INVALID: 21, + SESSION_COOKIE_INVALID: 23, + USER_BLOCKED_BY_ADMIN: 24, + RESOURCE_USAGE_RESTRICTION_VIOLATED: 25, + SYSTEM_PARAMETER_UNSUPPORTED: 26, + ORG_RESTRICTION_VIOLATION: 27, + ORG_RESTRICTION_HEADER_INVALID: 28, + SERVICE_NOT_VISIBLE: 29, + GCP_SUSPENDED: 30 +}; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/field_behavior_grpc_pb.js b/google/api/field_behavior_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/field_behavior_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/field_behavior_pb.js b/google/api/field_behavior_pb.js new file mode 100644 index 0000000..95578d7 --- /dev/null +++ b/google/api/field_behavior_pb.js @@ -0,0 +1,67 @@ +// source: google/api/field_behavior.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +goog.exportSymbol('proto.google.api.FieldBehavior', null, global); +goog.exportSymbol('proto.google.api.fieldBehaviorList', null, global); +/** + * @enum {number} + */ +proto.google.api.FieldBehavior = { + FIELD_BEHAVIOR_UNSPECIFIED: 0, + OPTIONAL: 1, + REQUIRED: 2, + OUTPUT_ONLY: 3, + INPUT_ONLY: 4, + IMMUTABLE: 5, + UNORDERED_LIST: 6, + NON_EMPTY_DEFAULT: 7 +}; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `fieldBehaviorList`. + * @type {!jspb.ExtensionFieldInfo>} + */ +proto.google.api.fieldBehaviorList = new jspb.ExtensionFieldInfo( + 1052, + {fieldBehaviorList: 0}, + null, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + null), + 1); + +google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1052] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.fieldBehaviorList, + jspb.BinaryReader.prototype.readPackedEnum, + jspb.BinaryWriter.prototype.writePackedEnum, + undefined, + undefined, + true); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.FieldOptions.extensions[1052] = proto.google.api.fieldBehaviorList; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/http_pb.js b/google/api/http_pb.js index 38ed3a3..9fc6ee7 100644 --- a/google/api/http_pb.js +++ b/google/api/http_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.google.api.CustomHttpPattern', null, global); goog.exportSymbol('proto.google.api.Http', null, global); diff --git a/google/api/httpbody_grpc_pb.js b/google/api/httpbody_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/httpbody_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/httpbody_pb.js b/google/api/httpbody_pb.js new file mode 100644 index 0000000..fad97c6 --- /dev/null +++ b/google/api/httpbody_pb.js @@ -0,0 +1,292 @@ +// source: google/api/httpbody.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); +goog.object.extend(proto, google_protobuf_any_pb); +goog.exportSymbol('proto.google.api.HttpBody', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.HttpBody = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.HttpBody.repeatedFields_, null); +}; +goog.inherits(proto.google.api.HttpBody, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.HttpBody.displayName = 'proto.google.api.HttpBody'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.HttpBody.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.HttpBody.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.HttpBody.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.HttpBody} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.HttpBody.toObject = function(includeInstance, msg) { + var f, obj = { + contentType: jspb.Message.getFieldWithDefault(msg, 1, ""), + data: msg.getData_asB64(), + extensionsList: jspb.Message.toObjectList(msg.getExtensionsList(), + google_protobuf_any_pb.Any.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.HttpBody} + */ +proto.google.api.HttpBody.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.HttpBody; + return proto.google.api.HttpBody.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.HttpBody} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.HttpBody} + */ +proto.google.api.HttpBody.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setContentType(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); + break; + case 3: + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.addExtensions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.HttpBody.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.HttpBody.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.HttpBody} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.HttpBody.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getContentType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getExtensionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + google_protobuf_any_pb.Any.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string content_type = 1; + * @return {string} + */ +proto.google.api.HttpBody.prototype.getContentType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.HttpBody} returns this + */ +proto.google.api.HttpBody.prototype.setContentType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes data = 2; + * @return {!(string|Uint8Array)} + */ +proto.google.api.HttpBody.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes data = 2; + * This is a type-conversion wrapper around `getData()` + * @return {string} + */ +proto.google.api.HttpBody.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); +}; + + +/** + * optional bytes data = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` + * @return {!Uint8Array} + */ +proto.google.api.HttpBody.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.google.api.HttpBody} returns this + */ +proto.google.api.HttpBody.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * repeated google.protobuf.Any extensions = 3; + * @return {!Array} + */ +proto.google.api.HttpBody.prototype.getExtensionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.HttpBody} returns this +*/ +proto.google.api.HttpBody.prototype.setExtensionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.google.protobuf.Any=} opt_value + * @param {number=} opt_index + * @return {!proto.google.protobuf.Any} + */ +proto.google.api.HttpBody.prototype.addExtensions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Any, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.HttpBody} returns this + */ +proto.google.api.HttpBody.prototype.clearExtensionsList = function() { + return this.setExtensionsList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/label_grpc_pb.js b/google/api/label_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/label_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/label_pb.js b/google/api/label_pb.js new file mode 100644 index 0000000..e8d5545 --- /dev/null +++ b/google/api/label_pb.js @@ -0,0 +1,246 @@ +// source: google/api/label.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.LabelDescriptor', null, global); +goog.exportSymbol('proto.google.api.LabelDescriptor.ValueType', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.LabelDescriptor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.LabelDescriptor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.LabelDescriptor.displayName = 'proto.google.api.LabelDescriptor'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.LabelDescriptor.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.LabelDescriptor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.LabelDescriptor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.LabelDescriptor.toObject = function(includeInstance, msg) { + var f, obj = { + key: jspb.Message.getFieldWithDefault(msg, 1, ""), + valueType: jspb.Message.getFieldWithDefault(msg, 2, 0), + description: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.LabelDescriptor} + */ +proto.google.api.LabelDescriptor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.LabelDescriptor; + return proto.google.api.LabelDescriptor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.LabelDescriptor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.LabelDescriptor} + */ +proto.google.api.LabelDescriptor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setKey(value); + break; + case 2: + var value = /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (reader.readEnum()); + msg.setValueType(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.LabelDescriptor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.LabelDescriptor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.LabelDescriptor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.LabelDescriptor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKey(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValueType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.google.api.LabelDescriptor.ValueType = { + STRING: 0, + BOOL: 1, + INT64: 2 +}; + +/** + * optional string key = 1; + * @return {string} + */ +proto.google.api.LabelDescriptor.prototype.getKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.LabelDescriptor} returns this + */ +proto.google.api.LabelDescriptor.prototype.setKey = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional ValueType value_type = 2; + * @return {!proto.google.api.LabelDescriptor.ValueType} + */ +proto.google.api.LabelDescriptor.prototype.getValueType = function() { + return /** @type {!proto.google.api.LabelDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.google.api.LabelDescriptor.ValueType} value + * @return {!proto.google.api.LabelDescriptor} returns this + */ +proto.google.api.LabelDescriptor.prototype.setValueType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.google.api.LabelDescriptor.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.LabelDescriptor} returns this + */ +proto.google.api.LabelDescriptor.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/launch_stage_grpc_pb.js b/google/api/launch_stage_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/launch_stage_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/launch_stage_pb.js b/google/api/launch_stage_pb.js new file mode 100644 index 0000000..9417b88 --- /dev/null +++ b/google/api/launch_stage_pb.js @@ -0,0 +1,39 @@ +// source: google/api/launch_stage.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.LaunchStage', null, global); +/** + * @enum {number} + */ +proto.google.api.LaunchStage = { + LAUNCH_STAGE_UNSPECIFIED: 0, + UNIMPLEMENTED: 6, + PRELAUNCH: 7, + EARLY_ACCESS: 1, + ALPHA: 2, + BETA: 3, + GA: 4, + DEPRECATED: 5 +}; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/log_grpc_pb.js b/google/api/log_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/log_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/log_pb.js b/google/api/log_pb.js new file mode 100644 index 0000000..d1deb27 --- /dev/null +++ b/google/api/log_pb.js @@ -0,0 +1,298 @@ +// source: google/api/log.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_api_label_pb = require('../../google/api/label_pb.js'); +goog.object.extend(proto, google_api_label_pb); +goog.exportSymbol('proto.google.api.LogDescriptor', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.LogDescriptor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.LogDescriptor.repeatedFields_, null); +}; +goog.inherits(proto.google.api.LogDescriptor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.LogDescriptor.displayName = 'proto.google.api.LogDescriptor'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.LogDescriptor.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.LogDescriptor.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.LogDescriptor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.LogDescriptor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.LogDescriptor.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + labelsList: jspb.Message.toObjectList(msg.getLabelsList(), + google_api_label_pb.LabelDescriptor.toObject, includeInstance), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + displayName: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.LogDescriptor} + */ +proto.google.api.LogDescriptor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.LogDescriptor; + return proto.google.api.LogDescriptor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.LogDescriptor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.LogDescriptor} + */ +proto.google.api.LogDescriptor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = new google_api_label_pb.LabelDescriptor; + reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); + msg.addLabels(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDisplayName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.LogDescriptor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.LogDescriptor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.LogDescriptor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.LogDescriptor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLabelsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + google_api_label_pb.LabelDescriptor.serializeBinaryToWriter + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDisplayName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.google.api.LogDescriptor.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.LogDescriptor} returns this + */ +proto.google.api.LogDescriptor.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated LabelDescriptor labels = 2; + * @return {!Array} + */ +proto.google.api.LogDescriptor.prototype.getLabelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.LogDescriptor} returns this +*/ +proto.google.api.LogDescriptor.prototype.setLabelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.LabelDescriptor=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.LabelDescriptor} + */ +proto.google.api.LogDescriptor.prototype.addLabels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.LogDescriptor} returns this + */ +proto.google.api.LogDescriptor.prototype.clearLabelsList = function() { + return this.setLabelsList([]); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.google.api.LogDescriptor.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.LogDescriptor} returns this + */ +proto.google.api.LogDescriptor.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string display_name = 4; + * @return {string} + */ +proto.google.api.LogDescriptor.prototype.getDisplayName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.LogDescriptor} returns this + */ +proto.google.api.LogDescriptor.prototype.setDisplayName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/logging_grpc_pb.js b/google/api/logging_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/logging_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/logging_pb.js b/google/api/logging_pb.js new file mode 100644 index 0000000..3561510 --- /dev/null +++ b/google/api/logging_pb.js @@ -0,0 +1,467 @@ +// source: google/api/logging.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Logging', null, global); +goog.exportSymbol('proto.google.api.Logging.LoggingDestination', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Logging = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Logging, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Logging.displayName = 'proto.google.api.Logging'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Logging.LoggingDestination = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Logging.LoggingDestination.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Logging.LoggingDestination, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Logging.LoggingDestination.displayName = 'proto.google.api.Logging.LoggingDestination'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Logging.repeatedFields_ = [1,2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Logging.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Logging.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Logging} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Logging.toObject = function(includeInstance, msg) { + var f, obj = { + producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(), + proto.google.api.Logging.LoggingDestination.toObject, includeInstance), + consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), + proto.google.api.Logging.LoggingDestination.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Logging} + */ +proto.google.api.Logging.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Logging; + return proto.google.api.Logging.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Logging} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Logging} + */ +proto.google.api.Logging.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.Logging.LoggingDestination; + reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader); + msg.addProducerDestinations(value); + break; + case 2: + var value = new proto.google.api.Logging.LoggingDestination; + reader.readMessage(value,proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader); + msg.addConsumerDestinations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Logging.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Logging.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Logging} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Logging.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProducerDestinationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter + ); + } + f = message.getConsumerDestinationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Logging.LoggingDestination.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Logging.LoggingDestination.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Logging.LoggingDestination.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Logging.LoggingDestination} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Logging.LoggingDestination.toObject = function(includeInstance, msg) { + var f, obj = { + monitoredResource: jspb.Message.getFieldWithDefault(msg, 3, ""), + logsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Logging.LoggingDestination} + */ +proto.google.api.Logging.LoggingDestination.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Logging.LoggingDestination; + return proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Logging.LoggingDestination} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Logging.LoggingDestination} + */ +proto.google.api.Logging.LoggingDestination.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setMonitoredResource(value); + break; + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addLogs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Logging.LoggingDestination.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Logging.LoggingDestination} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Logging.LoggingDestination.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMonitoredResource(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getLogsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * optional string monitored_resource = 3; + * @return {string} + */ +proto.google.api.Logging.LoggingDestination.prototype.getMonitoredResource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Logging.LoggingDestination} returns this + */ +proto.google.api.Logging.LoggingDestination.prototype.setMonitoredResource = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated string logs = 1; + * @return {!Array} + */ +proto.google.api.Logging.LoggingDestination.prototype.getLogsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Logging.LoggingDestination} returns this + */ +proto.google.api.Logging.LoggingDestination.prototype.setLogsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.Logging.LoggingDestination} returns this + */ +proto.google.api.Logging.LoggingDestination.prototype.addLogs = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Logging.LoggingDestination} returns this + */ +proto.google.api.Logging.LoggingDestination.prototype.clearLogsList = function() { + return this.setLogsList([]); +}; + + +/** + * repeated LoggingDestination producer_destinations = 1; + * @return {!Array} + */ +proto.google.api.Logging.prototype.getProducerDestinationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Logging} returns this +*/ +proto.google.api.Logging.prototype.setProducerDestinationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.api.Logging.LoggingDestination=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Logging.LoggingDestination} + */ +proto.google.api.Logging.prototype.addProducerDestinations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Logging.LoggingDestination, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Logging} returns this + */ +proto.google.api.Logging.prototype.clearProducerDestinationsList = function() { + return this.setProducerDestinationsList([]); +}; + + +/** + * repeated LoggingDestination consumer_destinations = 2; + * @return {!Array} + */ +proto.google.api.Logging.prototype.getConsumerDestinationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Logging.LoggingDestination, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Logging} returns this +*/ +proto.google.api.Logging.prototype.setConsumerDestinationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.Logging.LoggingDestination=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Logging.LoggingDestination} + */ +proto.google.api.Logging.prototype.addConsumerDestinations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Logging.LoggingDestination, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Logging} returns this + */ +proto.google.api.Logging.prototype.clearConsumerDestinationsList = function() { + return this.setConsumerDestinationsList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/metric_grpc_pb.js b/google/api/metric_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/metric_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/metric_pb.js b/google/api/metric_pb.js new file mode 100644 index 0000000..b0d7d12 --- /dev/null +++ b/google/api/metric_pb.js @@ -0,0 +1,1017 @@ +// source: google/api/metric.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_api_label_pb = require('../../google/api/label_pb.js'); +goog.object.extend(proto, google_api_label_pb); +var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); +goog.object.extend(proto, google_api_launch_stage_pb); +var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); +goog.object.extend(proto, google_protobuf_duration_pb); +goog.exportSymbol('proto.google.api.Metric', null, global); +goog.exportSymbol('proto.google.api.MetricDescriptor', null, global); +goog.exportSymbol('proto.google.api.MetricDescriptor.MetricDescriptorMetadata', null, global); +goog.exportSymbol('proto.google.api.MetricDescriptor.MetricKind', null, global); +goog.exportSymbol('proto.google.api.MetricDescriptor.ValueType', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MetricDescriptor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MetricDescriptor.repeatedFields_, null); +}; +goog.inherits(proto.google.api.MetricDescriptor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MetricDescriptor.displayName = 'proto.google.api.MetricDescriptor'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.MetricDescriptor.MetricDescriptorMetadata, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MetricDescriptor.MetricDescriptorMetadata.displayName = 'proto.google.api.MetricDescriptor.MetricDescriptorMetadata'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Metric = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.Metric, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Metric.displayName = 'proto.google.api.Metric'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.MetricDescriptor.repeatedFields_ = [2,13]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MetricDescriptor.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MetricDescriptor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MetricDescriptor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MetricDescriptor.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 8, ""), + labelsList: jspb.Message.toObjectList(msg.getLabelsList(), + google_api_label_pb.LabelDescriptor.toObject, includeInstance), + metricKind: jspb.Message.getFieldWithDefault(msg, 3, 0), + valueType: jspb.Message.getFieldWithDefault(msg, 4, 0), + unit: jspb.Message.getFieldWithDefault(msg, 5, ""), + description: jspb.Message.getFieldWithDefault(msg, 6, ""), + displayName: jspb.Message.getFieldWithDefault(msg, 7, ""), + metadata: (f = msg.getMetadata()) && proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject(includeInstance, f), + launchStage: jspb.Message.getFieldWithDefault(msg, 12, 0), + monitoredResourceTypesList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MetricDescriptor} + */ +proto.google.api.MetricDescriptor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MetricDescriptor; + return proto.google.api.MetricDescriptor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MetricDescriptor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MetricDescriptor} + */ +proto.google.api.MetricDescriptor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = new google_api_label_pb.LabelDescriptor; + reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); + msg.addLabels(value); + break; + case 3: + var value = /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (reader.readEnum()); + msg.setMetricKind(value); + break; + case 4: + var value = /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (reader.readEnum()); + msg.setValueType(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUnit(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setDisplayName(value); + break; + case 10: + var value = new proto.google.api.MetricDescriptor.MetricDescriptorMetadata; + reader.readMessage(value,proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 12: + var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); + msg.setLaunchStage(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.addMonitoredResourceTypes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MetricDescriptor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MetricDescriptor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MetricDescriptor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MetricDescriptor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getLabelsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + google_api_label_pb.LabelDescriptor.serializeBinaryToWriter + ); + } + f = message.getMetricKind(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getValueType(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getUnit(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getDisplayName(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter + ); + } + f = message.getLaunchStage(); + if (f !== 0.0) { + writer.writeEnum( + 12, + f + ); + } + f = message.getMonitoredResourceTypesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 13, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.google.api.MetricDescriptor.MetricKind = { + METRIC_KIND_UNSPECIFIED: 0, + GAUGE: 1, + DELTA: 2, + CUMULATIVE: 3 +}; + +/** + * @enum {number} + */ +proto.google.api.MetricDescriptor.ValueType = { + VALUE_TYPE_UNSPECIFIED: 0, + BOOL: 1, + INT64: 2, + DOUBLE: 3, + STRING: 4, + DISTRIBUTION: 5, + MONEY: 6 +}; + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.toObject = function(includeInstance, msg) { + var f, obj = { + launchStage: jspb.Message.getFieldWithDefault(msg, 1, 0), + samplePeriod: (f = msg.getSamplePeriod()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + ingestDelay: (f = msg.getIngestDelay()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MetricDescriptor.MetricDescriptorMetadata; + return proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); + msg.setLaunchStage(value); + break; + case 2: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setSamplePeriod(value); + break; + case 3: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setIngestDelay(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLaunchStage(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getSamplePeriod(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getIngestDelay(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional LaunchStage launch_stage = 1; + * @return {!proto.google.api.LaunchStage} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getLaunchStage = function() { + return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.google.api.LaunchStage} value + * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setLaunchStage = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional google.protobuf.Duration sample_period = 2; + * @return {?proto.google.protobuf.Duration} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getSamplePeriod = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this +*/ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setSamplePeriod = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.clearSamplePeriod = function() { + return this.setSamplePeriod(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.hasSamplePeriod = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.Duration ingest_delay = 3; + * @return {?proto.google.protobuf.Duration} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.getIngestDelay = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this +*/ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.setIngestDelay = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MetricDescriptor.MetricDescriptorMetadata} returns this + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.clearIngestDelay = function() { + return this.setIngestDelay(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MetricDescriptor.MetricDescriptorMetadata.prototype.hasIngestDelay = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.google.api.MetricDescriptor.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string type = 8; + * @return {string} + */ +proto.google.api.MetricDescriptor.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * repeated LabelDescriptor labels = 2; + * @return {!Array} + */ +proto.google.api.MetricDescriptor.prototype.getLabelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.MetricDescriptor} returns this +*/ +proto.google.api.MetricDescriptor.prototype.setLabelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.LabelDescriptor=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.LabelDescriptor} + */ +proto.google.api.MetricDescriptor.prototype.addLabels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.clearLabelsList = function() { + return this.setLabelsList([]); +}; + + +/** + * optional MetricKind metric_kind = 3; + * @return {!proto.google.api.MetricDescriptor.MetricKind} + */ +proto.google.api.MetricDescriptor.prototype.getMetricKind = function() { + return /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.google.api.MetricDescriptor.MetricKind} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setMetricKind = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional ValueType value_type = 4; + * @return {!proto.google.api.MetricDescriptor.ValueType} + */ +proto.google.api.MetricDescriptor.prototype.getValueType = function() { + return /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.google.api.MetricDescriptor.ValueType} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setValueType = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * optional string unit = 5; + * @return {string} + */ +proto.google.api.MetricDescriptor.prototype.getUnit = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setUnit = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string description = 6; + * @return {string} + */ +proto.google.api.MetricDescriptor.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string display_name = 7; + * @return {string} + */ +proto.google.api.MetricDescriptor.prototype.getDisplayName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setDisplayName = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional MetricDescriptorMetadata metadata = 10; + * @return {?proto.google.api.MetricDescriptor.MetricDescriptorMetadata} + */ +proto.google.api.MetricDescriptor.prototype.getMetadata = function() { + return /** @type{?proto.google.api.MetricDescriptor.MetricDescriptorMetadata} */ ( + jspb.Message.getWrapperField(this, proto.google.api.MetricDescriptor.MetricDescriptorMetadata, 10)); +}; + + +/** + * @param {?proto.google.api.MetricDescriptor.MetricDescriptorMetadata|undefined} value + * @return {!proto.google.api.MetricDescriptor} returns this +*/ +proto.google.api.MetricDescriptor.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MetricDescriptor.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional LaunchStage launch_stage = 12; + * @return {!proto.google.api.LaunchStage} + */ +proto.google.api.MetricDescriptor.prototype.getLaunchStage = function() { + return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {!proto.google.api.LaunchStage} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setLaunchStage = function(value) { + return jspb.Message.setProto3EnumField(this, 12, value); +}; + + +/** + * repeated string monitored_resource_types = 13; + * @return {!Array} + */ +proto.google.api.MetricDescriptor.prototype.getMonitoredResourceTypesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 13)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.setMonitoredResourceTypesList = function(value) { + return jspb.Message.setField(this, 13, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.addMonitoredResourceTypes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 13, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.MetricDescriptor} returns this + */ +proto.google.api.MetricDescriptor.prototype.clearMonitoredResourceTypesList = function() { + return this.setMonitoredResourceTypesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Metric.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Metric.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Metric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Metric.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 3, ""), + labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Metric} + */ +proto.google.api.Metric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Metric; + return proto.google.api.Metric.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Metric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Metric} + */ +proto.google.api.Metric.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = msg.getLabelsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Metric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Metric.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Metric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Metric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getLabelsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional string type = 3; + * @return {string} + */ +proto.google.api.Metric.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Metric} returns this + */ +proto.google.api.Metric.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * map labels = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.Metric.prototype.getLabelsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.Metric} returns this + */ +proto.google.api.Metric.prototype.clearLabelsMap = function() { + this.getLabelsMap().clear(); + return this; +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/monitored_resource_grpc_pb.js b/google/api/monitored_resource_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/monitored_resource_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/monitored_resource_pb.js b/google/api/monitored_resource_pb.js new file mode 100644 index 0000000..875abcc --- /dev/null +++ b/google/api/monitored_resource_pb.js @@ -0,0 +1,755 @@ +// source: google/api/monitored_resource.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_api_label_pb = require('../../google/api/label_pb.js'); +goog.object.extend(proto, google_api_label_pb); +var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); +goog.object.extend(proto, google_api_launch_stage_pb); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +goog.exportSymbol('proto.google.api.MonitoredResource', null, global); +goog.exportSymbol('proto.google.api.MonitoredResourceDescriptor', null, global); +goog.exportSymbol('proto.google.api.MonitoredResourceMetadata', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MonitoredResourceDescriptor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MonitoredResourceDescriptor.repeatedFields_, null); +}; +goog.inherits(proto.google.api.MonitoredResourceDescriptor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MonitoredResourceDescriptor.displayName = 'proto.google.api.MonitoredResourceDescriptor'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MonitoredResource = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.MonitoredResource, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MonitoredResource.displayName = 'proto.google.api.MonitoredResource'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MonitoredResourceMetadata = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.MonitoredResourceMetadata, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MonitoredResourceMetadata.displayName = 'proto.google.api.MonitoredResourceMetadata'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.MonitoredResourceDescriptor.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MonitoredResourceDescriptor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MonitoredResourceDescriptor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MonitoredResourceDescriptor.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 5, ""), + type: jspb.Message.getFieldWithDefault(msg, 1, ""), + displayName: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + labelsList: jspb.Message.toObjectList(msg.getLabelsList(), + google_api_label_pb.LabelDescriptor.toObject, includeInstance), + launchStage: jspb.Message.getFieldWithDefault(msg, 7, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MonitoredResourceDescriptor} + */ +proto.google.api.MonitoredResourceDescriptor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MonitoredResourceDescriptor; + return proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MonitoredResourceDescriptor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MonitoredResourceDescriptor} + */ +proto.google.api.MonitoredResourceDescriptor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDisplayName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = new google_api_label_pb.LabelDescriptor; + reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader); + msg.addLabels(value); + break; + case 7: + var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); + msg.setLaunchStage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MonitoredResourceDescriptor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MonitoredResourceDescriptor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDisplayName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getLabelsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + google_api_label_pb.LabelDescriptor.serializeBinaryToWriter + ); + } + f = message.getLaunchStage(); + if (f !== 0.0) { + writer.writeEnum( + 7, + f + ); + } +}; + + +/** + * optional string name = 5; + * @return {string} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MonitoredResourceDescriptor} returns this + */ +proto.google.api.MonitoredResourceDescriptor.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string type = 1; + * @return {string} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MonitoredResourceDescriptor} returns this + */ +proto.google.api.MonitoredResourceDescriptor.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string display_name = 2; + * @return {string} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.getDisplayName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MonitoredResourceDescriptor} returns this + */ +proto.google.api.MonitoredResourceDescriptor.prototype.setDisplayName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MonitoredResourceDescriptor} returns this + */ +proto.google.api.MonitoredResourceDescriptor.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated LabelDescriptor labels = 4; + * @return {!Array} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.getLabelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.MonitoredResourceDescriptor} returns this +*/ +proto.google.api.MonitoredResourceDescriptor.prototype.setLabelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.google.api.LabelDescriptor=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.LabelDescriptor} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.addLabels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.LabelDescriptor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.MonitoredResourceDescriptor} returns this + */ +proto.google.api.MonitoredResourceDescriptor.prototype.clearLabelsList = function() { + return this.setLabelsList([]); +}; + + +/** + * optional LaunchStage launch_stage = 7; + * @return {!proto.google.api.LaunchStage} + */ +proto.google.api.MonitoredResourceDescriptor.prototype.getLaunchStage = function() { + return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {!proto.google.api.LaunchStage} value + * @return {!proto.google.api.MonitoredResourceDescriptor} returns this + */ +proto.google.api.MonitoredResourceDescriptor.prototype.setLaunchStage = function(value) { + return jspb.Message.setProto3EnumField(this, 7, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MonitoredResource.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MonitoredResource.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MonitoredResource} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MonitoredResource.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 1, ""), + labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MonitoredResource} + */ +proto.google.api.MonitoredResource.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MonitoredResource; + return proto.google.api.MonitoredResource.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MonitoredResource} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MonitoredResource} + */ +proto.google.api.MonitoredResource.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = msg.getLabelsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MonitoredResource.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MonitoredResource.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MonitoredResource} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MonitoredResource.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLabelsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional string type = 1; + * @return {string} + */ +proto.google.api.MonitoredResource.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MonitoredResource} returns this + */ +proto.google.api.MonitoredResource.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * map labels = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.MonitoredResource.prototype.getLabelsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.MonitoredResource} returns this + */ +proto.google.api.MonitoredResource.prototype.clearLabelsMap = function() { + this.getLabelsMap().clear(); + return this; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MonitoredResourceMetadata.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MonitoredResourceMetadata.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MonitoredResourceMetadata} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MonitoredResourceMetadata.toObject = function(includeInstance, msg) { + var f, obj = { + systemLabels: (f = msg.getSystemLabels()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + userLabelsMap: (f = msg.getUserLabelsMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MonitoredResourceMetadata} + */ +proto.google.api.MonitoredResourceMetadata.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MonitoredResourceMetadata; + return proto.google.api.MonitoredResourceMetadata.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MonitoredResourceMetadata} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MonitoredResourceMetadata} + */ +proto.google.api.MonitoredResourceMetadata.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setSystemLabels(value); + break; + case 2: + var value = msg.getUserLabelsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MonitoredResourceMetadata.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MonitoredResourceMetadata.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MonitoredResourceMetadata} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MonitoredResourceMetadata.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSystemLabels(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getUserLabelsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional google.protobuf.Struct system_labels = 1; + * @return {?proto.google.protobuf.Struct} + */ +proto.google.api.MonitoredResourceMetadata.prototype.getSystemLabels = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.google.api.MonitoredResourceMetadata} returns this +*/ +proto.google.api.MonitoredResourceMetadata.prototype.setSystemLabels = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.MonitoredResourceMetadata} returns this + */ +proto.google.api.MonitoredResourceMetadata.prototype.clearSystemLabels = function() { + return this.setSystemLabels(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.MonitoredResourceMetadata.prototype.hasSystemLabels = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * map user_labels = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.MonitoredResourceMetadata.prototype.getUserLabelsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.MonitoredResourceMetadata} returns this + */ +proto.google.api.MonitoredResourceMetadata.prototype.clearUserLabelsMap = function() { + this.getUserLabelsMap().clear(); + return this; +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/monitoring_grpc_pb.js b/google/api/monitoring_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/monitoring_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/monitoring_pb.js b/google/api/monitoring_pb.js new file mode 100644 index 0000000..41716ce --- /dev/null +++ b/google/api/monitoring_pb.js @@ -0,0 +1,467 @@ +// source: google/api/monitoring.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Monitoring', null, global); +goog.exportSymbol('proto.google.api.Monitoring.MonitoringDestination', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Monitoring = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Monitoring, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Monitoring.displayName = 'proto.google.api.Monitoring'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Monitoring.MonitoringDestination = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Monitoring.MonitoringDestination.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Monitoring.MonitoringDestination, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Monitoring.MonitoringDestination.displayName = 'proto.google.api.Monitoring.MonitoringDestination'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Monitoring.repeatedFields_ = [1,2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Monitoring.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Monitoring.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Monitoring} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Monitoring.toObject = function(includeInstance, msg) { + var f, obj = { + producerDestinationsList: jspb.Message.toObjectList(msg.getProducerDestinationsList(), + proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance), + consumerDestinationsList: jspb.Message.toObjectList(msg.getConsumerDestinationsList(), + proto.google.api.Monitoring.MonitoringDestination.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Monitoring} + */ +proto.google.api.Monitoring.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Monitoring; + return proto.google.api.Monitoring.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Monitoring} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Monitoring} + */ +proto.google.api.Monitoring.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.Monitoring.MonitoringDestination; + reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader); + msg.addProducerDestinations(value); + break; + case 2: + var value = new proto.google.api.Monitoring.MonitoringDestination; + reader.readMessage(value,proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader); + msg.addConsumerDestinations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Monitoring.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Monitoring.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Monitoring} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Monitoring.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProducerDestinationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter + ); + } + f = message.getConsumerDestinationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Monitoring.MonitoringDestination.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Monitoring.MonitoringDestination.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Monitoring.MonitoringDestination.toObject = function(includeInstance, msg) { + var f, obj = { + monitoredResource: jspb.Message.getFieldWithDefault(msg, 1, ""), + metricsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Monitoring.MonitoringDestination} + */ +proto.google.api.Monitoring.MonitoringDestination.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Monitoring.MonitoringDestination; + return proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Monitoring.MonitoringDestination} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Monitoring.MonitoringDestination} + */ +proto.google.api.Monitoring.MonitoringDestination.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setMonitoredResource(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addMetrics(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Monitoring.MonitoringDestination} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Monitoring.MonitoringDestination.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMonitoredResource(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMetricsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional string monitored_resource = 1; + * @return {string} + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.getMonitoredResource = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.setMonitoredResource = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string metrics = 2; + * @return {!Array} + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.getMetricsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.setMetricsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.addMetrics = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Monitoring.MonitoringDestination} returns this + */ +proto.google.api.Monitoring.MonitoringDestination.prototype.clearMetricsList = function() { + return this.setMetricsList([]); +}; + + +/** + * repeated MonitoringDestination producer_destinations = 1; + * @return {!Array} + */ +proto.google.api.Monitoring.prototype.getProducerDestinationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Monitoring} returns this +*/ +proto.google.api.Monitoring.prototype.setProducerDestinationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Monitoring.MonitoringDestination} + */ +proto.google.api.Monitoring.prototype.addProducerDestinations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Monitoring} returns this + */ +proto.google.api.Monitoring.prototype.clearProducerDestinationsList = function() { + return this.setProducerDestinationsList([]); +}; + + +/** + * repeated MonitoringDestination consumer_destinations = 2; + * @return {!Array} + */ +proto.google.api.Monitoring.prototype.getConsumerDestinationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.Monitoring.MonitoringDestination, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Monitoring} returns this +*/ +proto.google.api.Monitoring.prototype.setConsumerDestinationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.Monitoring.MonitoringDestination=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Monitoring.MonitoringDestination} + */ +proto.google.api.Monitoring.prototype.addConsumerDestinations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.Monitoring.MonitoringDestination, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Monitoring} returns this + */ +proto.google.api.Monitoring.prototype.clearConsumerDestinationsList = function() { + return this.setConsumerDestinationsList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/policy_grpc_pb.js b/google/api/policy_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/policy_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/policy_pb.js b/google/api/policy_pb.js new file mode 100644 index 0000000..6837c53 --- /dev/null +++ b/google/api/policy_pb.js @@ -0,0 +1,502 @@ +// source: google/api/policy.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +goog.exportSymbol('proto.google.api.FieldPolicy', null, global); +goog.exportSymbol('proto.google.api.MethodPolicy', null, global); +goog.exportSymbol('proto.google.api.fieldPolicy', null, global); +goog.exportSymbol('proto.google.api.methodPolicy', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.FieldPolicy = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.FieldPolicy, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.FieldPolicy.displayName = 'proto.google.api.FieldPolicy'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MethodPolicy = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MethodPolicy.repeatedFields_, null); +}; +goog.inherits(proto.google.api.MethodPolicy, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MethodPolicy.displayName = 'proto.google.api.MethodPolicy'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.FieldPolicy.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.FieldPolicy.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.FieldPolicy} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.FieldPolicy.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + resourcePermission: jspb.Message.getFieldWithDefault(msg, 2, ""), + resourceType: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.FieldPolicy} + */ +proto.google.api.FieldPolicy.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.FieldPolicy; + return proto.google.api.FieldPolicy.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.FieldPolicy} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.FieldPolicy} + */ +proto.google.api.FieldPolicy.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setResourcePermission(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setResourceType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.FieldPolicy.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.FieldPolicy.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.FieldPolicy} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.FieldPolicy.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getResourcePermission(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getResourceType(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.FieldPolicy.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.FieldPolicy} returns this + */ +proto.google.api.FieldPolicy.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string resource_permission = 2; + * @return {string} + */ +proto.google.api.FieldPolicy.prototype.getResourcePermission = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.FieldPolicy} returns this + */ +proto.google.api.FieldPolicy.prototype.setResourcePermission = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string resource_type = 3; + * @return {string} + */ +proto.google.api.FieldPolicy.prototype.getResourceType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.FieldPolicy} returns this + */ +proto.google.api.FieldPolicy.prototype.setResourceType = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.MethodPolicy.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MethodPolicy.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MethodPolicy.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MethodPolicy} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MethodPolicy.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 9, ""), + requestPoliciesList: jspb.Message.toObjectList(msg.getRequestPoliciesList(), + proto.google.api.FieldPolicy.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MethodPolicy} + */ +proto.google.api.MethodPolicy.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MethodPolicy; + return proto.google.api.MethodPolicy.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MethodPolicy} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MethodPolicy} + */ +proto.google.api.MethodPolicy.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = new proto.google.api.FieldPolicy; + reader.readMessage(value,proto.google.api.FieldPolicy.deserializeBinaryFromReader); + msg.addRequestPolicies(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MethodPolicy.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MethodPolicy.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MethodPolicy} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MethodPolicy.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getRequestPoliciesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.google.api.FieldPolicy.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string selector = 9; + * @return {string} + */ +proto.google.api.MethodPolicy.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MethodPolicy} returns this + */ +proto.google.api.MethodPolicy.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * repeated FieldPolicy request_policies = 2; + * @return {!Array} + */ +proto.google.api.MethodPolicy.prototype.getRequestPoliciesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.FieldPolicy, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.MethodPolicy} returns this +*/ +proto.google.api.MethodPolicy.prototype.setRequestPoliciesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.FieldPolicy=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.FieldPolicy} + */ +proto.google.api.MethodPolicy.prototype.addRequestPolicies = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.FieldPolicy, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.MethodPolicy} returns this + */ +proto.google.api.MethodPolicy.prototype.clearRequestPoliciesList = function() { + return this.setRequestPoliciesList([]); +}; + + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `fieldPolicy`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.fieldPolicy = new jspb.ExtensionFieldInfo( + 158361448, + {fieldPolicy: 0}, + proto.google.api.FieldPolicy, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.FieldPolicy.toObject), + 0); + +google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[158361448] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.fieldPolicy, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.FieldPolicy.serializeBinaryToWriter, + proto.google.api.FieldPolicy.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.FieldOptions.extensions[158361448] = proto.google.api.fieldPolicy; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `methodPolicy`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.methodPolicy = new jspb.ExtensionFieldInfo( + 161893301, + {methodPolicy: 0}, + proto.google.api.MethodPolicy, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.MethodPolicy.toObject), + 0); + +google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[161893301] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.methodPolicy, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.MethodPolicy.serializeBinaryToWriter, + proto.google.api.MethodPolicy.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.MethodOptions.extensions[161893301] = proto.google.api.methodPolicy; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/quota_grpc_pb.js b/google/api/quota_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/quota_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/quota_pb.js b/google/api/quota_pb.js new file mode 100644 index 0000000..32d799d --- /dev/null +++ b/google/api/quota_pb.js @@ -0,0 +1,871 @@ +// source: google/api/quota.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.MetricRule', null, global); +goog.exportSymbol('proto.google.api.Quota', null, global); +goog.exportSymbol('proto.google.api.QuotaLimit', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Quota = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Quota.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Quota, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Quota.displayName = 'proto.google.api.Quota'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.MetricRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.MetricRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.MetricRule.displayName = 'proto.google.api.MetricRule'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.QuotaLimit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.QuotaLimit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.QuotaLimit.displayName = 'proto.google.api.QuotaLimit'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Quota.repeatedFields_ = [3,4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Quota.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Quota.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Quota} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Quota.toObject = function(includeInstance, msg) { + var f, obj = { + limitsList: jspb.Message.toObjectList(msg.getLimitsList(), + proto.google.api.QuotaLimit.toObject, includeInstance), + metricRulesList: jspb.Message.toObjectList(msg.getMetricRulesList(), + proto.google.api.MetricRule.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Quota} + */ +proto.google.api.Quota.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Quota; + return proto.google.api.Quota.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Quota} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Quota} + */ +proto.google.api.Quota.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 3: + var value = new proto.google.api.QuotaLimit; + reader.readMessage(value,proto.google.api.QuotaLimit.deserializeBinaryFromReader); + msg.addLimits(value); + break; + case 4: + var value = new proto.google.api.MetricRule; + reader.readMessage(value,proto.google.api.MetricRule.deserializeBinaryFromReader); + msg.addMetricRules(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Quota.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Quota.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Quota} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Quota.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLimitsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.google.api.QuotaLimit.serializeBinaryToWriter + ); + } + f = message.getMetricRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.google.api.MetricRule.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated QuotaLimit limits = 3; + * @return {!Array} + */ +proto.google.api.Quota.prototype.getLimitsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.QuotaLimit, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Quota} returns this +*/ +proto.google.api.Quota.prototype.setLimitsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.google.api.QuotaLimit=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.QuotaLimit} + */ +proto.google.api.Quota.prototype.addLimits = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.QuotaLimit, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Quota} returns this + */ +proto.google.api.Quota.prototype.clearLimitsList = function() { + return this.setLimitsList([]); +}; + + +/** + * repeated MetricRule metric_rules = 4; + * @return {!Array} + */ +proto.google.api.Quota.prototype.getMetricRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.MetricRule, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Quota} returns this +*/ +proto.google.api.Quota.prototype.setMetricRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.google.api.MetricRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.MetricRule} + */ +proto.google.api.Quota.prototype.addMetricRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.MetricRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Quota} returns this + */ +proto.google.api.Quota.prototype.clearMetricRulesList = function() { + return this.setMetricRulesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.MetricRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.MetricRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.MetricRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MetricRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + metricCostsMap: (f = msg.getMetricCostsMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.MetricRule} + */ +proto.google.api.MetricRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.MetricRule; + return proto.google.api.MetricRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.MetricRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.MetricRule} + */ +proto.google.api.MetricRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = msg.getMetricCostsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.MetricRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.MetricRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.MetricRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.MetricRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMetricCostsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.MetricRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.MetricRule} returns this + */ +proto.google.api.MetricRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * map metric_costs = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.MetricRule.prototype.getMetricCostsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.MetricRule} returns this + */ +proto.google.api.MetricRule.prototype.clearMetricCostsMap = function() { + this.getMetricCostsMap().clear(); + return this; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.QuotaLimit.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.QuotaLimit.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.QuotaLimit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.QuotaLimit.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 6, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + defaultLimit: jspb.Message.getFieldWithDefault(msg, 3, 0), + maxLimit: jspb.Message.getFieldWithDefault(msg, 4, 0), + freeTier: jspb.Message.getFieldWithDefault(msg, 7, 0), + duration: jspb.Message.getFieldWithDefault(msg, 5, ""), + metric: jspb.Message.getFieldWithDefault(msg, 8, ""), + unit: jspb.Message.getFieldWithDefault(msg, 9, ""), + valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, undefined) : [], + displayName: jspb.Message.getFieldWithDefault(msg, 12, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.QuotaLimit} + */ +proto.google.api.QuotaLimit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.QuotaLimit; + return proto.google.api.QuotaLimit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.QuotaLimit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.QuotaLimit} + */ +proto.google.api.QuotaLimit.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setDefaultLimit(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setMaxLimit(value); + break; + case 7: + var value = /** @type {number} */ (reader.readInt64()); + msg.setFreeTier(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setDuration(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setMetric(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setUnit(value); + break; + case 10: + var value = msg.getValuesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0); + }); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setDisplayName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.QuotaLimit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.QuotaLimit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.QuotaLimit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.QuotaLimit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDefaultLimit(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getMaxLimit(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getFreeTier(); + if (f !== 0) { + writer.writeInt64( + 7, + f + ); + } + f = message.getDuration(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getMetric(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getUnit(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getValuesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64); + } + f = message.getDisplayName(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } +}; + + +/** + * optional string name = 6; + * @return {string} + */ +proto.google.api.QuotaLimit.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.google.api.QuotaLimit.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int64 default_limit = 3; + * @return {number} + */ +proto.google.api.QuotaLimit.prototype.getDefaultLimit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setDefaultLimit = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 max_limit = 4; + * @return {number} + */ +proto.google.api.QuotaLimit.prototype.getMaxLimit = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setMaxLimit = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 free_tier = 7; + * @return {number} + */ +proto.google.api.QuotaLimit.prototype.getFreeTier = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setFreeTier = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional string duration = 5; + * @return {string} + */ +proto.google.api.QuotaLimit.prototype.getDuration = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setDuration = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string metric = 8; + * @return {string} + */ +proto.google.api.QuotaLimit.prototype.getMetric = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setMetric = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string unit = 9; + * @return {string} + */ +proto.google.api.QuotaLimit.prototype.getUnit = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setUnit = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * map values = 10; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.google.api.QuotaLimit.prototype.getValuesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 10, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.clearValuesMap = function() { + this.getValuesMap().clear(); + return this; +}; + + +/** + * optional string display_name = 12; + * @return {string} + */ +proto.google.api.QuotaLimit.prototype.getDisplayName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.QuotaLimit} returns this + */ +proto.google.api.QuotaLimit.prototype.setDisplayName = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/resource_grpc_pb.js b/google/api/resource_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/resource_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/resource_pb.js b/google/api/resource_pb.js new file mode 100644 index 0000000..aac5bda --- /dev/null +++ b/google/api/resource_pb.js @@ -0,0 +1,684 @@ +// source: google/api/resource.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +goog.exportSymbol('proto.google.api.ResourceDescriptor', null, global); +goog.exportSymbol('proto.google.api.ResourceDescriptor.History', null, global); +goog.exportSymbol('proto.google.api.ResourceDescriptor.Style', null, global); +goog.exportSymbol('proto.google.api.ResourceReference', null, global); +goog.exportSymbol('proto.google.api.resource', null, global); +goog.exportSymbol('proto.google.api.resourceDefinitionList', null, global); +goog.exportSymbol('proto.google.api.resourceReference', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.ResourceDescriptor = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.ResourceDescriptor.repeatedFields_, null); +}; +goog.inherits(proto.google.api.ResourceDescriptor, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.ResourceDescriptor.displayName = 'proto.google.api.ResourceDescriptor'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.ResourceReference = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.ResourceReference, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.ResourceReference.displayName = 'proto.google.api.ResourceReference'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.ResourceDescriptor.repeatedFields_ = [2,10]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.ResourceDescriptor.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.ResourceDescriptor.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.ResourceDescriptor} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ResourceDescriptor.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 1, ""), + patternList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + nameField: jspb.Message.getFieldWithDefault(msg, 3, ""), + history: jspb.Message.getFieldWithDefault(msg, 4, 0), + plural: jspb.Message.getFieldWithDefault(msg, 5, ""), + singular: jspb.Message.getFieldWithDefault(msg, 6, ""), + styleList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.ResourceDescriptor} + */ +proto.google.api.ResourceDescriptor.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.ResourceDescriptor; + return proto.google.api.ResourceDescriptor.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.ResourceDescriptor} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.ResourceDescriptor} + */ +proto.google.api.ResourceDescriptor.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addPattern(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setNameField(value); + break; + case 4: + var value = /** @type {!proto.google.api.ResourceDescriptor.History} */ (reader.readEnum()); + msg.setHistory(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPlural(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setSingular(value); + break; + case 10: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addStyle(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.ResourceDescriptor.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.ResourceDescriptor.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.ResourceDescriptor} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ResourceDescriptor.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPatternList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getNameField(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getHistory(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getPlural(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getSingular(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getStyleList(); + if (f.length > 0) { + writer.writePackedEnum( + 10, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.google.api.ResourceDescriptor.History = { + HISTORY_UNSPECIFIED: 0, + ORIGINALLY_SINGLE_PATTERN: 1, + FUTURE_MULTI_PATTERN: 2 +}; + +/** + * @enum {number} + */ +proto.google.api.ResourceDescriptor.Style = { + STYLE_UNSPECIFIED: 0, + DECLARATIVE_FRIENDLY: 1 +}; + +/** + * optional string type = 1; + * @return {string} + */ +proto.google.api.ResourceDescriptor.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string pattern = 2; + * @return {!Array} + */ +proto.google.api.ResourceDescriptor.prototype.getPatternList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.setPatternList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.addPattern = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.clearPatternList = function() { + return this.setPatternList([]); +}; + + +/** + * optional string name_field = 3; + * @return {string} + */ +proto.google.api.ResourceDescriptor.prototype.getNameField = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.setNameField = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional History history = 4; + * @return {!proto.google.api.ResourceDescriptor.History} + */ +proto.google.api.ResourceDescriptor.prototype.getHistory = function() { + return /** @type {!proto.google.api.ResourceDescriptor.History} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.google.api.ResourceDescriptor.History} value + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.setHistory = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * optional string plural = 5; + * @return {string} + */ +proto.google.api.ResourceDescriptor.prototype.getPlural = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.setPlural = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string singular = 6; + * @return {string} + */ +proto.google.api.ResourceDescriptor.prototype.getSingular = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.setSingular = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * repeated Style style = 10; + * @return {!Array} + */ +proto.google.api.ResourceDescriptor.prototype.getStyleList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.setStyleList = function(value) { + return jspb.Message.setField(this, 10, value || []); +}; + + +/** + * @param {!proto.google.api.ResourceDescriptor.Style} value + * @param {number=} opt_index + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.addStyle = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.ResourceDescriptor} returns this + */ +proto.google.api.ResourceDescriptor.prototype.clearStyleList = function() { + return this.setStyleList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.ResourceReference.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.ResourceReference.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.ResourceReference} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ResourceReference.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 1, ""), + childType: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.ResourceReference} + */ +proto.google.api.ResourceReference.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.ResourceReference; + return proto.google.api.ResourceReference.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.ResourceReference} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.ResourceReference} + */ +proto.google.api.ResourceReference.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setChildType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.ResourceReference.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.ResourceReference.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.ResourceReference} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.ResourceReference.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChildType(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string type = 1; + * @return {string} + */ +proto.google.api.ResourceReference.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ResourceReference} returns this + */ +proto.google.api.ResourceReference.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string child_type = 2; + * @return {string} + */ +proto.google.api.ResourceReference.prototype.getChildType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.ResourceReference} returns this + */ +proto.google.api.ResourceReference.prototype.setChildType = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `resourceReference`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.resourceReference = new jspb.ExtensionFieldInfo( + 1055, + {resourceReference: 0}, + proto.google.api.ResourceReference, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.ResourceReference.toObject), + 0); + +google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1055] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.resourceReference, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.ResourceReference.serializeBinaryToWriter, + proto.google.api.ResourceReference.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.FieldOptions.extensions[1055] = proto.google.api.resourceReference; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `resourceDefinitionList`. + * @type {!jspb.ExtensionFieldInfo>} + */ +proto.google.api.resourceDefinitionList = new jspb.ExtensionFieldInfo( + 1053, + {resourceDefinitionList: 0}, + proto.google.api.ResourceDescriptor, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.ResourceDescriptor.toObject), + 1); + +google_protobuf_descriptor_pb.FileOptions.extensionsBinary[1053] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.resourceDefinitionList, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeRepeatedMessage, + proto.google.api.ResourceDescriptor.serializeBinaryToWriter, + proto.google.api.ResourceDescriptor.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.FileOptions.extensions[1053] = proto.google.api.resourceDefinitionList; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `resource`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.resource = new jspb.ExtensionFieldInfo( + 1053, + {resource: 0}, + proto.google.api.ResourceDescriptor, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.ResourceDescriptor.toObject), + 0); + +google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[1053] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.resource, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.ResourceDescriptor.serializeBinaryToWriter, + proto.google.api.ResourceDescriptor.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.MessageOptions.extensions[1053] = proto.google.api.resource; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/routing_grpc_pb.js b/google/api/routing_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/routing_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/routing_pb.js b/google/api/routing_pb.js new file mode 100644 index 0000000..103d104 --- /dev/null +++ b/google/api/routing_pb.js @@ -0,0 +1,416 @@ +// source: google/api/routing.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +goog.exportSymbol('proto.google.api.RoutingParameter', null, global); +goog.exportSymbol('proto.google.api.RoutingRule', null, global); +goog.exportSymbol('proto.google.api.routing', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.RoutingRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.RoutingRule.repeatedFields_, null); +}; +goog.inherits(proto.google.api.RoutingRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.RoutingRule.displayName = 'proto.google.api.RoutingRule'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.RoutingParameter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.RoutingParameter, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.RoutingParameter.displayName = 'proto.google.api.RoutingParameter'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.RoutingRule.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.RoutingRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.RoutingRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.RoutingRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.RoutingRule.toObject = function(includeInstance, msg) { + var f, obj = { + routingParametersList: jspb.Message.toObjectList(msg.getRoutingParametersList(), + proto.google.api.RoutingParameter.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.RoutingRule} + */ +proto.google.api.RoutingRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.RoutingRule; + return proto.google.api.RoutingRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.RoutingRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.RoutingRule} + */ +proto.google.api.RoutingRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = new proto.google.api.RoutingParameter; + reader.readMessage(value,proto.google.api.RoutingParameter.deserializeBinaryFromReader); + msg.addRoutingParameters(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.RoutingRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.RoutingRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.RoutingRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.RoutingRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRoutingParametersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.google.api.RoutingParameter.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated RoutingParameter routing_parameters = 2; + * @return {!Array} + */ +proto.google.api.RoutingRule.prototype.getRoutingParametersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.RoutingParameter, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.RoutingRule} returns this +*/ +proto.google.api.RoutingRule.prototype.setRoutingParametersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.RoutingParameter=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.RoutingParameter} + */ +proto.google.api.RoutingRule.prototype.addRoutingParameters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.RoutingParameter, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.RoutingRule} returns this + */ +proto.google.api.RoutingRule.prototype.clearRoutingParametersList = function() { + return this.setRoutingParametersList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.RoutingParameter.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.RoutingParameter.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.RoutingParameter} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.RoutingParameter.toObject = function(includeInstance, msg) { + var f, obj = { + field: jspb.Message.getFieldWithDefault(msg, 1, ""), + pathTemplate: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.RoutingParameter} + */ +proto.google.api.RoutingParameter.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.RoutingParameter; + return proto.google.api.RoutingParameter.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.RoutingParameter} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.RoutingParameter} + */ +proto.google.api.RoutingParameter.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setField(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setPathTemplate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.RoutingParameter.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.RoutingParameter.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.RoutingParameter} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.RoutingParameter.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getField(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getPathTemplate(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string field = 1; + * @return {string} + */ +proto.google.api.RoutingParameter.prototype.getField = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.RoutingParameter} returns this + */ +proto.google.api.RoutingParameter.prototype.setField = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string path_template = 2; + * @return {string} + */ +proto.google.api.RoutingParameter.prototype.getPathTemplate = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.RoutingParameter} returns this + */ +proto.google.api.RoutingParameter.prototype.setPathTemplate = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `routing`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.routing = new jspb.ExtensionFieldInfo( + 72295729, + {routing: 0}, + proto.google.api.RoutingRule, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.RoutingRule.toObject), + 0); + +google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295729] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.routing, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.RoutingRule.serializeBinaryToWriter, + proto.google.api.RoutingRule.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.MethodOptions.extensions[72295729] = proto.google.api.routing; + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/service_grpc_pb.js b/google/api/service_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/service_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/service_pb.js b/google/api/service_pb.js new file mode 100644 index 0000000..2e748c7 --- /dev/null +++ b/google/api/service_pb.js @@ -0,0 +1,1451 @@ +// source: google/api/service.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_api_auth_pb = require('../../google/api/auth_pb.js'); +goog.object.extend(proto, google_api_auth_pb); +var google_api_backend_pb = require('../../google/api/backend_pb.js'); +goog.object.extend(proto, google_api_backend_pb); +var google_api_billing_pb = require('../../google/api/billing_pb.js'); +goog.object.extend(proto, google_api_billing_pb); +var google_api_client_pb = require('../../google/api/client_pb.js'); +goog.object.extend(proto, google_api_client_pb); +var google_api_context_pb = require('../../google/api/context_pb.js'); +goog.object.extend(proto, google_api_context_pb); +var google_api_control_pb = require('../../google/api/control_pb.js'); +goog.object.extend(proto, google_api_control_pb); +var google_api_documentation_pb = require('../../google/api/documentation_pb.js'); +goog.object.extend(proto, google_api_documentation_pb); +var google_api_endpoint_pb = require('../../google/api/endpoint_pb.js'); +goog.object.extend(proto, google_api_endpoint_pb); +var google_api_http_pb = require('../../google/api/http_pb.js'); +goog.object.extend(proto, google_api_http_pb); +var google_api_log_pb = require('../../google/api/log_pb.js'); +goog.object.extend(proto, google_api_log_pb); +var google_api_logging_pb = require('../../google/api/logging_pb.js'); +goog.object.extend(proto, google_api_logging_pb); +var google_api_metric_pb = require('../../google/api/metric_pb.js'); +goog.object.extend(proto, google_api_metric_pb); +var google_api_monitored_resource_pb = require('../../google/api/monitored_resource_pb.js'); +goog.object.extend(proto, google_api_monitored_resource_pb); +var google_api_monitoring_pb = require('../../google/api/monitoring_pb.js'); +goog.object.extend(proto, google_api_monitoring_pb); +var google_api_quota_pb = require('../../google/api/quota_pb.js'); +goog.object.extend(proto, google_api_quota_pb); +var google_api_source_info_pb = require('../../google/api/source_info_pb.js'); +goog.object.extend(proto, google_api_source_info_pb); +var google_api_system_parameter_pb = require('../../google/api/system_parameter_pb.js'); +goog.object.extend(proto, google_api_system_parameter_pb); +var google_api_usage_pb = require('../../google/api/usage_pb.js'); +goog.object.extend(proto, google_api_usage_pb); +var google_protobuf_api_pb = require('google-protobuf/google/protobuf/api_pb.js'); +goog.object.extend(proto, google_protobuf_api_pb); +var google_protobuf_type_pb = require('google-protobuf/google/protobuf/type_pb.js'); +goog.object.extend(proto, google_protobuf_type_pb); +var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); +goog.object.extend(proto, google_protobuf_wrappers_pb); +goog.exportSymbol('proto.google.api.Service', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Service = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Service.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Service, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Service.displayName = 'proto.google.api.Service'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Service.repeatedFields_ = [3,4,5,18,23,24,25]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Service.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Service.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Service} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Service.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + title: jspb.Message.getFieldWithDefault(msg, 2, ""), + producerProjectId: jspb.Message.getFieldWithDefault(msg, 22, ""), + id: jspb.Message.getFieldWithDefault(msg, 33, ""), + apisList: jspb.Message.toObjectList(msg.getApisList(), + google_protobuf_api_pb.Api.toObject, includeInstance), + typesList: jspb.Message.toObjectList(msg.getTypesList(), + google_protobuf_type_pb.Type.toObject, includeInstance), + enumsList: jspb.Message.toObjectList(msg.getEnumsList(), + google_protobuf_type_pb.Enum.toObject, includeInstance), + documentation: (f = msg.getDocumentation()) && google_api_documentation_pb.Documentation.toObject(includeInstance, f), + backend: (f = msg.getBackend()) && google_api_backend_pb.Backend.toObject(includeInstance, f), + http: (f = msg.getHttp()) && google_api_http_pb.Http.toObject(includeInstance, f), + quota: (f = msg.getQuota()) && google_api_quota_pb.Quota.toObject(includeInstance, f), + authentication: (f = msg.getAuthentication()) && google_api_auth_pb.Authentication.toObject(includeInstance, f), + context: (f = msg.getContext()) && google_api_context_pb.Context.toObject(includeInstance, f), + usage: (f = msg.getUsage()) && google_api_usage_pb.Usage.toObject(includeInstance, f), + endpointsList: jspb.Message.toObjectList(msg.getEndpointsList(), + google_api_endpoint_pb.Endpoint.toObject, includeInstance), + control: (f = msg.getControl()) && google_api_control_pb.Control.toObject(includeInstance, f), + logsList: jspb.Message.toObjectList(msg.getLogsList(), + google_api_log_pb.LogDescriptor.toObject, includeInstance), + metricsList: jspb.Message.toObjectList(msg.getMetricsList(), + google_api_metric_pb.MetricDescriptor.toObject, includeInstance), + monitoredResourcesList: jspb.Message.toObjectList(msg.getMonitoredResourcesList(), + google_api_monitored_resource_pb.MonitoredResourceDescriptor.toObject, includeInstance), + billing: (f = msg.getBilling()) && google_api_billing_pb.Billing.toObject(includeInstance, f), + logging: (f = msg.getLogging()) && google_api_logging_pb.Logging.toObject(includeInstance, f), + monitoring: (f = msg.getMonitoring()) && google_api_monitoring_pb.Monitoring.toObject(includeInstance, f), + systemParameters: (f = msg.getSystemParameters()) && google_api_system_parameter_pb.SystemParameters.toObject(includeInstance, f), + sourceInfo: (f = msg.getSourceInfo()) && google_api_source_info_pb.SourceInfo.toObject(includeInstance, f), + publishing: (f = msg.getPublishing()) && google_api_client_pb.Publishing.toObject(includeInstance, f), + configVersion: (f = msg.getConfigVersion()) && google_protobuf_wrappers_pb.UInt32Value.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Service} + */ +proto.google.api.Service.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Service; + return proto.google.api.Service.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Service} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Service} + */ +proto.google.api.Service.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTitle(value); + break; + case 22: + var value = /** @type {string} */ (reader.readString()); + msg.setProducerProjectId(value); + break; + case 33: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 3: + var value = new google_protobuf_api_pb.Api; + reader.readMessage(value,google_protobuf_api_pb.Api.deserializeBinaryFromReader); + msg.addApis(value); + break; + case 4: + var value = new google_protobuf_type_pb.Type; + reader.readMessage(value,google_protobuf_type_pb.Type.deserializeBinaryFromReader); + msg.addTypes(value); + break; + case 5: + var value = new google_protobuf_type_pb.Enum; + reader.readMessage(value,google_protobuf_type_pb.Enum.deserializeBinaryFromReader); + msg.addEnums(value); + break; + case 6: + var value = new google_api_documentation_pb.Documentation; + reader.readMessage(value,google_api_documentation_pb.Documentation.deserializeBinaryFromReader); + msg.setDocumentation(value); + break; + case 8: + var value = new google_api_backend_pb.Backend; + reader.readMessage(value,google_api_backend_pb.Backend.deserializeBinaryFromReader); + msg.setBackend(value); + break; + case 9: + var value = new google_api_http_pb.Http; + reader.readMessage(value,google_api_http_pb.Http.deserializeBinaryFromReader); + msg.setHttp(value); + break; + case 10: + var value = new google_api_quota_pb.Quota; + reader.readMessage(value,google_api_quota_pb.Quota.deserializeBinaryFromReader); + msg.setQuota(value); + break; + case 11: + var value = new google_api_auth_pb.Authentication; + reader.readMessage(value,google_api_auth_pb.Authentication.deserializeBinaryFromReader); + msg.setAuthentication(value); + break; + case 12: + var value = new google_api_context_pb.Context; + reader.readMessage(value,google_api_context_pb.Context.deserializeBinaryFromReader); + msg.setContext(value); + break; + case 15: + var value = new google_api_usage_pb.Usage; + reader.readMessage(value,google_api_usage_pb.Usage.deserializeBinaryFromReader); + msg.setUsage(value); + break; + case 18: + var value = new google_api_endpoint_pb.Endpoint; + reader.readMessage(value,google_api_endpoint_pb.Endpoint.deserializeBinaryFromReader); + msg.addEndpoints(value); + break; + case 21: + var value = new google_api_control_pb.Control; + reader.readMessage(value,google_api_control_pb.Control.deserializeBinaryFromReader); + msg.setControl(value); + break; + case 23: + var value = new google_api_log_pb.LogDescriptor; + reader.readMessage(value,google_api_log_pb.LogDescriptor.deserializeBinaryFromReader); + msg.addLogs(value); + break; + case 24: + var value = new google_api_metric_pb.MetricDescriptor; + reader.readMessage(value,google_api_metric_pb.MetricDescriptor.deserializeBinaryFromReader); + msg.addMetrics(value); + break; + case 25: + var value = new google_api_monitored_resource_pb.MonitoredResourceDescriptor; + reader.readMessage(value,google_api_monitored_resource_pb.MonitoredResourceDescriptor.deserializeBinaryFromReader); + msg.addMonitoredResources(value); + break; + case 26: + var value = new google_api_billing_pb.Billing; + reader.readMessage(value,google_api_billing_pb.Billing.deserializeBinaryFromReader); + msg.setBilling(value); + break; + case 27: + var value = new google_api_logging_pb.Logging; + reader.readMessage(value,google_api_logging_pb.Logging.deserializeBinaryFromReader); + msg.setLogging(value); + break; + case 28: + var value = new google_api_monitoring_pb.Monitoring; + reader.readMessage(value,google_api_monitoring_pb.Monitoring.deserializeBinaryFromReader); + msg.setMonitoring(value); + break; + case 29: + var value = new google_api_system_parameter_pb.SystemParameters; + reader.readMessage(value,google_api_system_parameter_pb.SystemParameters.deserializeBinaryFromReader); + msg.setSystemParameters(value); + break; + case 37: + var value = new google_api_source_info_pb.SourceInfo; + reader.readMessage(value,google_api_source_info_pb.SourceInfo.deserializeBinaryFromReader); + msg.setSourceInfo(value); + break; + case 45: + var value = new google_api_client_pb.Publishing; + reader.readMessage(value,google_api_client_pb.Publishing.deserializeBinaryFromReader); + msg.setPublishing(value); + break; + case 20: + var value = new google_protobuf_wrappers_pb.UInt32Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt32Value.deserializeBinaryFromReader); + msg.setConfigVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Service.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Service.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Service} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Service.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getTitle(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getProducerProjectId(); + if (f.length > 0) { + writer.writeString( + 22, + f + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 33, + f + ); + } + f = message.getApisList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + google_protobuf_api_pb.Api.serializeBinaryToWriter + ); + } + f = message.getTypesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + google_protobuf_type_pb.Type.serializeBinaryToWriter + ); + } + f = message.getEnumsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + google_protobuf_type_pb.Enum.serializeBinaryToWriter + ); + } + f = message.getDocumentation(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_api_documentation_pb.Documentation.serializeBinaryToWriter + ); + } + f = message.getBackend(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_api_backend_pb.Backend.serializeBinaryToWriter + ); + } + f = message.getHttp(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_api_http_pb.Http.serializeBinaryToWriter + ); + } + f = message.getQuota(); + if (f != null) { + writer.writeMessage( + 10, + f, + google_api_quota_pb.Quota.serializeBinaryToWriter + ); + } + f = message.getAuthentication(); + if (f != null) { + writer.writeMessage( + 11, + f, + google_api_auth_pb.Authentication.serializeBinaryToWriter + ); + } + f = message.getContext(); + if (f != null) { + writer.writeMessage( + 12, + f, + google_api_context_pb.Context.serializeBinaryToWriter + ); + } + f = message.getUsage(); + if (f != null) { + writer.writeMessage( + 15, + f, + google_api_usage_pb.Usage.serializeBinaryToWriter + ); + } + f = message.getEndpointsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 18, + f, + google_api_endpoint_pb.Endpoint.serializeBinaryToWriter + ); + } + f = message.getControl(); + if (f != null) { + writer.writeMessage( + 21, + f, + google_api_control_pb.Control.serializeBinaryToWriter + ); + } + f = message.getLogsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 23, + f, + google_api_log_pb.LogDescriptor.serializeBinaryToWriter + ); + } + f = message.getMetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 24, + f, + google_api_metric_pb.MetricDescriptor.serializeBinaryToWriter + ); + } + f = message.getMonitoredResourcesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 25, + f, + google_api_monitored_resource_pb.MonitoredResourceDescriptor.serializeBinaryToWriter + ); + } + f = message.getBilling(); + if (f != null) { + writer.writeMessage( + 26, + f, + google_api_billing_pb.Billing.serializeBinaryToWriter + ); + } + f = message.getLogging(); + if (f != null) { + writer.writeMessage( + 27, + f, + google_api_logging_pb.Logging.serializeBinaryToWriter + ); + } + f = message.getMonitoring(); + if (f != null) { + writer.writeMessage( + 28, + f, + google_api_monitoring_pb.Monitoring.serializeBinaryToWriter + ); + } + f = message.getSystemParameters(); + if (f != null) { + writer.writeMessage( + 29, + f, + google_api_system_parameter_pb.SystemParameters.serializeBinaryToWriter + ); + } + f = message.getSourceInfo(); + if (f != null) { + writer.writeMessage( + 37, + f, + google_api_source_info_pb.SourceInfo.serializeBinaryToWriter + ); + } + f = message.getPublishing(); + if (f != null) { + writer.writeMessage( + 45, + f, + google_api_client_pb.Publishing.serializeBinaryToWriter + ); + } + f = message.getConfigVersion(); + if (f != null) { + writer.writeMessage( + 20, + f, + google_protobuf_wrappers_pb.UInt32Value.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.google.api.Service.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string title = 2; + * @return {string} + */ +proto.google.api.Service.prototype.getTitle = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.setTitle = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string producer_project_id = 22; + * @return {string} + */ +proto.google.api.Service.prototype.getProducerProjectId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.setProducerProjectId = function(value) { + return jspb.Message.setProto3StringField(this, 22, value); +}; + + +/** + * optional string id = 33; + * @return {string} + */ +proto.google.api.Service.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 33, value); +}; + + +/** + * repeated google.protobuf.Api apis = 3; + * @return {!Array} + */ +proto.google.api.Service.prototype.getApisList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_protobuf_api_pb.Api, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setApisList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.google.protobuf.Api=} opt_value + * @param {number=} opt_index + * @return {!proto.google.protobuf.Api} + */ +proto.google.api.Service.prototype.addApis = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Api, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearApisList = function() { + return this.setApisList([]); +}; + + +/** + * repeated google.protobuf.Type types = 4; + * @return {!Array} + */ +proto.google.api.Service.prototype.getTypesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Type, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setTypesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.google.protobuf.Type=} opt_value + * @param {number=} opt_index + * @return {!proto.google.protobuf.Type} + */ +proto.google.api.Service.prototype.addTypes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.Type, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearTypesList = function() { + return this.setTypesList([]); +}; + + +/** + * repeated google.protobuf.Enum enums = 5; + * @return {!Array} + */ +proto.google.api.Service.prototype.getEnumsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_protobuf_type_pb.Enum, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setEnumsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.google.protobuf.Enum=} opt_value + * @param {number=} opt_index + * @return {!proto.google.protobuf.Enum} + */ +proto.google.api.Service.prototype.addEnums = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.google.protobuf.Enum, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearEnumsList = function() { + return this.setEnumsList([]); +}; + + +/** + * optional Documentation documentation = 6; + * @return {?proto.google.api.Documentation} + */ +proto.google.api.Service.prototype.getDocumentation = function() { + return /** @type{?proto.google.api.Documentation} */ ( + jspb.Message.getWrapperField(this, google_api_documentation_pb.Documentation, 6)); +}; + + +/** + * @param {?proto.google.api.Documentation|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setDocumentation = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearDocumentation = function() { + return this.setDocumentation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasDocumentation = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional Backend backend = 8; + * @return {?proto.google.api.Backend} + */ +proto.google.api.Service.prototype.getBackend = function() { + return /** @type{?proto.google.api.Backend} */ ( + jspb.Message.getWrapperField(this, google_api_backend_pb.Backend, 8)); +}; + + +/** + * @param {?proto.google.api.Backend|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setBackend = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearBackend = function() { + return this.setBackend(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasBackend = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional Http http = 9; + * @return {?proto.google.api.Http} + */ +proto.google.api.Service.prototype.getHttp = function() { + return /** @type{?proto.google.api.Http} */ ( + jspb.Message.getWrapperField(this, google_api_http_pb.Http, 9)); +}; + + +/** + * @param {?proto.google.api.Http|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setHttp = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearHttp = function() { + return this.setHttp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasHttp = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional Quota quota = 10; + * @return {?proto.google.api.Quota} + */ +proto.google.api.Service.prototype.getQuota = function() { + return /** @type{?proto.google.api.Quota} */ ( + jspb.Message.getWrapperField(this, google_api_quota_pb.Quota, 10)); +}; + + +/** + * @param {?proto.google.api.Quota|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setQuota = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearQuota = function() { + return this.setQuota(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasQuota = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional Authentication authentication = 11; + * @return {?proto.google.api.Authentication} + */ +proto.google.api.Service.prototype.getAuthentication = function() { + return /** @type{?proto.google.api.Authentication} */ ( + jspb.Message.getWrapperField(this, google_api_auth_pb.Authentication, 11)); +}; + + +/** + * @param {?proto.google.api.Authentication|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setAuthentication = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearAuthentication = function() { + return this.setAuthentication(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasAuthentication = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional Context context = 12; + * @return {?proto.google.api.Context} + */ +proto.google.api.Service.prototype.getContext = function() { + return /** @type{?proto.google.api.Context} */ ( + jspb.Message.getWrapperField(this, google_api_context_pb.Context, 12)); +}; + + +/** + * @param {?proto.google.api.Context|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setContext = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearContext = function() { + return this.setContext(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasContext = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional Usage usage = 15; + * @return {?proto.google.api.Usage} + */ +proto.google.api.Service.prototype.getUsage = function() { + return /** @type{?proto.google.api.Usage} */ ( + jspb.Message.getWrapperField(this, google_api_usage_pb.Usage, 15)); +}; + + +/** + * @param {?proto.google.api.Usage|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setUsage = function(value) { + return jspb.Message.setWrapperField(this, 15, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearUsage = function() { + return this.setUsage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasUsage = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +/** + * repeated Endpoint endpoints = 18; + * @return {!Array} + */ +proto.google.api.Service.prototype.getEndpointsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_endpoint_pb.Endpoint, 18)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setEndpointsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 18, value); +}; + + +/** + * @param {!proto.google.api.Endpoint=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.Endpoint} + */ +proto.google.api.Service.prototype.addEndpoints = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.google.api.Endpoint, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); +}; + + +/** + * optional Control control = 21; + * @return {?proto.google.api.Control} + */ +proto.google.api.Service.prototype.getControl = function() { + return /** @type{?proto.google.api.Control} */ ( + jspb.Message.getWrapperField(this, google_api_control_pb.Control, 21)); +}; + + +/** + * @param {?proto.google.api.Control|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setControl = function(value) { + return jspb.Message.setWrapperField(this, 21, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearControl = function() { + return this.setControl(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasControl = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * repeated LogDescriptor logs = 23; + * @return {!Array} + */ +proto.google.api.Service.prototype.getLogsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_log_pb.LogDescriptor, 23)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setLogsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 23, value); +}; + + +/** + * @param {!proto.google.api.LogDescriptor=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.LogDescriptor} + */ +proto.google.api.Service.prototype.addLogs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 23, opt_value, proto.google.api.LogDescriptor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearLogsList = function() { + return this.setLogsList([]); +}; + + +/** + * repeated MetricDescriptor metrics = 24; + * @return {!Array} + */ +proto.google.api.Service.prototype.getMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_metric_pb.MetricDescriptor, 24)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 24, value); +}; + + +/** + * @param {!proto.google.api.MetricDescriptor=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.MetricDescriptor} + */ +proto.google.api.Service.prototype.addMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 24, opt_value, proto.google.api.MetricDescriptor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearMetricsList = function() { + return this.setMetricsList([]); +}; + + +/** + * repeated MonitoredResourceDescriptor monitored_resources = 25; + * @return {!Array} + */ +proto.google.api.Service.prototype.getMonitoredResourcesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_api_monitored_resource_pb.MonitoredResourceDescriptor, 25)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setMonitoredResourcesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 25, value); +}; + + +/** + * @param {!proto.google.api.MonitoredResourceDescriptor=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.MonitoredResourceDescriptor} + */ +proto.google.api.Service.prototype.addMonitoredResources = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 25, opt_value, proto.google.api.MonitoredResourceDescriptor, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearMonitoredResourcesList = function() { + return this.setMonitoredResourcesList([]); +}; + + +/** + * optional Billing billing = 26; + * @return {?proto.google.api.Billing} + */ +proto.google.api.Service.prototype.getBilling = function() { + return /** @type{?proto.google.api.Billing} */ ( + jspb.Message.getWrapperField(this, google_api_billing_pb.Billing, 26)); +}; + + +/** + * @param {?proto.google.api.Billing|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setBilling = function(value) { + return jspb.Message.setWrapperField(this, 26, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearBilling = function() { + return this.setBilling(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasBilling = function() { + return jspb.Message.getField(this, 26) != null; +}; + + +/** + * optional Logging logging = 27; + * @return {?proto.google.api.Logging} + */ +proto.google.api.Service.prototype.getLogging = function() { + return /** @type{?proto.google.api.Logging} */ ( + jspb.Message.getWrapperField(this, google_api_logging_pb.Logging, 27)); +}; + + +/** + * @param {?proto.google.api.Logging|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setLogging = function(value) { + return jspb.Message.setWrapperField(this, 27, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearLogging = function() { + return this.setLogging(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasLogging = function() { + return jspb.Message.getField(this, 27) != null; +}; + + +/** + * optional Monitoring monitoring = 28; + * @return {?proto.google.api.Monitoring} + */ +proto.google.api.Service.prototype.getMonitoring = function() { + return /** @type{?proto.google.api.Monitoring} */ ( + jspb.Message.getWrapperField(this, google_api_monitoring_pb.Monitoring, 28)); +}; + + +/** + * @param {?proto.google.api.Monitoring|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setMonitoring = function(value) { + return jspb.Message.setWrapperField(this, 28, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearMonitoring = function() { + return this.setMonitoring(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasMonitoring = function() { + return jspb.Message.getField(this, 28) != null; +}; + + +/** + * optional SystemParameters system_parameters = 29; + * @return {?proto.google.api.SystemParameters} + */ +proto.google.api.Service.prototype.getSystemParameters = function() { + return /** @type{?proto.google.api.SystemParameters} */ ( + jspb.Message.getWrapperField(this, google_api_system_parameter_pb.SystemParameters, 29)); +}; + + +/** + * @param {?proto.google.api.SystemParameters|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setSystemParameters = function(value) { + return jspb.Message.setWrapperField(this, 29, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearSystemParameters = function() { + return this.setSystemParameters(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasSystemParameters = function() { + return jspb.Message.getField(this, 29) != null; +}; + + +/** + * optional SourceInfo source_info = 37; + * @return {?proto.google.api.SourceInfo} + */ +proto.google.api.Service.prototype.getSourceInfo = function() { + return /** @type{?proto.google.api.SourceInfo} */ ( + jspb.Message.getWrapperField(this, google_api_source_info_pb.SourceInfo, 37)); +}; + + +/** + * @param {?proto.google.api.SourceInfo|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setSourceInfo = function(value) { + return jspb.Message.setWrapperField(this, 37, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearSourceInfo = function() { + return this.setSourceInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasSourceInfo = function() { + return jspb.Message.getField(this, 37) != null; +}; + + +/** + * optional Publishing publishing = 45; + * @return {?proto.google.api.Publishing} + */ +proto.google.api.Service.prototype.getPublishing = function() { + return /** @type{?proto.google.api.Publishing} */ ( + jspb.Message.getWrapperField(this, google_api_client_pb.Publishing, 45)); +}; + + +/** + * @param {?proto.google.api.Publishing|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setPublishing = function(value) { + return jspb.Message.setWrapperField(this, 45, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearPublishing = function() { + return this.setPublishing(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasPublishing = function() { + return jspb.Message.getField(this, 45) != null; +}; + + +/** + * optional google.protobuf.UInt32Value config_version = 20; + * @return {?proto.google.protobuf.UInt32Value} + */ +proto.google.api.Service.prototype.getConfigVersion = function() { + return /** @type{?proto.google.protobuf.UInt32Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt32Value, 20)); +}; + + +/** + * @param {?proto.google.protobuf.UInt32Value|undefined} value + * @return {!proto.google.api.Service} returns this +*/ +proto.google.api.Service.prototype.setConfigVersion = function(value) { + return jspb.Message.setWrapperField(this, 20, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.google.api.Service} returns this + */ +proto.google.api.Service.prototype.clearConfigVersion = function() { + return this.setConfigVersion(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.google.api.Service.prototype.hasConfigVersion = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/source_info_grpc_pb.js b/google/api/source_info_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/source_info_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/source_info_pb.js b/google/api/source_info_pb.js new file mode 100644 index 0000000..62411a2 --- /dev/null +++ b/google/api/source_info_pb.js @@ -0,0 +1,208 @@ +// source: google/api/source_info.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); +goog.object.extend(proto, google_protobuf_any_pb); +goog.exportSymbol('proto.google.api.SourceInfo', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.SourceInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SourceInfo.repeatedFields_, null); +}; +goog.inherits(proto.google.api.SourceInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.SourceInfo.displayName = 'proto.google.api.SourceInfo'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.SourceInfo.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.SourceInfo.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.SourceInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.SourceInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SourceInfo.toObject = function(includeInstance, msg) { + var f, obj = { + sourceFilesList: jspb.Message.toObjectList(msg.getSourceFilesList(), + google_protobuf_any_pb.Any.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.SourceInfo} + */ +proto.google.api.SourceInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.SourceInfo; + return proto.google.api.SourceInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.SourceInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.SourceInfo} + */ +proto.google.api.SourceInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_any_pb.Any; + reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); + msg.addSourceFiles(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.SourceInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.SourceInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.SourceInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SourceInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSourceFilesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + google_protobuf_any_pb.Any.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated google.protobuf.Any source_files = 1; + * @return {!Array} + */ +proto.google.api.SourceInfo.prototype.getSourceFilesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.SourceInfo} returns this +*/ +proto.google.api.SourceInfo.prototype.setSourceFilesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.protobuf.Any=} opt_value + * @param {number=} opt_index + * @return {!proto.google.protobuf.Any} + */ +proto.google.api.SourceInfo.prototype.addSourceFiles = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Any, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.SourceInfo} returns this + */ +proto.google.api.SourceInfo.prototype.clearSourceFilesList = function() { + return this.setSourceFilesList([]); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/system_parameter_grpc_pb.js b/google/api/system_parameter_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/system_parameter_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/system_parameter_pb.js b/google/api/system_parameter_pb.js new file mode 100644 index 0000000..51fd926 --- /dev/null +++ b/google/api/system_parameter_pb.js @@ -0,0 +1,630 @@ +// source: google/api/system_parameter.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.SystemParameter', null, global); +goog.exportSymbol('proto.google.api.SystemParameterRule', null, global); +goog.exportSymbol('proto.google.api.SystemParameters', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.SystemParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameters.repeatedFields_, null); +}; +goog.inherits(proto.google.api.SystemParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.SystemParameters.displayName = 'proto.google.api.SystemParameters'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.SystemParameterRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SystemParameterRule.repeatedFields_, null); +}; +goog.inherits(proto.google.api.SystemParameterRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.SystemParameterRule.displayName = 'proto.google.api.SystemParameterRule'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.SystemParameter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.SystemParameter, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.SystemParameter.displayName = 'proto.google.api.SystemParameter'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.SystemParameters.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.SystemParameters.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.SystemParameters.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.SystemParameters} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SystemParameters.toObject = function(includeInstance, msg) { + var f, obj = { + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.google.api.SystemParameterRule.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.SystemParameters} + */ +proto.google.api.SystemParameters.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.SystemParameters; + return proto.google.api.SystemParameters.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.SystemParameters} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.SystemParameters} + */ +proto.google.api.SystemParameters.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.SystemParameterRule; + reader.readMessage(value,proto.google.api.SystemParameterRule.deserializeBinaryFromReader); + msg.addRules(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.SystemParameters.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.SystemParameters.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.SystemParameters} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SystemParameters.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.google.api.SystemParameterRule.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated SystemParameterRule rules = 1; + * @return {!Array} + */ +proto.google.api.SystemParameters.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameterRule, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.SystemParameters} returns this +*/ +proto.google.api.SystemParameters.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.api.SystemParameterRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.SystemParameterRule} + */ +proto.google.api.SystemParameters.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.SystemParameterRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.SystemParameters} returns this + */ +proto.google.api.SystemParameters.prototype.clearRulesList = function() { + return this.setRulesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.SystemParameterRule.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.SystemParameterRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.SystemParameterRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.SystemParameterRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SystemParameterRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + parametersList: jspb.Message.toObjectList(msg.getParametersList(), + proto.google.api.SystemParameter.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.SystemParameterRule} + */ +proto.google.api.SystemParameterRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.SystemParameterRule; + return proto.google.api.SystemParameterRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.SystemParameterRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.SystemParameterRule} + */ +proto.google.api.SystemParameterRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = new proto.google.api.SystemParameter; + reader.readMessage(value,proto.google.api.SystemParameter.deserializeBinaryFromReader); + msg.addParameters(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.SystemParameterRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.SystemParameterRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.SystemParameterRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SystemParameterRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getParametersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.google.api.SystemParameter.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.SystemParameterRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.SystemParameterRule} returns this + */ +proto.google.api.SystemParameterRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated SystemParameter parameters = 2; + * @return {!Array} + */ +proto.google.api.SystemParameterRule.prototype.getParametersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.SystemParameter, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.SystemParameterRule} returns this +*/ +proto.google.api.SystemParameterRule.prototype.setParametersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.google.api.SystemParameter=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.SystemParameter} + */ +proto.google.api.SystemParameterRule.prototype.addParameters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.SystemParameter, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.SystemParameterRule} returns this + */ +proto.google.api.SystemParameterRule.prototype.clearParametersList = function() { + return this.setParametersList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.SystemParameter.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.SystemParameter.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.SystemParameter} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SystemParameter.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + httpHeader: jspb.Message.getFieldWithDefault(msg, 2, ""), + urlQueryParameter: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.SystemParameter} + */ +proto.google.api.SystemParameter.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.SystemParameter; + return proto.google.api.SystemParameter.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.SystemParameter} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.SystemParameter} + */ +proto.google.api.SystemParameter.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setHttpHeader(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setUrlQueryParameter(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.SystemParameter.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.SystemParameter.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.SystemParameter} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.SystemParameter.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getHttpHeader(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getUrlQueryParameter(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.google.api.SystemParameter.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.SystemParameter} returns this + */ +proto.google.api.SystemParameter.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string http_header = 2; + * @return {string} + */ +proto.google.api.SystemParameter.prototype.getHttpHeader = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.SystemParameter} returns this + */ +proto.google.api.SystemParameter.prototype.setHttpHeader = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string url_query_parameter = 3; + * @return {string} + */ +proto.google.api.SystemParameter.prototype.getUrlQueryParameter = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.SystemParameter} returns this + */ +proto.google.api.SystemParameter.prototype.setUrlQueryParameter = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/usage_grpc_pb.js b/google/api/usage_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/usage_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/usage_pb.js b/google/api/usage_pb.js new file mode 100644 index 0000000..5358d36 --- /dev/null +++ b/google/api/usage_pb.js @@ -0,0 +1,497 @@ +// source: google/api/usage.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.google.api.Usage', null, global); +goog.exportSymbol('proto.google.api.UsageRule', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Usage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Usage.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Usage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Usage.displayName = 'proto.google.api.Usage'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.UsageRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.UsageRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.UsageRule.displayName = 'proto.google.api.UsageRule'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Usage.repeatedFields_ = [1,6]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Usage.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Usage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Usage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Usage.toObject = function(includeInstance, msg) { + var f, obj = { + requirementsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.google.api.UsageRule.toObject, includeInstance), + producerNotificationChannel: jspb.Message.getFieldWithDefault(msg, 7, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Usage} + */ +proto.google.api.Usage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Usage; + return proto.google.api.Usage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Usage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Usage} + */ +proto.google.api.Usage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addRequirements(value); + break; + case 6: + var value = new proto.google.api.UsageRule; + reader.readMessage(value,proto.google.api.UsageRule.deserializeBinaryFromReader); + msg.addRules(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setProducerNotificationChannel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Usage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Usage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Usage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Usage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRequirementsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } + f = message.getRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.google.api.UsageRule.serializeBinaryToWriter + ); + } + f = message.getProducerNotificationChannel(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } +}; + + +/** + * repeated string requirements = 1; + * @return {!Array} + */ +proto.google.api.Usage.prototype.getRequirementsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Usage} returns this + */ +proto.google.api.Usage.prototype.setRequirementsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.google.api.Usage} returns this + */ +proto.google.api.Usage.prototype.addRequirements = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Usage} returns this + */ +proto.google.api.Usage.prototype.clearRequirementsList = function() { + return this.setRequirementsList([]); +}; + + +/** + * repeated UsageRule rules = 6; + * @return {!Array} + */ +proto.google.api.Usage.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.UsageRule, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Usage} returns this +*/ +proto.google.api.Usage.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.google.api.UsageRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.UsageRule} + */ +proto.google.api.Usage.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.google.api.UsageRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Usage} returns this + */ +proto.google.api.Usage.prototype.clearRulesList = function() { + return this.setRulesList([]); +}; + + +/** + * optional string producer_notification_channel = 7; + * @return {string} + */ +proto.google.api.Usage.prototype.getProducerNotificationChannel = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.Usage} returns this + */ +proto.google.api.Usage.prototype.setProducerNotificationChannel = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.UsageRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.UsageRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.UsageRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.UsageRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + allowUnregisteredCalls: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + skipServiceControl: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.UsageRule} + */ +proto.google.api.UsageRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.UsageRule; + return proto.google.api.UsageRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.UsageRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.UsageRule} + */ +proto.google.api.UsageRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowUnregisteredCalls(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSkipServiceControl(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.UsageRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.UsageRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.UsageRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.UsageRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAllowUnregisteredCalls(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getSkipServiceControl(); + if (f) { + writer.writeBool( + 3, + f + ); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.UsageRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.UsageRule} returns this + */ +proto.google.api.UsageRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool allow_unregistered_calls = 2; + * @return {boolean} + */ +proto.google.api.UsageRule.prototype.getAllowUnregisteredCalls = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.google.api.UsageRule} returns this + */ +proto.google.api.UsageRule.prototype.setAllowUnregisteredCalls = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional bool skip_service_control = 3; + * @return {boolean} + */ +proto.google.api.UsageRule.prototype.getSkipServiceControl = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.google.api.UsageRule} returns this + */ +proto.google.api.UsageRule.prototype.setSkipServiceControl = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +goog.object.extend(exports, proto.google.api); diff --git a/google/api/visibility_grpc_pb.js b/google/api/visibility_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/google/api/visibility_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/google/api/visibility_pb.js b/google/api/visibility_pb.js new file mode 100644 index 0000000..bc9a3cc --- /dev/null +++ b/google/api/visibility_pb.js @@ -0,0 +1,546 @@ +// source: google/api/visibility.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +goog.exportSymbol('proto.google.api.Visibility', null, global); +goog.exportSymbol('proto.google.api.VisibilityRule', null, global); +goog.exportSymbol('proto.google.api.apiVisibility', null, global); +goog.exportSymbol('proto.google.api.enumVisibility', null, global); +goog.exportSymbol('proto.google.api.fieldVisibility', null, global); +goog.exportSymbol('proto.google.api.messageVisibility', null, global); +goog.exportSymbol('proto.google.api.methodVisibility', null, global); +goog.exportSymbol('proto.google.api.valueVisibility', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.Visibility = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Visibility.repeatedFields_, null); +}; +goog.inherits(proto.google.api.Visibility, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.Visibility.displayName = 'proto.google.api.Visibility'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.google.api.VisibilityRule = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.google.api.VisibilityRule, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.google.api.VisibilityRule.displayName = 'proto.google.api.VisibilityRule'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.google.api.Visibility.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.Visibility.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.Visibility.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.Visibility} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Visibility.toObject = function(includeInstance, msg) { + var f, obj = { + rulesList: jspb.Message.toObjectList(msg.getRulesList(), + proto.google.api.VisibilityRule.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.Visibility} + */ +proto.google.api.Visibility.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.Visibility; + return proto.google.api.Visibility.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.Visibility} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.Visibility} + */ +proto.google.api.Visibility.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.google.api.VisibilityRule; + reader.readMessage(value,proto.google.api.VisibilityRule.deserializeBinaryFromReader); + msg.addRules(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.Visibility.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.Visibility.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.Visibility} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.Visibility.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.google.api.VisibilityRule.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated VisibilityRule rules = 1; + * @return {!Array} + */ +proto.google.api.Visibility.prototype.getRulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.google.api.VisibilityRule, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.google.api.Visibility} returns this +*/ +proto.google.api.Visibility.prototype.setRulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.google.api.VisibilityRule=} opt_value + * @param {number=} opt_index + * @return {!proto.google.api.VisibilityRule} + */ +proto.google.api.Visibility.prototype.addRules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.VisibilityRule, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.google.api.Visibility} returns this + */ +proto.google.api.Visibility.prototype.clearRulesList = function() { + return this.setRulesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.google.api.VisibilityRule.prototype.toObject = function(opt_includeInstance) { + return proto.google.api.VisibilityRule.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.google.api.VisibilityRule} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.VisibilityRule.toObject = function(includeInstance, msg) { + var f, obj = { + selector: jspb.Message.getFieldWithDefault(msg, 1, ""), + restriction: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.google.api.VisibilityRule} + */ +proto.google.api.VisibilityRule.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.google.api.VisibilityRule; + return proto.google.api.VisibilityRule.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.google.api.VisibilityRule} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.google.api.VisibilityRule} + */ +proto.google.api.VisibilityRule.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSelector(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setRestriction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.google.api.VisibilityRule.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.google.api.VisibilityRule.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.google.api.VisibilityRule} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.google.api.VisibilityRule.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSelector(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getRestriction(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string selector = 1; + * @return {string} + */ +proto.google.api.VisibilityRule.prototype.getSelector = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.VisibilityRule} returns this + */ +proto.google.api.VisibilityRule.prototype.setSelector = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string restriction = 2; + * @return {string} + */ +proto.google.api.VisibilityRule.prototype.getRestriction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.google.api.VisibilityRule} returns this + */ +proto.google.api.VisibilityRule.prototype.setRestriction = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `enumVisibility`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.enumVisibility = new jspb.ExtensionFieldInfo( + 72295727, + {enumVisibility: 0}, + proto.google.api.VisibilityRule, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.VisibilityRule.toObject), + 0); + +google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.enumVisibility, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.VisibilityRule.serializeBinaryToWriter, + proto.google.api.VisibilityRule.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.EnumOptions.extensions[72295727] = proto.google.api.enumVisibility; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `valueVisibility`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.valueVisibility = new jspb.ExtensionFieldInfo( + 72295727, + {valueVisibility: 0}, + proto.google.api.VisibilityRule, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.VisibilityRule.toObject), + 0); + +google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.valueVisibility, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.VisibilityRule.serializeBinaryToWriter, + proto.google.api.VisibilityRule.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.EnumValueOptions.extensions[72295727] = proto.google.api.valueVisibility; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `fieldVisibility`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.fieldVisibility = new jspb.ExtensionFieldInfo( + 72295727, + {fieldVisibility: 0}, + proto.google.api.VisibilityRule, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.VisibilityRule.toObject), + 0); + +google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.fieldVisibility, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.VisibilityRule.serializeBinaryToWriter, + proto.google.api.VisibilityRule.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.FieldOptions.extensions[72295727] = proto.google.api.fieldVisibility; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `messageVisibility`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.messageVisibility = new jspb.ExtensionFieldInfo( + 72295727, + {messageVisibility: 0}, + proto.google.api.VisibilityRule, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.VisibilityRule.toObject), + 0); + +google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.messageVisibility, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.VisibilityRule.serializeBinaryToWriter, + proto.google.api.VisibilityRule.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.MessageOptions.extensions[72295727] = proto.google.api.messageVisibility; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `methodVisibility`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.methodVisibility = new jspb.ExtensionFieldInfo( + 72295727, + {methodVisibility: 0}, + proto.google.api.VisibilityRule, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.VisibilityRule.toObject), + 0); + +google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.methodVisibility, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.VisibilityRule.serializeBinaryToWriter, + proto.google.api.VisibilityRule.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.MethodOptions.extensions[72295727] = proto.google.api.methodVisibility; + + +/** + * A tuple of {field number, class constructor} for the extension + * field named `apiVisibility`. + * @type {!jspb.ExtensionFieldInfo} + */ +proto.google.api.apiVisibility = new jspb.ExtensionFieldInfo( + 72295727, + {apiVisibility: 0}, + proto.google.api.VisibilityRule, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ ( + proto.google.api.VisibilityRule.toObject), + 0); + +google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[72295727] = new jspb.ExtensionFieldBinaryInfo( + proto.google.api.apiVisibility, + jspb.BinaryReader.prototype.readMessage, + jspb.BinaryWriter.prototype.writeMessage, + proto.google.api.VisibilityRule.serializeBinaryToWriter, + proto.google.api.VisibilityRule.deserializeBinaryFromReader, + false); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.ServiceOptions.extensions[72295727] = proto.google.api.apiVisibility; + +goog.object.extend(exports, proto.google.api); diff --git a/package.json b/package.json index 3e46651..e603a4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clarifai-nodejs-grpc", - "version": "8.0.0", + "version": "9.7.0", "description": "The official Clarifai Node.js gRPC client", "main": "src/index.js", "repository": "https://github.com/Clarifai/clarifai-javascript-grpc", diff --git a/proto/clarifai/api/resources.proto b/proto/clarifai/api/resources.proto index 988b908..6ce1bb9 100644 --- a/proto/clarifai/api/resources.proto +++ b/proto/clarifai/api/resources.proto @@ -1,22 +1,23 @@ syntax = "proto3"; import "proto/clarifai/api/status/status.proto"; +import "proto/clarifai/api/status/status_code.proto"; import "proto/clarifai/api/utils/extensions.proto"; +import "proto/clarifai/api/utils/matrix.proto"; import "proto/clarifai/auth/util/extension.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; package clarifai.api; -option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api/api"; +option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api"; option java_multiple_files = true; option java_package = "com.clarifai.grpc.api"; option objc_class_prefix = "CAIP"; - - // Annotation of an asset with metadata message Annotation { reserved 4, 5, 6, 11, 12; @@ -39,7 +40,7 @@ message Annotation { string model_version_id = 16; // DEPRECATED. - string embed_model_version_id = 14 [deprecated=true]; + string embed_model_version_id = 14 [deprecated = true]; // Annotation Status clarifai.api.status.Status status = 7; @@ -56,7 +57,7 @@ message Annotation { // Whether or not this annotation is trusted // Will be deprecated - bool trusted = 10[deprecated=true]; + bool trusted = 10 [deprecated = true]; // Is this the input level annotation. bool input_level = 17; @@ -67,6 +68,8 @@ message Annotation { google.protobuf.Struct consensus_info = 18; // The id of the task annotation belongs to string task_id = 19; + // ID of the workflow version this annotation is created by + string workflow_version_id = 20; } // Application with tasks and datasets @@ -75,9 +78,12 @@ message App { string id = 1; string name = 2; string default_language = 3; + // Default workflow id deprecated in favor of default_workflow string default_workflow_id = 4; - //why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context. - //This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described + Workflow default_workflow = 23; + // why is user_id present here when this message type is used in PostApps but completely ignored there? PostApp already + // specifies the userid in path but doesn't even actually use neither of userids, it instead used the id from auth context. + // This creates a lot of ambiguity, should always have different message types for Post/Get endpoints so that the minimum interface for each op can be described string user_id = 5; // When the app was created. We follow the XXXX timestamp // format. We use https://www.ietf.org/rfc/rfc3339.txt format: @@ -114,6 +120,13 @@ message App { // How many users have starred the app (only showed on get/list requests) // Computed value, not editable int32 star_count = 20; + + // Notes for the application + // This field should be used for in-depth notes and supports up to 64Kbs. + string notes = 21; + + // Representative image for this app + Image image = 22; } // App query @@ -124,14 +137,14 @@ message AppQuery { // Collaborator - invited user, who shares an access to an application message Collaborator { - //id of this collaborator + // id of this collaborator string id = 1; - //the app this collaborator has access to + // the app this collaborator has access to // FIXME(zeiler): this should be in the user_app_id.app_id already from the endpoint. clarifai.api.App app = 2; - //who is this collaborator + // who is this collaborator clarifai.api.User user = 3; - //the permission this collaborator + // the permission this collaborator repeated string scopes = 4; repeated string endpoints = 5; @@ -149,17 +162,17 @@ message Collaborator { google.protobuf.Timestamp deleted_at = 8; } -//collaboration includes an app you're invited to work on. -message Collaboration{ - //the application +// collaboration includes an app you're invited to work on. +message Collaboration { + // the application App app = 1; - //the app owner's info(including user_unique_id, first_name, last_name, primary_email) + // the app owner's info(including user_unique_id, first_name, last_name, primary_email) User app_owner = 2; - //the low-level scope users are shared with for this collaboration + // the low-level scope users are shared with for this collaboration repeated string scopes = 3; - //the endpoint-level scopes users are shared with for this collaboration + // the endpoint-level scopes users are shared with for this collaboration repeated string endpoints = 4; - //when is the collaboration created + // when is the collaboration created google.protobuf.Timestamp created_at = 5; } @@ -212,6 +225,7 @@ message Track { + // Cluster data message Cluster { string id = 1; @@ -219,7 +233,8 @@ message Cluster { // Number of annotations tied to the cluster in the app uint32 count = 2; - // The score assigned to this cluster + // The score assigned to this cluster. + // For List Clusters endpoint, this represents percentage of inputs in the app assigned to this cluster. float score = 3; // Representative hits for cluster (for now we only return 1) @@ -361,6 +376,22 @@ message Concept { // The user the concept belongs to. string user_id = 10; + + // Information about keypoints for this concept + KeypointInfo keypoint_info = 11; +} + +message KeypointInfo { + // Names of the keypoints + repeated string keypoint_names = 1; + + // Defines the connections between keypoint_names. Each value represents the index in keypoint_names. + repeated KeypointEdge skeleton = 2; +} + +message KeypointEdge { + uint32 k1 = 1; + uint32 k2 = 2; } // ConceptCount @@ -523,7 +554,7 @@ message Data { repeated Region regions = 11; // For temporal content like video. repeated Frame frames = 12; - // Input and output text. + // Input, output or annotation text. Text text = 13; // Input and output audio. Audio audio = 14; @@ -532,7 +563,9 @@ message Data { // Time segments information. repeated TimeSegment time_segments = 16; // Holds score, rank, and user, app, input IDs and search hit data - repeated Hit hits= 17; + repeated Hit hits = 17; + // Heatmap as 2d image + repeated Image heatmaps = 18; } // A region within the data. @@ -562,6 +595,13 @@ message RegionInfo { Polygon polygon = 5; // A landmark point location. Point point = 6; + // Span char sequence for NLP. + Span span = 7; + // Token char sequence for NLP. + Token token = 8; + // The locations of detected keypoints, which are to be used in conjunction with the detected concept's skeleton to connect the keypoint locations. + // These will be in the same order as the respective keypoint_names inside the concept. + repeated Point keypoint_locations = 9; } // Rectangular bounding box for a region. @@ -623,6 +663,26 @@ message Point { float col = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; // Depth if applicable for the point. float z = 3; + // Whether this point is visible or occluded + enum Visibility { + NOT_SET = 0; // Visibility of the point is not set + VISIBLE = 1; // Point is visible + NOT_VISIBLE = 2; // Point is occluded + NOT_PRESENT = 3; // Point is not in the image + } + Visibility visibility = 4; +} + +message Span { + uint32 char_start = 1 [(clarifai.api.utils.cl_show_if_empty) = true]; + uint32 char_end = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + string raw_text = 3; +} + +message Token { + uint32 char_start = 1 [(clarifai.api.utils.cl_show_if_empty) = true]; + uint32 char_end = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + string raw_text = 3; } // Embedding @@ -644,9 +704,7 @@ message GeoLimit { } // GeoBoxedPoint -message GeoBoxedPoint { - GeoPoint geo_point = 1; -} +message GeoBoxedPoint { GeoPoint geo_point = 1; } // Geo message Geo { @@ -728,10 +786,17 @@ message Input { clarifai.api.status.Status status = 6; // List of dataset IDs that this input is part of - // Currently, this field is ONLY used in search. + // Currently, this field is ONLY used to + // * search inputs part of dataset(s), e.g. in `PostSearches`, `PostInputsSearches` and `PostAnnotationsSearches` endpoints, and + // * to add inputs to dataset(s) in `PostInputs` endpoint. + // Note that this field is ignored for other endpoints, e.g. `GetInput`, `ListInputs` and `PatchInputs`. repeated string dataset_ids = 7; } +// InputBatch is a batch of Input resources. Large amounts of inputs are usually +// divided into multiple InputBatches. +message InputBatch { repeated Input inputs = 1; } + // NOTE: inconsistency: this is weird mix of plural and singular words. message InputCount { uint32 processed = 1 [(clarifai.api.utils.cl_show_if_empty) = true]; @@ -744,41 +809,108 @@ message InputCount { uint32 reindexing = 8 [(clarifai.api.utils.cl_show_if_empty) = true]; } +// Dataset +message Dataset { + reserved 6, 10; + + // The ID for the dataset + string id = 1; + + // When the dataset was created. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp created_at = 2; + + // When the dataset was modified. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp modified_at = 3; + + // The app the dataset belongs to. + string app_id = 4; + + // The user the dataset belongs to. + string user_id = 5; + + // Description of the dataset + string description = 7; + + // To handle arbitrary json metadata you can use a struct field: + // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto + google.protobuf.Struct metadata = 8; + + // The visibility field represents whether this message is privately/publicly visible. + // To be visible to the public the App that contains it AND the User that contains the App must + // also be publicly visible. + Visibility visibility = 9; + + // Default annotation filter used for this dataset. + AnnotationFilter default_annotation_filter = 12; + + // Default processing info used for this dataset. + DatasetVersionProcessingInfo default_processing_info = 16; + + // Notes for the dataset + // This field should be used for in-depth notes and supports up to 64Kbs. + string notes = 11; + + // Dataset version associated with this dataset. This is used in listing Datasets + // and including the latest version. + DatasetVersion version = 13; -// DatasetFilter -message DatasetFilter { - reserved 7; + // Whether the dataset is starred by the requesting user. + bool is_starred = 14; + // Number of users that starred this dataset. + int32 star_count = 15; - // The ID for the dataset filter + // bookmark info. When set, this dataset is a bookmarked dataset of this app. + // Info in this field will allow you to find/access original dataset. + BookmarkOrigin bookmark_origin = 17; +} + +// AnnotationFilter is used to create a new dataset version. +// For now, the filter is simply a wrapper over a Search. +// In the future, we may add extra fields to customize the filtering. +message AnnotationFilter { + reserved 6, 7; + + // The ID for the annotation filter string id = 1; - // When the dataset filter was created. + // When the annotation filter was created. // The format is https://www.ietf.org/rfc/rfc3339.txt. // Example: "2006-01-02T15:04:05.999999Z". google.protobuf.Timestamp created_at = 2; - // When the dataset filter was modified. + // When the annotation filter was modified. // The format is https://www.ietf.org/rfc/rfc3339.txt. // Example: "2006-01-02T15:04:05.999999Z". google.protobuf.Timestamp modified_at = 3; - // The user the dataset filter belongs to. + // The user the annotation filter belongs to. string user_id = 4; - // The app the dataset filter belongs to. + // The app the annotation filter belongs to. string app_id = 5; - // The dataset the filter belongs to. - string dataset_id = 6; - // The saved search that this filter uses. Search saved_search = 8; } +// DatasetInput +message DatasetInput { + // When the input was added to the dataset. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp created_at = 1; + + // The input data. + Input input = 2; +} // DatasetVersion message DatasetVersion { - reserved 9; + reserved 7, 9, 11; // The ID for the dataset version string id = 1; @@ -804,8 +936,10 @@ message DatasetVersion { // Data config reveals how the dataset version is generated. oneof data_config { - // The dataset version will be generated based on a single dataset filter. - DatasetVersionDatasetFilterConfig dataset_filter_config = 7; + // The dataset version will be generated based on a single annotation filter. + AnnotationFilterConfig annotation_filter_config = 15; + // The dataset version will be generated based on model version inferences. + ModelPredictConfig model_predict_config = 18; } // Status for this dataset version. @@ -814,8 +948,16 @@ message DatasetVersion { // Description of the dataset version string description = 10; + // Dataset version processing. If this is not set when the dataset version is + // created, then the dataset default_processing_info is copied instead. Later + // updates to default_processing_info will not apply to existing versions. + DatasetVersionProcessingInfo processing_info = 19; + // Dataset version metrics - DatasetVersionMetrics metrics = 11; + map metrics = 16; + + // Dataset version exports + DatasetVersionExportInfo export_info = 17; // To handle arbitrary json metadata you can use a struct field: // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto @@ -830,22 +972,192 @@ message DatasetVersion { repeated string embed_model_version_ids = 14; } -message DatasetVersionDatasetFilterConfig { - DatasetFilter dataset_filter = 1; +message AnnotationFilterConfig { + // The annotation filter that is used. + AnnotationFilter annotation_filter = 1; + + // If true, empty inputs are not included in the dataset version. + // If false, empty inputs are included in the dataset version. + // We define an empty input as an input without any annotations after annotation filter is applied. + bool ignore_empty_inputs = 2; +} + +message ModelPredictConfig { + // Assumed to be owned by the calling users app unless user_id and app_id are filled out. + Model model = 1; } message DatasetVersionMetrics { - uint64 inputs_count = 1; - uint64 positive_annotations_count = 2; - uint64 bounding_boxes_count = 3; + reserved 2, 3, 4, 5, 7; + + // Number of inputs + google.protobuf.UInt64Value inputs_count = 1; + // Number of unlabeled inputs + // An input is considered unlabeled if it there are no annotations with positive labels for that input. + google.protobuf.UInt64Value unlabeled_inputs_count = 6; + // Number of inputs that have metadata + google.protobuf.UInt64Value inputs_with_metadata_count = 8; + // Number of inputs that have geo information + google.protobuf.UInt64Value inputs_with_geo_count = 9; + + // Number of regions + google.protobuf.UInt64Value regions_count = 20; + // The matrix shows where the regions are located. + // Example: If the matrix has 2x2 dimensions, then + // * region_location_matrix[0][0] = the number of regions that appear in the top left corner, i.e. [0,0]..(0.5,0.5) + // * region_location_matrix[0][1] = the number of regions that appear in the top right corner, i.e. [0,0.5]..[0.5,1] + // * region_location_matrix[1][0] = the number of regions that appear in the bottom left corner, i.e. [0.5,0]..[1,0.5) + // * region_location_matrix[1][1] = the number of regions that appear in the bottom right corner, i.e. [0.5,0.5]..[1,1] + MatrixUint64 region_location_matrix = 21; + // Number of bounding boxes + google.protobuf.UInt64Value bounding_boxes_count = 22; + // Number of polygons + google.protobuf.UInt64Value polygons_count = 23; + // Number of points + google.protobuf.UInt64Value points_count = 24; + // Number of masks + google.protobuf.UInt64Value masks_count = 25; + + // Number of inputs that have regions attached + // Note that this is not a recursive count: if an input contains frames that contains regions, then the region_frames_count is increased, but region_inputs_count is not increased. + google.protobuf.UInt64Value region_inputs_count = 60; + // Number of frames that have regions attached + google.protobuf.UInt64Value region_frames_count = 61; + + // Number of frames + google.protobuf.UInt64Value frames_count = 30; + + // Number of inputs that have frames attached + google.protobuf.UInt64Value frame_inputs_count = 70; + + // Number of embeddings + google.protobuf.UInt64Value embeddings_count = 40; + + // Number of positive tags added at input-level + google.protobuf.UInt64Value positive_input_tags_count = 50; + // Number of positive tags added at region-level + google.protobuf.UInt64Value positive_region_tags_count = 51; + // Number of positive tags added at frame-level + google.protobuf.UInt64Value positive_frame_tags_count = 52; } +message DatasetVersionMetricsGroup { + string parent_path = 1; + DatasetVersionMetricsGroupType type = 2; + google.protobuf.Value value = 3; + DatasetVersionMetrics metrics = 4; +} enum DatasetVersionMetricsGroupType { DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET = 0; - INPUT_TYPE = 1; + // Group data examples by input type. + // Examples: images, videos, text, audio. + INPUT_TYPE = 2; + // Group data examples by concept ID. + // Examples: inputs with cat concept, inputs with dog concept. + CONCEPT_ID = 10; + // Group data examples by concepts count. + // Examples: inputs with 20 concepts, inputs with 21 concepts. + CONCEPTS_COUNT = 11; + // Group data examples by bounding boxes count. + // Examples: inputs with 20 bounding boxes, inputs with 21 bounding boxes. + BOUNDING_BOXES_COUNT = 20; + // Group data examples by polygons count. + // Examples: inputs with 20 polygons, inputs with 21 polygons. + POLYGONS_COUNT = 21; + // Group data examples by points count. + // Examples: inputs with 20 points, inputs with 21 points. + POINTS_COUNT = 22; + // Group data examples by masks count. + // Examples: inputs with 20 masks, inputs with 21 masks. + MASKS_COUNT = 23; + // Group data examples by pixels count. + // In order to reduce the number of groups, we use bins. + // Examples for bin size = 400: inputs with [200000, 200400) pixels, inputs with [200400, 200800) pixels. + PIXELS_COUNT = 30; + // Group data examples by aspect ratio. + // In order to reduce the number of groups, we use bins. + // Examples for bin size = 0.1: inputs with [0.5, 0.6) aspect ratio, inputs with [0.6, 0.7) aspect ratio. + ASPECT_RATIO = 31; +} + + +// DatasetVersionExportInfo contains information about all exports of a dataset version. +// +// If the dataset version has not been exported in a format, then the DatasetVersionExport +// field for that format is empty instead of having a "not exported" status. +message DatasetVersionExportInfo { + // clarifai_data_protobuf is a CLARIFAI_DATA_PROTOBUF export of the dataset version. + DatasetVersionExport clarifai_data_protobuf = 1; + + // clarifai_data_json is a CLARIFAI_DATA_JSON export of the dataset version. + DatasetVersionExport clarifai_data_json = 3; + + // coco is a COCO export of the dataset version. + DatasetVersionExport coco = 2; +} + +// DatasetVersionExport contains metadata for a single dataset version export. +message DatasetVersionExport { + // format is the format of the dataset version export. + DatasetVersionExportFormat format = 1; + + // status is the current status of the dataset version export. + clarifai.api.status.Status status = 2; + + // url is the URL from where the dataset version export can be downloaded. + string url = 3; + + // size is the size of the dataset version export in number of bytes. + uint64 size = 4; + + // whether to include embeddings in the export or not. + bool include_embeddings = 5; +} +enum DatasetVersionExportFormat { + DATASET_VERSION_EXPORT_FORMAT_NOT_SET = 0; + + // CLARIFAI_DATA_PROTOBUF is the proprietary Clarifai API Data format. It + // is a ZIP-archive containing batches of serialized InputBatch protobuf messages. + // + // Note that only the "id" and "data" fields of exported inputs are set. + CLARIFAI_DATA_PROTOBUF = 1; + + // CLARIFAI_DATA_JSON is the proprietary Clarifai API Data format in JSON. It + // is a ZIP-archive containing batches of serialized InputBatch JSON messages. + // + // Note that only the "id" and "data" fields of exported inputs are set. + CLARIFAI_DATA_JSON = 3; + + // COCO is the data format used by Common Objects in Context. It is a + // ZIP-archive containing JSON files with the dataset version annotations. + // See https://cocodataset.org/#format-data. + COCO = 2; +} + + +// DatasetVersionProcessingInfo contains information about processing applied +// to a dataset version. +message DatasetVersionProcessingInfo { + // If frame_interpolation_info is set, then these settings are used to + // interpolate new frame annotation from other video annotations. + // + // If frame_interpolation_info is set in the dataset default_processing_info, + // then it can be disabled for a single dataset version by setting + // processing_info but not setting processing_info.frame_interpolation_info. + FrameInterpolationInfo frame_interpolation_info = 1; } +// FrameInterpolationInfo contains information about frame annotations +// interpolated from other video annotations, such as image object-detection +// regions generated from video object-tracking regions. +message FrameInterpolationInfo { + // sample_ms is the sampling rate at which frame annotations are interpolated. + // If sample_ms is zero, then the dataset default_processing_info value is used. + // If the dataset default is zero or not set, then the input frame prediction + // sampling rate is used. + uint32 sample_ms = 1; +} // WorkflowResultsSimilarity message WorkflowResultsSimilarity { @@ -888,7 +1200,7 @@ message Key { enum ExpirationAction { EXPIRATION_ACTION_NOT_SET = 0; - DELAY = 1; // Progressively delay the execution of operations + DELAY = 1; // Progressively delay the execution of operations EXPIRY = 2; // Cease functioning } @@ -913,7 +1225,7 @@ enum LicenseScope { // The fields that are patchable include Model.name, Model.display_name and Model.output_info // (except the Model.output_info.type and Model.output_info.type_ext). message Model { - reserved 8, 10, 11; + reserved 8, 10, 11, 12, 13, 24, 28; // The model's ID. Must be unique within a particular app and URL-friendly. string id = 1; @@ -930,20 +1242,23 @@ message Model { // The app the model belongs to. string app_id = 4 [(clarifai.api.utils.cl_show_if_empty) = true]; // Info about the model's output and configuration. - OutputInfo output_info = 5; - // A particular version of the model, e.g., to specify the version when creating a workflow. + // DEPRECATED: Will be moved to model version + OutputInfo output_info = 5 [deprecated = true]; + // A particular version of the model, e.g., to specify the version when creating a workflow or + // when listing Models to include the latest ModelVersion of the model in the response. ModelVersion model_version = 6; // DEPRECATED: Please use the model id to name the model. string display_name = 7 [deprecated = true]; // The user id that the model belongs to. string user_id = 9; - // Info about the models' input and configuration of them. - InputInfo input_info = 12; - // Configuration for the training process of this model. - TrainInfo train_info = 13; + + // The default evaluation info. Can be overwritten by eval request. + EvalInfo default_eval_info = 30; // The ModelType.Id that is used for this model. This is used for all versions and you cannot // change model_type_id between versions of the same model. string model_type_id = 14; + // The task the model was trained to do + string task = 26; // The visibility field represents whether this message is privately/publicly visible. // To be visible to the public the App that contains it AND the User that contains the App must @@ -956,6 +1271,7 @@ message Model { // To handle arbitrary json metadata you can use a struct field: // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto google.protobuf.Struct metadata = 17; + google.protobuf.Struct presets = 27; // Notes for the model // This field should be used for in-depth notes and supports up to 64Kbs. @@ -967,6 +1283,10 @@ message Model { repeated string use_cases = 21 [(clarifai.api.utils.cl_show_if_empty) = true]; // Tags from languages category. repeated string languages = 25 [(clarifai.api.utils.cl_show_if_empty) = true]; + // Tags from languages category with names, only used in responses. + repeated FullTag languages_full = 31 [(clarifai.api.utils.cl_show_if_empty) = true]; + + repeated string check_consents = 32 [(clarifai.api.utils.cl_show_if_empty) = true]; // Is starred by the requesting user (only showed on get/list requests) // Please use PostModelStars/DeleteModelStars endpoints to star/unstar a model @@ -975,8 +1295,12 @@ message Model { // Computed value, not editable int32 star_count = 23; - // Configuration used to import model from third-party toolkits - ImportInfo import_info = 24; + // Whether it's recommended that this model is used within a workflow + google.protobuf.BoolValue workflow_recommended = 29; + + // bookmark info. When set, this model is a bookmarked model of this app. + // Info in this field will allow you to find/access original model. + BookmarkOrigin bookmark_origin = 33; } // A link to a html/markdown/text file that stores reference material tied to a model. @@ -1051,6 +1375,8 @@ message InputInfo { // defined for each ModelType as a Struct (JSON object) here. During training or inference, the // settings contained within are sent to the training processor to alter the training process. google.protobuf.Struct params = 2; + // For base model to get embeddings from for transfer learned models. + Model base_embed_model = 3; } message TrainInfo { @@ -1060,6 +1386,12 @@ message TrainInfo { google.protobuf.Struct params = 1; } +message EvalInfo { + // To control the evaluation process. + // Allow a list of parameters. + google.protobuf.Struct params = 1; +} + message ImportInfo { // Used to configure model imports from third-party toolkits. google.protobuf.Struct params = 1; @@ -1072,10 +1404,7 @@ message OutputConfig { reserved 11, 12, 16, 18; // For custom concept model training: whether the concept predictions must sum to 1. - bool concepts_mutually_exclusive = 1 [(clarifai.api.utils.cl_show_if_empty) = true]; - // For custom concept model training: Whether negatives should only be sampled from within the app during - // training, for custom models. - bool closed_environment = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + bool concepts_mutually_exclusive = 1 [deprecated = true]; // DEPRECATED: For custom models, this is the base model to use for image embeddings. // Default is general model. string existing_model_id = 3 [deprecated = true]; @@ -1102,7 +1431,7 @@ message OutputConfig { google.protobuf.Struct hyper_params = 13; // For custom model training: this is the base model version to use for image embeddings. // This has to be one of the embed models in the app workflow. - string embed_model_version_id = 14; + string embed_model_version_id = 14 [deprecated = true]; // Use input_info.base_embed_model instead. // For custom model training: Use this flag to fail on missing positive examples // By default we fill in the missing with random examples bool fail_on_missing_positive_examples = 15; @@ -1115,13 +1444,11 @@ message OutputConfig { google.protobuf.Struct model_metadata = 17 [deprecated = true]; } - - // ModelSpec is a definition of a Model type. This is used in model mode of portal // to list out the possible models that can be created and can be used to understand more about // the possible models in our platform. message ModelType { - reserved 7, 4; + reserved 7, 4, 13, 14, 15; // A unique identifies for this model type. This is differnt than the 'type' field below because // the 'type' can be re-used for differnet input and output combinations whereas 'id' is always // unique. @@ -1155,15 +1482,50 @@ message ModelType { // in sequential order. This will be true for model types like trackers as an example. bool requires_sequential_frames = 12; - // Can this model be evaluated? - bool evaluable = 13; + // Expected input layers of an uploaded model + repeated ModelLayerInfo expected_input_layers = 16; + // Expected output layers of an uploaded model + repeated ModelLayerInfo expected_output_layers = 17; + + EvaluationType evaluation_type = 18; +} + +message ModelLayerInfo { + // The api.Data field this layer will be parsed into + string data_field_name = 1; + // Description of the expected shape. Can support multiple support layer shapes. + repeated LayerShape shapes = 2; + // Brief description about the layer if needed + string description = 3; + // Whether this layer should have a label_filename specified and provided + bool requires_label_filename = 4; +} + +message TritonCondaEnvInfo { + string conda_pack_url = 1; + string conda_yaml_url = 2; +} +enum DataType { + UNDEFINED = 0; // Default value, should not be used + STRING = 1; + UINT8 = 2; + INT32 = 3; + INT64 = 4; + FP32 = 5; +} - // Maps input_fields to the more granular data fields needed to parse a triton models inputs - google.protobuf.Struct expected_pretrained_input_fields = 14; - // Maps output_fields to the more granular data fields needed to parse a triton models outputs - google.protobuf.Struct expected_pretrained_output_fields = 15; +message LayerShape { + // Supported dimensions + // Example: [-1,4] is a 2-dimensional array with the first dimension of variablesize, but second dimension with a static size: [[1,2,3,4],[4,5,6,7],...] + repeated int32 dims = 1; + // Max dimension size, applicable to layers that can have flexible sizes. + repeated int32 max_dims = 2; + // The triton data type + DataType data_type = 3; + // Description about the dimensions + string description = 4; } // ModelTypeField stores a field value of a configurable type. @@ -1206,9 +1568,17 @@ message ModelTypeField { WORKFLOW_EMBED_MODELS = 12; // Such as ['a', 'b', 'cantaloupe'] ARRAY_OF_STRINGS = 13; - // If RECURSIVE_ENUM is used then the "enum_options" field should also be filled in with the respective ID and description - // for the different RECURSIVE_ENUM options, as well as model_type_fields for each enum choice. + // If RECURSIVE_ENUM is used then the "enum_options" field should also be filled in with the respective ID and + // description for the different RECURSIVE_ENUM options, as well as model_type_fields for each enum choice. RECURSIVE_ENUM = 14; + // For blocks of code that need to be specified by the user for setup or execution during workflow runs. + PYTHON_CODE = 15; + // For selecting a dataset id in model parameters. String in API request. + DATASET_ID = 16; + // For selecting a dataset version id. String. + DATASET_VERSION_ID = 17; + // For auto-completing to concepts in the model. + ARRAY_OF_MODEL_CONCEPTS = 18; } // The field for this field. ModelTypeFieldType field_type = 2; @@ -1262,11 +1632,17 @@ message ModelTypeEnumOption { // If this enum option should be internal only. bool internal_only = 4; + + // Whether this is the recommended enum option. Set to `true` when there + // are multiple options, and one is shown to be better than the others. + bool recommended = 6; } message ModelTypeEnumOptionAlias { // Integer alias for id. int64 id_int = 1; + // String that can contain wild cards and the regex needs to match. + string wildcard_string = 2; } // ModelQuery @@ -1294,14 +1670,18 @@ enum ValueComparator { } enum EvaluationType { - Classification = 0; // default - Detection = 1; + Undefined = 0; + Classification = 1; // default + Detection = 2; + Segmentation = 3; + Clustering = 4; + Tracker = 5; } // ModelVersion message ModelVersion { - reserved 9; + reserved 9, 18; string id = 1; // When the version was created. @@ -1316,8 +1696,7 @@ message ModelVersion { // number of inputs in the model version uint32 total_input_count = 6; - // This is the internal name for the ModelVersion when creating a new model at Clarifai. If you're - // an API user you should not need to interact with this field. + PretrainedModelConfig pretrained_model_config = 7; // Detailed training stats. @@ -1346,32 +1725,34 @@ message ModelVersion { string license = 17; - // Dataset version used to create this model version. - DatasetVersion dataset_version = 18; + // Info about the model's output and configuration. + OutputInfo output_info = 19; + // Info about the models' input and configuration of them. + InputInfo input_info = 20; + // Configuration for the training process of this model. + TrainInfo train_info = 21; + // Configuration used to import model from third-party toolkits + ImportInfo import_info = 22; + string train_log = 23; } // PretrainedModelConfig message PretrainedModelConfig { + reserved 2, 5; // This is the internal id of the pretrained model. - string id = 1; - // This is the internal type of the pretrained model. - string type = 2; // Map from the api.Data field names to the Triton config.pbtxt input. google.protobuf.Struct input_fields_map = 3; // Map from the api.Data field names to the Triton config.pbtxt output. google.protobuf.Struct output_fields_map = 4; - // Preprocessing steps for the model as a json string - string data_provider_params = 5; - // Url to a zipped up model in triton format with only version 1 + // Url to a zipped up model in triton format with the following files and folders at the root: + // config.pbtxt + // version 1 folder that contains model files (onnx graph, torch script, python BE model, and etc.) string model_zip_url = 6; // Whether to overwrite the model for the existing internal id - bool overwrite = 7; } // TrainStats -message TrainStats { - repeated LossCurveEntry loss_curve = 1; -} +message TrainStats { repeated LossCurveEntry loss_curve = 1; } // LossCurveEntry message LossCurveEntry { @@ -1386,16 +1767,13 @@ message LossCurveEntry { // LabelCount message LabelCount { - // FIXME: should move to Concept object and return the whole thing (including name and id) - // otherwise if two concepts have same name then you won't tell them apart in confusion matrix. - string concept_name = 1; + string concept_name = 1 [deprecated = true]; uint32 count = 2; + Concept concept = 3; } // LabelDistribution -message LabelDistribution { - repeated LabelCount positive_label_counts = 1; -} +message LabelDistribution { repeated LabelCount positive_label_counts = 1; } // NOTE: this is inefficient, should just have the order of the rows/cols message CooccurrenceMatrixEntry { @@ -1458,7 +1836,6 @@ message BinaryMetrics { double area_min = 11; double area_max = 12; float iou = 13; - } // TrackerMetrics @@ -1479,9 +1856,7 @@ message TrackerMetrics { // EvalTestSetEntry message EvalTestSetEntry { - // Input CFID - string id = 1 [deprecated = true]; - string url = 2 [deprecated = true]; + reserved 1, 2; Input input = 6; // the input information repeated Concept predicted_concepts = 3; @@ -1491,7 +1866,6 @@ message EvalTestSetEntry { // Each annotation only contains one region // And the concepts is in ground_truth_concepts instead of this annotation Annotation annotation = 5; - } // LOPQEvalResult @@ -1550,7 +1924,17 @@ message MetricsSummary { // EvalMetrics message EvalMetrics { clarifai.api.status.Status status = 1; + // user id that owns this evaluation + string user_id = 15; + // app id that owns this evaluation + string app_id = 16; + // Id of this evaluation string id = 10; + // Model to evaluate + Model model = 13; + // The ground truth dataset + Dataset ground_truth_dataset = 14; + MetricsSummary summary = 2; ConfusionMatrix confusion_matrix = 3; CooccurrenceMatrix cooccurrence_matrix = 4; @@ -1560,6 +1944,10 @@ message EvalMetrics { repeated BinaryMetrics metrics_by_area = 8; repeated BinaryMetrics metrics_by_class = 9; repeated TrackerMetrics tracker_metrics = 11; + + // Evaluation parameters to pass. Expected to match what + // is defined in the model type for the respective model. + EvalInfo eval_info = 12; } // FieldsValue @@ -1640,6 +2028,11 @@ message Hit { string app_id = 5; } +message HitCount { + // The estimated total number of hits for the search query, not just the current page. + uint64 estimated_total = 1; +} + // This is the common building block of a query which is a sequence of And messages ANDed together. // Note that some fields are used too RANK results (affect the scores) and some are used to FILTER // results (unordered subset of your app's contents). In general, FILTER operations are more @@ -1650,6 +2043,24 @@ message And { // This can include human provided concepts, geo location info, metadata, etc. // This is effectively searching over only the trusted annotation attached to an input in your // app. To search by more specific annotation fields use the Annotation object here. + // ########## Supported fields ########## + // - data.concepts[].id + // - data.concepts[].name + // - data.concepts[].value + // - data.geo.geo_box[].geo_point.latitude + // - data.geo.geo_box[].geo_point.longitude + // - data.geo.geo_limit.type + // - data.geo.geo_limit.value + // - data.geo.geo_point.latitude + // - data.geo.geo_point.longitude + // - data.image.url + // - data.metadata - allow search with empty metadata + // note that searching by empty metadata will actually not influence the search results. + // however, in order to be user-friendly, we are still supporting searching by empty metadata. + // - data.metadata.fields - filter by metadata. metadata key&value fields are OR-ed. + // - dataset_ids[] - filter by dataset IDs + // - id - filter by input ID + // - status.code - filter by input status Input input = 1; // RANK based predicted outputs from models such as custom trained models, pre-trained models, // etc. This is also where you enter the image url for a visual search because what we're asking @@ -1662,6 +2073,16 @@ message And { // to the score returned if you search for Output concept "dog" in your query. This provides // a natural ranking to search results based on confidence of predictions from the models and // is used when ANDing multiple of these types of RANK by Output queries together as well. + // + // ########## Supported fields ########## + // - data.clusters[].id + // - data.concepts[].id + // - data.concepts[].name + // - data.concepts[].value + // - input.data.image - empty image is required when searching by input ID + // - input.data.image.base64[] + // - input.data.image.url + // - input.id Output output = 2; // If True then this will flip the meaning of this part of the // query. This allow for queries such as dog AND ! metadata=={"blah":"value"} @@ -1677,6 +2098,33 @@ message And { // Since all the annotations under the hood are joined to the embedding model's annotation // using worker_id's of other models like cluster models or concept models should be // combinable with queries like visual search (a query with Output filled in). + // + // ########## Supported fields ########## + // - annotation_info - allows searching by empty annotation info + // note that searching by empty annotation info will actually not influence the search results. + // however, in order to be user-friendly, we are still supporting searching by empty annotation info. + // - annotation_info.fields - filter by annotation info + // - data.concepts[].id + // - data.concepts[].name + // - data.concepts[].value + // - data.geo.geo_box[].geo_point.latitude + // - data.geo.geo_box[].geo_point.longitude + // - data.geo.geo_limit.type + // - data.geo.geo_limit.value + // - data.geo.geo_point.latitude + // - data.geo.geo_point.longitude + // - data.image.url + // - data.metadata - allow search with empty metadata + // note that searching by empty metadata will actually not influence the search results. + // however, in order to be user-friendly, we are still supporting searching by empty metadata. + // - data.metadata.fields - filter by metadata. metadata key&value fields are OR-ed. + // - input_id + // - input_level + // - model_version_id + // - status.code + // - task_id + // - trusted + // - user_id Annotation annotation = 4; } @@ -1686,7 +2134,10 @@ message And { message Query { // The query syntax is simply a list of And operatiosn that will be ANDed together to fetch // results which are returned to the user as Hit messages. - repeated And ands = 1; + // + // Deprecated: Only used by the deprecated PostSearches endpoint. Use filters + // and ranks instead with PostInputsSearches or PostAnnotationsSearches. + repeated And ands = 1 [deprecated = true]; // This allows the query to override any default language the app was setup in when doing Concept // based searches. This currently only affects public Models Output searches when those public @@ -1750,6 +2201,15 @@ message Search { // To be visible to the public the App that contains it AND the User that contains the App must // also be publicly visible. Visibility visibility = 12; + + // Metric used for search. Can be EUCLIDEAN_DISTANCE (default) or COSINE_DISTANCE. + // Currently only brute force search supports non-eudlicean metrics. + enum Metric { + METRIC_NOT_SET = 0; + EUCLIDEAN_DISTANCE = 1; + COSINE_DISTANCE = 2; + } + Metric metric = 13; } // Filter @@ -1759,10 +2219,51 @@ message Filter { bool negate = 3; // FILTER by annotation information. + // ########## Supported fields ########## + // - annotation_info - allows searching by empty annotation info + // note that searching by empty annotation info will actually not influence the search results. + // however, in order to be user-friendly, we are still supporting searching by empty annotation info. + // - annotation_info.fields - filter by annotation info + // - data.clusters[].id + // - data.concepts[].id + // - data.concepts[].name + // - data.concepts[].value + // - data.frames[].frame_info - filter by frame annotations + // - data.geo.geo_box[].geo_point.latitude + // - data.geo.geo_box[].geo_point.longitude + // - data.geo.geo_limit.type + // - data.geo.geo_limit.value + // - data.geo.geo_point.latitude + // - data.geo.geo_point.longitude + // - data.metadata - allow search with empty metadata + // note that searching by empty metadata will actually not influence the search results. + // however, in order to be user-friendly, we are still supporting searching by empty metadata. + // - data.metadata.fields - filter by metadata. metadata key&value fields are OR-ed. + // - data.regions[].region_info.bounding_box - filter by bounding box annotations + // - data.regions[].region_info.mask - filter by mask annotations + // - data.regions[].region_info.point - filter by point annotations + // - data.regions[].region_info.polygon - filter by polygon annotations + // - data.regions[].region_info.span - filter by span annotations + // - data.text - filter by text annotations + // - data.time_segments[].time_info - filter by time-segment annotations + // - id + // - input_id + // - input_level + // - model_version_id + // - status.code + // - task_id + // - user_id + // - workflow_version_id Annotation annotation = 4; // FILTER by input information. - // For example you can filter inputs by status, + // ########## Supported fields ########## + // - data.audio - filter audio inputs + // - data.image - filter image inputs + // - data.text - filter text inputs + // - data.video - filter video inputs + // - dataset_ids[] - filter by dataset IDs + // - status.code - filter by input status Input input = 5; // Filter by annotation last updated time range. @@ -1772,7 +2273,7 @@ message Filter { // TimeRange message TimeRange { google.protobuf.Timestamp start_time = 1; // Begin of the time range, optional, inclusive. - google.protobuf.Timestamp end_time = 2; // End of the time range, optional, inclusive. + google.protobuf.Timestamp end_time = 2; // End of the time range, optional, inclusive. } // Rank @@ -1782,6 +2283,18 @@ message Rank { bool negate = 3; // RANK by annotation information. + // ########## Supported fields ########## + // - data.concepts[].id + // - data.concepts[].name + // - data.concepts[].value + // - data.embeddings[].num_dimensions + // - data.embeddings[].vector[] + // - data.image.base64[] + // - data.image.url + // - data.lopq_code[] + // - data.text.raw + // - input_id + // - model_version_id Annotation annotation = 4; } @@ -1802,7 +2315,6 @@ message AnnotationSearchMetrics { // active_concept_count is the number of concepts for this evaluation uint32 active_concept_count = 5; - // The visibility field represents whether this message is privately/publicly visible. // To be visible to the public the App that contains it AND the User that contains the App must // also be publicly visible. @@ -1837,6 +2349,7 @@ message TextInfo { + enum APIEventType { API_EVENT_TYPE_NOT_SET = 0; @@ -1859,7 +2372,7 @@ enum UsageIntervalType { // User message User { - reserved 13; + reserved 13, 14; string id = 1; @@ -1881,12 +2394,13 @@ message User { google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; + google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; // To handle arbitrary json metadata you can use a struct field: // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto google.protobuf.Struct metadata = 11 [deprecated = true]; repeated EmailAddress email_addresses = 12 [deprecated = true]; - bool is_org_admin = 14 [deprecated = true]; + bool two_factor_auth_enabled = 15 [deprecated = true]; uint32 teams_count = 16 [deprecated = true]; @@ -1897,7 +2411,6 @@ message User { // Computed value, not editable int32 star_count = 22; - // The visibility field represents whether this message is privately/publicly visible. // To be visible to the public the App that contains it AND the User that contains the App must // also be publicly visible. @@ -1912,16 +2425,19 @@ message User { // This message holds the confidential information from the User object that we don't want to expose // to other users. It will be accessible only from /users/{user_id}/account and with the User scopes. message UserDetail { + reserved 8; + string primary_email = 1; string bill_type = 2; google.protobuf.Timestamp date_gdpr_consent = 3; google.protobuf.Timestamp date_tos_consent = 4; google.protobuf.Timestamp date_marketing_consent = 5; + google.protobuf.Timestamp date_pii_consent = 13; + // To handle arbitrary json metadata you can use a struct field: // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto google.protobuf.Struct metadata = 6; repeated EmailAddress email_addresses = 7; - bool is_org_admin = 8; bool two_factor_auth_enabled = 9; uint32 teams_count = 10; string country = 11; @@ -1999,7 +2515,6 @@ message Video { HostedURL hosted = 6; // video info VideoInfo video_info = 7; - } message VideoInfo { @@ -2053,7 +2568,7 @@ message Workflow { // When the workflow was last modified google.protobuf.Timestamp modified_at = 8; - // Info about the workflow version + // Info about the workflow version used to return the latest version when listing Workflows. WorkflowVersion version = 9; // Is starred by the requesting user (only showed on get/list requests) @@ -2072,6 +2587,13 @@ message Workflow { // Tags from use_cases category repeated string use_cases = 14 [(clarifai.api.utils.cl_show_if_empty) = true]; + + // Tags for check consents + repeated string check_consents = 15 [(clarifai.api.utils.cl_show_if_empty) = true]; + + // bookmark info. When set, this workflow is a bookmarked workflow of this app. + // Info in this field will allow you to find/access original workflow. + BookmarkOrigin bookmark_origin = 16; } // WorkflowVersion @@ -2132,6 +2654,9 @@ message WorkflowNode { repeated NodeInput node_inputs = 3; // suppress the output for workflow prediction bool suppress_output = 4; + // Used to override the output_info.data and output_info.params of the model specified by the node. + // Values for fields_map, message, and output_config are ignored. + OutputInfo output_info_override = 5; } // NodeInput represents inputs to a node of the graph. @@ -2169,25 +2694,40 @@ message WorkflowState { // AppDuplication message AppDuplication { - //the id of app duplication + // the id of app duplication string id = 1; - //the id of new app + // the id of new app. If provided, we will create a new application with this id. If the app id exists, we will return err. + // if new_app_name is empty, the name will be the same as this id. + // You can not set this if existing_app_id is set. string new_app_id = 2; - //the name of new app + // the name of new app. If provided, we will create a new application with this name. + // You can not set this if existing_app_id is set. string new_app_name = 3; - //the status of app duplication + // the status of app duplication clarifai.api.status.Status status = 4; - //when is the app duplication triggered + // when is the app duplication triggered google.protobuf.Timestamp created_at = 5; - //The last time when is the status got updated + // The last time when is the status got updated google.protobuf.Timestamp last_modified_at = 6; // Only copy resources depending on the filters AppDuplicationFilters filter = 7; + // the id of existing app you want to copy data into. + // you can not set this if either new_app_id or new_app_name is set. + // if new_app_id, new_app_name and existing_app_id are all empty, we will create a new app with random app id/name + string existing_app_id = 8; + + // contains progress for each requested filter + repeated AppCopyProgress progress = 9; +} + +message AppCopyProgress { + string field = 1; + int32 value = 2; } // AppDuplicationFilters message AppDuplicationFilters { - // Copy only inputs and default annotations + // Copy inputs what what it depends on: input level annotation and concepts bool copy_inputs = 1; // Copy only concepts bool copy_concepts = 2; @@ -2263,8 +2803,9 @@ message Task { // Worker details. TaskWorker worker = 6; - // List of concept ids used in the work of this task if label type is classification. - repeated string concept_ids = 7; + // List of concept ids used in the work of this task. + // DEPRECATED: Use task.concepts instead. + repeated string concept_ids = 7 [deprecated = true]; // List of inputs used in this task will be taken from this source. TaskInputSource input_source = 8; @@ -2306,6 +2847,16 @@ message Task { string app_id = 16; // The user the task belongs to. string user_id = 17; + + // The label order the task belongs to. + string label_order_id = 18; + + // Ignore Task.concept_ids field if Task.TaskConcept are supplied. + repeated TaskConcept concepts = 19; + + // Specify whether existing Annotations within the same app that are generated by other auto annotation tasks + // with the specified Concept from the selected Model or Workflow should deleted before executing the Task + bool delete_previous_annotations = 20; } // AiAssistParameters @@ -2323,12 +2874,22 @@ message TaskWorker { TaskWorkerStrategy strategy = 1; // Who will work on this task. - repeated string user_ids = 2; + // DEPRECATED: Use users.id instead. + repeated string user_ids = 2 [deprecated = true]; + + // Users who will work on this task. + // When the 'worker.users' field is additionally requested, then all user + // info is filled for the workers. Otherwise, only the user 'id' is filled. + repeated User users = 4; + + // Models that will work on this task. For Auto Annotation Tasks. Currently only supports 1 entry. + repeated Model models = 5; + + // Workflows that will work on this task. For Auto Annotation Tasks. Currently only supports 1 entry. + repeated Workflow workflows = 6; // Info based on the worker strategy, - oneof strategy_info { - TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3; - } + oneof strategy_info { TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3; } enum TaskWorkerStrategy { reserved 1; @@ -2403,6 +2964,8 @@ message TaskInputSource { ALL_INPUTS = 1; // Use the inputs from a saved search. SAVED_SEARCH = 2; + // Inputs from a dataset. + DATASET = 3; } } @@ -2412,7 +2975,13 @@ message TaskReview { TaskReviewStrategy strategy = 1; // Who will review this task. - repeated string user_ids = 2; + // DEPRECATED: Use users.id instead. + repeated string user_ids = 2 [deprecated = true]; + + // Users who will review this task. + // When the 'review.users' field is additionally requested, then all user + // info is filled for the reviewers. Otherwise, only the user 'id' is filled. + repeated User users = 5; // Info based on the review strategy, oneof strategy_info { @@ -2456,8 +3025,6 @@ message TaskAIAssistant { string workflow_id = 1; } - - // TaskStatusCountPerUser can represents count of human created annotations for a user for each valid status, // count of inputs (anchor annotation) for a user for each valid status message TaskStatusCountPerUser { @@ -2469,6 +3036,44 @@ message TaskStatusCountPerUser { uint32 awaiting_consensus_review = 6 [(clarifai.api.utils.cl_show_if_empty) = true]; } +message ThresholdRange { + // The range used to filter over concept values. + // e.g. GREATER_THAN_OR_EQUAL_TO 0.7 -> is_lower_inclusive = true, lower = 0.7, is_upper_inclusive = true, upper = 1.0 + // e.g. (0.3, 0.75] -> is_lower_inclusive = false, lower = 0.3, is_upper_inclusive = true, upper = 0.75 + bool is_lower_inclusive = 1; + bool is_upper_inclusive = 2; + float lower = 3; + float upper = 4; +} + +message TaskConceptAutoAnnotationConfig { + // Filter anontations by their annotation data type. + // This specifies types in an OR fashion, e.g. a `dog` concept that appears as a mask or a bbox. + uint32 annotation_data_types = 1; + + // Filter annotations by concept value. + // Only concepts that fit in the threshold will be used to generate annotations. + ThresholdRange threshold_range = 2; + // The output annotations will be created using this status code. + clarifai.api.status.StatusCode status_code = 3; +} + +message TaskConcept { + // For auto annotation, id/name and value, user + app id must be specified. For other tasks, only the id field is required. + Concept concept = 1; + TaskConceptAutoAnnotationConfig auto_annotation_config = 2; +} +enum AnnotationDataType { + ANNOTATION_DATA_TYPE_NOT_SET = 0; + TAG = 1; + BOUNDING_BOX = 2; + POLYGON = 4; + POINT = 8; + SPAN = 16; + MASK = 32; +} + + enum RoleType { TEAM = 0; ORG = 1; @@ -2481,6 +3086,7 @@ enum RoleType { + // Collector is a data pathway from a CollectorSource to an app to collect data automatically. // For example, a CollectorSource message Collector { @@ -2527,11 +3133,9 @@ message Collector { // Note(zeiler): not yet available, uses only the default workflow that POST /inputs uses. // string workflow_id = 7; - // Status for the collector. This allows you to pause a collector without having to delete it as // an example. clarifai.api.status.Status status = 7; - } // Configuration for the source to collect data from. @@ -2545,8 +3149,6 @@ message CollectorSource { APIPostModelOutputsCollectorSource api_post_model_outputs_collector_source = 2; } - - // This is configuration for using the inputs send for model prediction in our API as // as the source for data. message APIPostModelOutputsCollectorSource { @@ -2682,8 +3284,39 @@ enum StatTimeAggType { +message DatasetInputsSearchAddJob { + // The id of this job + string id = 1; + // When the job was created. + google.protobuf.Timestamp created_at = 2; + // When the job was last modified. + google.protobuf.Timestamp modified_at = 3; + + // Status of the job and rough estimated progress + clarifai.api.status.Status status = 4; + + // Dataset which will receive inputs + string dataset_id = 5; + + // The search that the job uses + Search search = 6; +} + +// PCAProjectionComparator +message PCAProjectionComparator { + // Within what distance do we consider two annotations duplicates + float distance_threshold = 1; + // What cluster model version generated these + string model_version_id = 2; +} + +// DuplicateAnnotationsResults +message DuplicateAnnotationsResults { + repeated string duplicate_cfid = 1; + int32 unique_count = 2; +} // Visibility represents how visible the given resource is to other users. // When authenticating a request we can tell if a user is a collaborator or a teammate for the @@ -2729,6 +3362,13 @@ enum ValidationErrorType { +message FullTag { + // Display name of the tag. Ex. "English" + string name = 1; + // Id value for referencing. Ex. "en" + string id = 2; +} + // TimeSegment message TimeSegment { // A unique id for the time segment. @@ -2753,9 +3393,581 @@ message TimeInfo { +// DatasetStar +message DatasetStar { string dataset_id = 1; } +// ModuleStar +message ModuleStar { + // Module id of the star + string module_id = 1; +} +// An app module that a user created in our app module marketplace. +message Module { + reserved 2; + // A unique ID for this app module. + string id = 1; + // A short description for this app module to be used in grids of modules. + string description = 3; + // When the app module was created. + google.protobuf.Timestamp created_at = 4; + // When the app module was last modified. + google.protobuf.Timestamp modified_at = 5; + + // The visibility field represents whether this message is privately/publicly visible. + // To be visible to the public the App that contains it AND the User that contains the App must + // also be publicly visible. + // Defaults to PRIVATE if not provided. + Visibility visibility = 7; + + // To handle arbitrary json metadata you can use a struct field: + // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto + // This is an optional arg. + google.protobuf.Struct metadata = 8; + + // The creator of the app module. + string user_id = 9; + + // The app_id this module was created in. + string app_id = 10; + + // A ModuleVersion which is used when listing modules to include the latest module version + // in the response. + ModuleVersion module_version = 11; + + // Is starred by the requesting user (only showed on get/list requests) + // Please use PostModuleStars/DeleteModuleStars endpoints to star/unstar a module + bool is_starred = 12; + // How many users have starred the module (only showed on get/list requests) + // Computed value, not editable + int32 star_count = 13; + + // bookmark info. When set, this module is a bookmarked module of this app. + // Info in this field will allow you to find/access original module. + BookmarkOrigin bookmark_origin = 14; +} + +// A specific version of an app module that is available for assigning to apps. +message ModuleVersion { + reserved 5; + // A name for this version like 1_0, 1_1_0, etc. + string id = 1; + // The module this version belongs to. + string module_id = 2; + // The app_id this module version belongs to. + string app_id = 3; + // The user_id this module version belongs to. + string user_id = 4; + // A short description for this version. + string description = 6; + // A markdown formatted string to detailed description of the app module. + // This is within each version so that it can be change version to version. + string notes = 7; + // When the app module version was created. + google.protobuf.Timestamp created_at = 8; + // When the app module version was last modified. + google.protobuf.Timestamp modified_at = 9; + + // The code repo of the streamlit app. + // If you are still developing your Module you should create a ModuleVersion + // with an empty git_commit_url and then create an InstalledModuleVersion + // with a pre-deployed deploy_url (such as localhost or streamlit cloud). + // Once you are ready to create a production, create a new ModuleVersion with + // the ready git url to a specific commit that you would like to be reviewed by the + // Clarifai team for approval within our community. You cannot publish a ModuleVersion + // is reviewed and approved. Please only provide the git_commit_url when you're + // ready for a review. This url needs to include a specific commit, for example: + // https://github.com/user/repo/commit/767ff9c08ba3429c8e7b8825da148555 + string git_commit_url = 10; + + message ModuleSubNav { + // This is the display title for a navbar element to link to a specific page. + // The name for this subnav element to show in the sidebar. + string title = 1; + // The query param name + string query_key = 2; + // The query param value + string query_value = 3; + } + + message ModuleNav { + // This is the left side title for this module and for browser tab title of the module. + // We have this in the version so that users can change those settings + // when releasing a new version of their module. + string title = 1; + + // A list of subnav elements to put under the module title. + repeated ModuleSubNav module_sub_navs = 2; + } + ModuleNav module_nav = 11; + + // A boolean to mark if Clarifai has approved this app version. + // This cannot be set in the request to True. + bool approved = 12; + + // The visibility field represents whether this message is privately/publicly visible. + // To be visible to the public the App that contains it AND the User that contains the App must + // also be publicly visible. + // Defaults to PRIVATE if not provided. + Visibility visibility = 13; + + // To handle arbitrary json metadata you can use a struct field: + // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto + // This is an optional arg. + google.protobuf.Struct metadata = 14; +} + +message InstalledModuleVersion { + // A unique id for this install. This will be used in the browser url. + string id = 1; + // The installed module version provided here so that we users don't need to do an additional + // fetch. When creating a new InstalledModuleVersion you should provide the: + // module_version.user_id + // module_version.app_id + // module_version.module_id + // module_version.id + // in order to uniquely define which module version. + ModuleVersion module_version = 2; + // The app_id the ModuleVersion is installed into (not necessary where the ModuleVersion was + // created). This doesn't have to be provided in requests to install, but will be returned in + // responses. + string app_id = 3; + // The user that the app belongs to where the ModuleVersion is installed into (not necessary where + // the ModuleVersion was created). This doesn't have to be provided in requests to install, but + // will be returned in responses. + string user_id = 4; + // When the install was created. + google.protobuf.Timestamp created_at = 5; + // When the install was last modified. + google.protobuf.Timestamp modified_at = 6; + + // The URL of where this app module version is deployed. + // If you provide this deploy_url when creating the install then it will + // be treated as a pre-deployed module. You can only use a pre-deployed module + // in when installing to an app_id that you own as the creator of the module. + // If you want to install someone elses module or to rely on Clarifai deploying + // your module for you, leave deploy_url empty when creating the install. + // If it is left empty, then deployment will occur when this module version is + // installed into an app using the git_commit_url of the ModuleVersion. + string deploy_url = 7; + + // The visibility field represents whether this message is privately/publicly visible. + // To be visible to the public the App that contains it AND the User that contains the App must + // also be publicly visible. For the InstalledModuleVersion this allows the app owner who + // installed the module version to decide if they want other users of their app to have + // the added functionality that the modules version provides to their app. + // Defaults to PRIVATE if not provided. + Visibility visibility = 8; + + // The key ID to use for making requests to the API for this module. + // This key is associated to this installed module version by PostInstalledModuleVersionsKey + // request. The key is associated with the CALLER not the App Owner where this module is installed + // nor the author of the module. This allows the module to act on behalf of the caller at all + // times so we get proper permissions the caller has (such as if they are stranger, teammate or + // collaborator). This key should be a personal access token to enable modules to work across apps + // and have necessary abilities beyond what app-specific keys offer. + string key_id = 9; +} + +message BulkOperation { + // id of the Bulk Operation task + string id = 1; + + // Input Source could be list of input ids or a Search whose results will be a list of input ids. + // InputIDs: + // List of input ids to which operation to be applied + // clarifai.api.Search: + // A Search(either filter or rank with min value) to allow filtering down the entire app's + // sub-assets(image, region in image, frame in video, region in frame in video) + // and perform operation to only the results of this search query. See our search + // documentation for more details about the search Query message. + // For eg., filters the asset/sub-asset matching the search and performs specified operation. + // Dataset: + // A dataset, whose inputs will have the operation applied to. This does not support dataset versions. + oneof input_source { + InputIDs input_ids = 2; + clarifai.api.Search search = 10; + Dataset dataset = 11; + } + + // Operation to perform + Operation operation = 3; + + // Application ID that this Operation was created from + string app_id = 4; + + // Status (pending, in-progress, completed, failed) of the operation + clarifai.api.status.Status status = 5; + + // Progress of an on-going Bulk Operation task + Progress progress = 6; + + // User id that created this operation + string created_by = 7; + + // When the operation was created. We follow the XXXX timestamp + // format. We use https://www.ietf.org/rfc/rfc3339.txt format: + // "2006-01-02T15:04:05.999999Z" so you can expect results like + // the following from the API: + // "2017-04-11T21:50:50.223962Z" + google.protobuf.Timestamp created_at = 8; + // Last time the status got updated + google.protobuf.Timestamp last_modified_at = 9; +} + +message InputIDs { repeated string input_ids = 1; } + +message Progress { + uint32 processed = 1; + string last_processed_id = 2; +} + +message Operation { + // Bulk Operations supported: + // Concepts: + // Operations: add_concepts, delete_concepts + // AddConcepts: + // If new concepts are given, add concepts operation creates new concepts in the app and adds them to the given inputs' annotations. + // If the given concept already exist, the label value of the concept is updated with the given value. + // DeleteConcepts: + // Remove the matching concept(s) for all the inputs in input source (mentioned above). + // If user IDs are set, concepts will be deleted only from annotations created by given user ids. + // If the user IDs are not set, the list will be automatically set with 1 element that is the caller user ID. + // Input Source: + // Input ids of assets(images) (or) search on sub-assets(region in image, frame in video, region in frame in video) + // Metadata: + // Operations: add_metadata, delete_metadata + // AddMetadata: + // Add the provided metadata to the input level annotation for all the inputs in input source (mentioned above). + // If the key(s) already exists, it will overwrite the key(s) with the corresponding new value(s). + // DeleteMetadata: + // Remove the key, value pairs that match the given metadata from the existing input level Annotations' metadata + // for all the inputs in input source (mentioned above). + // Input Source: + // Input ids of assets(images, videos) (or) search on sub-assets(region in image, frame in video, region in frame in video) + // Geo: + // Operations: overwrite_geo, delete_geo + // OverwriteGeo: + // Add the provided geo info for all the inputs in input source (mentioned above). + // DeleteGeo: + // Delete Geo info for all the inputs in input source (mentioned above). + // Input Source: + // Input ids of assets(images, videos) (or) search on sub-assets(region in image, frame in video, region in frame in video) + // Dataset Inputs: + // Operations: add_to_dataset, delete_from_dataset, split_into_datasets + // AddToDataset: + // Add inputs to a dataset + // DeleteFromDataset: + // Delete inputs from a dataset + // SplitIntoDatasets: + // Randomly split inputs into provided dataset ID's with provided percentages. + oneof operation { + AddConcepts add_concepts = 1; + DeleteConcepts delete_concepts = 2; + AddMetadata add_metadata = 3; + DeleteMetadata delete_metadata = 4; + OverwriteGeo overwrite_geo = 5; + DeleteGeo delete_geo = 6; + DeleteFromDataset delete_from_dataset = 7; + AddToDataset add_to_dataset = 8; + SplitIntoDatasets split_into_datasets = 9; + } +} + +message AddConcepts { repeated Concept concepts = 1; } + +message DeleteConcepts { + repeated Concept concepts = 1; + repeated string user_ids = 2; +} + +message AddMetadata { + // To handle arbitrary json metadata you can use a struct field: + // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto + google.protobuf.Struct metadata = 1; +} + +message DeleteMetadata { + // To handle arbitrary json metadata you can use a struct field: + // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto + google.protobuf.Struct metadata = 1; +} + +message OverwriteGeo { + // Geo info + Geo geo = 1; +} + +message DeleteGeo {} + +message AddToDataset { string dataset_id = 1; } + +message DeleteFromDataset { string dataset_id = 1; } + +message SplitIntoDatasets { + repeated DatasetSplit dataset_splits = 1; + DatasetSplitMethod method = 2; + enum DatasetSplitMethod { + NOT_SET = 0; + // We will randomly split inputs into the datasets + RANDOM_PERCENTAGE_SPLIT = 1; + } +} + +message DatasetSplit { + // Expected to have ID + Dataset dataset = 1; + oneof method_info { + // For RANDOM_PERCENTAGE_SPLIT. + // Values from (0,100] + uint32 percentage = 2; + } +} + + +message InputsAddJob { + reserved 2, 5, 6; + + // id of the job + string id = 1; + + // If call back url is set, we will send a Post request to this endpoint with job status. + string call_back_url = 3; + + // Personal Access Token to the application to which inputs are added + string app_pat = 4; + + // Progress of an on-going Input Ingestion task + InputsAddJobProgress progress = 7; + + // When the job was created. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp created_at = 8; + + // Most recent time when the job was updated. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp modified_at = 9; + + // Sub-jobs that extract inputs from the cloud and/or archives + repeated InputsExtractionJob extraction_jobs = 10; + + // Archive uploads + repeated Upload uploads = 11; + + // Status of the job + clarifai.api.status.Status status = 12; +} + +message InputsAddJobProgress { + uint64 pending_count = 1; + uint64 in_progress_count = 2; + uint64 success_count = 3; + uint64 failed_count = 4; +} + +message Upload { + // ID of upload + string id = 1; + + // When the upload was started. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp created_at = 2; + + // Most recent time when the upload was updated. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp modified_at = 3; + + // When the upload will expire and be deleted + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp expires_at = 4; + + // Status of the upload + clarifai.api.status.Status status = 5; + + // name of uploaded content (e.g. filename) + string content_name = 8; + + // Total size of the upload content + uint64 content_length = 6; + + // Url of uploaded content + string content_url = 7; +} + +message UploadContentPart { + uint64 range_start = 1; + int64 part_number = 2; + bytes data = 3; +} + +// We use this message to communicate with Custom Code Operator Backend. You can use this message +// to test your custom operator code locally. +// We expect the response to come in the format of the MultiOutputResponse protobuf message. +message CustomCodeOperatorRequest { + repeated Input inputs = 1; + + // support arbitrary metadata + google.protobuf.Struct metadata = 1002; +} + +message InputsExtractionJob { + clarifai.api.status.Status status = 1; + + // ID of extraction job + string id = 2; + + // Url of archive or bucket + string url = 3; + + // Progress counts of the job + InputsExtractionJobProgress progress = 4; + + // When the extraction job was started. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp created_at = 5; + + // Most recent time when the extraction job was updated. + // The format is https://www.ietf.org/rfc/rfc3339.txt. + // Example: "2006-01-02T15:04:05.999999Z". + google.protobuf.Timestamp modified_at = 6; + + // How to handle input ID conflicts. + InputIDConflictResolution input_id_conflict_resolution = 7; +} + +message InputsExtractionJobProgress { + reserved 1; + + uint64 audio_inputs_count = 2; + uint64 image_inputs_count = 3; + uint64 video_inputs_count = 4; + uint64 text_inputs_count = 5; + + uint64 pending_archives_count = 6; + uint64 in_progress_archives_count = 7; + uint64 completed_archives_count = 8; + uint64 failed_archives_count = 9; +} + +message InputsDataSource { + // Collect statistics about created inputs in job with given ID. + // On Post call: + // * If job ID is empty, then job is automatically created with random ID. + // * If job ID is non-empty, then a new job will be created with given ID. + string inputs_add_job_id = 1; + + DataSourceURL url = 2; + + // How to handle input ID conflicts. + InputIDConflictResolution input_id_conflict_resolution = 3; +} + +message DataSourceURL { + // Supported providers are AWS S3, Azure blob, GCP cloud storage. + string url = 1; + + // Credentials that would allow access to the provided url + DataSourceCredentials credentials = 2; +} + +message DataSourceCredentials { + reserved 3; + oneof credentials { + // AWS S3 credentials for authentication. + AWSCreds s3_creds = 1; + // GCP Cloud Storage uses service account key data(creds.json) as Byte array for authentication. + bytes gcp_creds = 2; + // Azure Blob credentials for authentication. + AzureBlobCreds azure_blob_creds = 4; + } +} + +// AWS S3 storage credentials. +message AWSCreds { + reserved 1; + + string region = 2; + string id = 3; + string secret = 4; + string token = 5; +} + +// Azure Blob storage credentials. +message AzureBlobCreds { + string account_name = 1; + string account_key = 2; +} + +message InputsUpload { + // Collect statistics about created inputs in job with given ID. + // * If job ID is empty, then job is automatically created with random ID. + // * If job ID is non-empty, then a new job will be created with given ID. + string inputs_add_job_id = 1; + + // Personal Access Token to the application to which inputs are added + string app_pat = 2; + + Upload upload = 3; + + // How to handle input ID conflicts. + InputIDConflictResolution input_id_conflict_resolution = 4; +} +enum InputIDConflictResolution { + INPUT_ID_CONFLICT_RESOLUTION_NOT_SET = 0; // Defaults to SKIP + + SKIP = 1; // Mark duplicate inputs as error and skip processing them. + SUFFIX = 2; // Add a suffix to inputs with conflicting IDs. Attempts numeric suffixes "-1" to "-9" and then a randomized suffix. Identical ID's in the same request are still treated as errors. +} + + +message BookmarkOrigin { + // original resource id + string id = 1; + + // original resource app id + string app_id = 2; + + // original resource user id + string user_id = 3; + + enum BookmarkType { + unknown = 0; + model = 1; + workflow = 2; + dataset = 3; + module = 4; + } + // resource type. + BookmarkType resource_type = 4; +} + +// An app module that a user created in our app module marketplace. +message Runner { + // A unique ID for this app module. + string id = 1; + // A short description for this app module to be used in grids of modules. + string description = 2; + // When the app module was created. + google.protobuf.Timestamp created_at = 3; + // When the app module was last modified. + google.protobuf.Timestamp modified_at = 4; + + // To handle arbitrary json metadata you can use a struct field: + // https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto + // This is an optional arg. + google.protobuf.Struct metadata = 5; + // The creator of the app module. + string user_id = 6; + // Labels to match. + repeated string labels = 7; +} \ No newline at end of file diff --git a/proto/clarifai/api/resources_pb.d.ts b/proto/clarifai/api/resources_pb.d.ts index e64178b..c7bc82f 100644 --- a/proto/clarifai/api/resources_pb.d.ts +++ b/proto/clarifai/api/resources_pb.d.ts @@ -6,72 +6,63 @@ import * as jspb from "google-protobuf"; import * as proto_clarifai_api_status_status_pb from "../../../proto/clarifai/api/status/status_pb"; +import * as proto_clarifai_api_status_status_code_pb from "../../../proto/clarifai/api/status/status_code_pb"; import * as proto_clarifai_api_utils_extensions_pb from "../../../proto/clarifai/api/utils/extensions_pb"; +import * as proto_clarifai_api_utils_matrix_pb from "../../../proto/clarifai/api/utils/matrix_pb"; import * as proto_clarifai_auth_util_extension_pb from "../../../proto/clarifai/auth/util/extension_pb"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; export class Annotation extends jspb.Message { getId(): string; setId(value: string): Annotation; - getInputId(): string; setInputId(value: string): Annotation; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): Annotation; - hasAnnotationInfo(): boolean; clearAnnotationInfo(): void; getAnnotationInfo(): google_protobuf_struct_pb.Struct | undefined; setAnnotationInfo(value?: google_protobuf_struct_pb.Struct): Annotation; - getUserId(): string; setUserId(value: string): Annotation; - getModelVersionId(): string; setModelVersionId(value: string): Annotation; - getEmbedModelVersionId(): string; setEmbedModelVersionId(value: string): Annotation; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): Annotation; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Annotation; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Annotation; - getTrusted(): boolean; setTrusted(value: boolean): Annotation; - getInputLevel(): boolean; setInputLevel(value: boolean): Annotation; - hasConsensusInfo(): boolean; clearConsensusInfo(): void; getConsensusInfo(): google_protobuf_struct_pb.Struct | undefined; setConsensusInfo(value?: google_protobuf_struct_pb.Struct): Annotation; - getTaskId(): string; setTaskId(value: string): Annotation; - + getWorkflowVersionId(): string; + setWorkflowVersionId(value: string): Annotation; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Annotation.AsObject; @@ -99,67 +90,65 @@ export namespace Annotation { inputLevel: boolean, consensusInfo?: google_protobuf_struct_pb.Struct.AsObject, taskId: string, + workflowVersionId: string, } } export class App extends jspb.Message { getId(): string; setId(value: string): App; - getName(): string; setName(value: string): App; - getDefaultLanguage(): string; setDefaultLanguage(value: string): App; - getDefaultWorkflowId(): string; setDefaultWorkflowId(value: string): App; + hasDefaultWorkflow(): boolean; + clearDefaultWorkflow(): void; + getDefaultWorkflow(): Workflow | undefined; + setDefaultWorkflow(value?: Workflow): App; getUserId(): string; setUserId(value: string): App; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): App; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): App; - getLegalConsentStatus(): number; setLegalConsentStatus(value: number): App; - hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): App; - getDescription(): string; setDescription(value: string): App; - getSampleMs(): number; setSampleMs(value: number): App; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): App; - getDataTierId(): string; setDataTierId(value: string): App; - getIsStarred(): boolean; setIsStarred(value: boolean): App; - getStarCount(): number; setStarCount(value: number): App; + getNotes(): string; + setNotes(value: string): App; + hasImage(): boolean; + clearImage(): void; + getImage(): Image | undefined; + setImage(value?: Image): App; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): App.AsObject; @@ -177,6 +166,7 @@ export namespace App { name: string, defaultLanguage: string, defaultWorkflowId: string, + defaultWorkflow?: Workflow.AsObject, userId: string, createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, @@ -188,6 +178,8 @@ export namespace App { dataTierId: string, isStarred: boolean, starCount: number, + notes: string, + image?: Image.AsObject, } } @@ -195,7 +187,6 @@ export class AppQuery extends jspb.Message { getName(): string; setName(value: string): AppQuery; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AppQuery.AsObject; static toObject(includeInstance: boolean, msg: AppQuery): AppQuery.AsObject; @@ -216,47 +207,39 @@ export class Collaborator extends jspb.Message { getId(): string; setId(value: string): Collaborator; - hasApp(): boolean; clearApp(): void; getApp(): App | undefined; setApp(value?: App): Collaborator; - hasUser(): boolean; clearUser(): void; getUser(): User | undefined; setUser(value?: User): Collaborator; - clearScopesList(): void; getScopesList(): Array; setScopesList(value: Array): Collaborator; addScopes(value: string, index?: number): string; - clearEndpointsList(): void; getEndpointsList(): Array; setEndpointsList(value: Array): Collaborator; addEndpoints(value: string, index?: number): string; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Collaborator; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Collaborator; - hasDeletedAt(): boolean; clearDeletedAt(): void; getDeletedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setDeletedAt(value?: google_protobuf_timestamp_pb.Timestamp): Collaborator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Collaborator.AsObject; static toObject(includeInstance: boolean, msg: Collaborator): Collaborator.AsObject; @@ -287,29 +270,24 @@ export class Collaboration extends jspb.Message { getApp(): App | undefined; setApp(value?: App): Collaboration; - hasAppOwner(): boolean; clearAppOwner(): void; getAppOwner(): User | undefined; setAppOwner(value?: User): Collaboration; - clearScopesList(): void; getScopesList(): Array; setScopesList(value: Array): Collaboration; addScopes(value: string, index?: number): string; - clearEndpointsList(): void; getEndpointsList(): Array; setEndpointsList(value: Array): Collaboration; addEndpoints(value: string, index?: number): string; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Collaboration; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Collaboration.AsObject; static toObject(includeInstance: boolean, msg: Collaboration): Collaboration.AsObject; @@ -333,28 +311,23 @@ export namespace Collaboration { export class Audio extends jspb.Message { getUrl(): string; setUrl(value: string): Audio; - getBase64(): Uint8Array | string; getBase64_asU8(): Uint8Array; getBase64_asB64(): string; setBase64(value: Uint8Array | string): Audio; - getAllowDuplicateUrl(): boolean; setAllowDuplicateUrl(value: boolean): Audio; - hasHosted(): boolean; clearHosted(): void; getHosted(): HostedURL | undefined; setHosted(value?: HostedURL): Audio; - hasAudioInfo(): boolean; clearAudioInfo(): void; getAudioInfo(): AudioInfo | undefined; setAudioInfo(value?: AudioInfo): Audio; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Audio.AsObject; static toObject(includeInstance: boolean, msg: Audio): Audio.AsObject; @@ -378,17 +351,13 @@ export namespace Audio { export class AudioInfo extends jspb.Message { getAudioFormat(): string; setAudioFormat(value: string): AudioInfo; - getSampleRate(): number; setSampleRate(value: number): AudioInfo; - getDurationSeconds(): number; setDurationSeconds(value: number): AudioInfo; - getBitRate(): number; setBitRate(value: number): AudioInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AudioInfo.AsObject; static toObject(includeInstance: boolean, msg: AudioInfo): AudioInfo.AsObject; @@ -412,22 +381,18 @@ export class Track extends jspb.Message { getId(): string; setId(value: string): Track; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): Track; - hasTimeInfo(): boolean; clearTimeInfo(): void; getTimeInfo(): TimeInfo | undefined; setTimeInfo(value?: TimeInfo): Track; - getQuality(): number; setQuality(value: number): Track; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Track.AsObject; static toObject(includeInstance: boolean, msg: Track): Track.AsObject; @@ -450,24 +415,19 @@ export namespace Track { export class Cluster extends jspb.Message { getId(): string; setId(value: string): Cluster; - getCount(): number; setCount(value: number): Cluster; - getScore(): number; setScore(value: number): Cluster; - clearHitsList(): void; getHitsList(): Array; setHitsList(value: Array): Cluster; addHits(value?: Hit, index?: number): Hit; - clearProjectionList(): void; getProjectionList(): Array; setProjectionList(value: Array): Cluster; addProjection(value: number, index?: number): number; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Cluster.AsObject; static toObject(includeInstance: boolean, msg: Cluster): Cluster.AsObject; @@ -492,16 +452,13 @@ export class Color extends jspb.Message { getRawHex(): string; setRawHex(value: string): Color; - hasW3c(): boolean; clearW3c(): void; getW3c(): W3C | undefined; setW3c(value?: W3C): Color; - getValue(): number; setValue(value: number): Color; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Color.AsObject; static toObject(includeInstance: boolean, msg: Color): Color.AsObject; @@ -523,11 +480,9 @@ export namespace Color { export class W3C extends jspb.Message { getHex(): string; setHex(value: string): W3C; - getName(): string; setName(value: string): W3C; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): W3C.AsObject; static toObject(includeInstance: boolean, msg: W3C): W3C.AsObject; @@ -548,11 +503,9 @@ export namespace W3C { export class UserAppIDSet extends jspb.Message { getUserId(): string; setUserId(value: string): UserAppIDSet; - getAppId(): string; setAppId(value: string): UserAppIDSet; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UserAppIDSet.AsObject; static toObject(includeInstance: boolean, msg: UserAppIDSet): UserAppIDSet.AsObject; @@ -573,14 +526,11 @@ export namespace UserAppIDSet { export class PatchAction extends jspb.Message { getOp(): string; setOp(value: string): PatchAction; - getMergeConflictResolution(): string; setMergeConflictResolution(value: string): PatchAction; - getPath(): string; setPath(value: string): PatchAction; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchAction.AsObject; static toObject(includeInstance: boolean, msg: PatchAction): PatchAction.AsObject; @@ -602,40 +552,35 @@ export namespace PatchAction { export class Concept extends jspb.Message { getId(): string; setId(value: string): Concept; - getName(): string; setName(value: string): Concept; - getValue(): number; setValue(value: number): Concept; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Concept; - getLanguage(): string; setLanguage(value: string): Concept; - getAppId(): string; setAppId(value: string): Concept; - getDefinition(): string; setDefinition(value: string): Concept; - getVocabId(): string; setVocabId(value: string): Concept; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): Concept; - getUserId(): string; setUserId(value: string): Concept; + hasKeypointInfo(): boolean; + clearKeypointInfo(): void; + getKeypointInfo(): KeypointInfo | undefined; + setKeypointInfo(value?: KeypointInfo): Concept; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Concept.AsObject; @@ -659,29 +604,76 @@ export namespace Concept { vocabId: string, visibility?: Visibility.AsObject, userId: string, + keypointInfo?: KeypointInfo.AsObject, + } +} + +export class KeypointInfo extends jspb.Message { + clearKeypointNamesList(): void; + getKeypointNamesList(): Array; + setKeypointNamesList(value: Array): KeypointInfo; + addKeypointNames(value: string, index?: number): string; + clearSkeletonList(): void; + getSkeletonList(): Array; + setSkeletonList(value: Array): KeypointInfo; + addSkeleton(value?: KeypointEdge, index?: number): KeypointEdge; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KeypointInfo.AsObject; + static toObject(includeInstance: boolean, msg: KeypointInfo): KeypointInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: KeypointInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KeypointInfo; + static deserializeBinaryFromReader(message: KeypointInfo, reader: jspb.BinaryReader): KeypointInfo; +} + +export namespace KeypointInfo { + export type AsObject = { + keypointNamesList: Array, + skeletonList: Array, + } +} + +export class KeypointEdge extends jspb.Message { + getK1(): number; + setK1(value: number): KeypointEdge; + getK2(): number; + setK2(value: number): KeypointEdge; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KeypointEdge.AsObject; + static toObject(includeInstance: boolean, msg: KeypointEdge): KeypointEdge.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: KeypointEdge, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KeypointEdge; + static deserializeBinaryFromReader(message: KeypointEdge, reader: jspb.BinaryReader): KeypointEdge; +} + +export namespace KeypointEdge { + export type AsObject = { + k1: number, + k2: number, } } export class ConceptCount extends jspb.Message { getId(): string; setId(value: string): ConceptCount; - getName(): string; setName(value: string): ConceptCount; - hasConceptTypeCount(): boolean; clearConceptTypeCount(): void; getConceptTypeCount(): ConceptTypeCount | undefined; setConceptTypeCount(value?: ConceptTypeCount): ConceptCount; - hasDetailConceptCount(): boolean; clearDetailConceptCount(): void; getDetailConceptCount(): DetailConceptCount | undefined; setDetailConceptCount(value?: DetailConceptCount): ConceptCount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConceptCount.AsObject; static toObject(includeInstance: boolean, msg: ConceptCount): ConceptCount.AsObject; @@ -704,11 +696,9 @@ export namespace ConceptCount { export class ConceptTypeCount extends jspb.Message { getPositive(): number; setPositive(value: number): ConceptTypeCount; - getNegative(): number; setNegative(value: number): ConceptTypeCount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConceptTypeCount.AsObject; static toObject(includeInstance: boolean, msg: ConceptTypeCount): ConceptTypeCount.AsObject; @@ -733,25 +723,21 @@ export class DetailConceptCount extends jspb.Message { getProcessed(): ConceptTypeCount | undefined; setProcessed(value?: ConceptTypeCount): DetailConceptCount; - hasToProcess(): boolean; clearToProcess(): void; getToProcess(): ConceptTypeCount | undefined; setToProcess(value?: ConceptTypeCount): DetailConceptCount; - hasErrors(): boolean; clearErrors(): void; getErrors(): ConceptTypeCount | undefined; setErrors(value?: ConceptTypeCount): DetailConceptCount; - hasProcessing(): boolean; clearProcessing(): void; getProcessing(): ConceptTypeCount | undefined; setProcessing(value?: ConceptTypeCount): DetailConceptCount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DetailConceptCount.AsObject; static toObject(includeInstance: boolean, msg: DetailConceptCount): DetailConceptCount.AsObject; @@ -774,14 +760,11 @@ export namespace DetailConceptCount { export class ConceptQuery extends jspb.Message { getName(): string; setName(value: string): ConceptQuery; - getLanguage(): string; setLanguage(value: string): ConceptQuery; - getWorkflowId(): string; setWorkflowId(value: string): ConceptQuery; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConceptQuery.AsObject; static toObject(includeInstance: boolean, msg: ConceptQuery): ConceptQuery.AsObject; @@ -804,31 +787,25 @@ export class ConceptRelation extends jspb.Message { getId(): string; setId(value: string): ConceptRelation; - hasSubjectConcept(): boolean; clearSubjectConcept(): void; getSubjectConcept(): Concept | undefined; setSubjectConcept(value?: Concept): ConceptRelation; - hasObjectConcept(): boolean; clearObjectConcept(): void; getObjectConcept(): Concept | undefined; setObjectConcept(value?: Concept): ConceptRelation; - getPredicate(): string; setPredicate(value: string): ConceptRelation; - getKnowledgeGraphId(): string; setKnowledgeGraphId(value: string): ConceptRelation; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): ConceptRelation; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConceptRelation.AsObject; static toObject(includeInstance: boolean, msg: ConceptRelation): ConceptRelation.AsObject; @@ -853,20 +830,15 @@ export namespace ConceptRelation { export class KnowledgeGraph extends jspb.Message { getId(): string; setId(value: string): KnowledgeGraph; - getName(): string; setName(value: string): KnowledgeGraph; - getDescription(): string; setDescription(value: string): KnowledgeGraph; - getExamplesAppId(): string; setExamplesAppId(value: string): KnowledgeGraph; - getSampledExamplesAppId(): string; setSampledExamplesAppId(value: string): KnowledgeGraph; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): KnowledgeGraph.AsObject; static toObject(includeInstance: boolean, msg: KnowledgeGraph): KnowledgeGraph.AsObject; @@ -890,13 +862,11 @@ export namespace KnowledgeGraph { export class ConceptMappingJob extends jspb.Message { getKnowledgeGraphId(): string; setKnowledgeGraphId(value: string): ConceptMappingJob; - clearConceptIdsList(): void; getConceptIdsList(): Array; setConceptIdsList(value: Array): ConceptMappingJob; addConceptIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConceptMappingJob.AsObject; static toObject(includeInstance: boolean, msg: ConceptMappingJob): ConceptMappingJob.AsObject; @@ -917,14 +887,11 @@ export namespace ConceptMappingJob { export class ConceptLanguage extends jspb.Message { getId(): string; setId(value: string): ConceptLanguage; - getName(): string; setName(value: string): ConceptLanguage; - getDefinition(): string; setDefinition(value: string): ConceptLanguage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConceptLanguage.AsObject; static toObject(includeInstance: boolean, msg: ConceptLanguage): ConceptLanguage.AsObject; @@ -950,81 +917,70 @@ export class Data extends jspb.Message { getImage(): Image | undefined; setImage(value?: Image): Data; - hasVideo(): boolean; clearVideo(): void; getVideo(): Video | undefined; setVideo(value?: Video): Data; - clearConceptsList(): void; getConceptsList(): Array; setConceptsList(value: Array): Data; addConcepts(value?: Concept, index?: number): Concept; - hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): Data; - hasGeo(): boolean; clearGeo(): void; getGeo(): Geo | undefined; setGeo(value?: Geo): Data; - clearColorsList(): void; getColorsList(): Array; setColorsList(value: Array): Data; addColors(value?: Color, index?: number): Color; - clearClustersList(): void; getClustersList(): Array; setClustersList(value: Array): Data; addClusters(value?: Cluster, index?: number): Cluster; - clearEmbeddingsList(): void; getEmbeddingsList(): Array; setEmbeddingsList(value: Array): Data; addEmbeddings(value?: Embedding, index?: number): Embedding; - clearRegionsList(): void; getRegionsList(): Array; setRegionsList(value: Array): Data; addRegions(value?: Region, index?: number): Region; - clearFramesList(): void; getFramesList(): Array; setFramesList(value: Array): Data; addFrames(value?: Frame, index?: number): Frame; - hasText(): boolean; clearText(): void; getText(): Text | undefined; setText(value?: Text): Data; - hasAudio(): boolean; clearAudio(): void; getAudio(): Audio | undefined; setAudio(value?: Audio): Data; - clearTracksList(): void; getTracksList(): Array; setTracksList(value: Array): Data; addTracks(value?: Track, index?: number): Track; - clearTimeSegmentsList(): void; getTimeSegmentsList(): Array; setTimeSegmentsList(value: Array): Data; addTimeSegments(value?: TimeSegment, index?: number): TimeSegment; - clearHitsList(): void; getHitsList(): Array; setHitsList(value: Array): Data; addHits(value?: Hit, index?: number): Hit; - + clearHeatmapsList(): void; + getHeatmapsList(): Array; + setHeatmapsList(value: Array): Data; + addHeatmaps(value?: Image, index?: number): Image; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Data.AsObject; @@ -1053,6 +1009,7 @@ export namespace Data { tracksList: Array, timeSegmentsList: Array, hitsList: Array, + heatmapsList: Array, } } @@ -1060,25 +1017,20 @@ export class Region extends jspb.Message { getId(): string; setId(value: string): Region; - hasRegionInfo(): boolean; clearRegionInfo(): void; getRegionInfo(): RegionInfo | undefined; setRegionInfo(value?: RegionInfo): Region; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): Region; - getValue(): number; setValue(value: number): Region; - getTrackId(): string; setTrackId(value: string): Region; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Region.AsObject; static toObject(includeInstance: boolean, msg: Region): Region.AsObject; @@ -1106,24 +1058,34 @@ export class RegionInfo extends jspb.Message { getBoundingBox(): BoundingBox | undefined; setBoundingBox(value?: BoundingBox): RegionInfo; - hasMask(): boolean; clearMask(): void; getMask(): Mask | undefined; setMask(value?: Mask): RegionInfo; - hasPolygon(): boolean; clearPolygon(): void; getPolygon(): Polygon | undefined; setPolygon(value?: Polygon): RegionInfo; - hasPoint(): boolean; clearPoint(): void; getPoint(): Point | undefined; setPoint(value?: Point): RegionInfo; + hasSpan(): boolean; + clearSpan(): void; + getSpan(): Span | undefined; + setSpan(value?: Span): RegionInfo; + + hasToken(): boolean; + clearToken(): void; + getToken(): Token | undefined; + setToken(value?: Token): RegionInfo; + clearKeypointLocationsList(): void; + getKeypointLocationsList(): Array; + setKeypointLocationsList(value: Array): RegionInfo; + addKeypointLocations(value?: Point, index?: number): Point; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): RegionInfo.AsObject; @@ -1141,23 +1103,22 @@ export namespace RegionInfo { mask?: Mask.AsObject, polygon?: Polygon.AsObject, point?: Point.AsObject, + span?: Span.AsObject, + token?: Token.AsObject, + keypointLocationsList: Array, } } export class BoundingBox extends jspb.Message { getTopRow(): number; setTopRow(value: number): BoundingBox; - getLeftCol(): number; setLeftCol(value: number): BoundingBox; - getBottomRow(): number; setBottomRow(value: number): BoundingBox; - getRightCol(): number; setRightCol(value: number): BoundingBox; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BoundingBox.AsObject; static toObject(includeInstance: boolean, msg: BoundingBox): BoundingBox.AsObject; @@ -1180,11 +1141,9 @@ export namespace BoundingBox { export class FrameInfo extends jspb.Message { getIndex(): number; setIndex(value: number): FrameInfo; - getTime(): number; setTime(value: number): FrameInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FrameInfo.AsObject; static toObject(includeInstance: boolean, msg: FrameInfo): FrameInfo.AsObject; @@ -1209,16 +1168,13 @@ export class Frame extends jspb.Message { getFrameInfo(): FrameInfo | undefined; setFrameInfo(value?: FrameInfo): Frame; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): Frame; - getId(): string; setId(value: string): Frame; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Frame.AsObject; static toObject(includeInstance: boolean, msg: Frame): Frame.AsObject; @@ -1244,7 +1200,6 @@ export class Mask extends jspb.Message { getImage(): Image | undefined; setImage(value?: Image): Mask; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Mask.AsObject; static toObject(includeInstance: boolean, msg: Mask): Mask.AsObject; @@ -1267,7 +1222,6 @@ export class Polygon extends jspb.Message { setPointsList(value: Array): Polygon; addPoints(value?: Point, index?: number): Point; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Polygon.AsObject; static toObject(includeInstance: boolean, msg: Polygon): Polygon.AsObject; @@ -1287,13 +1241,12 @@ export namespace Polygon { export class Point extends jspb.Message { getRow(): number; setRow(value: number): Point; - getCol(): number; setCol(value: number): Point; - getZ(): number; setZ(value: number): Point; - + getVisibility(): Point.Visibility; + setVisibility(value: Point.Visibility): Point; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Point.AsObject; @@ -1310,6 +1263,67 @@ export namespace Point { row: number, col: number, z: number, + visibility: Point.Visibility, + } + + export enum Visibility { + NOT_SET = 0, + VISIBLE = 1, + NOT_VISIBLE = 2, + NOT_PRESENT = 3, + } + +} + +export class Span extends jspb.Message { + getCharStart(): number; + setCharStart(value: number): Span; + getCharEnd(): number; + setCharEnd(value: number): Span; + getRawText(): string; + setRawText(value: string): Span; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Span.AsObject; + static toObject(includeInstance: boolean, msg: Span): Span.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Span, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Span; + static deserializeBinaryFromReader(message: Span, reader: jspb.BinaryReader): Span; +} + +export namespace Span { + export type AsObject = { + charStart: number, + charEnd: number, + rawText: string, + } +} + +export class Token extends jspb.Message { + getCharStart(): number; + setCharStart(value: number): Token; + getCharEnd(): number; + setCharEnd(value: number): Token; + getRawText(): string; + setRawText(value: string): Token; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Token.AsObject; + static toObject(includeInstance: boolean, msg: Token): Token.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Token, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Token; + static deserializeBinaryFromReader(message: Token, reader: jspb.BinaryReader): Token; +} + +export namespace Token { + export type AsObject = { + charStart: number, + charEnd: number, + rawText: string, } } @@ -1318,11 +1332,9 @@ export class Embedding extends jspb.Message { getVectorList(): Array; setVectorList(value: Array): Embedding; addVector(value: number, index?: number): number; - getNumDimensions(): number; setNumDimensions(value: number): Embedding; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Embedding.AsObject; static toObject(includeInstance: boolean, msg: Embedding): Embedding.AsObject; @@ -1343,11 +1355,9 @@ export namespace Embedding { export class GeoPoint extends jspb.Message { getLongitude(): number; setLongitude(value: number): GeoPoint; - getLatitude(): number; setLatitude(value: number): GeoPoint; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GeoPoint.AsObject; static toObject(includeInstance: boolean, msg: GeoPoint): GeoPoint.AsObject; @@ -1368,11 +1378,9 @@ export namespace GeoPoint { export class GeoLimit extends jspb.Message { getType(): string; setType(value: string): GeoLimit; - getValue(): number; setValue(value: number): GeoLimit; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GeoLimit.AsObject; static toObject(includeInstance: boolean, msg: GeoLimit): GeoLimit.AsObject; @@ -1397,7 +1405,6 @@ export class GeoBoxedPoint extends jspb.Message { getGeoPoint(): GeoPoint | undefined; setGeoPoint(value?: GeoPoint): GeoBoxedPoint; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GeoBoxedPoint.AsObject; static toObject(includeInstance: boolean, msg: GeoBoxedPoint): GeoBoxedPoint.AsObject; @@ -1421,18 +1428,15 @@ export class Geo extends jspb.Message { getGeoPoint(): GeoPoint | undefined; setGeoPoint(value?: GeoPoint): Geo; - hasGeoLimit(): boolean; clearGeoLimit(): void; getGeoLimit(): GeoLimit | undefined; setGeoLimit(value?: GeoLimit): Geo; - clearGeoBoxList(): void; getGeoBoxList(): Array; setGeoBoxList(value: Array): Geo; addGeoBox(value?: GeoBoxedPoint, index?: number): GeoBoxedPoint; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Geo.AsObject; static toObject(includeInstance: boolean, msg: Geo): Geo.AsObject; @@ -1454,28 +1458,23 @@ export namespace Geo { export class Image extends jspb.Message { getUrl(): string; setUrl(value: string): Image; - getBase64(): Uint8Array | string; getBase64_asU8(): Uint8Array; getBase64_asB64(): string; setBase64(value: Uint8Array | string): Image; - getAllowDuplicateUrl(): boolean; setAllowDuplicateUrl(value: boolean): Image; - hasHosted(): boolean; clearHosted(): void; getHosted(): HostedURL | undefined; setHosted(value?: HostedURL): Image; - hasImageInfo(): boolean; clearImageInfo(): void; getImageInfo(): ImageInfo | undefined; setImageInfo(value?: ImageInfo): Image; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Image.AsObject; static toObject(includeInstance: boolean, msg: Image): Image.AsObject; @@ -1499,17 +1498,13 @@ export namespace Image { export class ImageInfo extends jspb.Message { getWidth(): number; setWidth(value: number): ImageInfo; - getHeight(): number; setHeight(value: number): ImageInfo; - getFormat(): string; setFormat(value: string): ImageInfo; - getColorMode(): string; setColorMode(value: string): ImageInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ImageInfo.AsObject; static toObject(includeInstance: boolean, msg: ImageInfo): ImageInfo.AsObject; @@ -1532,19 +1527,15 @@ export namespace ImageInfo { export class HostedURL extends jspb.Message { getPrefix(): string; setPrefix(value: string): HostedURL; - getSuffix(): string; setSuffix(value: string): HostedURL; - clearSizesList(): void; getSizesList(): Array; setSizesList(value: Array): HostedURL; addSizes(value: string, index?: number): string; - getCrossorigin(): string; setCrossorigin(value: string): HostedURL; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): HostedURL.AsObject; static toObject(includeInstance: boolean, msg: HostedURL): HostedURL.AsObject; @@ -1568,36 +1559,30 @@ export class Input extends jspb.Message { getId(): string; setId(value: string): Input; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): Input; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Input; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Input; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): Input; - clearDatasetIdsList(): void; getDatasetIdsList(): Array; setDatasetIdsList(value: Array): Input; addDatasetIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Input.AsObject; static toObject(includeInstance: boolean, msg: Input): Input.AsObject; @@ -1619,32 +1604,46 @@ export namespace Input { } } +export class InputBatch extends jspb.Message { + clearInputsList(): void; + getInputsList(): Array; + setInputsList(value: Array): InputBatch; + addInputs(value?: Input, index?: number): Input; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputBatch.AsObject; + static toObject(includeInstance: boolean, msg: InputBatch): InputBatch.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputBatch, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputBatch; + static deserializeBinaryFromReader(message: InputBatch, reader: jspb.BinaryReader): InputBatch; +} + +export namespace InputBatch { + export type AsObject = { + inputsList: Array, + } +} + export class InputCount extends jspb.Message { getProcessed(): number; setProcessed(value: number): InputCount; - getToProcess(): number; setToProcess(value: number): InputCount; - getErrors(): number; setErrors(value: number): InputCount; - getProcessing(): number; setProcessing(value: number): InputCount; - getReindexed(): number; setReindexed(value: number): InputCount; - getToReindex(): number; setToReindex(value: number): InputCount; - getReindexErrors(): number; setReindexErrors(value: number): InputCount; - getReindexing(): number; setReindexing(value: number): InputCount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): InputCount.AsObject; static toObject(includeInstance: boolean, msg: InputCount): InputCount.AsObject; @@ -1668,124 +1667,229 @@ export namespace InputCount { } } -export class DatasetFilter extends jspb.Message { +export class Dataset extends jspb.Message { getId(): string; - setId(value: string): DatasetFilter; - + setId(value: string): Dataset; hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DatasetFilter; - + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Dataset; hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; - setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): DatasetFilter; - + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Dataset; + getAppId(): string; + setAppId(value: string): Dataset; getUserId(): string; - setUserId(value: string): DatasetFilter; + setUserId(value: string): Dataset; + getDescription(): string; + setDescription(value: string): Dataset; - getAppId(): string; - setAppId(value: string): DatasetFilter; + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): Dataset; - getDatasetId(): string; - setDatasetId(value: string): DatasetFilter; + hasVisibility(): boolean; + clearVisibility(): void; + getVisibility(): Visibility | undefined; + setVisibility(value?: Visibility): Dataset; + hasDefaultAnnotationFilter(): boolean; + clearDefaultAnnotationFilter(): void; + getDefaultAnnotationFilter(): AnnotationFilter | undefined; + setDefaultAnnotationFilter(value?: AnnotationFilter): Dataset; - hasSavedSearch(): boolean; - clearSavedSearch(): void; - getSavedSearch(): Search | undefined; - setSavedSearch(value?: Search): DatasetFilter; + hasDefaultProcessingInfo(): boolean; + clearDefaultProcessingInfo(): void; + getDefaultProcessingInfo(): DatasetVersionProcessingInfo | undefined; + setDefaultProcessingInfo(value?: DatasetVersionProcessingInfo): Dataset; + getNotes(): string; + setNotes(value: string): Dataset; + + hasVersion(): boolean; + clearVersion(): void; + getVersion(): DatasetVersion | undefined; + setVersion(value?: DatasetVersion): Dataset; + getIsStarred(): boolean; + setIsStarred(value: boolean): Dataset; + getStarCount(): number; + setStarCount(value: number): Dataset; + + hasBookmarkOrigin(): boolean; + clearBookmarkOrigin(): void; + getBookmarkOrigin(): BookmarkOrigin | undefined; + setBookmarkOrigin(value?: BookmarkOrigin): Dataset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Dataset.AsObject; + static toObject(includeInstance: boolean, msg: Dataset): Dataset.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Dataset, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Dataset; + static deserializeBinaryFromReader(message: Dataset, reader: jspb.BinaryReader): Dataset; +} + +export namespace Dataset { + export type AsObject = { + id: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + appId: string, + userId: string, + description: string, + metadata?: google_protobuf_struct_pb.Struct.AsObject, + visibility?: Visibility.AsObject, + defaultAnnotationFilter?: AnnotationFilter.AsObject, + defaultProcessingInfo?: DatasetVersionProcessingInfo.AsObject, + notes: string, + version?: DatasetVersion.AsObject, + isStarred: boolean, + starCount: number, + bookmarkOrigin?: BookmarkOrigin.AsObject, + } +} + +export class AnnotationFilter extends jspb.Message { + getId(): string; + setId(value: string): AnnotationFilter; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): AnnotationFilter; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): AnnotationFilter; + getUserId(): string; + setUserId(value: string): AnnotationFilter; + getAppId(): string; + setAppId(value: string): AnnotationFilter; + hasSavedSearch(): boolean; + clearSavedSearch(): void; + getSavedSearch(): Search | undefined; + setSavedSearch(value?: Search): AnnotationFilter; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DatasetFilter.AsObject; - static toObject(includeInstance: boolean, msg: DatasetFilter): DatasetFilter.AsObject; + toObject(includeInstance?: boolean): AnnotationFilter.AsObject; + static toObject(includeInstance: boolean, msg: AnnotationFilter): AnnotationFilter.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DatasetFilter, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DatasetFilter; - static deserializeBinaryFromReader(message: DatasetFilter, reader: jspb.BinaryReader): DatasetFilter; + static serializeBinaryToWriter(message: AnnotationFilter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AnnotationFilter; + static deserializeBinaryFromReader(message: AnnotationFilter, reader: jspb.BinaryReader): AnnotationFilter; } -export namespace DatasetFilter { +export namespace AnnotationFilter { export type AsObject = { id: string, createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, userId: string, appId: string, - datasetId: string, savedSearch?: Search.AsObject, } } +export class DatasetInput extends jspb.Message { + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DatasetInput; + + hasInput(): boolean; + clearInput(): void; + getInput(): Input | undefined; + setInput(value?: Input): DatasetInput; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetInput.AsObject; + static toObject(includeInstance: boolean, msg: DatasetInput): DatasetInput.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetInput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetInput; + static deserializeBinaryFromReader(message: DatasetInput, reader: jspb.BinaryReader): DatasetInput; +} + +export namespace DatasetInput { + export type AsObject = { + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + input?: Input.AsObject, + } +} + export class DatasetVersion extends jspb.Message { getId(): string; setId(value: string): DatasetVersion; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DatasetVersion; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): DatasetVersion; - getAppId(): string; setAppId(value: string): DatasetVersion; - getUserId(): string; setUserId(value: string): DatasetVersion; - getDatasetId(): string; setDatasetId(value: string): DatasetVersion; + hasAnnotationFilterConfig(): boolean; + clearAnnotationFilterConfig(): void; + getAnnotationFilterConfig(): AnnotationFilterConfig | undefined; + setAnnotationFilterConfig(value?: AnnotationFilterConfig): DatasetVersion; - hasDatasetFilterConfig(): boolean; - clearDatasetFilterConfig(): void; - getDatasetFilterConfig(): DatasetVersionDatasetFilterConfig | undefined; - setDatasetFilterConfig(value?: DatasetVersionDatasetFilterConfig): DatasetVersion; - + hasModelPredictConfig(): boolean; + clearModelPredictConfig(): void; + getModelPredictConfig(): ModelPredictConfig | undefined; + setModelPredictConfig(value?: ModelPredictConfig): DatasetVersion; hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): DatasetVersion; - getDescription(): string; setDescription(value: string): DatasetVersion; + hasProcessingInfo(): boolean; + clearProcessingInfo(): void; + getProcessingInfo(): DatasetVersionProcessingInfo | undefined; + setProcessingInfo(value?: DatasetVersionProcessingInfo): DatasetVersion; - hasMetrics(): boolean; - clearMetrics(): void; - getMetrics(): DatasetVersionMetrics | undefined; - setMetrics(value?: DatasetVersionMetrics): DatasetVersion; + getMetricsMap(): jspb.Map; + clearMetricsMap(): void; + hasExportInfo(): boolean; + clearExportInfo(): void; + getExportInfo(): DatasetVersionExportInfo | undefined; + setExportInfo(value?: DatasetVersionExportInfo): DatasetVersion; hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): DatasetVersion; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): DatasetVersion; - clearEmbedModelVersionIdsList(): void; getEmbedModelVersionIdsList(): Array; setEmbedModelVersionIdsList(value: Array): DatasetVersion; addEmbedModelVersionIds(value: string, index?: number): string; - getDataConfigCase(): DatasetVersion.DataConfigCase; serializeBinary(): Uint8Array; @@ -1806,10 +1910,14 @@ export namespace DatasetVersion { appId: string, userId: string, datasetId: string, - datasetFilterConfig?: DatasetVersionDatasetFilterConfig.AsObject, + annotationFilterConfig?: AnnotationFilterConfig.AsObject, + modelPredictConfig?: ModelPredictConfig.AsObject, status?: proto_clarifai_api_status_status_pb.Status.AsObject, description: string, - metrics?: DatasetVersionMetrics.AsObject, + processingInfo?: DatasetVersionProcessingInfo.AsObject, + + metricsMap: Array<[string, DatasetVersionMetrics.AsObject]>, + exportInfo?: DatasetVersionExportInfo.AsObject, metadata?: google_protobuf_struct_pb.Struct.AsObject, visibility?: Visibility.AsObject, embedModelVersionIdsList: Array, @@ -1817,47 +1925,152 @@ export namespace DatasetVersion { export enum DataConfigCase { DATA_CONFIG_NOT_SET = 0, - - DATASET_FILTER_CONFIG = 7, - + ANNOTATION_FILTER_CONFIG = 15, + MODEL_PREDICT_CONFIG = 18, } } -export class DatasetVersionDatasetFilterConfig extends jspb.Message { - - hasDatasetFilter(): boolean; - clearDatasetFilter(): void; - getDatasetFilter(): DatasetFilter | undefined; - setDatasetFilter(value?: DatasetFilter): DatasetVersionDatasetFilterConfig; +export class AnnotationFilterConfig extends jspb.Message { + hasAnnotationFilter(): boolean; + clearAnnotationFilter(): void; + getAnnotationFilter(): AnnotationFilter | undefined; + setAnnotationFilter(value?: AnnotationFilter): AnnotationFilterConfig; + getIgnoreEmptyInputs(): boolean; + setIgnoreEmptyInputs(value: boolean): AnnotationFilterConfig; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DatasetVersionDatasetFilterConfig.AsObject; - static toObject(includeInstance: boolean, msg: DatasetVersionDatasetFilterConfig): DatasetVersionDatasetFilterConfig.AsObject; + toObject(includeInstance?: boolean): AnnotationFilterConfig.AsObject; + static toObject(includeInstance: boolean, msg: AnnotationFilterConfig): AnnotationFilterConfig.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DatasetVersionDatasetFilterConfig, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DatasetVersionDatasetFilterConfig; - static deserializeBinaryFromReader(message: DatasetVersionDatasetFilterConfig, reader: jspb.BinaryReader): DatasetVersionDatasetFilterConfig; + static serializeBinaryToWriter(message: AnnotationFilterConfig, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AnnotationFilterConfig; + static deserializeBinaryFromReader(message: AnnotationFilterConfig, reader: jspb.BinaryReader): AnnotationFilterConfig; } -export namespace DatasetVersionDatasetFilterConfig { +export namespace AnnotationFilterConfig { export type AsObject = { - datasetFilter?: DatasetFilter.AsObject, + annotationFilter?: AnnotationFilter.AsObject, + ignoreEmptyInputs: boolean, } } -export class DatasetVersionMetrics extends jspb.Message { - getInputsCount(): number; - setInputsCount(value: number): DatasetVersionMetrics; +export class ModelPredictConfig extends jspb.Message { + + hasModel(): boolean; + clearModel(): void; + getModel(): Model | undefined; + setModel(value?: Model): ModelPredictConfig; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModelPredictConfig.AsObject; + static toObject(includeInstance: boolean, msg: ModelPredictConfig): ModelPredictConfig.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModelPredictConfig, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModelPredictConfig; + static deserializeBinaryFromReader(message: ModelPredictConfig, reader: jspb.BinaryReader): ModelPredictConfig; +} - getPositiveAnnotationsCount(): number; - setPositiveAnnotationsCount(value: number): DatasetVersionMetrics; +export namespace ModelPredictConfig { + export type AsObject = { + model?: Model.AsObject, + } +} - getBoundingBoxesCount(): number; - setBoundingBoxesCount(value: number): DatasetVersionMetrics; +export class DatasetVersionMetrics extends jspb.Message { + hasInputsCount(): boolean; + clearInputsCount(): void; + getInputsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setInputsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasUnlabeledInputsCount(): boolean; + clearUnlabeledInputsCount(): void; + getUnlabeledInputsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setUnlabeledInputsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasInputsWithMetadataCount(): boolean; + clearInputsWithMetadataCount(): void; + getInputsWithMetadataCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setInputsWithMetadataCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasInputsWithGeoCount(): boolean; + clearInputsWithGeoCount(): void; + getInputsWithGeoCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setInputsWithGeoCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasRegionsCount(): boolean; + clearRegionsCount(): void; + getRegionsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setRegionsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasRegionLocationMatrix(): boolean; + clearRegionLocationMatrix(): void; + getRegionLocationMatrix(): proto_clarifai_api_utils_matrix_pb.MatrixUint64 | undefined; + setRegionLocationMatrix(value?: proto_clarifai_api_utils_matrix_pb.MatrixUint64): DatasetVersionMetrics; + + hasBoundingBoxesCount(): boolean; + clearBoundingBoxesCount(): void; + getBoundingBoxesCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setBoundingBoxesCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasPolygonsCount(): boolean; + clearPolygonsCount(): void; + getPolygonsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setPolygonsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasPointsCount(): boolean; + clearPointsCount(): void; + getPointsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setPointsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasMasksCount(): boolean; + clearMasksCount(): void; + getMasksCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setMasksCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasRegionInputsCount(): boolean; + clearRegionInputsCount(): void; + getRegionInputsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setRegionInputsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasRegionFramesCount(): boolean; + clearRegionFramesCount(): void; + getRegionFramesCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setRegionFramesCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasFramesCount(): boolean; + clearFramesCount(): void; + getFramesCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setFramesCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasFrameInputsCount(): boolean; + clearFrameInputsCount(): void; + getFrameInputsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setFrameInputsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasEmbeddingsCount(): boolean; + clearEmbeddingsCount(): void; + getEmbeddingsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setEmbeddingsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasPositiveInputTagsCount(): boolean; + clearPositiveInputTagsCount(): void; + getPositiveInputTagsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setPositiveInputTagsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasPositiveRegionTagsCount(): boolean; + clearPositiveRegionTagsCount(): void; + getPositiveRegionTagsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setPositiveRegionTagsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; + + hasPositiveFrameTagsCount(): boolean; + clearPositiveFrameTagsCount(): void; + getPositiveFrameTagsCount(): google_protobuf_wrappers_pb.UInt64Value | undefined; + setPositiveFrameTagsCount(value?: google_protobuf_wrappers_pb.UInt64Value): DatasetVersionMetrics; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DatasetVersionMetrics.AsObject; @@ -1871,9 +2084,172 @@ export class DatasetVersionMetrics extends jspb.Message { export namespace DatasetVersionMetrics { export type AsObject = { - inputsCount: number, - positiveAnnotationsCount: number, - boundingBoxesCount: number, + inputsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + unlabeledInputsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + inputsWithMetadataCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + inputsWithGeoCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + regionsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + regionLocationMatrix?: proto_clarifai_api_utils_matrix_pb.MatrixUint64.AsObject, + boundingBoxesCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + polygonsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + pointsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + masksCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + regionInputsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + regionFramesCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + framesCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + frameInputsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + embeddingsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + positiveInputTagsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + positiveRegionTagsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + positiveFrameTagsCount?: google_protobuf_wrappers_pb.UInt64Value.AsObject, + } +} + +export class DatasetVersionMetricsGroup extends jspb.Message { + getParentPath(): string; + setParentPath(value: string): DatasetVersionMetricsGroup; + getType(): DatasetVersionMetricsGroupType; + setType(value: DatasetVersionMetricsGroupType): DatasetVersionMetricsGroup; + + hasValue(): boolean; + clearValue(): void; + getValue(): google_protobuf_struct_pb.Value | undefined; + setValue(value?: google_protobuf_struct_pb.Value): DatasetVersionMetricsGroup; + + hasMetrics(): boolean; + clearMetrics(): void; + getMetrics(): DatasetVersionMetrics | undefined; + setMetrics(value?: DatasetVersionMetrics): DatasetVersionMetricsGroup; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetVersionMetricsGroup.AsObject; + static toObject(includeInstance: boolean, msg: DatasetVersionMetricsGroup): DatasetVersionMetricsGroup.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetVersionMetricsGroup, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetVersionMetricsGroup; + static deserializeBinaryFromReader(message: DatasetVersionMetricsGroup, reader: jspb.BinaryReader): DatasetVersionMetricsGroup; +} + +export namespace DatasetVersionMetricsGroup { + export type AsObject = { + parentPath: string, + type: DatasetVersionMetricsGroupType, + value?: google_protobuf_struct_pb.Value.AsObject, + metrics?: DatasetVersionMetrics.AsObject, + } +} + +export class DatasetVersionExportInfo extends jspb.Message { + + hasClarifaiDataProtobuf(): boolean; + clearClarifaiDataProtobuf(): void; + getClarifaiDataProtobuf(): DatasetVersionExport | undefined; + setClarifaiDataProtobuf(value?: DatasetVersionExport): DatasetVersionExportInfo; + + hasClarifaiDataJson(): boolean; + clearClarifaiDataJson(): void; + getClarifaiDataJson(): DatasetVersionExport | undefined; + setClarifaiDataJson(value?: DatasetVersionExport): DatasetVersionExportInfo; + + hasCoco(): boolean; + clearCoco(): void; + getCoco(): DatasetVersionExport | undefined; + setCoco(value?: DatasetVersionExport): DatasetVersionExportInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetVersionExportInfo.AsObject; + static toObject(includeInstance: boolean, msg: DatasetVersionExportInfo): DatasetVersionExportInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetVersionExportInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetVersionExportInfo; + static deserializeBinaryFromReader(message: DatasetVersionExportInfo, reader: jspb.BinaryReader): DatasetVersionExportInfo; +} + +export namespace DatasetVersionExportInfo { + export type AsObject = { + clarifaiDataProtobuf?: DatasetVersionExport.AsObject, + clarifaiDataJson?: DatasetVersionExport.AsObject, + coco?: DatasetVersionExport.AsObject, + } +} + +export class DatasetVersionExport extends jspb.Message { + getFormat(): DatasetVersionExportFormat; + setFormat(value: DatasetVersionExportFormat): DatasetVersionExport; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): DatasetVersionExport; + getUrl(): string; + setUrl(value: string): DatasetVersionExport; + getSize(): number; + setSize(value: number): DatasetVersionExport; + getIncludeEmbeddings(): boolean; + setIncludeEmbeddings(value: boolean): DatasetVersionExport; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetVersionExport.AsObject; + static toObject(includeInstance: boolean, msg: DatasetVersionExport): DatasetVersionExport.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetVersionExport, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetVersionExport; + static deserializeBinaryFromReader(message: DatasetVersionExport, reader: jspb.BinaryReader): DatasetVersionExport; +} + +export namespace DatasetVersionExport { + export type AsObject = { + format: DatasetVersionExportFormat, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + url: string, + size: number, + includeEmbeddings: boolean, + } +} + +export class DatasetVersionProcessingInfo extends jspb.Message { + + hasFrameInterpolationInfo(): boolean; + clearFrameInterpolationInfo(): void; + getFrameInterpolationInfo(): FrameInterpolationInfo | undefined; + setFrameInterpolationInfo(value?: FrameInterpolationInfo): DatasetVersionProcessingInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetVersionProcessingInfo.AsObject; + static toObject(includeInstance: boolean, msg: DatasetVersionProcessingInfo): DatasetVersionProcessingInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetVersionProcessingInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetVersionProcessingInfo; + static deserializeBinaryFromReader(message: DatasetVersionProcessingInfo, reader: jspb.BinaryReader): DatasetVersionProcessingInfo; +} + +export namespace DatasetVersionProcessingInfo { + export type AsObject = { + frameInterpolationInfo?: FrameInterpolationInfo.AsObject, + } +} + +export class FrameInterpolationInfo extends jspb.Message { + getSampleMs(): number; + setSampleMs(value: number): FrameInterpolationInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FrameInterpolationInfo.AsObject; + static toObject(includeInstance: boolean, msg: FrameInterpolationInfo): FrameInterpolationInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FrameInterpolationInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FrameInterpolationInfo; + static deserializeBinaryFromReader(message: FrameInterpolationInfo, reader: jspb.BinaryReader): FrameInterpolationInfo; +} + +export namespace FrameInterpolationInfo { + export type AsObject = { + sampleMs: number, } } @@ -1883,13 +2259,11 @@ export class WorkflowResultsSimilarity extends jspb.Message { clearProbeInput(): void; getProbeInput(): Input | undefined; setProbeInput(value?: Input): WorkflowResultsSimilarity; - clearPoolResultsList(): void; getPoolResultsList(): Array; setPoolResultsList(value: Array): WorkflowResultsSimilarity; addPoolResults(value?: Hit, index?: number): Hit; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): WorkflowResultsSimilarity.AsObject; static toObject(includeInstance: boolean, msg: WorkflowResultsSimilarity): WorkflowResultsSimilarity.AsObject; @@ -1910,46 +2284,37 @@ export namespace WorkflowResultsSimilarity { export class Key extends jspb.Message { getId(): string; setId(value: string): Key; - getType(): string; setType(value: string): Key; - getDescription(): string; setDescription(value: string): Key; - clearScopesList(): void; getScopesList(): Array; setScopesList(value: Array): Key; addScopes(value: string, index?: number): string; - clearEndpointsList(): void; getEndpointsList(): Array; setEndpointsList(value: Array): Key; addEndpoints(value: string, index?: number): string; - clearAppsList(): void; getAppsList(): Array; setAppsList(value: Array): Key; addApps(value?: App, index?: number): App; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Key; - hasExpiresAt(): boolean; clearExpiresAt(): void; getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): Key; - clearAuthorizedIdpIdsList(): void; getAuthorizedIdpIdsList(): Array; setAuthorizedIdpIdsList(value: Array): Key; addAuthorizedIdpIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Key.AsObject; static toObject(includeInstance: boolean, msg: Key): Key.AsObject; @@ -1977,103 +2342,96 @@ export namespace Key { export class Model extends jspb.Message { getId(): string; setId(value: string): Model; - getName(): string; setName(value: string): Model; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Model; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Model; - getAppId(): string; setAppId(value: string): Model; - hasOutputInfo(): boolean; clearOutputInfo(): void; getOutputInfo(): OutputInfo | undefined; setOutputInfo(value?: OutputInfo): Model; - hasModelVersion(): boolean; clearModelVersion(): void; getModelVersion(): ModelVersion | undefined; setModelVersion(value?: ModelVersion): Model; - getDisplayName(): string; setDisplayName(value: string): Model; - getUserId(): string; setUserId(value: string): Model; - - hasInputInfo(): boolean; - clearInputInfo(): void; - getInputInfo(): InputInfo | undefined; - setInputInfo(value?: InputInfo): Model; - - - hasTrainInfo(): boolean; - clearTrainInfo(): void; - getTrainInfo(): TrainInfo | undefined; - setTrainInfo(value?: TrainInfo): Model; - + hasDefaultEvalInfo(): boolean; + clearDefaultEvalInfo(): void; + getDefaultEvalInfo(): EvalInfo | undefined; + setDefaultEvalInfo(value?: EvalInfo): Model; getModelTypeId(): string; setModelTypeId(value: string): Model; - + getTask(): string; + setTask(value: string): Model; hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): Model; - getDescription(): string; setDescription(value: string): Model; - hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): Model; + hasPresets(): boolean; + clearPresets(): void; + getPresets(): google_protobuf_struct_pb.Struct | undefined; + setPresets(value?: google_protobuf_struct_pb.Struct): Model; getNotes(): string; setNotes(value: string): Model; - clearToolkitsList(): void; getToolkitsList(): Array; setToolkitsList(value: Array): Model; addToolkits(value: string, index?: number): string; - clearUseCasesList(): void; getUseCasesList(): Array; setUseCasesList(value: Array): Model; addUseCases(value: string, index?: number): string; - clearLanguagesList(): void; getLanguagesList(): Array; setLanguagesList(value: Array): Model; addLanguages(value: string, index?: number): string; - + clearLanguagesFullList(): void; + getLanguagesFullList(): Array; + setLanguagesFullList(value: Array): Model; + addLanguagesFull(value?: FullTag, index?: number): FullTag; + clearCheckConsentsList(): void; + getCheckConsentsList(): Array; + setCheckConsentsList(value: Array): Model; + addCheckConsents(value: string, index?: number): string; getIsStarred(): boolean; setIsStarred(value: boolean): Model; - getStarCount(): number; setStarCount(value: number): Model; + hasWorkflowRecommended(): boolean; + clearWorkflowRecommended(): void; + getWorkflowRecommended(): google_protobuf_wrappers_pb.BoolValue | undefined; + setWorkflowRecommended(value?: google_protobuf_wrappers_pb.BoolValue): Model; - hasImportInfo(): boolean; - clearImportInfo(): void; - getImportInfo(): ImportInfo | undefined; - setImportInfo(value?: ImportInfo): Model; - + hasBookmarkOrigin(): boolean; + clearBookmarkOrigin(): void; + getBookmarkOrigin(): BookmarkOrigin | undefined; + setBookmarkOrigin(value?: BookmarkOrigin): Model; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Model.AsObject; @@ -2096,42 +2454,41 @@ export namespace Model { modelVersion?: ModelVersion.AsObject, displayName: string, userId: string, - inputInfo?: InputInfo.AsObject, - trainInfo?: TrainInfo.AsObject, + defaultEvalInfo?: EvalInfo.AsObject, modelTypeId: string, + task: string, visibility?: Visibility.AsObject, description: string, metadata?: google_protobuf_struct_pb.Struct.AsObject, + presets?: google_protobuf_struct_pb.Struct.AsObject, notes: string, toolkitsList: Array, useCasesList: Array, languagesList: Array, + languagesFullList: Array, + checkConsentsList: Array, isStarred: boolean, starCount: number, - importInfo?: ImportInfo.AsObject, + workflowRecommended?: google_protobuf_wrappers_pb.BoolValue.AsObject, + bookmarkOrigin?: BookmarkOrigin.AsObject, } } export class ModelReference extends jspb.Message { getId(): string; setId(value: string): ModelReference; - getModelId(): string; setModelId(value: string): ModelReference; - getUrl(): string; setUrl(value: string): ModelReference; - getName(): string; setName(value: string): ModelReference; - hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): ModelReference; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelReference.AsObject; static toObject(includeInstance: boolean, msg: ModelReference): ModelReference.AsObject; @@ -2155,26 +2512,20 @@ export namespace ModelReference { export class ModelVersionInputExample extends jspb.Message { getId(): string; setId(value: string): ModelVersionInputExample; - getModelId(): string; setModelId(value: string): ModelVersionInputExample; - getModelVersionId(): string; setModelVersionId(value: string): ModelVersionInputExample; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): ModelVersionInputExample; - getName(): string; setName(value: string): ModelVersionInputExample; - getDescription(): string; setDescription(value: string): ModelVersionInputExample; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelVersionInputExample.AsObject; static toObject(includeInstance: boolean, msg: ModelVersionInputExample): ModelVersionInputExample.AsObject; @@ -2203,28 +2554,23 @@ export class OutputInfo extends jspb.Message { getData(): Data | undefined; setData(value?: Data): OutputInfo; - hasOutputConfig(): boolean; clearOutputConfig(): void; getOutputConfig(): OutputConfig | undefined; setOutputConfig(value?: OutputConfig): OutputInfo; - getMessage(): string; setMessage(value: string): OutputInfo; - hasFieldsMap(): boolean; clearFieldsMap(): void; getFieldsMap(): google_protobuf_struct_pb.Struct | undefined; setFieldsMap(value?: google_protobuf_struct_pb.Struct): OutputInfo; - hasParams(): boolean; clearParams(): void; getParams(): google_protobuf_struct_pb.Struct | undefined; setParams(value?: google_protobuf_struct_pb.Struct): OutputInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): OutputInfo.AsObject; static toObject(includeInstance: boolean, msg: OutputInfo): OutputInfo.AsObject; @@ -2252,12 +2598,15 @@ export class InputInfo extends jspb.Message { getFieldsMap(): google_protobuf_struct_pb.Struct | undefined; setFieldsMap(value?: google_protobuf_struct_pb.Struct): InputInfo; - hasParams(): boolean; clearParams(): void; getParams(): google_protobuf_struct_pb.Struct | undefined; setParams(value?: google_protobuf_struct_pb.Struct): InputInfo; + hasBaseEmbedModel(): boolean; + clearBaseEmbedModel(): void; + getBaseEmbedModel(): Model | undefined; + setBaseEmbedModel(value?: Model): InputInfo; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): InputInfo.AsObject; @@ -2273,6 +2622,7 @@ export namespace InputInfo { export type AsObject = { fieldsMap?: google_protobuf_struct_pb.Struct.AsObject, params?: google_protobuf_struct_pb.Struct.AsObject, + baseEmbedModel?: Model.AsObject, } } @@ -2283,7 +2633,6 @@ export class TrainInfo extends jspb.Message { getParams(): google_protobuf_struct_pb.Struct | undefined; setParams(value?: google_protobuf_struct_pb.Struct): TrainInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TrainInfo.AsObject; static toObject(includeInstance: boolean, msg: TrainInfo): TrainInfo.AsObject; @@ -2300,6 +2649,29 @@ export namespace TrainInfo { } } +export class EvalInfo extends jspb.Message { + + hasParams(): boolean; + clearParams(): void; + getParams(): google_protobuf_struct_pb.Struct | undefined; + setParams(value?: google_protobuf_struct_pb.Struct): EvalInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EvalInfo.AsObject; + static toObject(includeInstance: boolean, msg: EvalInfo): EvalInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EvalInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EvalInfo; + static deserializeBinaryFromReader(message: EvalInfo, reader: jspb.BinaryReader): EvalInfo; +} + +export namespace EvalInfo { + export type AsObject = { + params?: google_protobuf_struct_pb.Struct.AsObject, + } +} + export class ImportInfo extends jspb.Message { hasParams(): boolean; @@ -2307,7 +2679,6 @@ export class ImportInfo extends jspb.Message { getParams(): google_protobuf_struct_pb.Struct | undefined; setParams(value?: google_protobuf_struct_pb.Struct): ImportInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ImportInfo.AsObject; static toObject(includeInstance: boolean, msg: ImportInfo): ImportInfo.AsObject; @@ -2327,55 +2698,39 @@ export namespace ImportInfo { export class OutputConfig extends jspb.Message { getConceptsMutuallyExclusive(): boolean; setConceptsMutuallyExclusive(value: boolean): OutputConfig; - - getClosedEnvironment(): boolean; - setClosedEnvironment(value: boolean): OutputConfig; - getExistingModelId(): string; setExistingModelId(value: string): OutputConfig; - getLanguage(): string; setLanguage(value: string): OutputConfig; - getHyperParameters(): string; setHyperParameters(value: string): OutputConfig; - getMaxConcepts(): number; setMaxConcepts(value: number): OutputConfig; - getMinValue(): number; setMinValue(value: number): OutputConfig; - clearSelectConceptsList(): void; getSelectConceptsList(): Array; setSelectConceptsList(value: Array): OutputConfig; addSelectConcepts(value?: Concept, index?: number): Concept; - getTrainingTimeout(): number; setTrainingTimeout(value: number): OutputConfig; - getSampleMs(): number; setSampleMs(value: number): OutputConfig; - hasHyperParams(): boolean; clearHyperParams(): void; getHyperParams(): google_protobuf_struct_pb.Struct | undefined; setHyperParams(value?: google_protobuf_struct_pb.Struct): OutputConfig; - getEmbedModelVersionId(): string; setEmbedModelVersionId(value: string): OutputConfig; - getFailOnMissingPositiveExamples(): boolean; setFailOnMissingPositiveExamples(value: boolean): OutputConfig; - hasModelMetadata(): boolean; clearModelMetadata(): void; getModelMetadata(): google_protobuf_struct_pb.Struct | undefined; setModelMetadata(value?: google_protobuf_struct_pb.Struct): OutputConfig; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): OutputConfig.AsObject; static toObject(includeInstance: boolean, msg: OutputConfig): OutputConfig.AsObject; @@ -2389,7 +2744,6 @@ export class OutputConfig extends jspb.Message { export namespace OutputConfig { export type AsObject = { conceptsMutuallyExclusive: boolean, - closedEnvironment: boolean, existingModelId: string, language: string, hyperParameters: string, @@ -2408,55 +2762,40 @@ export namespace OutputConfig { export class ModelType extends jspb.Message { getId(): string; setId(value: string): ModelType; - getTitle(): string; setTitle(value: string): ModelType; - getDescription(): string; setDescription(value: string): ModelType; - clearInputFieldsList(): void; getInputFieldsList(): Array; setInputFieldsList(value: Array): ModelType; addInputFields(value: string, index?: number): string; - clearOutputFieldsList(): void; getOutputFieldsList(): Array; setOutputFieldsList(value: Array): ModelType; addOutputFields(value: string, index?: number): string; - getTrainable(): boolean; setTrainable(value: boolean): ModelType; - getCreatable(): boolean; setCreatable(value: boolean): ModelType; - getInternalOnly(): boolean; setInternalOnly(value: boolean): ModelType; - clearModelTypeFieldsList(): void; getModelTypeFieldsList(): Array; setModelTypeFieldsList(value: Array): ModelType; addModelTypeFields(value?: ModelTypeField, index?: number): ModelTypeField; - getRequiresSequentialFrames(): boolean; setRequiresSequentialFrames(value: boolean): ModelType; - - getEvaluable(): boolean; - setEvaluable(value: boolean): ModelType; - - - hasExpectedPretrainedInputFields(): boolean; - clearExpectedPretrainedInputFields(): void; - getExpectedPretrainedInputFields(): google_protobuf_struct_pb.Struct | undefined; - setExpectedPretrainedInputFields(value?: google_protobuf_struct_pb.Struct): ModelType; - - - hasExpectedPretrainedOutputFields(): boolean; - clearExpectedPretrainedOutputFields(): void; - getExpectedPretrainedOutputFields(): google_protobuf_struct_pb.Struct | undefined; - setExpectedPretrainedOutputFields(value?: google_protobuf_struct_pb.Struct): ModelType; - + clearExpectedInputLayersList(): void; + getExpectedInputLayersList(): Array; + setExpectedInputLayersList(value: Array): ModelType; + addExpectedInputLayers(value?: ModelLayerInfo, index?: number): ModelLayerInfo; + clearExpectedOutputLayersList(): void; + getExpectedOutputLayersList(): Array; + setExpectedOutputLayersList(value: Array): ModelType; + addExpectedOutputLayers(value?: ModelLayerInfo, index?: number): ModelLayerInfo; + getEvaluationType(): EvaluationType; + setEvaluationType(value: EvaluationType): ModelType; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelType.AsObject; @@ -2480,49 +2819,127 @@ export namespace ModelType { internalOnly: boolean, modelTypeFieldsList: Array, requiresSequentialFrames: boolean, - evaluable: boolean, - expectedPretrainedInputFields?: google_protobuf_struct_pb.Struct.AsObject, - expectedPretrainedOutputFields?: google_protobuf_struct_pb.Struct.AsObject, + expectedInputLayersList: Array, + expectedOutputLayersList: Array, + evaluationType: EvaluationType, + } +} + +export class ModelLayerInfo extends jspb.Message { + getDataFieldName(): string; + setDataFieldName(value: string): ModelLayerInfo; + clearShapesList(): void; + getShapesList(): Array; + setShapesList(value: Array): ModelLayerInfo; + addShapes(value?: LayerShape, index?: number): LayerShape; + getDescription(): string; + setDescription(value: string): ModelLayerInfo; + getRequiresLabelFilename(): boolean; + setRequiresLabelFilename(value: boolean): ModelLayerInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModelLayerInfo.AsObject; + static toObject(includeInstance: boolean, msg: ModelLayerInfo): ModelLayerInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModelLayerInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModelLayerInfo; + static deserializeBinaryFromReader(message: ModelLayerInfo, reader: jspb.BinaryReader): ModelLayerInfo; +} + +export namespace ModelLayerInfo { + export type AsObject = { + dataFieldName: string, + shapesList: Array, + description: string, + requiresLabelFilename: boolean, + } +} + +export class TritonCondaEnvInfo extends jspb.Message { + getCondaPackUrl(): string; + setCondaPackUrl(value: string): TritonCondaEnvInfo; + getCondaYamlUrl(): string; + setCondaYamlUrl(value: string): TritonCondaEnvInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TritonCondaEnvInfo.AsObject; + static toObject(includeInstance: boolean, msg: TritonCondaEnvInfo): TritonCondaEnvInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TritonCondaEnvInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TritonCondaEnvInfo; + static deserializeBinaryFromReader(message: TritonCondaEnvInfo, reader: jspb.BinaryReader): TritonCondaEnvInfo; +} + +export namespace TritonCondaEnvInfo { + export type AsObject = { + condaPackUrl: string, + condaYamlUrl: string, + } +} + +export class LayerShape extends jspb.Message { + clearDimsList(): void; + getDimsList(): Array; + setDimsList(value: Array): LayerShape; + addDims(value: number, index?: number): number; + clearMaxDimsList(): void; + getMaxDimsList(): Array; + setMaxDimsList(value: Array): LayerShape; + addMaxDims(value: number, index?: number): number; + getDataType(): DataType; + setDataType(value: DataType): LayerShape; + getDescription(): string; + setDescription(value: string): LayerShape; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LayerShape.AsObject; + static toObject(includeInstance: boolean, msg: LayerShape): LayerShape.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LayerShape, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LayerShape; + static deserializeBinaryFromReader(message: LayerShape, reader: jspb.BinaryReader): LayerShape; +} + +export namespace LayerShape { + export type AsObject = { + dimsList: Array, + maxDimsList: Array, + dataType: DataType, + description: string, } } export class ModelTypeField extends jspb.Message { getPath(): string; setPath(value: string): ModelTypeField; - getFieldType(): ModelTypeField.ModelTypeFieldType; setFieldType(value: ModelTypeField.ModelTypeFieldType): ModelTypeField; - hasDefaultValue(): boolean; clearDefaultValue(): void; getDefaultValue(): google_protobuf_struct_pb.Value | undefined; setDefaultValue(value?: google_protobuf_struct_pb.Value): ModelTypeField; - getDescription(): string; setDescription(value: string): ModelTypeField; - getPlaceholder(): string; setPlaceholder(value: string): ModelTypeField; - clearModelTypeEnumOptionsList(): void; getModelTypeEnumOptionsList(): Array; setModelTypeEnumOptionsList(value: Array): ModelTypeField; addModelTypeEnumOptions(value?: ModelTypeEnumOption, index?: number): ModelTypeEnumOption; - getInternalOnly(): boolean; setInternalOnly(value: boolean): ModelTypeField; - getRequired(): boolean; setRequired(value: boolean): ModelTypeField; - hasModelTypeRangeInfo(): boolean; clearModelTypeRangeInfo(): void; getModelTypeRangeInfo(): ModelTypeRangeInfo | undefined; setModelTypeRangeInfo(value?: ModelTypeRangeInfo): ModelTypeField; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelTypeField.AsObject; static toObject(includeInstance: boolean, msg: ModelTypeField): ModelTypeField.AsObject; @@ -2561,6 +2978,10 @@ export namespace ModelTypeField { WORKFLOW_EMBED_MODELS = 12, ARRAY_OF_STRINGS = 13, RECURSIVE_ENUM = 14, + PYTHON_CODE = 15, + DATASET_ID = 16, + DATASET_VERSION_ID = 17, + ARRAY_OF_MODEL_CONCEPTS = 18, } } @@ -2568,14 +2989,11 @@ export namespace ModelTypeField { export class ModelTypeRangeInfo extends jspb.Message { getMin(): number; setMin(value: number): ModelTypeRangeInfo; - getMax(): number; setMax(value: number): ModelTypeRangeInfo; - getStep(): number; setStep(value: number): ModelTypeRangeInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelTypeRangeInfo.AsObject; static toObject(includeInstance: boolean, msg: ModelTypeRangeInfo): ModelTypeRangeInfo.AsObject; @@ -2597,23 +3015,20 @@ export namespace ModelTypeRangeInfo { export class ModelTypeEnumOption extends jspb.Message { getId(): string; setId(value: string): ModelTypeEnumOption; - clearAliasesList(): void; getAliasesList(): Array; setAliasesList(value: Array): ModelTypeEnumOption; addAliases(value?: ModelTypeEnumOptionAlias, index?: number): ModelTypeEnumOptionAlias; - getDescription(): string; setDescription(value: string): ModelTypeEnumOption; - clearModelTypeFieldsList(): void; getModelTypeFieldsList(): Array; setModelTypeFieldsList(value: Array): ModelTypeEnumOption; addModelTypeFields(value?: ModelTypeField, index?: number): ModelTypeField; - getInternalOnly(): boolean; setInternalOnly(value: boolean): ModelTypeEnumOption; - + getRecommended(): boolean; + setRecommended(value: boolean): ModelTypeEnumOption; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelTypeEnumOption.AsObject; @@ -2632,13 +3047,15 @@ export namespace ModelTypeEnumOption { description: string, modelTypeFieldsList: Array, internalOnly: boolean, + recommended: boolean, } } export class ModelTypeEnumOptionAlias extends jspb.Message { getIdInt(): number; setIdInt(value: number): ModelTypeEnumOptionAlias; - + getWildcardString(): string; + setWildcardString(value: string): ModelTypeEnumOptionAlias; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelTypeEnumOptionAlias.AsObject; @@ -2653,17 +3070,16 @@ export class ModelTypeEnumOptionAlias extends jspb.Message { export namespace ModelTypeEnumOptionAlias { export type AsObject = { idInt: number, + wildcardString: string, } } export class ModelQuery extends jspb.Message { getName(): string; setName(value: string): ModelQuery; - getModelTypeId(): string; setModelTypeId(value: string): ModelQuery; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelQuery.AsObject; static toObject(includeInstance: boolean, msg: ModelQuery): ModelQuery.AsObject; @@ -2685,72 +3101,79 @@ export class ModelVersion extends jspb.Message { getId(): string; setId(value: string): ModelVersion; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ModelVersion; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): ModelVersion; - getActiveConceptCount(): number; setActiveConceptCount(value: number): ModelVersion; - hasMetrics(): boolean; clearMetrics(): void; getMetrics(): EvalMetrics | undefined; setMetrics(value?: EvalMetrics): ModelVersion; - getTotalInputCount(): number; setTotalInputCount(value: number): ModelVersion; + hasPretrainedModelConfig(): boolean; + clearPretrainedModelConfig(): void; + getPretrainedModelConfig(): PretrainedModelConfig | undefined; + setPretrainedModelConfig(value?: PretrainedModelConfig): ModelVersion; hasCompletedAt(): boolean; clearCompletedAt(): void; getCompletedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCompletedAt(value?: google_protobuf_timestamp_pb.Timestamp): ModelVersion; - getDescription(): string; setDescription(value: string): ModelVersion; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): ModelVersion; - getAppId(): string; setAppId(value: string): ModelVersion; - getUserId(): string; setUserId(value: string): ModelVersion; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): ModelVersion; - hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): ModelVersion; - getLicense(): string; setLicense(value: string): ModelVersion; + hasOutputInfo(): boolean; + clearOutputInfo(): void; + getOutputInfo(): OutputInfo | undefined; + setOutputInfo(value?: OutputInfo): ModelVersion; + + hasInputInfo(): boolean; + clearInputInfo(): void; + getInputInfo(): InputInfo | undefined; + setInputInfo(value?: InputInfo): ModelVersion; - hasDatasetVersion(): boolean; - clearDatasetVersion(): void; - getDatasetVersion(): DatasetVersion | undefined; - setDatasetVersion(value?: DatasetVersion): ModelVersion; + hasTrainInfo(): boolean; + clearTrainInfo(): void; + getTrainInfo(): TrainInfo | undefined; + setTrainInfo(value?: TrainInfo): ModelVersion; + hasImportInfo(): boolean; + clearImportInfo(): void; + getImportInfo(): ImportInfo | undefined; + setImportInfo(value?: ImportInfo): ModelVersion; + getTrainLog(): string; + setTrainLog(value: string): ModelVersion; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ModelVersion.AsObject; @@ -2770,6 +3193,7 @@ export namespace ModelVersion { activeConceptCount: number, metrics?: EvalMetrics.AsObject, totalInputCount: number, + pretrainedModelConfig?: PretrainedModelConfig.AsObject, completedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, description: string, visibility?: Visibility.AsObject, @@ -2778,39 +3202,28 @@ export namespace ModelVersion { modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, metadata?: google_protobuf_struct_pb.Struct.AsObject, license: string, - datasetVersion?: DatasetVersion.AsObject, + outputInfo?: OutputInfo.AsObject, + inputInfo?: InputInfo.AsObject, + trainInfo?: TrainInfo.AsObject, + importInfo?: ImportInfo.AsObject, + trainLog: string, } } export class PretrainedModelConfig extends jspb.Message { - getId(): string; - setId(value: string): PretrainedModelConfig; - - getType(): string; - setType(value: string): PretrainedModelConfig; - hasInputFieldsMap(): boolean; clearInputFieldsMap(): void; getInputFieldsMap(): google_protobuf_struct_pb.Struct | undefined; setInputFieldsMap(value?: google_protobuf_struct_pb.Struct): PretrainedModelConfig; - hasOutputFieldsMap(): boolean; clearOutputFieldsMap(): void; getOutputFieldsMap(): google_protobuf_struct_pb.Struct | undefined; setOutputFieldsMap(value?: google_protobuf_struct_pb.Struct): PretrainedModelConfig; - - getDataProviderParams(): string; - setDataProviderParams(value: string): PretrainedModelConfig; - getModelZipUrl(): string; setModelZipUrl(value: string): PretrainedModelConfig; - getOverwrite(): boolean; - setOverwrite(value: boolean): PretrainedModelConfig; - - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PretrainedModelConfig.AsObject; static toObject(includeInstance: boolean, msg: PretrainedModelConfig): PretrainedModelConfig.AsObject; @@ -2823,13 +3236,9 @@ export class PretrainedModelConfig extends jspb.Message { export namespace PretrainedModelConfig { export type AsObject = { - id: string, - type: string, inputFieldsMap?: google_protobuf_struct_pb.Struct.AsObject, outputFieldsMap?: google_protobuf_struct_pb.Struct.AsObject, - dataProviderParams: string, modelZipUrl: string, - overwrite: boolean, } } @@ -2839,7 +3248,6 @@ export class TrainStats extends jspb.Message { setLossCurveList(value: Array): TrainStats; addLossCurve(value?: LossCurveEntry, index?: number): LossCurveEntry; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TrainStats.AsObject; static toObject(includeInstance: boolean, msg: TrainStats): TrainStats.AsObject; @@ -2859,14 +3267,11 @@ export namespace TrainStats { export class LossCurveEntry extends jspb.Message { getEpoch(): number; setEpoch(value: number): LossCurveEntry; - getGlobalStep(): number; setGlobalStep(value: number): LossCurveEntry; - getCost(): number; setCost(value: number): LossCurveEntry; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LossCurveEntry.AsObject; static toObject(includeInstance: boolean, msg: LossCurveEntry): LossCurveEntry.AsObject; @@ -2888,10 +3293,13 @@ export namespace LossCurveEntry { export class LabelCount extends jspb.Message { getConceptName(): string; setConceptName(value: string): LabelCount; - getCount(): number; setCount(value: number): LabelCount; + hasConcept(): boolean; + clearConcept(): void; + getConcept(): Concept | undefined; + setConcept(value?: Concept): LabelCount; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LabelCount.AsObject; @@ -2907,6 +3315,7 @@ export namespace LabelCount { export type AsObject = { conceptName: string, count: number, + concept?: Concept.AsObject, } } @@ -2916,7 +3325,6 @@ export class LabelDistribution extends jspb.Message { setPositiveLabelCountsList(value: Array): LabelDistribution; addPositiveLabelCounts(value?: LabelCount, index?: number): LabelCount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LabelDistribution.AsObject; static toObject(includeInstance: boolean, msg: LabelDistribution): LabelDistribution.AsObject; @@ -2936,14 +3344,11 @@ export namespace LabelDistribution { export class CooccurrenceMatrixEntry extends jspb.Message { getRow(): string; setRow(value: string): CooccurrenceMatrixEntry; - getCol(): string; setCol(value: string): CooccurrenceMatrixEntry; - getCount(): number; setCount(value: number): CooccurrenceMatrixEntry; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CooccurrenceMatrixEntry.AsObject; static toObject(includeInstance: boolean, msg: CooccurrenceMatrixEntry): CooccurrenceMatrixEntry.AsObject; @@ -2967,13 +3372,11 @@ export class CooccurrenceMatrix extends jspb.Message { getMatrixList(): Array; setMatrixList(value: Array): CooccurrenceMatrix; addMatrix(value?: CooccurrenceMatrixEntry, index?: number): CooccurrenceMatrixEntry; - clearConceptIdsList(): void; getConceptIdsList(): Array; setConceptIdsList(value: Array): CooccurrenceMatrix; addConceptIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CooccurrenceMatrix.AsObject; static toObject(includeInstance: boolean, msg: CooccurrenceMatrix): CooccurrenceMatrix.AsObject; @@ -2994,14 +3397,11 @@ export namespace CooccurrenceMatrix { export class ConfusionMatrixEntry extends jspb.Message { getPredicted(): string; setPredicted(value: string): ConfusionMatrixEntry; - getActual(): string; setActual(value: string): ConfusionMatrixEntry; - getValue(): number; setValue(value: number): ConfusionMatrixEntry; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConfusionMatrixEntry.AsObject; static toObject(includeInstance: boolean, msg: ConfusionMatrixEntry): ConfusionMatrixEntry.AsObject; @@ -3025,13 +3425,11 @@ export class ConfusionMatrix extends jspb.Message { getMatrixList(): Array; setMatrixList(value: Array): ConfusionMatrix; addMatrix(value?: ConfusionMatrixEntry, index?: number): ConfusionMatrixEntry; - clearConceptIdsList(): void; getConceptIdsList(): Array; setConceptIdsList(value: Array): ConfusionMatrix; addConceptIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ConfusionMatrix.AsObject; static toObject(includeInstance: boolean, msg: ConfusionMatrix): ConfusionMatrix.AsObject; @@ -3054,28 +3452,23 @@ export class ROC extends jspb.Message { getFprList(): Array; setFprList(value: Array): ROC; addFpr(value: number, index?: number): number; - clearTprList(): void; getTprList(): Array; setTprList(value: Array): ROC; addTpr(value: number, index?: number): number; - clearThresholdsList(): void; getThresholdsList(): Array; setThresholdsList(value: Array): ROC; addThresholds(value: number, index?: number): number; - clearFprPerImageList(): void; getFprPerImageList(): Array; setFprPerImageList(value: Array): ROC; addFprPerImage(value: number, index?: number): number; - clearFprPerObjectList(): void; getFprPerObjectList(): Array; setFprPerObjectList(value: Array): ROC; addFprPerObject(value: number, index?: number): number; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ROC.AsObject; static toObject(includeInstance: boolean, msg: ROC): ROC.AsObject; @@ -3101,18 +3494,15 @@ export class PrecisionRecallCurve extends jspb.Message { getRecallList(): Array; setRecallList(value: Array): PrecisionRecallCurve; addRecall(value: number, index?: number): number; - clearPrecisionList(): void; getPrecisionList(): Array; setPrecisionList(value: Array): PrecisionRecallCurve; addPrecision(value: number, index?: number): number; - clearThresholdsList(): void; getThresholdsList(): Array; setThresholdsList(value: Array): PrecisionRecallCurve; addThresholds(value: number, index?: number): number; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PrecisionRecallCurve.AsObject; static toObject(includeInstance: boolean, msg: PrecisionRecallCurve): PrecisionRecallCurve.AsObject; @@ -3134,53 +3524,40 @@ export namespace PrecisionRecallCurve { export class BinaryMetrics extends jspb.Message { getNumPos(): number; setNumPos(value: number): BinaryMetrics; - getNumNeg(): number; setNumNeg(value: number): BinaryMetrics; - getNumTot(): number; setNumTot(value: number): BinaryMetrics; - getRocAuc(): number; setRocAuc(value: number): BinaryMetrics; - getF1(): number; setF1(value: number): BinaryMetrics; - hasConcept(): boolean; clearConcept(): void; getConcept(): Concept | undefined; setConcept(value?: Concept): BinaryMetrics; - hasRocCurve(): boolean; clearRocCurve(): void; getRocCurve(): ROC | undefined; setRocCurve(value?: ROC): BinaryMetrics; - hasPrecisionRecallCurve(): boolean; clearPrecisionRecallCurve(): void; getPrecisionRecallCurve(): PrecisionRecallCurve | undefined; setPrecisionRecallCurve(value?: PrecisionRecallCurve): BinaryMetrics; - getAvgPrecision(): number; setAvgPrecision(value: number): BinaryMetrics; - getAreaName(): string; setAreaName(value: string): BinaryMetrics; - getAreaMin(): number; setAreaMin(value: number): BinaryMetrics; - getAreaMax(): number; setAreaMax(value: number): BinaryMetrics; - getIou(): number; setIou(value: number): BinaryMetrics; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BinaryMetrics.AsObject; static toObject(includeInstance: boolean, msg: BinaryMetrics): BinaryMetrics.AsObject; @@ -3212,23 +3589,17 @@ export namespace BinaryMetrics { export class TrackerMetrics extends jspb.Message { getMotMota(): number; setMotMota(value: number): TrackerMetrics; - getMotNumSwitches(): number; setMotNumSwitches(value: number): TrackerMetrics; - getMorseFrag(): number; setMorseFrag(value: number): TrackerMetrics; - getAvgPrecision(): number; setAvgPrecision(value: number): TrackerMetrics; - getAiid(): string; setAiid(value: string): TrackerMetrics; - getUniqueSwitchRate(): number; setUniqueSwitchRate(value: number): TrackerMetrics; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TrackerMetrics.AsObject; static toObject(includeInstance: boolean, msg: TrackerMetrics): TrackerMetrics.AsObject; @@ -3251,35 +3622,25 @@ export namespace TrackerMetrics { } export class EvalTestSetEntry extends jspb.Message { - getId(): string; - setId(value: string): EvalTestSetEntry; - - getUrl(): string; - setUrl(value: string): EvalTestSetEntry; - hasInput(): boolean; clearInput(): void; getInput(): Input | undefined; setInput(value?: Input): EvalTestSetEntry; - clearPredictedConceptsList(): void; getPredictedConceptsList(): Array; setPredictedConceptsList(value: Array): EvalTestSetEntry; addPredictedConcepts(value?: Concept, index?: number): Concept; - clearGroundTruthConceptsList(): void; getGroundTruthConceptsList(): Array; setGroundTruthConceptsList(value: Array): EvalTestSetEntry; addGroundTruthConcepts(value?: Concept, index?: number): Concept; - hasAnnotation(): boolean; clearAnnotation(): void; getAnnotation(): Annotation | undefined; setAnnotation(value?: Annotation): EvalTestSetEntry; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EvalTestSetEntry.AsObject; static toObject(includeInstance: boolean, msg: EvalTestSetEntry): EvalTestSetEntry.AsObject; @@ -3292,8 +3653,6 @@ export class EvalTestSetEntry extends jspb.Message { export namespace EvalTestSetEntry { export type AsObject = { - id: string, - url: string, input?: Input.AsObject, predictedConceptsList: Array, groundTruthConceptsList: Array, @@ -3304,23 +3663,17 @@ export namespace EvalTestSetEntry { export class LOPQEvalResult extends jspb.Message { getK(): number; setK(value: number): LOPQEvalResult; - getRecallVsBruteForce(): number; setRecallVsBruteForce(value: number): LOPQEvalResult; - getKendallTauVsBruteForce(): number; setKendallTauVsBruteForce(value: number): LOPQEvalResult; - getMostFrequentCodePercent(): number; setMostFrequentCodePercent(value: number): LOPQEvalResult; - getLopqNdcg(): number; setLopqNdcg(value: number): LOPQEvalResult; - getBruteForceNdcg(): number; setBruteForceNdcg(value: number): LOPQEvalResult; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LOPQEvalResult.AsObject; static toObject(includeInstance: boolean, msg: LOPQEvalResult): LOPQEvalResult.AsObject; @@ -3345,40 +3698,29 @@ export namespace LOPQEvalResult { export class MetricsSummary extends jspb.Message { getTop1Accuracy(): number; setTop1Accuracy(value: number): MetricsSummary; - getTop5Accuracy(): number; setTop5Accuracy(value: number): MetricsSummary; - getMacroAvgRocAuc(): number; setMacroAvgRocAuc(value: number): MetricsSummary; - getMacroStdRocAuc(): number; setMacroStdRocAuc(value: number): MetricsSummary; - getMacroAvgF1Score(): number; setMacroAvgF1Score(value: number): MetricsSummary; - getMacroStdF1Score(): number; setMacroStdF1Score(value: number): MetricsSummary; - getMacroAvgPrecision(): number; setMacroAvgPrecision(value: number): MetricsSummary; - getMacroAvgRecall(): number; setMacroAvgRecall(value: number): MetricsSummary; - getMeanAvgPrecisionIou50(): number; setMeanAvgPrecisionIou50(value: number): MetricsSummary; - getMeanAvgPrecisionIouRange(): number; setMeanAvgPrecisionIouRange(value: number): MetricsSummary; - clearLopqMetricsList(): void; getLopqMetricsList(): Array; setLopqMetricsList(value: Array): MetricsSummary; addLopqMetrics(value?: LOPQEvalResult, index?: number): LOPQEvalResult; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MetricsSummary.AsObject; static toObject(includeInstance: boolean, msg: MetricsSummary): MetricsSummary.AsObject; @@ -3411,59 +3753,67 @@ export class EvalMetrics extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): EvalMetrics; - + getUserId(): string; + setUserId(value: string): EvalMetrics; + getAppId(): string; + setAppId(value: string): EvalMetrics; getId(): string; setId(value: string): EvalMetrics; + hasModel(): boolean; + clearModel(): void; + getModel(): Model | undefined; + setModel(value?: Model): EvalMetrics; + + hasGroundTruthDataset(): boolean; + clearGroundTruthDataset(): void; + getGroundTruthDataset(): Dataset | undefined; + setGroundTruthDataset(value?: Dataset): EvalMetrics; hasSummary(): boolean; clearSummary(): void; getSummary(): MetricsSummary | undefined; setSummary(value?: MetricsSummary): EvalMetrics; - hasConfusionMatrix(): boolean; clearConfusionMatrix(): void; getConfusionMatrix(): ConfusionMatrix | undefined; setConfusionMatrix(value?: ConfusionMatrix): EvalMetrics; - hasCooccurrenceMatrix(): boolean; clearCooccurrenceMatrix(): void; getCooccurrenceMatrix(): CooccurrenceMatrix | undefined; setCooccurrenceMatrix(value?: CooccurrenceMatrix): EvalMetrics; - hasLabelCounts(): boolean; clearLabelCounts(): void; getLabelCounts(): LabelDistribution | undefined; setLabelCounts(value?: LabelDistribution): EvalMetrics; - clearBinaryMetricsList(): void; getBinaryMetricsList(): Array; setBinaryMetricsList(value: Array): EvalMetrics; addBinaryMetrics(value?: BinaryMetrics, index?: number): BinaryMetrics; - clearTestSetList(): void; getTestSetList(): Array; setTestSetList(value: Array): EvalMetrics; addTestSet(value?: EvalTestSetEntry, index?: number): EvalTestSetEntry; - clearMetricsByAreaList(): void; getMetricsByAreaList(): Array; setMetricsByAreaList(value: Array): EvalMetrics; addMetricsByArea(value?: BinaryMetrics, index?: number): BinaryMetrics; - clearMetricsByClassList(): void; getMetricsByClassList(): Array; setMetricsByClassList(value: Array): EvalMetrics; addMetricsByClass(value?: BinaryMetrics, index?: number): BinaryMetrics; - clearTrackerMetricsList(): void; getTrackerMetricsList(): Array; setTrackerMetricsList(value: Array): EvalMetrics; addTrackerMetrics(value?: TrackerMetrics, index?: number): TrackerMetrics; + hasEvalInfo(): boolean; + clearEvalInfo(): void; + getEvalInfo(): EvalInfo | undefined; + setEvalInfo(value?: EvalInfo): EvalMetrics; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EvalMetrics.AsObject; @@ -3478,7 +3828,11 @@ export class EvalMetrics extends jspb.Message { export namespace EvalMetrics { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, + userId: string, + appId: string, id: string, + model?: Model.AsObject, + groundTruthDataset?: Dataset.AsObject, summary?: MetricsSummary.AsObject, confusionMatrix?: ConfusionMatrix.AsObject, cooccurrenceMatrix?: CooccurrenceMatrix.AsObject, @@ -3488,32 +3842,26 @@ export namespace EvalMetrics { metricsByAreaList: Array, metricsByClassList: Array, trackerMetricsList: Array, + evalInfo?: EvalInfo.AsObject, } } export class FieldsValue extends jspb.Message { getConfusionMatrix(): boolean; setConfusionMatrix(value: boolean): FieldsValue; - getCooccurrenceMatrix(): boolean; setCooccurrenceMatrix(value: boolean): FieldsValue; - getLabelCounts(): boolean; setLabelCounts(value: boolean): FieldsValue; - getBinaryMetrics(): boolean; setBinaryMetrics(value: boolean): FieldsValue; - getTestSet(): boolean; setTestSet(value: boolean): FieldsValue; - getMetricsByArea(): boolean; setMetricsByArea(value: boolean): FieldsValue; - getMetricsByClass(): boolean; setMetricsByClass(value: boolean): FieldsValue; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): FieldsValue.AsObject; static toObject(includeInstance: boolean, msg: FieldsValue): FieldsValue.AsObject; @@ -3540,37 +3888,31 @@ export class Output extends jspb.Message { getId(): string; setId(value: string): Output; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): Output; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Output; - hasModel(): boolean; clearModel(): void; getModel(): Model | undefined; setModel(value?: Model): Output; - hasInput(): boolean; clearInput(): void; getInput(): Input | undefined; setInput(value?: Input): Output; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): Output; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Output.AsObject; static toObject(includeInstance: boolean, msg: Output): Output.AsObject; @@ -3595,13 +3937,11 @@ export namespace Output { export class ScopeDeps extends jspb.Message { getScope(): string; setScope(value: string): ScopeDeps; - clearDependingScopesList(): void; getDependingScopesList(): Array; setDependingScopesList(value: Array): ScopeDeps; addDependingScopes(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ScopeDeps.AsObject; static toObject(includeInstance: boolean, msg: ScopeDeps): ScopeDeps.AsObject; @@ -3622,13 +3962,11 @@ export namespace ScopeDeps { export class EndpointDeps extends jspb.Message { getEndpoint(): string; setEndpoint(value: string): EndpointDeps; - clearDependingScopesList(): void; getDependingScopesList(): Array; setDependingScopesList(value: Array): EndpointDeps; addDependingScopes(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EndpointDeps.AsObject; static toObject(includeInstance: boolean, msg: EndpointDeps): EndpointDeps.AsObject; @@ -3650,25 +3988,20 @@ export class Hit extends jspb.Message { getScore(): number; setScore(value: number): Hit; - hasInput(): boolean; clearInput(): void; getInput(): Input | undefined; setInput(value?: Input): Hit; - hasAnnotation(): boolean; clearAnnotation(): void; getAnnotation(): Annotation | undefined; setAnnotation(value?: Annotation): Hit; - getUserId(): string; setUserId(value: string): Hit; - getAppId(): string; setAppId(value: string): Hit; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Hit.AsObject; static toObject(includeInstance: boolean, msg: Hit): Hit.AsObject; @@ -3689,6 +4022,26 @@ export namespace Hit { } } +export class HitCount extends jspb.Message { + getEstimatedTotal(): number; + setEstimatedTotal(value: number): HitCount; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HitCount.AsObject; + static toObject(includeInstance: boolean, msg: HitCount): HitCount.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HitCount, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HitCount; + static deserializeBinaryFromReader(message: HitCount, reader: jspb.BinaryReader): HitCount; +} + +export namespace HitCount { + export type AsObject = { + estimatedTotal: number, + } +} + export class And extends jspb.Message { hasInput(): boolean; @@ -3696,22 +4049,18 @@ export class And extends jspb.Message { getInput(): Input | undefined; setInput(value?: Input): And; - hasOutput(): boolean; clearOutput(): void; getOutput(): Output | undefined; setOutput(value?: Output): And; - getNegate(): boolean; setNegate(value: boolean): And; - hasAnnotation(): boolean; clearAnnotation(): void; getAnnotation(): Annotation | undefined; setAnnotation(value?: Annotation): And; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): And.AsObject; static toObject(includeInstance: boolean, msg: And): And.AsObject; @@ -3736,21 +4085,17 @@ export class Query extends jspb.Message { getAndsList(): Array; setAndsList(value: Array): Query; addAnds(value?: And, index?: number): And; - getLanguage(): string; setLanguage(value: string): Query; - clearFiltersList(): void; getFiltersList(): Array; setFiltersList(value: Array): Query; addFilters(value?: Filter, index?: number): Filter; - clearRanksList(): void; getRanksList(): Array; setRanksList(value: Array): Query; addRanks(value?: Rank, index?: number): Rank; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Query.AsObject; static toObject(includeInstance: boolean, msg: Query): Query.AsObject; @@ -3776,52 +4121,42 @@ export class Search extends jspb.Message { clearQuery(): void; getQuery(): Query | undefined; setQuery(value?: Query): Search; - getId(): string; setId(value: string): Search; - getApplicationId(): string; setApplicationId(value: string): Search; - getName(): string; setName(value: string): Search; - hasAsOf(): boolean; clearAsOf(): void; getAsOf(): google_protobuf_timestamp_pb.Timestamp | undefined; setAsOf(value?: google_protobuf_timestamp_pb.Timestamp): Search; - getGitHash(): string; setGitHash(value: string): Search; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Search; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Search; - getAlgorithm(): string; setAlgorithm(value: string): Search; - getSave(): boolean; setSave(value: boolean): Search; - getMinValue(): number; setMinValue(value: number): Search; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): Search; - + getMetric(): Search.Metric; + setMetric(value: Search.Metric): Search; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Search.AsObject; @@ -3847,32 +4182,36 @@ export namespace Search { save: boolean, minValue: number, visibility?: Visibility.AsObject, + metric: Search.Metric, + } + + export enum Metric { + METRIC_NOT_SET = 0, + EUCLIDEAN_DISTANCE = 1, + COSINE_DISTANCE = 2, } + } export class Filter extends jspb.Message { getNegate(): boolean; setNegate(value: boolean): Filter; - hasAnnotation(): boolean; clearAnnotation(): void; getAnnotation(): Annotation | undefined; setAnnotation(value?: Annotation): Filter; - hasInput(): boolean; clearInput(): void; getInput(): Input | undefined; setInput(value?: Input): Filter; - hasLastUpdatedTimeRange(): boolean; clearLastUpdatedTimeRange(): void; getLastUpdatedTimeRange(): TimeRange | undefined; setLastUpdatedTimeRange(value?: TimeRange): Filter; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Filter.AsObject; static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject; @@ -3899,13 +4238,11 @@ export class TimeRange extends jspb.Message { getStartTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setStartTime(value?: google_protobuf_timestamp_pb.Timestamp): TimeRange; - hasEndTime(): boolean; clearEndTime(): void; getEndTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setEndTime(value?: google_protobuf_timestamp_pb.Timestamp): TimeRange; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TimeRange.AsObject; static toObject(includeInstance: boolean, msg: TimeRange): TimeRange.AsObject; @@ -3927,13 +4264,11 @@ export class Rank extends jspb.Message { getNegate(): boolean; setNegate(value: boolean): Rank; - hasAnnotation(): boolean; clearAnnotation(): void; getAnnotation(): Annotation | undefined; setAnnotation(value?: Annotation): Rank; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Rank.AsObject; static toObject(includeInstance: boolean, msg: Rank): Rank.AsObject; @@ -3958,34 +4293,28 @@ export class AnnotationSearchMetrics extends jspb.Message { getGroundTruth(): Search | undefined; setGroundTruth(value?: Search): AnnotationSearchMetrics; - hasSearchToEval(): boolean; clearSearchToEval(): void; getSearchToEval(): Search | undefined; setSearchToEval(value?: Search): AnnotationSearchMetrics; - hasMetrics(): boolean; clearMetrics(): void; getMetrics(): EvalMetrics | undefined; setMetrics(value?: EvalMetrics): AnnotationSearchMetrics; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): AnnotationSearchMetrics; - getActiveConceptCount(): number; setActiveConceptCount(value: number): AnnotationSearchMetrics; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): AnnotationSearchMetrics; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AnnotationSearchMetrics.AsObject; static toObject(includeInstance: boolean, msg: AnnotationSearchMetrics): AnnotationSearchMetrics.AsObject; @@ -4010,26 +4339,21 @@ export namespace AnnotationSearchMetrics { export class Text extends jspb.Message { getRaw(): string; setRaw(value: string): Text; - getUrl(): string; setUrl(value: string): Text; - getAllowDuplicateUrl(): boolean; setAllowDuplicateUrl(value: boolean): Text; - hasHosted(): boolean; clearHosted(): void; getHosted(): HostedURL | undefined; setHosted(value?: HostedURL): Text; - hasTextInfo(): boolean; clearTextInfo(): void; getTextInfo(): TextInfo | undefined; setTextInfo(value?: TextInfo): Text; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Text.AsObject; static toObject(includeInstance: boolean, msg: Text): Text.AsObject; @@ -4053,11 +4377,9 @@ export namespace Text { export class TextInfo extends jspb.Message { getCharCount(): number; setCharCount(value: number): TextInfo; - getEncoding(): string; setEncoding(value: string): TextInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TextInfo.AsObject; static toObject(includeInstance: boolean, msg: TextInfo): TextInfo.AsObject; @@ -4078,91 +4400,73 @@ export namespace TextInfo { export class User extends jspb.Message { getId(): string; setId(value: string): User; - getPrimaryEmail(): string; setPrimaryEmail(value: string): User; - getFirstName(): string; setFirstName(value: string): User; - getLastName(): string; setLastName(value: string): User; - getCompanyName(): string; setCompanyName(value: string): User; - getJobTitle(): string; setJobTitle(value: string): User; - getJobRole(): string; setJobRole(value: string): User; - getBillType(): string; setBillType(value: string): User; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): User; - hasDateGdprConsent(): boolean; clearDateGdprConsent(): void; getDateGdprConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; setDateGdprConsent(value?: google_protobuf_timestamp_pb.Timestamp): User; - hasDateTosConsent(): boolean; clearDateTosConsent(): void; getDateTosConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; setDateTosConsent(value?: google_protobuf_timestamp_pb.Timestamp): User; - hasDateMarketingConsent(): boolean; clearDateMarketingConsent(): void; getDateMarketingConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; setDateMarketingConsent(value?: google_protobuf_timestamp_pb.Timestamp): User; + hasDatePiiConsent(): boolean; + clearDatePiiConsent(): void; + getDatePiiConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; + setDatePiiConsent(value?: google_protobuf_timestamp_pb.Timestamp): User; hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): User; - clearEmailAddressesList(): void; getEmailAddressesList(): Array; setEmailAddressesList(value: Array): User; addEmailAddresses(value?: EmailAddress, index?: number): EmailAddress; - - getIsOrgAdmin(): boolean; - setIsOrgAdmin(value: boolean): User; - getTwoFactorAuthEnabled(): boolean; setTwoFactorAuthEnabled(value: boolean): User; - getTeamsCount(): number; setTeamsCount(value: number): User; - getIsStarred(): boolean; setIsStarred(value: boolean): User; - getStarCount(): number; setStarCount(value: number): User; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): User; - hasUserDetail(): boolean; clearUserDetail(): void; getUserDetail(): UserDetail | undefined; setUserDetail(value?: UserDetail): User; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): User.AsObject; static toObject(includeInstance: boolean, msg: User): User.AsObject; @@ -4187,9 +4491,9 @@ export namespace User { dateGdprConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, dateTosConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, dateMarketingConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, + datePiiConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, metadata?: google_protobuf_struct_pb.Struct.AsObject, emailAddressesList: Array, - isOrgAdmin: boolean, twoFactorAuthEnabled: boolean, teamsCount: number, isStarred: boolean, @@ -4202,55 +4506,46 @@ export namespace User { export class UserDetail extends jspb.Message { getPrimaryEmail(): string; setPrimaryEmail(value: string): UserDetail; - getBillType(): string; setBillType(value: string): UserDetail; - hasDateGdprConsent(): boolean; clearDateGdprConsent(): void; getDateGdprConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; setDateGdprConsent(value?: google_protobuf_timestamp_pb.Timestamp): UserDetail; - hasDateTosConsent(): boolean; clearDateTosConsent(): void; getDateTosConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; setDateTosConsent(value?: google_protobuf_timestamp_pb.Timestamp): UserDetail; - hasDateMarketingConsent(): boolean; clearDateMarketingConsent(): void; getDateMarketingConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; setDateMarketingConsent(value?: google_protobuf_timestamp_pb.Timestamp): UserDetail; + hasDatePiiConsent(): boolean; + clearDatePiiConsent(): void; + getDatePiiConsent(): google_protobuf_timestamp_pb.Timestamp | undefined; + setDatePiiConsent(value?: google_protobuf_timestamp_pb.Timestamp): UserDetail; hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): UserDetail; - clearEmailAddressesList(): void; getEmailAddressesList(): Array; setEmailAddressesList(value: Array): UserDetail; addEmailAddresses(value?: EmailAddress, index?: number): EmailAddress; - - getIsOrgAdmin(): boolean; - setIsOrgAdmin(value: boolean): UserDetail; - getTwoFactorAuthEnabled(): boolean; setTwoFactorAuthEnabled(value: boolean): UserDetail; - getTeamsCount(): number; setTeamsCount(value: number): UserDetail; - getCountry(): string; setCountry(value: string): UserDetail; - getState(): string; setState(value: string): UserDetail; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UserDetail.AsObject; static toObject(includeInstance: boolean, msg: UserDetail): UserDetail.AsObject; @@ -4268,9 +4563,9 @@ export namespace UserDetail { dateGdprConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, dateTosConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, dateMarketingConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, + datePiiConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject, metadata?: google_protobuf_struct_pb.Struct.AsObject, emailAddressesList: Array, - isOrgAdmin: boolean, twoFactorAuthEnabled: boolean, teamsCount: number, country: string, @@ -4281,14 +4576,11 @@ export namespace UserDetail { export class EmailAddress extends jspb.Message { getEmail(): string; setEmail(value: string): EmailAddress; - getPrimary(): boolean; setPrimary(value: boolean): EmailAddress; - getVerified(): boolean; setVerified(value: boolean): EmailAddress; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): EmailAddress.AsObject; static toObject(includeInstance: boolean, msg: EmailAddress): EmailAddress.AsObject; @@ -4311,7 +4603,6 @@ export class Password extends jspb.Message { getPlaintext(): string; setPlaintext(value: string): Password; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Password.AsObject; static toObject(includeInstance: boolean, msg: Password): Password.AsObject; @@ -4331,47 +4622,33 @@ export namespace Password { export class PasswordViolations extends jspb.Message { getMinimumLength(): boolean; setMinimumLength(value: boolean): PasswordViolations; - getMaximumLength(): boolean; setMaximumLength(value: boolean): PasswordViolations; - getUpperCaseNeeded(): boolean; setUpperCaseNeeded(value: boolean): PasswordViolations; - getLowerCaseNeeded(): boolean; setLowerCaseNeeded(value: boolean): PasswordViolations; - getNumericNeeded(): boolean; setNumericNeeded(value: boolean): PasswordViolations; - getNonAlphanumericNeeded(): boolean; setNonAlphanumericNeeded(value: boolean): PasswordViolations; - getPasswordReuse(): boolean; setPasswordReuse(value: boolean): PasswordViolations; - getExcludeNames(): boolean; setExcludeNames(value: boolean): PasswordViolations; - getExcludeEmail(): boolean; setExcludeEmail(value: boolean): PasswordViolations; - getNoConfusingLetters(): boolean; setNoConfusingLetters(value: boolean): PasswordViolations; - getNoSimplePasswords(): boolean; setNoSimplePasswords(value: boolean): PasswordViolations; - getNoCommonVocabs(): boolean; setNoCommonVocabs(value: boolean): PasswordViolations; - getNoOverlapWithOld(): boolean; setNoOverlapWithOld(value: boolean): PasswordViolations; - getPasswordLifespan(): boolean; setPasswordLifespan(value: boolean): PasswordViolations; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PasswordViolations.AsObject; static toObject(includeInstance: boolean, msg: PasswordViolations): PasswordViolations.AsObject; @@ -4404,31 +4681,25 @@ export namespace PasswordViolations { export class Video extends jspb.Message { getUrl(): string; setUrl(value: string): Video; - getBase64(): Uint8Array | string; getBase64_asU8(): Uint8Array; getBase64_asB64(): string; setBase64(value: Uint8Array | string): Video; - getAllowDuplicateUrl(): boolean; setAllowDuplicateUrl(value: boolean): Video; - getThumbnailUrl(): string; setThumbnailUrl(value: string): Video; - hasHosted(): boolean; clearHosted(): void; getHosted(): HostedURL | undefined; setHosted(value?: HostedURL): Video; - hasVideoInfo(): boolean; clearVideoInfo(): void; getVideoInfo(): VideoInfo | undefined; setVideoInfo(value?: VideoInfo): Video; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Video.AsObject; static toObject(includeInstance: boolean, msg: Video): Video.AsObject; @@ -4453,26 +4724,19 @@ export namespace Video { export class VideoInfo extends jspb.Message { getWidth(): number; setWidth(value: number): VideoInfo; - getHeight(): number; setHeight(value: number): VideoInfo; - getFps(): number; setFps(value: number): VideoInfo; - getVideoFormat(): string; setVideoFormat(value: string): VideoInfo; - getBitRate(): number; setBitRate(value: number): VideoInfo; - getFrameCount(): number; setFrameCount(value: number): VideoInfo; - getDurationSeconds(): number; setDurationSeconds(value: number): VideoInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): VideoInfo.AsObject; static toObject(includeInstance: boolean, msg: VideoInfo): VideoInfo.AsObject; @@ -4498,65 +4762,60 @@ export namespace VideoInfo { export class Workflow extends jspb.Message { getId(): string; setId(value: string): Workflow; - getAppId(): string; setAppId(value: string): Workflow; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Workflow; - clearNodesList(): void; getNodesList(): Array; setNodesList(value: Array): Workflow; addNodes(value?: WorkflowNode, index?: number): WorkflowNode; - hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): Workflow; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): Workflow; - getUserId(): string; setUserId(value: string): Workflow; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Workflow; - hasVersion(): boolean; clearVersion(): void; getVersion(): WorkflowVersion | undefined; setVersion(value?: WorkflowVersion): Workflow; - getIsStarred(): boolean; setIsStarred(value: boolean): Workflow; - getStarCount(): number; setStarCount(value: number): Workflow; - getDescription(): string; setDescription(value: string): Workflow; - getNotes(): string; setNotes(value: string): Workflow; - clearUseCasesList(): void; getUseCasesList(): Array; setUseCasesList(value: Array): Workflow; addUseCases(value: string, index?: number): string; + clearCheckConsentsList(): void; + getCheckConsentsList(): Array; + setCheckConsentsList(value: Array): Workflow; + addCheckConsents(value: string, index?: number): string; + hasBookmarkOrigin(): boolean; + clearBookmarkOrigin(): void; + getBookmarkOrigin(): BookmarkOrigin | undefined; + setBookmarkOrigin(value?: BookmarkOrigin): Workflow; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Workflow.AsObject; @@ -4584,58 +4843,49 @@ export namespace Workflow { description: string, notes: string, useCasesList: Array, + checkConsentsList: Array, + bookmarkOrigin?: BookmarkOrigin.AsObject, } } export class WorkflowVersion extends jspb.Message { getId(): string; setId(value: string): WorkflowVersion; - getWorkflowId(): string; setWorkflowId(value: string): WorkflowVersion; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): WorkflowVersion; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): WorkflowVersion; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): WorkflowVersion; - clearNodesList(): void; getNodesList(): Array; setNodesList(value: Array): WorkflowVersion; addNodes(value?: WorkflowNode, index?: number): WorkflowNode; - hasMetadata(): boolean; clearMetadata(): void; getMetadata(): google_protobuf_struct_pb.Struct | undefined; setMetadata(value?: google_protobuf_struct_pb.Struct): WorkflowVersion; - getAppId(): string; setAppId(value: string): WorkflowVersion; - getUserId(): string; setUserId(value: string): WorkflowVersion; - getDescription(): string; setDescription(value: string): WorkflowVersion; - getLicense(): string; setLicense(value: string): WorkflowVersion; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): WorkflowVersion.AsObject; static toObject(includeInstance: boolean, msg: WorkflowVersion): WorkflowVersion.AsObject; @@ -4666,20 +4916,21 @@ export class WorkflowNode extends jspb.Message { getId(): string; setId(value: string): WorkflowNode; - hasModel(): boolean; clearModel(): void; getModel(): Model | undefined; setModel(value?: Model): WorkflowNode; - clearNodeInputsList(): void; getNodeInputsList(): Array; setNodeInputsList(value: Array): WorkflowNode; addNodeInputs(value?: NodeInput, index?: number): NodeInput; - getSuppressOutput(): boolean; setSuppressOutput(value: boolean): WorkflowNode; + hasOutputInfoOverride(): boolean; + clearOutputInfoOverride(): void; + getOutputInfoOverride(): OutputInfo | undefined; + setOutputInfoOverride(value?: OutputInfo): WorkflowNode; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): WorkflowNode.AsObject; @@ -4697,6 +4948,7 @@ export namespace WorkflowNode { model?: Model.AsObject, nodeInputsList: Array, suppressOutput: boolean, + outputInfoOverride?: OutputInfo.AsObject, } } @@ -4704,7 +4956,6 @@ export class NodeInput extends jspb.Message { getNodeId(): string; setNodeId(value: string): NodeInput; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): NodeInput.AsObject; static toObject(includeInstance: boolean, msg: NodeInput): NodeInput.AsObject; @@ -4725,39 +4976,32 @@ export class WorkflowResult extends jspb.Message { getId(): string; setId(value: string): WorkflowResult; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): WorkflowResult; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): WorkflowResult; - hasModel(): boolean; clearModel(): void; getModel(): Model | undefined; setModel(value?: Model): WorkflowResult; - hasInput(): boolean; clearInput(): void; getInput(): Input | undefined; setInput(value?: Input): WorkflowResult; - clearOutputsList(): void; getOutputsList(): Array; setOutputsList(value: Array): WorkflowResult; addOutputs(value?: Output, index?: number): Output; - getSuppressOutput(): boolean; setSuppressOutput(value: boolean): WorkflowResult; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): WorkflowResult.AsObject; static toObject(includeInstance: boolean, msg: WorkflowResult): WorkflowResult.AsObject; @@ -4784,7 +5028,6 @@ export class WorkflowState extends jspb.Message { getId(): string; setId(value: string): WorkflowState; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): WorkflowState.AsObject; static toObject(includeInstance: boolean, msg: WorkflowState): WorkflowState.AsObject; @@ -4804,37 +5047,36 @@ export namespace WorkflowState { export class AppDuplication extends jspb.Message { getId(): string; setId(value: string): AppDuplication; - getNewAppId(): string; setNewAppId(value: string): AppDuplication; - getNewAppName(): string; setNewAppName(value: string): AppDuplication; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): AppDuplication; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): AppDuplication; - hasLastModifiedAt(): boolean; clearLastModifiedAt(): void; getLastModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setLastModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): AppDuplication; - hasFilter(): boolean; clearFilter(): void; getFilter(): AppDuplicationFilters | undefined; setFilter(value?: AppDuplicationFilters): AppDuplication; - + getExistingAppId(): string; + setExistingAppId(value: string): AppDuplication; + clearProgressList(): void; + getProgressList(): Array; + setProgressList(value: Array): AppDuplication; + addProgress(value?: AppCopyProgress, index?: number): AppCopyProgress; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AppDuplication.AsObject; @@ -4855,26 +5097,46 @@ export namespace AppDuplication { createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, lastModifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, filter?: AppDuplicationFilters.AsObject, + existingAppId: string, + progressList: Array, + } +} + +export class AppCopyProgress extends jspb.Message { + getField(): string; + setField(value: string): AppCopyProgress; + getValue(): number; + setValue(value: number): AppCopyProgress; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AppCopyProgress.AsObject; + static toObject(includeInstance: boolean, msg: AppCopyProgress): AppCopyProgress.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AppCopyProgress, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AppCopyProgress; + static deserializeBinaryFromReader(message: AppCopyProgress, reader: jspb.BinaryReader): AppCopyProgress; +} + +export namespace AppCopyProgress { + export type AsObject = { + field: string, + value: number, } } export class AppDuplicationFilters extends jspb.Message { getCopyInputs(): boolean; setCopyInputs(value: boolean): AppDuplicationFilters; - getCopyConcepts(): boolean; setCopyConcepts(value: boolean): AppDuplicationFilters; - getCopyAnnotations(): boolean; setCopyAnnotations(value: boolean): AppDuplicationFilters; - getCopyModels(): boolean; setCopyModels(value: boolean): AppDuplicationFilters; - getCopyWorkflows(): boolean; setCopyWorkflows(value: boolean): AppDuplicationFilters; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AppDuplicationFilters.AsObject; static toObject(includeInstance: boolean, msg: AppDuplicationFilters): AppDuplicationFilters.AsObject; @@ -4898,53 +5160,43 @@ export namespace AppDuplicationFilters { export class LabelOrder extends jspb.Message { getId(): string; setId(value: string): LabelOrder; - getName(): string; setName(value: string): LabelOrder; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): LabelOrder; - getAutoRelease(): boolean; setAutoRelease(value: boolean): LabelOrder; - getAllowEmptyTag(): boolean; setAllowEmptyTag(value: boolean): LabelOrder; - hasDesiredFulfillTime(): boolean; clearDesiredFulfillTime(): void; getDesiredFulfillTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setDesiredFulfillTime(value?: google_protobuf_timestamp_pb.Timestamp): LabelOrder; - hasEstimateFulfillTime(): boolean; clearEstimateFulfillTime(): void; getEstimateFulfillTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setEstimateFulfillTime(value?: google_protobuf_timestamp_pb.Timestamp): LabelOrder; - hasTask(): boolean; clearTask(): void; getTask(): Task | undefined; setTask(value?: Task): LabelOrder; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): LabelOrder; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): LabelOrder; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LabelOrder.AsObject; static toObject(includeInstance: boolean, msg: LabelOrder): LabelOrder.AsObject; @@ -4974,83 +5226,74 @@ export class Task extends jspb.Message { getId(): string; setId(value: string): Task; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Task; - hasModifiedAt(): boolean; clearModifiedAt(): void; getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Task; - getType(): Task.TaskType; setType(value: Task.TaskType): Task; - getDescription(): string; setDescription(value: string): Task; - hasWorker(): boolean; clearWorker(): void; getWorker(): TaskWorker | undefined; setWorker(value?: TaskWorker): Task; - clearConceptIdsList(): void; getConceptIdsList(): Array; setConceptIdsList(value: Array): Task; addConceptIds(value: string, index?: number): string; - hasInputSource(): boolean; clearInputSource(): void; getInputSource(): TaskInputSource | undefined; setInputSource(value?: TaskInputSource): Task; - getSampleMs(): number; setSampleMs(value: number): Task; - hasAiAssistant(): boolean; clearAiAssistant(): void; getAiAssistant(): TaskAIAssistant | undefined; setAiAssistant(value?: TaskAIAssistant): Task; - hasReview(): boolean; clearReview(): void; getReview(): TaskReview | undefined; setReview(value?: TaskReview): Task; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): Task; - getName(): string; setName(value: string): Task; - hasAiAssistParams(): boolean; clearAiAssistParams(): void; getAiAssistParams(): AiAssistParameters | undefined; setAiAssistParams(value?: AiAssistParameters): Task; - hasVisibility(): boolean; clearVisibility(): void; getVisibility(): Visibility | undefined; setVisibility(value?: Visibility): Task; - getAppId(): string; setAppId(value: string): Task; - getUserId(): string; setUserId(value: string): Task; - + getLabelOrderId(): string; + setLabelOrderId(value: string): Task; + clearConceptsList(): void; + getConceptsList(): Array; + setConceptsList(value: Array): Task; + addConcepts(value?: TaskConcept, index?: number): TaskConcept; + getDeletePreviousAnnotations(): boolean; + setDeletePreviousAnnotations(value: boolean): Task; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Task.AsObject; @@ -5081,6 +5324,9 @@ export namespace Task { visibility?: Visibility.AsObject, appId: string, userId: string, + labelOrderId: string, + conceptsList: Array, + deletePreviousAnnotations: boolean, } export enum TaskType { @@ -5095,16 +5341,13 @@ export namespace Task { export class AiAssistParameters extends jspb.Message { getMinThreshold(): number; setMinThreshold(value: number): AiAssistParameters; - getMaxThreshold(): number; setMaxThreshold(value: number): AiAssistParameters; - clearConceptRelationIdsList(): void; getConceptRelationIdsList(): Array; setConceptRelationIdsList(value: Array): AiAssistParameters; addConceptRelationIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AiAssistParameters.AsObject; static toObject(includeInstance: boolean, msg: AiAssistParameters): AiAssistParameters.AsObject; @@ -5126,19 +5369,28 @@ export namespace AiAssistParameters { export class TaskWorker extends jspb.Message { getStrategy(): TaskWorker.TaskWorkerStrategy; setStrategy(value: TaskWorker.TaskWorkerStrategy): TaskWorker; - clearUserIdsList(): void; getUserIdsList(): Array; setUserIdsList(value: Array): TaskWorker; addUserIds(value: string, index?: number): string; - + clearUsersList(): void; + getUsersList(): Array; + setUsersList(value: Array): TaskWorker; + addUsers(value?: User, index?: number): User; + clearModelsList(): void; + getModelsList(): Array; + setModelsList(value: Array): TaskWorker; + addModels(value?: Model, index?: number): Model; + clearWorkflowsList(): void; + getWorkflowsList(): Array; + setWorkflowsList(value: Array): TaskWorker; + addWorkflows(value?: Workflow, index?: number): Workflow; hasPartitionedStrategyInfo(): boolean; clearPartitionedStrategyInfo(): void; getPartitionedStrategyInfo(): TaskWorkerPartitionedStrategyInfo | undefined; setPartitionedStrategyInfo(value?: TaskWorkerPartitionedStrategyInfo): TaskWorker; - getStrategyInfoCase(): TaskWorker.StrategyInfoCase; serializeBinary(): Uint8Array; @@ -5155,6 +5407,9 @@ export namespace TaskWorker { export type AsObject = { strategy: TaskWorker.TaskWorkerStrategy, userIdsList: Array, + usersList: Array, + modelsList: Array, + workflowsList: Array, partitionedStrategyInfo?: TaskWorkerPartitionedStrategyInfo.AsObject, } @@ -5167,9 +5422,7 @@ export namespace TaskWorker { export enum StrategyInfoCase { STRATEGY_INFO_NOT_SET = 0, - - PARTITIONED_STRATEGY_INFO = 3, - + PARTITIONED_STRATEGY_INFO = 3, } } @@ -5177,17 +5430,14 @@ export namespace TaskWorker { export class TaskWorkerPartitionedStrategyInfo extends jspb.Message { getType(): TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy; setType(value: TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy): TaskWorkerPartitionedStrategyInfo; - getWorkersPerInput(): number; setWorkersPerInput(value: number): TaskWorkerPartitionedStrategyInfo; - hasWeights(): boolean; clearWeights(): void; getWeights(): google_protobuf_struct_pb.Struct | undefined; setWeights(value?: google_protobuf_struct_pb.Struct): TaskWorkerPartitionedStrategyInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TaskWorkerPartitionedStrategyInfo.AsObject; static toObject(includeInstance: boolean, msg: TaskWorkerPartitionedStrategyInfo): TaskWorkerPartitionedStrategyInfo.AsObject; @@ -5216,11 +5466,9 @@ export namespace TaskWorkerPartitionedStrategyInfo { export class TaskInputSource extends jspb.Message { getType(): TaskInputSource.TaskInputSourceType; setType(value: TaskInputSource.TaskInputSourceType): TaskInputSource; - getId(): string; setId(value: string): TaskInputSource; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TaskInputSource.AsObject; static toObject(includeInstance: boolean, msg: TaskInputSource): TaskInputSource.AsObject; @@ -5241,6 +5489,7 @@ export namespace TaskInputSource { INPUT_SOURCE_TYPE_NOT_SET = 0, ALL_INPUTS = 1, SAVED_SEARCH = 2, + DATASET = 3, } } @@ -5248,25 +5497,25 @@ export namespace TaskInputSource { export class TaskReview extends jspb.Message { getStrategy(): TaskReview.TaskReviewStrategy; setStrategy(value: TaskReview.TaskReviewStrategy): TaskReview; - clearUserIdsList(): void; getUserIdsList(): Array; setUserIdsList(value: Array): TaskReview; addUserIds(value: string, index?: number): string; - + clearUsersList(): void; + getUsersList(): Array; + setUsersList(value: Array): TaskReview; + addUsers(value?: User, index?: number): User; hasManualStrategyInfo(): boolean; clearManualStrategyInfo(): void; getManualStrategyInfo(): TaskReviewManualStrategyInfo | undefined; setManualStrategyInfo(value?: TaskReviewManualStrategyInfo): TaskReview; - hasConsensusStrategyInfo(): boolean; clearConsensusStrategyInfo(): void; getConsensusStrategyInfo(): TaskReviewConsensusStrategyInfo | undefined; setConsensusStrategyInfo(value?: TaskReviewConsensusStrategyInfo): TaskReview; - getStrategyInfoCase(): TaskReview.StrategyInfoCase; serializeBinary(): Uint8Array; @@ -5283,6 +5532,7 @@ export namespace TaskReview { export type AsObject = { strategy: TaskReview.TaskReviewStrategy, userIdsList: Array, + usersList: Array, manualStrategyInfo?: TaskReviewManualStrategyInfo.AsObject, consensusStrategyInfo?: TaskReviewConsensusStrategyInfo.AsObject, } @@ -5297,11 +5547,8 @@ export namespace TaskReview { export enum StrategyInfoCase { STRATEGY_INFO_NOT_SET = 0, - - MANUAL_STRATEGY_INFO = 3, - - CONSENSUS_STRATEGY_INFO = 4, - + MANUAL_STRATEGY_INFO = 3, + CONSENSUS_STRATEGY_INFO = 4, } } @@ -5310,7 +5557,6 @@ export class TaskReviewManualStrategyInfo extends jspb.Message { getSamplePercentage(): number; setSamplePercentage(value: number): TaskReviewManualStrategyInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TaskReviewManualStrategyInfo.AsObject; static toObject(includeInstance: boolean, msg: TaskReviewManualStrategyInfo): TaskReviewManualStrategyInfo.AsObject; @@ -5331,7 +5577,6 @@ export class TaskReviewConsensusStrategyInfo extends jspb.Message { getApprovalThreshold(): number; setApprovalThreshold(value: number): TaskReviewConsensusStrategyInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TaskReviewConsensusStrategyInfo.AsObject; static toObject(includeInstance: boolean, msg: TaskReviewConsensusStrategyInfo): TaskReviewConsensusStrategyInfo.AsObject; @@ -5352,7 +5597,6 @@ export class TaskAIAssistant extends jspb.Message { getWorkflowId(): string; setWorkflowId(value: string): TaskAIAssistant; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TaskAIAssistant.AsObject; static toObject(includeInstance: boolean, msg: TaskAIAssistant): TaskAIAssistant.AsObject; @@ -5372,23 +5616,17 @@ export namespace TaskAIAssistant { export class TaskStatusCountPerUser extends jspb.Message { getUserId(): string; setUserId(value: string): TaskStatusCountPerUser; - getPending(): number; setPending(value: number): TaskStatusCountPerUser; - getAwaitingReview(): number; setAwaitingReview(value: number): TaskStatusCountPerUser; - getSuccess(): number; setSuccess(value: number): TaskStatusCountPerUser; - getReviewDenied(): number; setReviewDenied(value: number): TaskStatusCountPerUser; - getAwaitingConsensusReview(): number; setAwaitingConsensusReview(value: number): TaskStatusCountPerUser; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TaskStatusCountPerUser.AsObject; static toObject(includeInstance: boolean, msg: TaskStatusCountPerUser): TaskStatusCountPerUser.AsObject; @@ -5410,38 +5648,118 @@ export namespace TaskStatusCountPerUser { } } +export class ThresholdRange extends jspb.Message { + getIsLowerInclusive(): boolean; + setIsLowerInclusive(value: boolean): ThresholdRange; + getIsUpperInclusive(): boolean; + setIsUpperInclusive(value: boolean): ThresholdRange; + getLower(): number; + setLower(value: number): ThresholdRange; + getUpper(): number; + setUpper(value: number): ThresholdRange; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ThresholdRange.AsObject; + static toObject(includeInstance: boolean, msg: ThresholdRange): ThresholdRange.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ThresholdRange, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ThresholdRange; + static deserializeBinaryFromReader(message: ThresholdRange, reader: jspb.BinaryReader): ThresholdRange; +} + +export namespace ThresholdRange { + export type AsObject = { + isLowerInclusive: boolean, + isUpperInclusive: boolean, + lower: number, + upper: number, + } +} + +export class TaskConceptAutoAnnotationConfig extends jspb.Message { + getAnnotationDataTypes(): number; + setAnnotationDataTypes(value: number): TaskConceptAutoAnnotationConfig; + + hasThresholdRange(): boolean; + clearThresholdRange(): void; + getThresholdRange(): ThresholdRange | undefined; + setThresholdRange(value?: ThresholdRange): TaskConceptAutoAnnotationConfig; + getStatusCode(): proto_clarifai_api_status_status_code_pb.StatusCode; + setStatusCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): TaskConceptAutoAnnotationConfig; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TaskConceptAutoAnnotationConfig.AsObject; + static toObject(includeInstance: boolean, msg: TaskConceptAutoAnnotationConfig): TaskConceptAutoAnnotationConfig.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TaskConceptAutoAnnotationConfig, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TaskConceptAutoAnnotationConfig; + static deserializeBinaryFromReader(message: TaskConceptAutoAnnotationConfig, reader: jspb.BinaryReader): TaskConceptAutoAnnotationConfig; +} + +export namespace TaskConceptAutoAnnotationConfig { + export type AsObject = { + annotationDataTypes: number, + thresholdRange?: ThresholdRange.AsObject, + statusCode: proto_clarifai_api_status_status_code_pb.StatusCode, + } +} + +export class TaskConcept extends jspb.Message { + + hasConcept(): boolean; + clearConcept(): void; + getConcept(): Concept | undefined; + setConcept(value?: Concept): TaskConcept; + + hasAutoAnnotationConfig(): boolean; + clearAutoAnnotationConfig(): void; + getAutoAnnotationConfig(): TaskConceptAutoAnnotationConfig | undefined; + setAutoAnnotationConfig(value?: TaskConceptAutoAnnotationConfig): TaskConcept; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TaskConcept.AsObject; + static toObject(includeInstance: boolean, msg: TaskConcept): TaskConcept.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TaskConcept, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TaskConcept; + static deserializeBinaryFromReader(message: TaskConcept, reader: jspb.BinaryReader): TaskConcept; +} + +export namespace TaskConcept { + export type AsObject = { + concept?: Concept.AsObject, + autoAnnotationConfig?: TaskConceptAutoAnnotationConfig.AsObject, + } +} + export class Collector extends jspb.Message { getId(): string; setId(value: string): Collector; - getDescription(): string; setDescription(value: string): Collector; - hasCreatedAt(): boolean; clearCreatedAt(): void; getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Collector; - getPreQueueWorkflowId(): string; setPreQueueWorkflowId(value: string): Collector; - getPostQueueWorkflowId(): string; setPostQueueWorkflowId(value: string): Collector; - hasCollectorSource(): boolean; clearCollectorSource(): void; getCollectorSource(): CollectorSource | undefined; setCollectorSource(value?: CollectorSource): Collector; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): Collector; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Collector.AsObject; static toObject(includeInstance: boolean, msg: Collector): Collector.AsObject; @@ -5471,7 +5789,6 @@ export class CollectorSource extends jspb.Message { getApiPostModelOutputsCollectorSource(): APIPostModelOutputsCollectorSource | undefined; setApiPostModelOutputsCollectorSource(value?: APIPostModelOutputsCollectorSource): CollectorSource; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CollectorSource.AsObject; static toObject(includeInstance: boolean, msg: CollectorSource): CollectorSource.AsObject; @@ -5491,20 +5808,15 @@ export namespace CollectorSource { export class APIPostModelOutputsCollectorSource extends jspb.Message { getModelUserId(): string; setModelUserId(value: string): APIPostModelOutputsCollectorSource; - getModelAppId(): string; setModelAppId(value: string): APIPostModelOutputsCollectorSource; - getModelId(): string; setModelId(value: string): APIPostModelOutputsCollectorSource; - getModelVersionId(): string; setModelVersionId(value: string): APIPostModelOutputsCollectorSource; - getPostInputsKeyId(): string; setPostInputsKeyId(value: string): APIPostModelOutputsCollectorSource; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): APIPostModelOutputsCollectorSource.AsObject; static toObject(includeInstance: boolean, msg: APIPostModelOutputsCollectorSource): APIPostModelOutputsCollectorSource.AsObject; @@ -5531,16 +5843,13 @@ export class StatValue extends jspb.Message { clearTime(): void; getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): StatValue; - getValue(): number; setValue(value: number): StatValue; - clearTagsList(): void; getTagsList(): Array; setTagsList(value: Array): StatValue; addTags(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StatValue.AsObject; static toObject(includeInstance: boolean, msg: StatValue): StatValue.AsObject; @@ -5565,13 +5874,11 @@ export class StatValueAggregateResult extends jspb.Message { setStatValueAggregatesList(value: Array): StatValueAggregateResult; addStatValueAggregates(value?: StatValueAggregate, index?: number): StatValueAggregate; - hasStatValueAggregateQuery(): boolean; clearStatValueAggregateQuery(): void; getStatValueAggregateQuery(): StatValueAggregateQuery | undefined; setStatValueAggregateQuery(value?: StatValueAggregateQuery): StatValueAggregateResult; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StatValueAggregateResult.AsObject; static toObject(includeInstance: boolean, msg: StatValueAggregateResult): StatValueAggregateResult.AsObject; @@ -5595,19 +5902,15 @@ export class StatValueAggregate extends jspb.Message { clearTime(): void; getTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTime(value?: google_protobuf_timestamp_pb.Timestamp): StatValueAggregate; - getAggregateValue(): number; setAggregateValue(value: number): StatValueAggregate; - getCount(): number; setCount(value: number): StatValueAggregate; - clearTagsList(): void; getTagsList(): Array; setTagsList(value: Array): StatValueAggregate; addTags(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StatValueAggregate.AsObject; static toObject(includeInstance: boolean, msg: StatValueAggregate): StatValueAggregate.AsObject; @@ -5632,31 +5935,25 @@ export class StatValueAggregateQuery extends jspb.Message { getTagsList(): Array; setTagsList(value: Array): StatValueAggregateQuery; addTags(value: string, index?: number): string; - clearTagGroupsList(): void; getTagGroupsList(): Array; setTagGroupsList(value: Array): StatValueAggregateQuery; addTagGroups(value: string, index?: number): string; - getStatValueAggType(): StatValueAggType; setStatValueAggType(value: StatValueAggType): StatValueAggregateQuery; - getStatTimeAggType(): StatTimeAggType; setStatTimeAggType(value: StatTimeAggType): StatValueAggregateQuery; - hasStartTime(): boolean; clearStartTime(): void; getStartTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setStartTime(value?: google_protobuf_timestamp_pb.Timestamp): StatValueAggregateQuery; - hasEndTime(): boolean; clearEndTime(): void; getEndTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setEndTime(value?: google_protobuf_timestamp_pb.Timestamp): StatValueAggregateQuery; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StatValueAggregateQuery.AsObject; static toObject(includeInstance: boolean, msg: StatValueAggregateQuery): StatValueAggregateQuery.AsObject; @@ -5678,11 +5975,105 @@ export namespace StatValueAggregateQuery { } } +export class DatasetInputsSearchAddJob extends jspb.Message { + getId(): string; + setId(value: string): DatasetInputsSearchAddJob; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): DatasetInputsSearchAddJob; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): DatasetInputsSearchAddJob; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): DatasetInputsSearchAddJob; + getDatasetId(): string; + setDatasetId(value: string): DatasetInputsSearchAddJob; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): Search | undefined; + setSearch(value?: Search): DatasetInputsSearchAddJob; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetInputsSearchAddJob.AsObject; + static toObject(includeInstance: boolean, msg: DatasetInputsSearchAddJob): DatasetInputsSearchAddJob.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetInputsSearchAddJob, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetInputsSearchAddJob; + static deserializeBinaryFromReader(message: DatasetInputsSearchAddJob, reader: jspb.BinaryReader): DatasetInputsSearchAddJob; +} + +export namespace DatasetInputsSearchAddJob { + export type AsObject = { + id: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + datasetId: string, + search?: Search.AsObject, + } +} + +export class PCAProjectionComparator extends jspb.Message { + getDistanceThreshold(): number; + setDistanceThreshold(value: number): PCAProjectionComparator; + getModelVersionId(): string; + setModelVersionId(value: string): PCAProjectionComparator; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PCAProjectionComparator.AsObject; + static toObject(includeInstance: boolean, msg: PCAProjectionComparator): PCAProjectionComparator.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PCAProjectionComparator, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PCAProjectionComparator; + static deserializeBinaryFromReader(message: PCAProjectionComparator, reader: jspb.BinaryReader): PCAProjectionComparator; +} + +export namespace PCAProjectionComparator { + export type AsObject = { + distanceThreshold: number, + modelVersionId: string, + } +} + +export class DuplicateAnnotationsResults extends jspb.Message { + clearDuplicateCfidList(): void; + getDuplicateCfidList(): Array; + setDuplicateCfidList(value: Array): DuplicateAnnotationsResults; + addDuplicateCfid(value: string, index?: number): string; + getUniqueCount(): number; + setUniqueCount(value: number): DuplicateAnnotationsResults; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DuplicateAnnotationsResults.AsObject; + static toObject(includeInstance: boolean, msg: DuplicateAnnotationsResults): DuplicateAnnotationsResults.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DuplicateAnnotationsResults, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DuplicateAnnotationsResults; + static deserializeBinaryFromReader(message: DuplicateAnnotationsResults, reader: jspb.BinaryReader): DuplicateAnnotationsResults; +} + +export namespace DuplicateAnnotationsResults { + export type AsObject = { + duplicateCfidList: Array, + uniqueCount: number, + } +} + export class Visibility extends jspb.Message { getGettable(): Visibility.Gettable; setGettable(value: Visibility.Gettable): Visibility; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Visibility.AsObject; static toObject(includeInstance: boolean, msg: Visibility): Visibility.AsObject; @@ -5710,17 +6101,13 @@ export namespace Visibility { export class TrendingMetric extends jspb.Message { getUserId(): string; setUserId(value: string): TrendingMetric; - getAppId(): string; setAppId(value: string): TrendingMetric; - getObjectId(): string; setObjectId(value: string): TrendingMetric; - getViewCount(): number; setViewCount(value: number): TrendingMetric; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TrendingMetric.AsObject; static toObject(includeInstance: boolean, msg: TrendingMetric): TrendingMetric.AsObject; @@ -5740,23 +6127,43 @@ export namespace TrendingMetric { } } +export class FullTag extends jspb.Message { + getName(): string; + setName(value: string): FullTag; + getId(): string; + setId(value: string): FullTag; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FullTag.AsObject; + static toObject(includeInstance: boolean, msg: FullTag): FullTag.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FullTag, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FullTag; + static deserializeBinaryFromReader(message: FullTag, reader: jspb.BinaryReader): FullTag; +} + +export namespace FullTag { + export type AsObject = { + name: string, + id: string, + } +} + export class TimeSegment extends jspb.Message { getId(): string; setId(value: string): TimeSegment; - hasData(): boolean; clearData(): void; getData(): Data | undefined; setData(value?: Data): TimeSegment; - hasTimeInfo(): boolean; clearTimeInfo(): void; getTimeInfo(): TimeInfo | undefined; setTimeInfo(value?: TimeInfo): TimeSegment; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TimeSegment.AsObject; static toObject(includeInstance: boolean, msg: TimeSegment): TimeSegment.AsObject; @@ -5778,14 +6185,11 @@ export namespace TimeSegment { export class TimeInfo extends jspb.Message { getNumFrames(): number; setNumFrames(value: number): TimeInfo; - getBeginTime(): number; setBeginTime(value: number): TimeInfo; - getEndTime(): number; setEndTime(value: number): TimeInfo; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TimeInfo.AsObject; static toObject(includeInstance: boolean, msg: TimeInfo): TimeInfo.AsObject; @@ -5804,75 +6208,1431 @@ export namespace TimeInfo { } } -export enum DatasetVersionMetricsGroupType { - DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET = 0, - INPUT_TYPE = 1, +export class DatasetStar extends jspb.Message { + getDatasetId(): string; + setDatasetId(value: string): DatasetStar; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetStar.AsObject; + static toObject(includeInstance: boolean, msg: DatasetStar): DatasetStar.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetStar, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetStar; + static deserializeBinaryFromReader(message: DatasetStar, reader: jspb.BinaryReader): DatasetStar; } -export enum ExpirationAction { - EXPIRATION_ACTION_NOT_SET = 0, - DELAY = 1, - EXPIRY = 2, +export namespace DatasetStar { + export type AsObject = { + datasetId: string, + } } -export enum LicenseScope { - LICENSE_SCOPE_NOT_SET = 0, - PREDICT = 1, - TRAIN = 2, - SEARCH = 3, +export class ModuleStar extends jspb.Message { + getModuleId(): string; + setModuleId(value: string): ModuleStar; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModuleStar.AsObject; + static toObject(includeInstance: boolean, msg: ModuleStar): ModuleStar.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModuleStar, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModuleStar; + static deserializeBinaryFromReader(message: ModuleStar, reader: jspb.BinaryReader): ModuleStar; } -export enum ValueComparator { - CONCEPT_THRESHOLD_NOT_SET = 0, - GREATER_THAN = 1, - GREATER_THAN_OR_EQUAL = 2, - LESS_THAN = 3, - LESS_THAN_OR_EQUAL = 4, - EQUAL = 5, +export namespace ModuleStar { + export type AsObject = { + moduleId: string, + } } -export enum EvaluationType { - CLASSIFICATION = 0, - DETECTION = 1, +export class Module extends jspb.Message { + getId(): string; + setId(value: string): Module; + getDescription(): string; + setDescription(value: string): Module; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Module; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Module; + + hasVisibility(): boolean; + clearVisibility(): void; + getVisibility(): Visibility | undefined; + setVisibility(value?: Visibility): Module; + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): Module; + getUserId(): string; + setUserId(value: string): Module; + getAppId(): string; + setAppId(value: string): Module; + + hasModuleVersion(): boolean; + clearModuleVersion(): void; + getModuleVersion(): ModuleVersion | undefined; + setModuleVersion(value?: ModuleVersion): Module; + getIsStarred(): boolean; + setIsStarred(value: boolean): Module; + getStarCount(): number; + setStarCount(value: number): Module; + + hasBookmarkOrigin(): boolean; + clearBookmarkOrigin(): void; + getBookmarkOrigin(): BookmarkOrigin | undefined; + setBookmarkOrigin(value?: BookmarkOrigin): Module; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Module.AsObject; + static toObject(includeInstance: boolean, msg: Module): Module.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Module, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Module; + static deserializeBinaryFromReader(message: Module, reader: jspb.BinaryReader): Module; } -export enum APIEventType { - API_EVENT_TYPE_NOT_SET = 0, - ON_PREM_PREDICT = 1, - ON_PREM_TRAIN = 2, - ON_PREM_SEARCH = 3, +export namespace Module { + export type AsObject = { + id: string, + description: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + visibility?: Visibility.AsObject, + metadata?: google_protobuf_struct_pb.Struct.AsObject, + userId: string, + appId: string, + moduleVersion?: ModuleVersion.AsObject, + isStarred: boolean, + starCount: number, + bookmarkOrigin?: BookmarkOrigin.AsObject, + } } -export enum UsageIntervalType { - UNDEF = 0, - DAY = 1, - MONTH = 2, - YEAR = 3, +export class ModuleVersion extends jspb.Message { + getId(): string; + setId(value: string): ModuleVersion; + getModuleId(): string; + setModuleId(value: string): ModuleVersion; + getAppId(): string; + setAppId(value: string): ModuleVersion; + getUserId(): string; + setUserId(value: string): ModuleVersion; + getDescription(): string; + setDescription(value: string): ModuleVersion; + getNotes(): string; + setNotes(value: string): ModuleVersion; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ModuleVersion; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): ModuleVersion; + getGitCommitUrl(): string; + setGitCommitUrl(value: string): ModuleVersion; + + hasModuleNav(): boolean; + clearModuleNav(): void; + getModuleNav(): ModuleVersion.ModuleNav | undefined; + setModuleNav(value?: ModuleVersion.ModuleNav): ModuleVersion; + getApproved(): boolean; + setApproved(value: boolean): ModuleVersion; + + hasVisibility(): boolean; + clearVisibility(): void; + getVisibility(): Visibility | undefined; + setVisibility(value?: Visibility): ModuleVersion; + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): ModuleVersion; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModuleVersion.AsObject; + static toObject(includeInstance: boolean, msg: ModuleVersion): ModuleVersion.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModuleVersion, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModuleVersion; + static deserializeBinaryFromReader(message: ModuleVersion, reader: jspb.BinaryReader): ModuleVersion; } -export enum RoleType { - TEAM = 0, - ORG = 1, +export namespace ModuleVersion { + export type AsObject = { + id: string, + moduleId: string, + appId: string, + userId: string, + description: string, + notes: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + gitCommitUrl: string, + moduleNav?: ModuleVersion.ModuleNav.AsObject, + approved: boolean, + visibility?: Visibility.AsObject, + metadata?: google_protobuf_struct_pb.Struct.AsObject, + } + + + export class ModuleSubNav extends jspb.Message { + getTitle(): string; + setTitle(value: string): ModuleSubNav; + getQueryKey(): string; + setQueryKey(value: string): ModuleSubNav; + getQueryValue(): string; + setQueryValue(value: string): ModuleSubNav; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModuleSubNav.AsObject; + static toObject(includeInstance: boolean, msg: ModuleSubNav): ModuleSubNav.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModuleSubNav, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModuleSubNav; + static deserializeBinaryFromReader(message: ModuleSubNav, reader: jspb.BinaryReader): ModuleSubNav; + } + + export namespace ModuleSubNav { + export type AsObject = { + title: string, + queryKey: string, + queryValue: string, + } + } + + export class ModuleNav extends jspb.Message { + getTitle(): string; + setTitle(value: string): ModuleNav; + clearModuleSubNavsList(): void; + getModuleSubNavsList(): Array; + setModuleSubNavsList(value: Array): ModuleNav; + addModuleSubNavs(value?: ModuleVersion.ModuleSubNav, index?: number): ModuleVersion.ModuleSubNav; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModuleNav.AsObject; + static toObject(includeInstance: boolean, msg: ModuleNav): ModuleNav.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModuleNav, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModuleNav; + static deserializeBinaryFromReader(message: ModuleNav, reader: jspb.BinaryReader): ModuleNav; + } + + export namespace ModuleNav { + export type AsObject = { + title: string, + moduleSubNavsList: Array, + } + } + } -export enum StatValueAggType { - SUM = 0, - AVG = 1, +export class InstalledModuleVersion extends jspb.Message { + getId(): string; + setId(value: string): InstalledModuleVersion; + + hasModuleVersion(): boolean; + clearModuleVersion(): void; + getModuleVersion(): ModuleVersion | undefined; + setModuleVersion(value?: ModuleVersion): InstalledModuleVersion; + getAppId(): string; + setAppId(value: string): InstalledModuleVersion; + getUserId(): string; + setUserId(value: string): InstalledModuleVersion; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): InstalledModuleVersion; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): InstalledModuleVersion; + getDeployUrl(): string; + setDeployUrl(value: string): InstalledModuleVersion; + + hasVisibility(): boolean; + clearVisibility(): void; + getVisibility(): Visibility | undefined; + setVisibility(value?: Visibility): InstalledModuleVersion; + getKeyId(): string; + setKeyId(value: string): InstalledModuleVersion; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InstalledModuleVersion.AsObject; + static toObject(includeInstance: boolean, msg: InstalledModuleVersion): InstalledModuleVersion.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InstalledModuleVersion, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InstalledModuleVersion; + static deserializeBinaryFromReader(message: InstalledModuleVersion, reader: jspb.BinaryReader): InstalledModuleVersion; } -export enum StatTimeAggType { - NO_TIME_AGG = 0, - YEAR = 1, - MONTH = 2, - WEEK = 3, - DAY = 4, - HOUR = 5, - MINUTE = 6, +export namespace InstalledModuleVersion { + export type AsObject = { + id: string, + moduleVersion?: ModuleVersion.AsObject, + appId: string, + userId: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + deployUrl: string, + visibility?: Visibility.AsObject, + keyId: string, + } } -export enum ValidationErrorType { +export class BulkOperation extends jspb.Message { + getId(): string; + setId(value: string): BulkOperation; + + hasInputIds(): boolean; + clearInputIds(): void; + getInputIds(): InputIDs | undefined; + setInputIds(value?: InputIDs): BulkOperation; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): Search | undefined; + setSearch(value?: Search): BulkOperation; + + hasDataset(): boolean; + clearDataset(): void; + getDataset(): Dataset | undefined; + setDataset(value?: Dataset): BulkOperation; + + hasOperation(): boolean; + clearOperation(): void; + getOperation(): Operation | undefined; + setOperation(value?: Operation): BulkOperation; + getAppId(): string; + setAppId(value: string): BulkOperation; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): BulkOperation; + + hasProgress(): boolean; + clearProgress(): void; + getProgress(): Progress | undefined; + setProgress(value?: Progress): BulkOperation; + getCreatedBy(): string; + setCreatedBy(value: string): BulkOperation; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): BulkOperation; + + hasLastModifiedAt(): boolean; + clearLastModifiedAt(): void; + getLastModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setLastModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): BulkOperation; + + getInputSourceCase(): BulkOperation.InputSourceCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BulkOperation.AsObject; + static toObject(includeInstance: boolean, msg: BulkOperation): BulkOperation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BulkOperation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BulkOperation; + static deserializeBinaryFromReader(message: BulkOperation, reader: jspb.BinaryReader): BulkOperation; +} + +export namespace BulkOperation { + export type AsObject = { + id: string, + inputIds?: InputIDs.AsObject, + search?: Search.AsObject, + dataset?: Dataset.AsObject, + operation?: Operation.AsObject, + appId: string, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + progress?: Progress.AsObject, + createdBy: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + lastModifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } + + export enum InputSourceCase { + INPUT_SOURCE_NOT_SET = 0, + INPUT_IDS = 2, + SEARCH = 10, + DATASET = 11, + } + +} + +export class InputIDs extends jspb.Message { + clearInputIdsList(): void; + getInputIdsList(): Array; + setInputIdsList(value: Array): InputIDs; + addInputIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputIDs.AsObject; + static toObject(includeInstance: boolean, msg: InputIDs): InputIDs.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputIDs, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputIDs; + static deserializeBinaryFromReader(message: InputIDs, reader: jspb.BinaryReader): InputIDs; +} + +export namespace InputIDs { + export type AsObject = { + inputIdsList: Array, + } +} + +export class Progress extends jspb.Message { + getProcessed(): number; + setProcessed(value: number): Progress; + getLastProcessedId(): string; + setLastProcessedId(value: string): Progress; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Progress.AsObject; + static toObject(includeInstance: boolean, msg: Progress): Progress.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Progress, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Progress; + static deserializeBinaryFromReader(message: Progress, reader: jspb.BinaryReader): Progress; +} + +export namespace Progress { + export type AsObject = { + processed: number, + lastProcessedId: string, + } +} + +export class Operation extends jspb.Message { + + hasAddConcepts(): boolean; + clearAddConcepts(): void; + getAddConcepts(): AddConcepts | undefined; + setAddConcepts(value?: AddConcepts): Operation; + + hasDeleteConcepts(): boolean; + clearDeleteConcepts(): void; + getDeleteConcepts(): DeleteConcepts | undefined; + setDeleteConcepts(value?: DeleteConcepts): Operation; + + hasAddMetadata(): boolean; + clearAddMetadata(): void; + getAddMetadata(): AddMetadata | undefined; + setAddMetadata(value?: AddMetadata): Operation; + + hasDeleteMetadata(): boolean; + clearDeleteMetadata(): void; + getDeleteMetadata(): DeleteMetadata | undefined; + setDeleteMetadata(value?: DeleteMetadata): Operation; + + hasOverwriteGeo(): boolean; + clearOverwriteGeo(): void; + getOverwriteGeo(): OverwriteGeo | undefined; + setOverwriteGeo(value?: OverwriteGeo): Operation; + + hasDeleteGeo(): boolean; + clearDeleteGeo(): void; + getDeleteGeo(): DeleteGeo | undefined; + setDeleteGeo(value?: DeleteGeo): Operation; + + hasDeleteFromDataset(): boolean; + clearDeleteFromDataset(): void; + getDeleteFromDataset(): DeleteFromDataset | undefined; + setDeleteFromDataset(value?: DeleteFromDataset): Operation; + + hasAddToDataset(): boolean; + clearAddToDataset(): void; + getAddToDataset(): AddToDataset | undefined; + setAddToDataset(value?: AddToDataset): Operation; + + hasSplitIntoDatasets(): boolean; + clearSplitIntoDatasets(): void; + getSplitIntoDatasets(): SplitIntoDatasets | undefined; + setSplitIntoDatasets(value?: SplitIntoDatasets): Operation; + + getOperationCase(): Operation.OperationCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Operation.AsObject; + static toObject(includeInstance: boolean, msg: Operation): Operation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Operation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Operation; + static deserializeBinaryFromReader(message: Operation, reader: jspb.BinaryReader): Operation; +} + +export namespace Operation { + export type AsObject = { + addConcepts?: AddConcepts.AsObject, + deleteConcepts?: DeleteConcepts.AsObject, + addMetadata?: AddMetadata.AsObject, + deleteMetadata?: DeleteMetadata.AsObject, + overwriteGeo?: OverwriteGeo.AsObject, + deleteGeo?: DeleteGeo.AsObject, + deleteFromDataset?: DeleteFromDataset.AsObject, + addToDataset?: AddToDataset.AsObject, + splitIntoDatasets?: SplitIntoDatasets.AsObject, + } + + export enum OperationCase { + OPERATION_NOT_SET = 0, + ADD_CONCEPTS = 1, + DELETE_CONCEPTS = 2, + ADD_METADATA = 3, + DELETE_METADATA = 4, + OVERWRITE_GEO = 5, + DELETE_GEO = 6, + DELETE_FROM_DATASET = 7, + ADD_TO_DATASET = 8, + SPLIT_INTO_DATASETS = 9, + } + +} + +export class AddConcepts extends jspb.Message { + clearConceptsList(): void; + getConceptsList(): Array; + setConceptsList(value: Array): AddConcepts; + addConcepts(value?: Concept, index?: number): Concept; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddConcepts.AsObject; + static toObject(includeInstance: boolean, msg: AddConcepts): AddConcepts.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddConcepts, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddConcepts; + static deserializeBinaryFromReader(message: AddConcepts, reader: jspb.BinaryReader): AddConcepts; +} + +export namespace AddConcepts { + export type AsObject = { + conceptsList: Array, + } +} + +export class DeleteConcepts extends jspb.Message { + clearConceptsList(): void; + getConceptsList(): Array; + setConceptsList(value: Array): DeleteConcepts; + addConcepts(value?: Concept, index?: number): Concept; + clearUserIdsList(): void; + getUserIdsList(): Array; + setUserIdsList(value: Array): DeleteConcepts; + addUserIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteConcepts.AsObject; + static toObject(includeInstance: boolean, msg: DeleteConcepts): DeleteConcepts.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteConcepts, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteConcepts; + static deserializeBinaryFromReader(message: DeleteConcepts, reader: jspb.BinaryReader): DeleteConcepts; +} + +export namespace DeleteConcepts { + export type AsObject = { + conceptsList: Array, + userIdsList: Array, + } +} + +export class AddMetadata extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): AddMetadata; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddMetadata.AsObject; + static toObject(includeInstance: boolean, msg: AddMetadata): AddMetadata.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddMetadata, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddMetadata; + static deserializeBinaryFromReader(message: AddMetadata, reader: jspb.BinaryReader): AddMetadata; +} + +export namespace AddMetadata { + export type AsObject = { + metadata?: google_protobuf_struct_pb.Struct.AsObject, + } +} + +export class DeleteMetadata extends jspb.Message { + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): DeleteMetadata; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteMetadata.AsObject; + static toObject(includeInstance: boolean, msg: DeleteMetadata): DeleteMetadata.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteMetadata, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteMetadata; + static deserializeBinaryFromReader(message: DeleteMetadata, reader: jspb.BinaryReader): DeleteMetadata; +} + +export namespace DeleteMetadata { + export type AsObject = { + metadata?: google_protobuf_struct_pb.Struct.AsObject, + } +} + +export class OverwriteGeo extends jspb.Message { + + hasGeo(): boolean; + clearGeo(): void; + getGeo(): Geo | undefined; + setGeo(value?: Geo): OverwriteGeo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OverwriteGeo.AsObject; + static toObject(includeInstance: boolean, msg: OverwriteGeo): OverwriteGeo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OverwriteGeo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OverwriteGeo; + static deserializeBinaryFromReader(message: OverwriteGeo, reader: jspb.BinaryReader): OverwriteGeo; +} + +export namespace OverwriteGeo { + export type AsObject = { + geo?: Geo.AsObject, + } +} + +export class DeleteGeo extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteGeo.AsObject; + static toObject(includeInstance: boolean, msg: DeleteGeo): DeleteGeo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteGeo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteGeo; + static deserializeBinaryFromReader(message: DeleteGeo, reader: jspb.BinaryReader): DeleteGeo; +} + +export namespace DeleteGeo { + export type AsObject = { + } +} + +export class AddToDataset extends jspb.Message { + getDatasetId(): string; + setDatasetId(value: string): AddToDataset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddToDataset.AsObject; + static toObject(includeInstance: boolean, msg: AddToDataset): AddToDataset.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddToDataset, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddToDataset; + static deserializeBinaryFromReader(message: AddToDataset, reader: jspb.BinaryReader): AddToDataset; +} + +export namespace AddToDataset { + export type AsObject = { + datasetId: string, + } +} + +export class DeleteFromDataset extends jspb.Message { + getDatasetId(): string; + setDatasetId(value: string): DeleteFromDataset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteFromDataset.AsObject; + static toObject(includeInstance: boolean, msg: DeleteFromDataset): DeleteFromDataset.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteFromDataset, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteFromDataset; + static deserializeBinaryFromReader(message: DeleteFromDataset, reader: jspb.BinaryReader): DeleteFromDataset; +} + +export namespace DeleteFromDataset { + export type AsObject = { + datasetId: string, + } +} + +export class SplitIntoDatasets extends jspb.Message { + clearDatasetSplitsList(): void; + getDatasetSplitsList(): Array; + setDatasetSplitsList(value: Array): SplitIntoDatasets; + addDatasetSplits(value?: DatasetSplit, index?: number): DatasetSplit; + getMethod(): SplitIntoDatasets.DatasetSplitMethod; + setMethod(value: SplitIntoDatasets.DatasetSplitMethod): SplitIntoDatasets; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SplitIntoDatasets.AsObject; + static toObject(includeInstance: boolean, msg: SplitIntoDatasets): SplitIntoDatasets.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SplitIntoDatasets, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SplitIntoDatasets; + static deserializeBinaryFromReader(message: SplitIntoDatasets, reader: jspb.BinaryReader): SplitIntoDatasets; +} + +export namespace SplitIntoDatasets { + export type AsObject = { + datasetSplitsList: Array, + method: SplitIntoDatasets.DatasetSplitMethod, + } + + export enum DatasetSplitMethod { + NOT_SET = 0, + RANDOM_PERCENTAGE_SPLIT = 1, + } + +} + +export class DatasetSplit extends jspb.Message { + + hasDataset(): boolean; + clearDataset(): void; + getDataset(): Dataset | undefined; + setDataset(value?: Dataset): DatasetSplit; + + hasPercentage(): boolean; + clearPercentage(): void; + getPercentage(): number; + setPercentage(value: number): DatasetSplit; + + getMethodInfoCase(): DatasetSplit.MethodInfoCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DatasetSplit.AsObject; + static toObject(includeInstance: boolean, msg: DatasetSplit): DatasetSplit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DatasetSplit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DatasetSplit; + static deserializeBinaryFromReader(message: DatasetSplit, reader: jspb.BinaryReader): DatasetSplit; +} + +export namespace DatasetSplit { + export type AsObject = { + dataset?: Dataset.AsObject, + percentage: number, + } + + export enum MethodInfoCase { + METHOD_INFO_NOT_SET = 0, + PERCENTAGE = 2, + } + +} + +export class InputsAddJob extends jspb.Message { + getId(): string; + setId(value: string): InputsAddJob; + getCallBackUrl(): string; + setCallBackUrl(value: string): InputsAddJob; + getAppPat(): string; + setAppPat(value: string): InputsAddJob; + + hasProgress(): boolean; + clearProgress(): void; + getProgress(): InputsAddJobProgress | undefined; + setProgress(value?: InputsAddJobProgress): InputsAddJob; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): InputsAddJob; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): InputsAddJob; + clearExtractionJobsList(): void; + getExtractionJobsList(): Array; + setExtractionJobsList(value: Array): InputsAddJob; + addExtractionJobs(value?: InputsExtractionJob, index?: number): InputsExtractionJob; + clearUploadsList(): void; + getUploadsList(): Array; + setUploadsList(value: Array): InputsAddJob; + addUploads(value?: Upload, index?: number): Upload; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): InputsAddJob; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsAddJob.AsObject; + static toObject(includeInstance: boolean, msg: InputsAddJob): InputsAddJob.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputsAddJob, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsAddJob; + static deserializeBinaryFromReader(message: InputsAddJob, reader: jspb.BinaryReader): InputsAddJob; +} + +export namespace InputsAddJob { + export type AsObject = { + id: string, + callBackUrl: string, + appPat: string, + progress?: InputsAddJobProgress.AsObject, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + extractionJobsList: Array, + uploadsList: Array, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + } +} + +export class InputsAddJobProgress extends jspb.Message { + getPendingCount(): number; + setPendingCount(value: number): InputsAddJobProgress; + getInProgressCount(): number; + setInProgressCount(value: number): InputsAddJobProgress; + getSuccessCount(): number; + setSuccessCount(value: number): InputsAddJobProgress; + getFailedCount(): number; + setFailedCount(value: number): InputsAddJobProgress; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsAddJobProgress.AsObject; + static toObject(includeInstance: boolean, msg: InputsAddJobProgress): InputsAddJobProgress.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputsAddJobProgress, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsAddJobProgress; + static deserializeBinaryFromReader(message: InputsAddJobProgress, reader: jspb.BinaryReader): InputsAddJobProgress; +} + +export namespace InputsAddJobProgress { + export type AsObject = { + pendingCount: number, + inProgressCount: number, + successCount: number, + failedCount: number, + } +} + +export class Upload extends jspb.Message { + getId(): string; + setId(value: string): Upload; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Upload; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Upload; + + hasExpiresAt(): boolean; + clearExpiresAt(): void; + getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): Upload; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): Upload; + getContentName(): string; + setContentName(value: string): Upload; + getContentLength(): number; + setContentLength(value: number): Upload; + getContentUrl(): string; + setContentUrl(value: string): Upload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Upload.AsObject; + static toObject(includeInstance: boolean, msg: Upload): Upload.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Upload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Upload; + static deserializeBinaryFromReader(message: Upload, reader: jspb.BinaryReader): Upload; +} + +export namespace Upload { + export type AsObject = { + id: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + contentName: string, + contentLength: number, + contentUrl: string, + } +} + +export class UploadContentPart extends jspb.Message { + getRangeStart(): number; + setRangeStart(value: number): UploadContentPart; + getPartNumber(): number; + setPartNumber(value: number): UploadContentPart; + getData(): Uint8Array | string; + getData_asU8(): Uint8Array; + getData_asB64(): string; + setData(value: Uint8Array | string): UploadContentPart; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UploadContentPart.AsObject; + static toObject(includeInstance: boolean, msg: UploadContentPart): UploadContentPart.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UploadContentPart, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UploadContentPart; + static deserializeBinaryFromReader(message: UploadContentPart, reader: jspb.BinaryReader): UploadContentPart; +} + +export namespace UploadContentPart { + export type AsObject = { + rangeStart: number, + partNumber: number, + data: Uint8Array | string, + } +} + +export class CustomCodeOperatorRequest extends jspb.Message { + clearInputsList(): void; + getInputsList(): Array; + setInputsList(value: Array): CustomCodeOperatorRequest; + addInputs(value?: Input, index?: number): Input; + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): CustomCodeOperatorRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CustomCodeOperatorRequest.AsObject; + static toObject(includeInstance: boolean, msg: CustomCodeOperatorRequest): CustomCodeOperatorRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CustomCodeOperatorRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CustomCodeOperatorRequest; + static deserializeBinaryFromReader(message: CustomCodeOperatorRequest, reader: jspb.BinaryReader): CustomCodeOperatorRequest; +} + +export namespace CustomCodeOperatorRequest { + export type AsObject = { + inputsList: Array, + metadata?: google_protobuf_struct_pb.Struct.AsObject, + } +} + +export class InputsExtractionJob extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): InputsExtractionJob; + getId(): string; + setId(value: string): InputsExtractionJob; + getUrl(): string; + setUrl(value: string): InputsExtractionJob; + + hasProgress(): boolean; + clearProgress(): void; + getProgress(): InputsExtractionJobProgress | undefined; + setProgress(value?: InputsExtractionJobProgress): InputsExtractionJob; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): InputsExtractionJob; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): InputsExtractionJob; + getInputIdConflictResolution(): InputIDConflictResolution; + setInputIdConflictResolution(value: InputIDConflictResolution): InputsExtractionJob; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsExtractionJob.AsObject; + static toObject(includeInstance: boolean, msg: InputsExtractionJob): InputsExtractionJob.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputsExtractionJob, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsExtractionJob; + static deserializeBinaryFromReader(message: InputsExtractionJob, reader: jspb.BinaryReader): InputsExtractionJob; +} + +export namespace InputsExtractionJob { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + id: string, + url: string, + progress?: InputsExtractionJobProgress.AsObject, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + inputIdConflictResolution: InputIDConflictResolution, + } +} + +export class InputsExtractionJobProgress extends jspb.Message { + getAudioInputsCount(): number; + setAudioInputsCount(value: number): InputsExtractionJobProgress; + getImageInputsCount(): number; + setImageInputsCount(value: number): InputsExtractionJobProgress; + getVideoInputsCount(): number; + setVideoInputsCount(value: number): InputsExtractionJobProgress; + getTextInputsCount(): number; + setTextInputsCount(value: number): InputsExtractionJobProgress; + getPendingArchivesCount(): number; + setPendingArchivesCount(value: number): InputsExtractionJobProgress; + getInProgressArchivesCount(): number; + setInProgressArchivesCount(value: number): InputsExtractionJobProgress; + getCompletedArchivesCount(): number; + setCompletedArchivesCount(value: number): InputsExtractionJobProgress; + getFailedArchivesCount(): number; + setFailedArchivesCount(value: number): InputsExtractionJobProgress; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsExtractionJobProgress.AsObject; + static toObject(includeInstance: boolean, msg: InputsExtractionJobProgress): InputsExtractionJobProgress.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputsExtractionJobProgress, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsExtractionJobProgress; + static deserializeBinaryFromReader(message: InputsExtractionJobProgress, reader: jspb.BinaryReader): InputsExtractionJobProgress; +} + +export namespace InputsExtractionJobProgress { + export type AsObject = { + audioInputsCount: number, + imageInputsCount: number, + videoInputsCount: number, + textInputsCount: number, + pendingArchivesCount: number, + inProgressArchivesCount: number, + completedArchivesCount: number, + failedArchivesCount: number, + } +} + +export class InputsDataSource extends jspb.Message { + getInputsAddJobId(): string; + setInputsAddJobId(value: string): InputsDataSource; + + hasUrl(): boolean; + clearUrl(): void; + getUrl(): DataSourceURL | undefined; + setUrl(value?: DataSourceURL): InputsDataSource; + getInputIdConflictResolution(): InputIDConflictResolution; + setInputIdConflictResolution(value: InputIDConflictResolution): InputsDataSource; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsDataSource.AsObject; + static toObject(includeInstance: boolean, msg: InputsDataSource): InputsDataSource.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputsDataSource, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsDataSource; + static deserializeBinaryFromReader(message: InputsDataSource, reader: jspb.BinaryReader): InputsDataSource; +} + +export namespace InputsDataSource { + export type AsObject = { + inputsAddJobId: string, + url?: DataSourceURL.AsObject, + inputIdConflictResolution: InputIDConflictResolution, + } +} + +export class DataSourceURL extends jspb.Message { + getUrl(): string; + setUrl(value: string): DataSourceURL; + + hasCredentials(): boolean; + clearCredentials(): void; + getCredentials(): DataSourceCredentials | undefined; + setCredentials(value?: DataSourceCredentials): DataSourceURL; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DataSourceURL.AsObject; + static toObject(includeInstance: boolean, msg: DataSourceURL): DataSourceURL.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DataSourceURL, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DataSourceURL; + static deserializeBinaryFromReader(message: DataSourceURL, reader: jspb.BinaryReader): DataSourceURL; +} + +export namespace DataSourceURL { + export type AsObject = { + url: string, + credentials?: DataSourceCredentials.AsObject, + } +} + +export class DataSourceCredentials extends jspb.Message { + + hasS3Creds(): boolean; + clearS3Creds(): void; + getS3Creds(): AWSCreds | undefined; + setS3Creds(value?: AWSCreds): DataSourceCredentials; + + hasGcpCreds(): boolean; + clearGcpCreds(): void; + getGcpCreds(): Uint8Array | string; + getGcpCreds_asU8(): Uint8Array; + getGcpCreds_asB64(): string; + setGcpCreds(value: Uint8Array | string): DataSourceCredentials; + + hasAzureBlobCreds(): boolean; + clearAzureBlobCreds(): void; + getAzureBlobCreds(): AzureBlobCreds | undefined; + setAzureBlobCreds(value?: AzureBlobCreds): DataSourceCredentials; + + getCredentialsCase(): DataSourceCredentials.CredentialsCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DataSourceCredentials.AsObject; + static toObject(includeInstance: boolean, msg: DataSourceCredentials): DataSourceCredentials.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DataSourceCredentials, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DataSourceCredentials; + static deserializeBinaryFromReader(message: DataSourceCredentials, reader: jspb.BinaryReader): DataSourceCredentials; +} + +export namespace DataSourceCredentials { + export type AsObject = { + s3Creds?: AWSCreds.AsObject, + gcpCreds: Uint8Array | string, + azureBlobCreds?: AzureBlobCreds.AsObject, + } + + export enum CredentialsCase { + CREDENTIALS_NOT_SET = 0, + S3_CREDS = 1, + GCP_CREDS = 2, + AZURE_BLOB_CREDS = 4, + } + +} + +export class AWSCreds extends jspb.Message { + getRegion(): string; + setRegion(value: string): AWSCreds; + getId(): string; + setId(value: string): AWSCreds; + getSecret(): string; + setSecret(value: string): AWSCreds; + getToken(): string; + setToken(value: string): AWSCreds; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AWSCreds.AsObject; + static toObject(includeInstance: boolean, msg: AWSCreds): AWSCreds.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AWSCreds, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AWSCreds; + static deserializeBinaryFromReader(message: AWSCreds, reader: jspb.BinaryReader): AWSCreds; +} + +export namespace AWSCreds { + export type AsObject = { + region: string, + id: string, + secret: string, + token: string, + } +} + +export class AzureBlobCreds extends jspb.Message { + getAccountName(): string; + setAccountName(value: string): AzureBlobCreds; + getAccountKey(): string; + setAccountKey(value: string): AzureBlobCreds; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AzureBlobCreds.AsObject; + static toObject(includeInstance: boolean, msg: AzureBlobCreds): AzureBlobCreds.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AzureBlobCreds, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AzureBlobCreds; + static deserializeBinaryFromReader(message: AzureBlobCreds, reader: jspb.BinaryReader): AzureBlobCreds; +} + +export namespace AzureBlobCreds { + export type AsObject = { + accountName: string, + accountKey: string, + } +} + +export class InputsUpload extends jspb.Message { + getInputsAddJobId(): string; + setInputsAddJobId(value: string): InputsUpload; + getAppPat(): string; + setAppPat(value: string): InputsUpload; + + hasUpload(): boolean; + clearUpload(): void; + getUpload(): Upload | undefined; + setUpload(value?: Upload): InputsUpload; + getInputIdConflictResolution(): InputIDConflictResolution; + setInputIdConflictResolution(value: InputIDConflictResolution): InputsUpload; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): InputsUpload.AsObject; + static toObject(includeInstance: boolean, msg: InputsUpload): InputsUpload.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: InputsUpload, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InputsUpload; + static deserializeBinaryFromReader(message: InputsUpload, reader: jspb.BinaryReader): InputsUpload; +} + +export namespace InputsUpload { + export type AsObject = { + inputsAddJobId: string, + appPat: string, + upload?: Upload.AsObject, + inputIdConflictResolution: InputIDConflictResolution, + } +} + +export class BookmarkOrigin extends jspb.Message { + getId(): string; + setId(value: string): BookmarkOrigin; + getAppId(): string; + setAppId(value: string): BookmarkOrigin; + getUserId(): string; + setUserId(value: string): BookmarkOrigin; + getResourceType(): BookmarkOrigin.BookmarkType; + setResourceType(value: BookmarkOrigin.BookmarkType): BookmarkOrigin; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BookmarkOrigin.AsObject; + static toObject(includeInstance: boolean, msg: BookmarkOrigin): BookmarkOrigin.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BookmarkOrigin, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BookmarkOrigin; + static deserializeBinaryFromReader(message: BookmarkOrigin, reader: jspb.BinaryReader): BookmarkOrigin; +} + +export namespace BookmarkOrigin { + export type AsObject = { + id: string, + appId: string, + userId: string, + resourceType: BookmarkOrigin.BookmarkType, + } + + export enum BookmarkType { + UNKNOWN = 0, + MODEL = 1, + WORKFLOW = 2, + DATASET = 3, + MODULE = 4, + } + +} + +export class Runner extends jspb.Message { + getId(): string; + setId(value: string): Runner; + getDescription(): string; + setDescription(value: string): Runner; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Runner; + + hasModifiedAt(): boolean; + clearModifiedAt(): void; + getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Runner; + + hasMetadata(): boolean; + clearMetadata(): void; + getMetadata(): google_protobuf_struct_pb.Struct | undefined; + setMetadata(value?: google_protobuf_struct_pb.Struct): Runner; + getUserId(): string; + setUserId(value: string): Runner; + clearLabelsList(): void; + getLabelsList(): Array; + setLabelsList(value: Array): Runner; + addLabels(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Runner.AsObject; + static toObject(includeInstance: boolean, msg: Runner): Runner.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Runner, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Runner; + static deserializeBinaryFromReader(message: Runner, reader: jspb.BinaryReader): Runner; +} + +export namespace Runner { + export type AsObject = { + id: string, + description: string, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + metadata?: google_protobuf_struct_pb.Struct.AsObject, + userId: string, + labelsList: Array, + } +} + +export enum DatasetVersionMetricsGroupType { + DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET = 0, + INPUT_TYPE = 2, + CONCEPT_ID = 10, + CONCEPTS_COUNT = 11, + BOUNDING_BOXES_COUNT = 20, + POLYGONS_COUNT = 21, + POINTS_COUNT = 22, + MASKS_COUNT = 23, + PIXELS_COUNT = 30, + ASPECT_RATIO = 31, +} + +export enum DatasetVersionExportFormat { + DATASET_VERSION_EXPORT_FORMAT_NOT_SET = 0, + CLARIFAI_DATA_PROTOBUF = 1, + CLARIFAI_DATA_JSON = 3, + COCO = 2, +} + +export enum ExpirationAction { + EXPIRATION_ACTION_NOT_SET = 0, + DELAY = 1, + EXPIRY = 2, +} + +export enum LicenseScope { + LICENSE_SCOPE_NOT_SET = 0, + PREDICT = 1, + TRAIN = 2, + SEARCH = 3, +} + +export enum DataType { + UNDEFINED = 0, + STRING = 1, + UINT8 = 2, + INT32 = 3, + INT64 = 4, + FP32 = 5, +} + +export enum ValueComparator { + CONCEPT_THRESHOLD_NOT_SET = 0, + GREATER_THAN = 1, + GREATER_THAN_OR_EQUAL = 2, + LESS_THAN = 3, + LESS_THAN_OR_EQUAL = 4, + EQUAL = 5, +} + +export enum EvaluationType { + UNDEFINED = 0, + CLASSIFICATION = 1, + DETECTION = 2, + SEGMENTATION = 3, + CLUSTERING = 4, + TRACKER = 5, +} + +export enum APIEventType { + API_EVENT_TYPE_NOT_SET = 0, + ON_PREM_PREDICT = 1, + ON_PREM_TRAIN = 2, + ON_PREM_SEARCH = 3, +} + +export enum UsageIntervalType { + UNDEF = 0, + DAY = 1, + MONTH = 2, + YEAR = 3, +} + +export enum AnnotationDataType { + ANNOTATION_DATA_TYPE_NOT_SET = 0, + TAG = 1, + BOUNDING_BOX = 2, + POLYGON = 4, + POINT = 8, + SPAN = 16, + MASK = 32, +} + +export enum RoleType { + TEAM = 0, + ORG = 1, +} + +export enum StatValueAggType { + SUM = 0, + AVG = 1, +} + +export enum StatTimeAggType { + NO_TIME_AGG = 0, + YEAR = 1, + MONTH = 2, + WEEK = 3, + DAY = 4, + HOUR = 5, + MINUTE = 6, +} + +export enum ValidationErrorType { VALIDATION_ERROR_TYPE_NOT_SET = 0, RESTRICTED = 1, DATABASE = 2, FORMAT = 3, } + +export enum InputIDConflictResolution { + INPUT_ID_CONFLICT_RESOLUTION_NOT_SET = 0, + SKIP = 1, + SUFFIX = 2, +} diff --git a/proto/clarifai/api/resources_pb.js b/proto/clarifai/api/resources_pb.js index 1f4559f..04a4a90 100644 --- a/proto/clarifai/api/resources_pb.js +++ b/proto/clarifai/api/resources_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,32 +13,57 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var proto_clarifai_api_status_status_pb = require('../../../proto/clarifai/api/status/status_pb.js'); goog.object.extend(proto, proto_clarifai_api_status_status_pb); +var proto_clarifai_api_status_status_code_pb = require('../../../proto/clarifai/api/status/status_code_pb.js'); +goog.object.extend(proto, proto_clarifai_api_status_status_code_pb); var proto_clarifai_api_utils_extensions_pb = require('../../../proto/clarifai/api/utils/extensions_pb.js'); goog.object.extend(proto, proto_clarifai_api_utils_extensions_pb); +var proto_clarifai_api_utils_matrix_pb = require('../../../proto/clarifai/api/utils/matrix_pb.js'); +goog.object.extend(proto, proto_clarifai_api_utils_matrix_pb); var proto_clarifai_auth_util_extension_pb = require('../../../proto/clarifai/auth/util/extension_pb.js'); goog.object.extend(proto, proto_clarifai_auth_util_extension_pb); var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); goog.object.extend(proto, google_protobuf_struct_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); +var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); +goog.object.extend(proto, google_protobuf_wrappers_pb); goog.exportSymbol('proto.clarifai.api.APIEventType', null, global); goog.exportSymbol('proto.clarifai.api.APIPostModelOutputsCollectorSource', null, global); +goog.exportSymbol('proto.clarifai.api.AWSCreds', null, global); +goog.exportSymbol('proto.clarifai.api.AddConcepts', null, global); +goog.exportSymbol('proto.clarifai.api.AddMetadata', null, global); +goog.exportSymbol('proto.clarifai.api.AddToDataset', null, global); goog.exportSymbol('proto.clarifai.api.AiAssistParameters', null, global); goog.exportSymbol('proto.clarifai.api.And', null, global); goog.exportSymbol('proto.clarifai.api.Annotation', null, global); +goog.exportSymbol('proto.clarifai.api.AnnotationDataType', null, global); +goog.exportSymbol('proto.clarifai.api.AnnotationFilter', null, global); +goog.exportSymbol('proto.clarifai.api.AnnotationFilterConfig', null, global); goog.exportSymbol('proto.clarifai.api.AnnotationSearchMetrics', null, global); goog.exportSymbol('proto.clarifai.api.App', null, global); +goog.exportSymbol('proto.clarifai.api.AppCopyProgress', null, global); goog.exportSymbol('proto.clarifai.api.AppDuplication', null, global); goog.exportSymbol('proto.clarifai.api.AppDuplicationFilters', null, global); goog.exportSymbol('proto.clarifai.api.AppQuery', null, global); goog.exportSymbol('proto.clarifai.api.Audio', null, global); goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global); +goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global); goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global); +goog.exportSymbol('proto.clarifai.api.BookmarkOrigin', null, global); +goog.exportSymbol('proto.clarifai.api.BookmarkOrigin.BookmarkType', null, global); goog.exportSymbol('proto.clarifai.api.BoundingBox', null, global); +goog.exportSymbol('proto.clarifai.api.BulkOperation', null, global); +goog.exportSymbol('proto.clarifai.api.BulkOperation.InputSourceCase', null, global); goog.exportSymbol('proto.clarifai.api.Cluster', null, global); goog.exportSymbol('proto.clarifai.api.Collaboration', null, global); goog.exportSymbol('proto.clarifai.api.Collaborator', null, global); @@ -55,17 +81,37 @@ goog.exportSymbol('proto.clarifai.api.ConfusionMatrix', null, global); goog.exportSymbol('proto.clarifai.api.ConfusionMatrixEntry', null, global); goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrix', null, global); goog.exportSymbol('proto.clarifai.api.CooccurrenceMatrixEntry', null, global); +goog.exportSymbol('proto.clarifai.api.CustomCodeOperatorRequest', null, global); goog.exportSymbol('proto.clarifai.api.Data', null, global); -goog.exportSymbol('proto.clarifai.api.DatasetFilter', null, global); +goog.exportSymbol('proto.clarifai.api.DataSourceCredentials', null, global); +goog.exportSymbol('proto.clarifai.api.DataSourceCredentials.CredentialsCase', null, global); +goog.exportSymbol('proto.clarifai.api.DataSourceURL', null, global); +goog.exportSymbol('proto.clarifai.api.DataType', null, global); +goog.exportSymbol('proto.clarifai.api.Dataset', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetInput', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetInputsSearchAddJob', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetSplit', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetSplit.MethodInfoCase', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetStar', null, global); goog.exportSymbol('proto.clarifai.api.DatasetVersion', null, global); goog.exportSymbol('proto.clarifai.api.DatasetVersion.DataConfigCase', null, global); -goog.exportSymbol('proto.clarifai.api.DatasetVersionDatasetFilterConfig', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetVersionExport', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetVersionExportFormat', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetVersionExportInfo', null, global); goog.exportSymbol('proto.clarifai.api.DatasetVersionMetrics', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroup', null, global); goog.exportSymbol('proto.clarifai.api.DatasetVersionMetricsGroupType', null, global); +goog.exportSymbol('proto.clarifai.api.DatasetVersionProcessingInfo', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteConcepts', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteFromDataset', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteGeo', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteMetadata', null, global); goog.exportSymbol('proto.clarifai.api.DetailConceptCount', null, global); +goog.exportSymbol('proto.clarifai.api.DuplicateAnnotationsResults', null, global); goog.exportSymbol('proto.clarifai.api.EmailAddress', null, global); goog.exportSymbol('proto.clarifai.api.Embedding', null, global); goog.exportSymbol('proto.clarifai.api.EndpointDeps', null, global); +goog.exportSymbol('proto.clarifai.api.EvalInfo', null, global); goog.exportSymbol('proto.clarifai.api.EvalMetrics', null, global); goog.exportSymbol('proto.clarifai.api.EvalTestSetEntry', null, global); goog.exportSymbol('proto.clarifai.api.EvaluationType', null, global); @@ -74,29 +120,47 @@ goog.exportSymbol('proto.clarifai.api.FieldsValue', null, global); goog.exportSymbol('proto.clarifai.api.Filter', null, global); goog.exportSymbol('proto.clarifai.api.Frame', null, global); goog.exportSymbol('proto.clarifai.api.FrameInfo', null, global); +goog.exportSymbol('proto.clarifai.api.FrameInterpolationInfo', null, global); +goog.exportSymbol('proto.clarifai.api.FullTag', null, global); goog.exportSymbol('proto.clarifai.api.Geo', null, global); goog.exportSymbol('proto.clarifai.api.GeoBoxedPoint', null, global); goog.exportSymbol('proto.clarifai.api.GeoLimit', null, global); goog.exportSymbol('proto.clarifai.api.GeoPoint', null, global); goog.exportSymbol('proto.clarifai.api.Hit', null, global); +goog.exportSymbol('proto.clarifai.api.HitCount', null, global); goog.exportSymbol('proto.clarifai.api.HostedURL', null, global); goog.exportSymbol('proto.clarifai.api.Image', null, global); goog.exportSymbol('proto.clarifai.api.ImageInfo', null, global); goog.exportSymbol('proto.clarifai.api.ImportInfo', null, global); goog.exportSymbol('proto.clarifai.api.Input', null, global); +goog.exportSymbol('proto.clarifai.api.InputBatch', null, global); goog.exportSymbol('proto.clarifai.api.InputCount', null, global); +goog.exportSymbol('proto.clarifai.api.InputIDConflictResolution', null, global); +goog.exportSymbol('proto.clarifai.api.InputIDs', null, global); goog.exportSymbol('proto.clarifai.api.InputInfo', null, global); +goog.exportSymbol('proto.clarifai.api.InputsAddJob', null, global); +goog.exportSymbol('proto.clarifai.api.InputsAddJobProgress', null, global); +goog.exportSymbol('proto.clarifai.api.InputsDataSource', null, global); +goog.exportSymbol('proto.clarifai.api.InputsExtractionJob', null, global); +goog.exportSymbol('proto.clarifai.api.InputsExtractionJobProgress', null, global); +goog.exportSymbol('proto.clarifai.api.InputsUpload', null, global); +goog.exportSymbol('proto.clarifai.api.InstalledModuleVersion', null, global); goog.exportSymbol('proto.clarifai.api.Key', null, global); +goog.exportSymbol('proto.clarifai.api.KeypointEdge', null, global); +goog.exportSymbol('proto.clarifai.api.KeypointInfo', null, global); goog.exportSymbol('proto.clarifai.api.KnowledgeGraph', null, global); goog.exportSymbol('proto.clarifai.api.LOPQEvalResult', null, global); goog.exportSymbol('proto.clarifai.api.LabelCount', null, global); goog.exportSymbol('proto.clarifai.api.LabelDistribution', null, global); goog.exportSymbol('proto.clarifai.api.LabelOrder', null, global); +goog.exportSymbol('proto.clarifai.api.LayerShape', null, global); goog.exportSymbol('proto.clarifai.api.LicenseScope', null, global); goog.exportSymbol('proto.clarifai.api.LossCurveEntry', null, global); goog.exportSymbol('proto.clarifai.api.Mask', null, global); goog.exportSymbol('proto.clarifai.api.MetricsSummary', null, global); goog.exportSymbol('proto.clarifai.api.Model', null, global); +goog.exportSymbol('proto.clarifai.api.ModelLayerInfo', null, global); +goog.exportSymbol('proto.clarifai.api.ModelPredictConfig', null, global); goog.exportSymbol('proto.clarifai.api.ModelQuery', null, global); goog.exportSymbol('proto.clarifai.api.ModelReference', null, global); goog.exportSymbol('proto.clarifai.api.ModelType', null, global); @@ -107,25 +171,41 @@ goog.exportSymbol('proto.clarifai.api.ModelTypeField.ModelTypeFieldType', null, goog.exportSymbol('proto.clarifai.api.ModelTypeRangeInfo', null, global); goog.exportSymbol('proto.clarifai.api.ModelVersion', null, global); goog.exportSymbol('proto.clarifai.api.ModelVersionInputExample', null, global); +goog.exportSymbol('proto.clarifai.api.Module', null, global); +goog.exportSymbol('proto.clarifai.api.ModuleStar', null, global); +goog.exportSymbol('proto.clarifai.api.ModuleVersion', null, global); +goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleNav', null, global); +goog.exportSymbol('proto.clarifai.api.ModuleVersion.ModuleSubNav', null, global); goog.exportSymbol('proto.clarifai.api.NodeInput', null, global); +goog.exportSymbol('proto.clarifai.api.Operation', null, global); +goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global); goog.exportSymbol('proto.clarifai.api.Output', null, global); goog.exportSymbol('proto.clarifai.api.OutputConfig', null, global); goog.exportSymbol('proto.clarifai.api.OutputInfo', null, global); +goog.exportSymbol('proto.clarifai.api.OverwriteGeo', null, global); +goog.exportSymbol('proto.clarifai.api.PCAProjectionComparator', null, global); goog.exportSymbol('proto.clarifai.api.Password', null, global); goog.exportSymbol('proto.clarifai.api.PasswordViolations', null, global); goog.exportSymbol('proto.clarifai.api.PatchAction', null, global); goog.exportSymbol('proto.clarifai.api.Point', null, global); +goog.exportSymbol('proto.clarifai.api.Point.Visibility', null, global); goog.exportSymbol('proto.clarifai.api.Polygon', null, global); goog.exportSymbol('proto.clarifai.api.PrecisionRecallCurve', null, global); goog.exportSymbol('proto.clarifai.api.PretrainedModelConfig', null, global); +goog.exportSymbol('proto.clarifai.api.Progress', null, global); goog.exportSymbol('proto.clarifai.api.Query', null, global); goog.exportSymbol('proto.clarifai.api.ROC', null, global); goog.exportSymbol('proto.clarifai.api.Rank', null, global); goog.exportSymbol('proto.clarifai.api.Region', null, global); goog.exportSymbol('proto.clarifai.api.RegionInfo', null, global); goog.exportSymbol('proto.clarifai.api.RoleType', null, global); +goog.exportSymbol('proto.clarifai.api.Runner', null, global); goog.exportSymbol('proto.clarifai.api.ScopeDeps', null, global); goog.exportSymbol('proto.clarifai.api.Search', null, global); +goog.exportSymbol('proto.clarifai.api.Search.Metric', null, global); +goog.exportSymbol('proto.clarifai.api.Span', null, global); +goog.exportSymbol('proto.clarifai.api.SplitIntoDatasets', null, global); +goog.exportSymbol('proto.clarifai.api.SplitIntoDatasets.DatasetSplitMethod', null, global); goog.exportSymbol('proto.clarifai.api.StatTimeAggType', null, global); goog.exportSymbol('proto.clarifai.api.StatValue', null, global); goog.exportSymbol('proto.clarifai.api.StatValueAggType', null, global); @@ -135,6 +215,8 @@ goog.exportSymbol('proto.clarifai.api.StatValueAggregateResult', null, global); goog.exportSymbol('proto.clarifai.api.Task', null, global); goog.exportSymbol('proto.clarifai.api.Task.TaskType', null, global); goog.exportSymbol('proto.clarifai.api.TaskAIAssistant', null, global); +goog.exportSymbol('proto.clarifai.api.TaskConcept', null, global); +goog.exportSymbol('proto.clarifai.api.TaskConceptAutoAnnotationConfig', null, global); goog.exportSymbol('proto.clarifai.api.TaskInputSource', null, global); goog.exportSymbol('proto.clarifai.api.TaskInputSource.TaskInputSourceType', null, global); goog.exportSymbol('proto.clarifai.api.TaskReview', null, global); @@ -150,14 +232,19 @@ goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo', null, goog.exportSymbol('proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy', null, global); goog.exportSymbol('proto.clarifai.api.Text', null, global); goog.exportSymbol('proto.clarifai.api.TextInfo', null, global); +goog.exportSymbol('proto.clarifai.api.ThresholdRange', null, global); goog.exportSymbol('proto.clarifai.api.TimeInfo', null, global); goog.exportSymbol('proto.clarifai.api.TimeRange', null, global); goog.exportSymbol('proto.clarifai.api.TimeSegment', null, global); +goog.exportSymbol('proto.clarifai.api.Token', null, global); goog.exportSymbol('proto.clarifai.api.Track', null, global); goog.exportSymbol('proto.clarifai.api.TrackerMetrics', null, global); goog.exportSymbol('proto.clarifai.api.TrainInfo', null, global); goog.exportSymbol('proto.clarifai.api.TrainStats', null, global); goog.exportSymbol('proto.clarifai.api.TrendingMetric', null, global); +goog.exportSymbol('proto.clarifai.api.TritonCondaEnvInfo', null, global); +goog.exportSymbol('proto.clarifai.api.Upload', null, global); +goog.exportSymbol('proto.clarifai.api.UploadContentPart', null, global); goog.exportSymbol('proto.clarifai.api.UsageIntervalType', null, global); goog.exportSymbol('proto.clarifai.api.User', null, global); goog.exportSymbol('proto.clarifai.api.UserAppIDSet', null, global); @@ -469,6 +556,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.Concept.displayName = 'proto.clarifai.api.Concept'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.KeypointInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.KeypointInfo.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.KeypointInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.KeypointInfo.displayName = 'proto.clarifai.api.KeypointInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.KeypointEdge = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.KeypointEdge, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.KeypointEdge.displayName = 'proto.clarifai.api.KeypointEdge'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -690,7 +819,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.clarifai.api.RegionInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.RegionInfo.repeatedFields_, null); }; goog.inherits(proto.clarifai.api.RegionInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -826,6 +955,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.Point.displayName = 'proto.clarifai.api.Point'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.Span = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.Span, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Span.displayName = 'proto.clarifai.api.Span'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.Token = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.Token, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Token.displayName = 'proto.clarifai.api.Token'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1015,6 +1186,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.Input.displayName = 'proto.clarifai.api.Input'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputBatch = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputBatch.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.InputBatch, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputBatch.displayName = 'proto.clarifai.api.InputBatch'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1046,16 +1238,58 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DatasetFilter = function(opt_data) { +proto.clarifai.api.Dataset = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.Dataset, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Dataset.displayName = 'proto.clarifai.api.Dataset'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.AnnotationFilter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.AnnotationFilter, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AnnotationFilter.displayName = 'proto.clarifai.api.AnnotationFilter'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DatasetInput = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.DatasetFilter, jspb.Message); +goog.inherits(proto.clarifai.api.DatasetInput, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DatasetFilter.displayName = 'proto.clarifai.api.DatasetFilter'; + proto.clarifai.api.DatasetInput.displayName = 'proto.clarifai.api.DatasetInput'; } /** * Generated by JsPbCodeGenerator. @@ -1088,16 +1322,37 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig = function(opt_data) { +proto.clarifai.api.AnnotationFilterConfig = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.AnnotationFilterConfig, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AnnotationFilterConfig.displayName = 'proto.clarifai.api.AnnotationFilterConfig'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ModelPredictConfig = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.DatasetVersionDatasetFilterConfig, jspb.Message); +goog.inherits(proto.clarifai.api.ModelPredictConfig, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DatasetVersionDatasetFilterConfig.displayName = 'proto.clarifai.api.DatasetVersionDatasetFilterConfig'; + proto.clarifai.api.ModelPredictConfig.displayName = 'proto.clarifai.api.ModelPredictConfig'; } /** * Generated by JsPbCodeGenerator. @@ -1120,6 +1375,111 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.DatasetVersionMetrics.displayName = 'proto.clarifai.api.DatasetVersionMetrics'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DatasetVersionMetricsGroup = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DatasetVersionMetricsGroup, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DatasetVersionMetricsGroup.displayName = 'proto.clarifai.api.DatasetVersionMetricsGroup'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DatasetVersionExportInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DatasetVersionExportInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DatasetVersionExportInfo.displayName = 'proto.clarifai.api.DatasetVersionExportInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DatasetVersionExport = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DatasetVersionExport, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DatasetVersionExport.displayName = 'proto.clarifai.api.DatasetVersionExport'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DatasetVersionProcessingInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DatasetVersionProcessingInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DatasetVersionProcessingInfo.displayName = 'proto.clarifai.api.DatasetVersionProcessingInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.FrameInterpolationInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.FrameInterpolationInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.FrameInterpolationInfo.displayName = 'proto.clarifai.api.FrameInterpolationInfo'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1288,6 +1648,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.TrainInfo.displayName = 'proto.clarifai.api.TrainInfo'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.EvalInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.EvalInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.EvalInfo.displayName = 'proto.clarifai.api.EvalInfo'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1351,6 +1732,69 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.ModelType.displayName = 'proto.clarifai.api.ModelType'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ModelLayerInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ModelLayerInfo.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.ModelLayerInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ModelLayerInfo.displayName = 'proto.clarifai.api.ModelLayerInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.TritonCondaEnvInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.TritonCondaEnvInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.TritonCondaEnvInfo.displayName = 'proto.clarifai.api.TritonCondaEnvInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.LayerShape = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.LayerShape.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.LayerShape, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.LayerShape.displayName = 'proto.clarifai.api.LayerShape'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1939,6 +2383,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.Hit.displayName = 'proto.clarifai.api.Hit'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.HitCount = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.HitCount, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.HitCount.displayName = 'proto.clarifai.api.HitCount'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2412,7 +2877,7 @@ if (goog.DEBUG && !COMPILED) { * @constructor */ proto.clarifai.api.AppDuplication = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.AppDuplication.repeatedFields_, null); }; goog.inherits(proto.clarifai.api.AppDuplication, jspb.Message); if (goog.DEBUG && !COMPILED) { @@ -2422,6 +2887,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.AppDuplication.displayName = 'proto.clarifai.api.AppDuplication'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.AppCopyProgress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.AppCopyProgress, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AppCopyProgress.displayName = 'proto.clarifai.api.AppCopyProgress'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2674,6 +3160,69 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.TaskStatusCountPerUser.displayName = 'proto.clarifai.api.TaskStatusCountPerUser'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ThresholdRange = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ThresholdRange, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ThresholdRange.displayName = 'proto.clarifai.api.ThresholdRange'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.TaskConceptAutoAnnotationConfig = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.TaskConceptAutoAnnotationConfig, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.TaskConceptAutoAnnotationConfig.displayName = 'proto.clarifai.api.TaskConceptAutoAnnotationConfig'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.TaskConcept = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.TaskConcept, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.TaskConcept.displayName = 'proto.clarifai.api.TaskConcept'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2821,6 +3370,69 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.StatValueAggregateQuery.displayName = 'proto.clarifai.api.StatValueAggregateQuery'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DatasetInputsSearchAddJob = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DatasetInputsSearchAddJob, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DatasetInputsSearchAddJob.displayName = 'proto.clarifai.api.DatasetInputsSearchAddJob'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PCAProjectionComparator = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.PCAProjectionComparator, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PCAProjectionComparator.displayName = 'proto.clarifai.api.PCAProjectionComparator'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DuplicateAnnotationsResults = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DuplicateAnnotationsResults.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DuplicateAnnotationsResults, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DuplicateAnnotationsResults.displayName = 'proto.clarifai.api.DuplicateAnnotationsResults'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2863,6 +3475,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.TrendingMetric.displayName = 'proto.clarifai.api.TrendingMetric'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.FullTag = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.FullTag, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.FullTag.displayName = 'proto.clarifai.api.FullTag'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -2905,347 +3538,18705 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.TimeInfo.displayName = 'proto.clarifai.api.TimeInfo'; } - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Annotation.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Annotation.toObject(opt_includeInstance, this); +proto.clarifai.api.DatasetStar = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.clarifai.api.DatasetStar, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DatasetStar.displayName = 'proto.clarifai.api.DatasetStar'; +} /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Annotation} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Annotation.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - inputId: jspb.Message.getFieldWithDefault(msg, 2, ""), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - annotationInfo: (f = msg.getAnnotationInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - userId: jspb.Message.getFieldWithDefault(msg, 15, ""), - modelVersionId: jspb.Message.getFieldWithDefault(msg, 16, ""), - embedModelVersionId: jspb.Message.getFieldWithDefault(msg, 14, ""), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - trusted: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - taskId: jspb.Message.getFieldWithDefault(msg, 19, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.ModuleStar = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; +goog.inherits(proto.clarifai.api.ModuleStar, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ModuleStar.displayName = 'proto.clarifai.api.ModuleStar'; } - - /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Annotation} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Annotation.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Annotation; - return proto.clarifai.api.Annotation.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Module = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.clarifai.api.Module, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Module.displayName = 'proto.clarifai.api.Module'; +} /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.Annotation} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Annotation} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Annotation.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setInputId(value); - break; - case 3: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); - break; - case 13: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setAnnotationInfo(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setModelVersionId(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setEmbedModelVersionId(value); - break; - case 7: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTrusted(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setInputLevel(value); - break; - case 18: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setConsensusInfo(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ModuleVersion = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.clarifai.api.ModuleVersion, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ModuleVersion.displayName = 'proto.clarifai.api.ModuleVersion'; +} /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Annotation.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Annotation.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ModuleVersion.ModuleSubNav = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.clarifai.api.ModuleVersion.ModuleSubNav, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ModuleVersion.ModuleSubNav.displayName = 'proto.clarifai.api.ModuleVersion.ModuleSubNav'; +} /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Annotation} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Annotation.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInputId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.Data.serializeBinaryToWriter - ); - } - f = message.getAnnotationInfo(); - if (f != null) { - writer.writeMessage( - 13, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getModelVersionId(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getEmbedModelVersionId(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getTrusted(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getInputLevel(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getConsensusInfo(); - if (f != null) { - writer.writeMessage( - 18, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getTaskId(); - if (f.length > 0) { - writer.writeString( - 19, - f - ); - } +proto.clarifai.api.ModuleVersion.ModuleNav = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ModuleVersion.ModuleNav.repeatedFields_, null); }; - - +goog.inherits(proto.clarifai.api.ModuleVersion.ModuleNav, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ModuleVersion.ModuleNav.displayName = 'proto.clarifai.api.ModuleVersion.ModuleNav'; +} /** - * optional string id = 1; - * @return {string} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InstalledModuleVersion = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.InstalledModuleVersion, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InstalledModuleVersion.displayName = 'proto.clarifai.api.InstalledModuleVersion'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.BulkOperation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.BulkOperation.oneofGroups_); +}; +goog.inherits(proto.clarifai.api.BulkOperation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.BulkOperation.displayName = 'proto.clarifai.api.BulkOperation'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputIDs = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputIDs.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.InputIDs, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputIDs.displayName = 'proto.clarifai.api.InputIDs'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.Progress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.Progress, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Progress.displayName = 'proto.clarifai.api.Progress'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.Operation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.Operation.oneofGroups_); +}; +goog.inherits(proto.clarifai.api.Operation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Operation.displayName = 'proto.clarifai.api.Operation'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.AddConcepts = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.AddConcepts.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.AddConcepts, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AddConcepts.displayName = 'proto.clarifai.api.AddConcepts'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteConcepts = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteConcepts.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteConcepts, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteConcepts.displayName = 'proto.clarifai.api.DeleteConcepts'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.AddMetadata = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.AddMetadata, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AddMetadata.displayName = 'proto.clarifai.api.AddMetadata'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteMetadata = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DeleteMetadata, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteMetadata.displayName = 'proto.clarifai.api.DeleteMetadata'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.OverwriteGeo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.OverwriteGeo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.OverwriteGeo.displayName = 'proto.clarifai.api.OverwriteGeo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteGeo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DeleteGeo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteGeo.displayName = 'proto.clarifai.api.DeleteGeo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.AddToDataset = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.AddToDataset, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AddToDataset.displayName = 'proto.clarifai.api.AddToDataset'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteFromDataset = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DeleteFromDataset, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteFromDataset.displayName = 'proto.clarifai.api.DeleteFromDataset'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SplitIntoDatasets = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.SplitIntoDatasets.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.SplitIntoDatasets, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SplitIntoDatasets.displayName = 'proto.clarifai.api.SplitIntoDatasets'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DatasetSplit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.DatasetSplit.oneofGroups_); +}; +goog.inherits(proto.clarifai.api.DatasetSplit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DatasetSplit.displayName = 'proto.clarifai.api.DatasetSplit'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputsAddJob = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.InputsAddJob.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.InputsAddJob, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputsAddJob.displayName = 'proto.clarifai.api.InputsAddJob'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputsAddJobProgress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.InputsAddJobProgress, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputsAddJobProgress.displayName = 'proto.clarifai.api.InputsAddJobProgress'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.Upload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.Upload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Upload.displayName = 'proto.clarifai.api.Upload'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.UploadContentPart = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.UploadContentPart, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.UploadContentPart.displayName = 'proto.clarifai.api.UploadContentPart'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.CustomCodeOperatorRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, 500, proto.clarifai.api.CustomCodeOperatorRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.CustomCodeOperatorRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.CustomCodeOperatorRequest.displayName = 'proto.clarifai.api.CustomCodeOperatorRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputsExtractionJob = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.InputsExtractionJob, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputsExtractionJob.displayName = 'proto.clarifai.api.InputsExtractionJob'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputsExtractionJobProgress = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.InputsExtractionJobProgress, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputsExtractionJobProgress.displayName = 'proto.clarifai.api.InputsExtractionJobProgress'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputsDataSource = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.InputsDataSource, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputsDataSource.displayName = 'proto.clarifai.api.InputsDataSource'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DataSourceURL = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DataSourceURL, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DataSourceURL.displayName = 'proto.clarifai.api.DataSourceURL'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DataSourceCredentials = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.DataSourceCredentials.oneofGroups_); +}; +goog.inherits(proto.clarifai.api.DataSourceCredentials, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DataSourceCredentials.displayName = 'proto.clarifai.api.DataSourceCredentials'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.AWSCreds = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.AWSCreds, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AWSCreds.displayName = 'proto.clarifai.api.AWSCreds'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.AzureBlobCreds = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.AzureBlobCreds, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.AzureBlobCreds.displayName = 'proto.clarifai.api.AzureBlobCreds'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.InputsUpload = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.InputsUpload, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.InputsUpload.displayName = 'proto.clarifai.api.InputsUpload'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.BookmarkOrigin = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.BookmarkOrigin, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.BookmarkOrigin.displayName = 'proto.clarifai.api.BookmarkOrigin'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.Runner = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.Runner.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.Runner, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.Runner.displayName = 'proto.clarifai.api.Runner'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Annotation.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Annotation.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Annotation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Annotation.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + inputId: jspb.Message.getFieldWithDefault(msg, 2, ""), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + annotationInfo: (f = msg.getAnnotationInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 15, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 16, ""), + embedModelVersionId: jspb.Message.getFieldWithDefault(msg, 14, ""), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + trusted: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + inputLevel: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), + consensusInfo: (f = msg.getConsensusInfo()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + taskId: jspb.Message.getFieldWithDefault(msg, 19, ""), + workflowVersionId: jspb.Message.getFieldWithDefault(msg, 20, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Annotation} + */ +proto.clarifai.api.Annotation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Annotation; + return proto.clarifai.api.Annotation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Annotation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Annotation} + */ +proto.clarifai.api.Annotation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); + break; + case 3: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 13: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setAnnotationInfo(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersionId(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setEmbedModelVersionId(value); + break; + case 7: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 9: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTrusted(value); + break; + case 17: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setInputLevel(value); + break; + case 18: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setConsensusInfo(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowVersionId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Annotation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Annotation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Annotation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Annotation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Data.serializeBinaryToWriter + ); + } + f = message.getAnnotationInfo(); + if (f != null) { + writer.writeMessage( + 13, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getModelVersionId(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getEmbedModelVersionId(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getTrusted(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = message.getInputLevel(); + if (f) { + writer.writeBool( + 17, + f + ); + } + f = message.getConsensusInfo(); + if (f != null) { + writer.writeMessage( + 18, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getTaskId(); + if (f.length > 0) { + writer.writeString( + 19, + f + ); + } + f = message.getWorkflowVersionId(); + if (f.length > 0) { + writer.writeString( + 20, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Annotation.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string input_id = 2; + * @return {string} + */ +proto.clarifai.api.Annotation.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Data data = 3; + * @return {?proto.clarifai.api.Data} + */ +proto.clarifai.api.Annotation.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.Annotation} returns this +*/ +proto.clarifai.api.Annotation.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional google.protobuf.Struct annotation_info = 13; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.Annotation.prototype.getAnnotationInfo = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Annotation} returns this +*/ +proto.clarifai.api.Annotation.prototype.setAnnotationInfo = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.clearAnnotationInfo = function() { + return this.setAnnotationInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.hasAnnotationInfo = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional string user_id = 15; + * @return {string} + */ +proto.clarifai.api.Annotation.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional string model_version_id = 16; + * @return {string} + */ +proto.clarifai.api.Annotation.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); +}; + + +/** + * optional string embed_model_version_id = 14; + * @return {string} + */ +proto.clarifai.api.Annotation.prototype.getEmbedModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setEmbedModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional status.Status status = 7; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.Annotation.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 7)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.Annotation} returns this +*/ +proto.clarifai.api.Annotation.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.hasStatus = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional google.protobuf.Timestamp created_at = 8; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Annotation.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Annotation} returns this +*/ +proto.clarifai.api.Annotation.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional google.protobuf.Timestamp modified_at = 9; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Annotation.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Annotation} returns this +*/ +proto.clarifai.api.Annotation.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional bool trusted = 10; + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.getTrusted = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setTrusted = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); +}; + + +/** + * optional bool input_level = 17; + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.getInputLevel = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setInputLevel = function(value) { + return jspb.Message.setProto3BooleanField(this, 17, value); +}; + + +/** + * optional google.protobuf.Struct consensus_info = 18; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.Annotation.prototype.getConsensusInfo = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 18)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Annotation} returns this +*/ +proto.clarifai.api.Annotation.prototype.setConsensusInfo = function(value) { + return jspb.Message.setWrapperField(this, 18, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.clearConsensusInfo = function() { + return this.setConsensusInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Annotation.prototype.hasConsensusInfo = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional string task_id = 19; + * @return {string} + */ +proto.clarifai.api.Annotation.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setTaskId = function(value) { + return jspb.Message.setProto3StringField(this, 19, value); +}; + + +/** + * optional string workflow_version_id = 20; + * @return {string} + */ +proto.clarifai.api.Annotation.prototype.getWorkflowVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Annotation} returns this + */ +proto.clarifai.api.Annotation.prototype.setWorkflowVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 20, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.App.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.App.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.App} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.App.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + defaultLanguage: jspb.Message.getFieldWithDefault(msg, 3, ""), + defaultWorkflowId: jspb.Message.getFieldWithDefault(msg, 4, ""), + defaultWorkflow: (f = msg.getDefaultWorkflow()) && proto.clarifai.api.Workflow.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 5, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + legalConsentStatus: jspb.Message.getFieldWithDefault(msg, 7, 0), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + description: jspb.Message.getFieldWithDefault(msg, 14, ""), + sampleMs: jspb.Message.getFieldWithDefault(msg, 15, 0), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + dataTierId: jspb.Message.getFieldWithDefault(msg, 18, ""), + isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), + starCount: jspb.Message.getFieldWithDefault(msg, 20, 0), + notes: jspb.Message.getFieldWithDefault(msg, 21, ""), + image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.App} + */ +proto.clarifai.api.App.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.App; + return proto.clarifai.api.App.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.App} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.App} + */ +proto.clarifai.api.App.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDefaultLanguage(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDefaultWorkflowId(value); + break; + case 23: + var value = new proto.clarifai.api.Workflow; + reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader); + msg.setDefaultWorkflow(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 17: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint32()); + msg.setLegalConsentStatus(value); + break; + case 13: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 15: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSampleMs(value); + break; + case 16: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setDataTierId(value); + break; + case 19: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsStarred(value); + break; + case 20: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStarCount(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.setNotes(value); + break; + case 22: + var value = new proto.clarifai.api.Image; + reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader); + msg.setImage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.App.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.App.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.App} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.App.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDefaultLanguage(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDefaultWorkflowId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getDefaultWorkflow(); + if (f != null) { + writer.writeMessage( + 23, + f, + proto.clarifai.api.Workflow.serializeBinaryToWriter + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 17, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getLegalConsentStatus(); + if (f !== 0) { + writer.writeUint32( + 7, + f + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 13, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getSampleMs(); + if (f !== 0) { + writer.writeUint32( + 15, + f + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getDataTierId(); + if (f.length > 0) { + writer.writeString( + 18, + f + ); + } + f = message.getIsStarred(); + if (f) { + writer.writeBool( + 19, + f + ); + } + f = message.getStarCount(); + if (f !== 0) { + writer.writeInt32( + 20, + f + ); + } + f = message.getNotes(); + if (f.length > 0) { + writer.writeString( + 21, + f + ); + } + f = message.getImage(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.clarifai.api.Image.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.App.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.clarifai.api.App.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string default_language = 3; + * @return {string} + */ +proto.clarifai.api.App.prototype.getDefaultLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setDefaultLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string default_workflow_id = 4; + * @return {string} + */ +proto.clarifai.api.App.prototype.getDefaultWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setDefaultWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional Workflow default_workflow = 23; + * @return {?proto.clarifai.api.Workflow} + */ +proto.clarifai.api.App.prototype.getDefaultWorkflow = function() { + return /** @type{?proto.clarifai.api.Workflow} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Workflow, 23)); +}; + + +/** + * @param {?proto.clarifai.api.Workflow|undefined} value + * @return {!proto.clarifai.api.App} returns this +*/ +proto.clarifai.api.App.prototype.setDefaultWorkflow = function(value) { + return jspb.Message.setWrapperField(this, 23, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.clearDefaultWorkflow = function() { + return this.setDefaultWorkflow(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.App.prototype.hasDefaultWorkflow = function() { + return jspb.Message.getField(this, 23) != null; +}; + + +/** + * optional string user_id = 5; + * @return {string} + */ +proto.clarifai.api.App.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 6; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.App.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.App} returns this +*/ +proto.clarifai.api.App.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.App.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional google.protobuf.Timestamp modified_at = 17; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.App.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.App} returns this +*/ +proto.clarifai.api.App.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 17, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.App.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional uint32 legal_consent_status = 7; + * @return {number} + */ +proto.clarifai.api.App.prototype.getLegalConsentStatus = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setLegalConsentStatus = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional google.protobuf.Struct metadata = 13; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.App.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.App} returns this +*/ +proto.clarifai.api.App.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.App.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional string description = 14; + * @return {string} + */ +proto.clarifai.api.App.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional uint32 sample_ms = 15; + * @return {number} + */ +proto.clarifai.api.App.prototype.getSampleMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setSampleMs = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional Visibility visibility = 16; + * @return {?proto.clarifai.api.Visibility} + */ +proto.clarifai.api.App.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 16)); +}; + + +/** + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.App} returns this +*/ +proto.clarifai.api.App.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 16, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.clearVisibility = function() { + return this.setVisibility(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.App.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional string data_tier_id = 18; + * @return {string} + */ +proto.clarifai.api.App.prototype.getDataTierId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setDataTierId = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); +}; + + +/** + * optional bool is_starred = 19; + * @return {boolean} + */ +proto.clarifai.api.App.prototype.getIsStarred = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setIsStarred = function(value) { + return jspb.Message.setProto3BooleanField(this, 19, value); +}; + + +/** + * optional int32 star_count = 20; + * @return {number} + */ +proto.clarifai.api.App.prototype.getStarCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setStarCount = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); +}; + + +/** + * optional string notes = 21; + * @return {string} + */ +proto.clarifai.api.App.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.setNotes = function(value) { + return jspb.Message.setProto3StringField(this, 21, value); +}; + + +/** + * optional Image image = 22; + * @return {?proto.clarifai.api.Image} + */ +proto.clarifai.api.App.prototype.getImage = function() { + return /** @type{?proto.clarifai.api.Image} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 22)); +}; + + +/** + * @param {?proto.clarifai.api.Image|undefined} value + * @return {!proto.clarifai.api.App} returns this +*/ +proto.clarifai.api.App.prototype.setImage = function(value) { + return jspb.Message.setWrapperField(this, 22, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.App} returns this + */ +proto.clarifai.api.App.prototype.clearImage = function() { + return this.setImage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.App.prototype.hasImage = function() { + return jspb.Message.getField(this, 22) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.AppQuery.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AppQuery.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AppQuery} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AppQuery.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AppQuery} + */ +proto.clarifai.api.AppQuery.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AppQuery; + return proto.clarifai.api.AppQuery.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AppQuery} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AppQuery} + */ +proto.clarifai.api.AppQuery.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.AppQuery.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AppQuery.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AppQuery} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AppQuery.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.clarifai.api.AppQuery.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.AppQuery} returns this + */ +proto.clarifai.api.AppQuery.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Collaborator.repeatedFields_ = [4,5]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Collaborator.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Collaborator.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Collaborator} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Collaborator.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f), + user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f), + scopesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + endpointsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Collaborator} + */ +proto.clarifai.api.Collaborator.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Collaborator; + return proto.clarifai.api.Collaborator.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Collaborator} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Collaborator} + */ +proto.clarifai.api.Collaborator.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.clarifai.api.App; + reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader); + msg.setApp(value); + break; + case 3: + var value = new proto.clarifai.api.User; + reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader); + msg.setUser(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addScopes(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addEndpoints(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 7: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDeletedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Collaborator.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Collaborator.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Collaborator} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Collaborator.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getApp(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.App.serializeBinaryToWriter + ); + } + f = message.getUser(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.User.serializeBinaryToWriter + ); + } + f = message.getScopesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getEndpointsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 7, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDeletedAt(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Collaborator.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional App app = 2; + * @return {?proto.clarifai.api.App} + */ +proto.clarifai.api.Collaborator.prototype.getApp = function() { + return /** @type{?proto.clarifai.api.App} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.App, 2)); +}; + + +/** + * @param {?proto.clarifai.api.App|undefined} value + * @return {!proto.clarifai.api.Collaborator} returns this +*/ +proto.clarifai.api.Collaborator.prototype.setApp = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.clearApp = function() { + return this.setApp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaborator.prototype.hasApp = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional User user = 3; + * @return {?proto.clarifai.api.User} + */ +proto.clarifai.api.Collaborator.prototype.getUser = function() { + return /** @type{?proto.clarifai.api.User} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.User, 3)); +}; + + +/** + * @param {?proto.clarifai.api.User|undefined} value + * @return {!proto.clarifai.api.Collaborator} returns this +*/ +proto.clarifai.api.Collaborator.prototype.setUser = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.clearUser = function() { + return this.setUser(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaborator.prototype.hasUser = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * repeated string scopes = 4; + * @return {!Array} + */ +proto.clarifai.api.Collaborator.prototype.getScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.setScopesList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.addScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.clearScopesList = function() { + return this.setScopesList([]); +}; + + +/** + * repeated string endpoints = 5; + * @return {!Array} + */ +proto.clarifai.api.Collaborator.prototype.getEndpointsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.setEndpointsList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.addEndpoints = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 6; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Collaborator.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Collaborator} returns this +*/ +proto.clarifai.api.Collaborator.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaborator.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional google.protobuf.Timestamp modified_at = 7; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Collaborator.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Collaborator} returns this +*/ +proto.clarifai.api.Collaborator.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaborator.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional google.protobuf.Timestamp deleted_at = 8; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Collaborator.prototype.getDeletedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Collaborator} returns this +*/ +proto.clarifai.api.Collaborator.prototype.setDeletedAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaborator} returns this + */ +proto.clarifai.api.Collaborator.prototype.clearDeletedAt = function() { + return this.setDeletedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaborator.prototype.hasDeletedAt = function() { + return jspb.Message.getField(this, 8) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Collaboration.repeatedFields_ = [3,4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Collaboration.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Collaboration.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Collaboration} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Collaboration.toObject = function(includeInstance, msg) { + var f, obj = { + app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f), + appOwner: (f = msg.getAppOwner()) && proto.clarifai.api.User.toObject(includeInstance, f), + scopesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Collaboration} + */ +proto.clarifai.api.Collaboration.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Collaboration; + return proto.clarifai.api.Collaboration.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Collaboration} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Collaboration} + */ +proto.clarifai.api.Collaboration.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.App; + reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader); + msg.setApp(value); + break; + case 2: + var value = new proto.clarifai.api.User; + reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader); + msg.setAppOwner(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addScopes(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addEndpoints(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Collaboration.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Collaboration.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Collaboration} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Collaboration.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getApp(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.App.serializeBinaryToWriter + ); + } + f = message.getAppOwner(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.User.serializeBinaryToWriter + ); + } + f = message.getScopesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getEndpointsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional App app = 1; + * @return {?proto.clarifai.api.App} + */ +proto.clarifai.api.Collaboration.prototype.getApp = function() { + return /** @type{?proto.clarifai.api.App} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.App, 1)); +}; + + +/** + * @param {?proto.clarifai.api.App|undefined} value + * @return {!proto.clarifai.api.Collaboration} returns this +*/ +proto.clarifai.api.Collaboration.prototype.setApp = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.clearApp = function() { + return this.setApp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaboration.prototype.hasApp = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional User app_owner = 2; + * @return {?proto.clarifai.api.User} + */ +proto.clarifai.api.Collaboration.prototype.getAppOwner = function() { + return /** @type{?proto.clarifai.api.User} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.User, 2)); +}; + + +/** + * @param {?proto.clarifai.api.User|undefined} value + * @return {!proto.clarifai.api.Collaboration} returns this +*/ +proto.clarifai.api.Collaboration.prototype.setAppOwner = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.clearAppOwner = function() { + return this.setAppOwner(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaboration.prototype.hasAppOwner = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated string scopes = 3; + * @return {!Array} + */ +proto.clarifai.api.Collaboration.prototype.getScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.setScopesList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.addScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.clearScopesList = function() { + return this.setScopesList([]); +}; + + +/** + * repeated string endpoints = 4; + * @return {!Array} + */ +proto.clarifai.api.Collaboration.prototype.getEndpointsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.setEndpointsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.addEndpoints = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Collaboration.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Collaboration} returns this +*/ +proto.clarifai.api.Collaboration.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collaboration} returns this + */ +proto.clarifai.api.Collaboration.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Collaboration.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Audio.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Audio.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Audio} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Audio.toObject = function(includeInstance, msg) { + var f, obj = { + url: jspb.Message.getFieldWithDefault(msg, 1, ""), + base64: msg.getBase64_asB64(), + allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), + audioInfo: (f = msg.getAudioInfo()) && proto.clarifai.api.AudioInfo.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Audio} + */ +proto.clarifai.api.Audio.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Audio; + return proto.clarifai.api.Audio.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Audio} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Audio} + */ +proto.clarifai.api.Audio.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setBase64(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowDuplicateUrl(value); + break; + case 5: + var value = new proto.clarifai.api.HostedURL; + reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); + msg.setHosted(value); + break; + case 6: + var value = new proto.clarifai.api.AudioInfo; + reader.readMessage(value,proto.clarifai.api.AudioInfo.deserializeBinaryFromReader); + msg.setAudioInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Audio.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Audio.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Audio} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Audio.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBase64_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getAllowDuplicateUrl(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getHosted(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.HostedURL.serializeBinaryToWriter + ); + } + f = message.getAudioInfo(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.AudioInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string url = 1; + * @return {string} + */ +proto.clarifai.api.Audio.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Audio} returns this + */ +proto.clarifai.api.Audio.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes base64 = 2; + * @return {!(string|Uint8Array)} + */ +proto.clarifai.api.Audio.prototype.getBase64 = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes base64 = 2; + * This is a type-conversion wrapper around `getBase64()` + * @return {string} + */ +proto.clarifai.api.Audio.prototype.getBase64_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBase64())); +}; + + +/** + * optional bytes base64 = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBase64()` + * @return {!Uint8Array} + */ +proto.clarifai.api.Audio.prototype.getBase64_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBase64())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.clarifai.api.Audio} returns this + */ +proto.clarifai.api.Audio.prototype.setBase64 = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional bool allow_duplicate_url = 4; + * @return {boolean} + */ +proto.clarifai.api.Audio.prototype.getAllowDuplicateUrl = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.Audio} returns this + */ +proto.clarifai.api.Audio.prototype.setAllowDuplicateUrl = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional HostedURL hosted = 5; + * @return {?proto.clarifai.api.HostedURL} + */ +proto.clarifai.api.Audio.prototype.getHosted = function() { + return /** @type{?proto.clarifai.api.HostedURL} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 5)); +}; + + +/** + * @param {?proto.clarifai.api.HostedURL|undefined} value + * @return {!proto.clarifai.api.Audio} returns this +*/ +proto.clarifai.api.Audio.prototype.setHosted = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Audio} returns this + */ +proto.clarifai.api.Audio.prototype.clearHosted = function() { + return this.setHosted(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Audio.prototype.hasHosted = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional AudioInfo audio_info = 6; + * @return {?proto.clarifai.api.AudioInfo} + */ +proto.clarifai.api.Audio.prototype.getAudioInfo = function() { + return /** @type{?proto.clarifai.api.AudioInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AudioInfo, 6)); +}; + + +/** + * @param {?proto.clarifai.api.AudioInfo|undefined} value + * @return {!proto.clarifai.api.Audio} returns this +*/ +proto.clarifai.api.Audio.prototype.setAudioInfo = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Audio} returns this + */ +proto.clarifai.api.Audio.prototype.clearAudioInfo = function() { + return this.setAudioInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Audio.prototype.hasAudioInfo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.AudioInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AudioInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AudioInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AudioInfo.toObject = function(includeInstance, msg) { + var f, obj = { + audioFormat: jspb.Message.getFieldWithDefault(msg, 1, ""), + sampleRate: jspb.Message.getFieldWithDefault(msg, 2, 0), + durationSeconds: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + bitRate: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AudioInfo} + */ +proto.clarifai.api.AudioInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AudioInfo; + return proto.clarifai.api.AudioInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AudioInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AudioInfo} + */ +proto.clarifai.api.AudioInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAudioFormat(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setSampleRate(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setDurationSeconds(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBitRate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.AudioInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AudioInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AudioInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AudioInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAudioFormat(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSampleRate(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getDurationSeconds(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getBitRate(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } +}; + + +/** + * optional string audio_format = 1; + * @return {string} + */ +proto.clarifai.api.AudioInfo.prototype.getAudioFormat = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.AudioInfo} returns this + */ +proto.clarifai.api.AudioInfo.prototype.setAudioFormat = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 sample_rate = 2; + * @return {number} + */ +proto.clarifai.api.AudioInfo.prototype.getSampleRate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.AudioInfo} returns this + */ +proto.clarifai.api.AudioInfo.prototype.setSampleRate = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional float duration_seconds = 3; + * @return {number} + */ +proto.clarifai.api.AudioInfo.prototype.getDurationSeconds = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.AudioInfo} returns this + */ +proto.clarifai.api.AudioInfo.prototype.setDurationSeconds = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional int32 bit_rate = 4; + * @return {number} + */ +proto.clarifai.api.AudioInfo.prototype.getBitRate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.AudioInfo} returns this + */ +proto.clarifai.api.AudioInfo.prototype.setBitRate = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Track.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Track.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Track} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Track.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + timeInfo: (f = msg.getTimeInfo()) && proto.clarifai.api.TimeInfo.toObject(includeInstance, f), + quality: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Track} + */ +proto.clarifai.api.Track.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Track; + return proto.clarifai.api.Track.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Track} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Track} + */ +proto.clarifai.api.Track.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new proto.clarifai.api.TimeInfo; + reader.readMessage(value,proto.clarifai.api.TimeInfo.deserializeBinaryFromReader); + msg.setTimeInfo(value); + break; + case 5: + var value = /** @type {number} */ (reader.readFloat()); + msg.setQuality(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Track.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Track.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Track} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Track.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Data.serializeBinaryToWriter + ); + } + f = message.getTimeInfo(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.TimeInfo.serializeBinaryToWriter + ); + } + f = message.getQuality(); + if (f !== 0.0) { + writer.writeFloat( + 5, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Track.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Track} returns this + */ +proto.clarifai.api.Track.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Data data = 2; + * @return {?proto.clarifai.api.Data} + */ +proto.clarifai.api.Track.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.Track} returns this +*/ +proto.clarifai.api.Track.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Track} returns this + */ +proto.clarifai.api.Track.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Track.prototype.hasData = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional TimeInfo time_info = 4; + * @return {?proto.clarifai.api.TimeInfo} + */ +proto.clarifai.api.Track.prototype.getTimeInfo = function() { + return /** @type{?proto.clarifai.api.TimeInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TimeInfo, 4)); +}; + + +/** + * @param {?proto.clarifai.api.TimeInfo|undefined} value + * @return {!proto.clarifai.api.Track} returns this +*/ +proto.clarifai.api.Track.prototype.setTimeInfo = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Track} returns this + */ +proto.clarifai.api.Track.prototype.clearTimeInfo = function() { + return this.setTimeInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Track.prototype.hasTimeInfo = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional float quality = 5; + * @return {number} + */ +proto.clarifai.api.Track.prototype.getQuality = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Track} returns this + */ +proto.clarifai.api.Track.prototype.setQuality = function(value) { + return jspb.Message.setProto3FloatField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Cluster.repeatedFields_ = [4,5]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Cluster.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Cluster.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Cluster} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Cluster.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + count: jspb.Message.getFieldWithDefault(msg, 2, 0), + score: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + hitsList: jspb.Message.toObjectList(msg.getHitsList(), + proto.clarifai.api.Hit.toObject, includeInstance), + projectionList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 5)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Cluster} + */ +proto.clarifai.api.Cluster.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Cluster; + return proto.clarifai.api.Cluster.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Cluster} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Cluster} + */ +proto.clarifai.api.Cluster.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCount(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setScore(value); + break; + case 4: + var value = new proto.clarifai.api.Hit; + reader.readMessage(value,proto.clarifai.api.Hit.deserializeBinaryFromReader); + msg.addHits(value); + break; + case 5: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addProjection(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Cluster.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Cluster.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Cluster} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Cluster.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCount(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getScore(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getHitsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.clarifai.api.Hit.serializeBinaryToWriter + ); + } + f = message.getProjectionList(); + if (f.length > 0) { + writer.writePackedFloat( + 5, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Cluster.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Cluster} returns this + */ +proto.clarifai.api.Cluster.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional uint32 count = 2; + * @return {number} + */ +proto.clarifai.api.Cluster.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Cluster} returns this + */ +proto.clarifai.api.Cluster.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional float score = 3; + * @return {number} + */ +proto.clarifai.api.Cluster.prototype.getScore = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Cluster} returns this + */ +proto.clarifai.api.Cluster.prototype.setScore = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * repeated Hit hits = 4; + * @return {!Array} + */ +proto.clarifai.api.Cluster.prototype.getHitsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Cluster} returns this +*/ +proto.clarifai.api.Cluster.prototype.setHitsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.clarifai.api.Hit=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Hit} + */ +proto.clarifai.api.Cluster.prototype.addHits = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Hit, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Cluster} returns this + */ +proto.clarifai.api.Cluster.prototype.clearHitsList = function() { + return this.setHitsList([]); +}; + + +/** + * repeated float projection = 5; + * @return {!Array} + */ +proto.clarifai.api.Cluster.prototype.getProjectionList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Cluster} returns this + */ +proto.clarifai.api.Cluster.prototype.setProjectionList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Cluster} returns this + */ +proto.clarifai.api.Cluster.prototype.addProjection = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Cluster} returns this + */ +proto.clarifai.api.Cluster.prototype.clearProjectionList = function() { + return this.setProjectionList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Color.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Color.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Color} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Color.toObject = function(includeInstance, msg) { + var f, obj = { + rawHex: jspb.Message.getFieldWithDefault(msg, 1, ""), + w3c: (f = msg.getW3c()) && proto.clarifai.api.W3C.toObject(includeInstance, f), + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Color} + */ +proto.clarifai.api.Color.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Color; + return proto.clarifai.api.Color.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Color} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Color} + */ +proto.clarifai.api.Color.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setRawHex(value); + break; + case 2: + var value = new proto.clarifai.api.W3C; + reader.readMessage(value,proto.clarifai.api.W3C.deserializeBinaryFromReader); + msg.setW3c(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Color.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Color.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Color} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Color.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRawHex(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getW3c(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.W3C.serializeBinaryToWriter + ); + } + f = message.getValue(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } +}; + + +/** + * optional string raw_hex = 1; + * @return {string} + */ +proto.clarifai.api.Color.prototype.getRawHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Color} returns this + */ +proto.clarifai.api.Color.prototype.setRawHex = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional W3C w3c = 2; + * @return {?proto.clarifai.api.W3C} + */ +proto.clarifai.api.Color.prototype.getW3c = function() { + return /** @type{?proto.clarifai.api.W3C} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.W3C, 2)); +}; + + +/** + * @param {?proto.clarifai.api.W3C|undefined} value + * @return {!proto.clarifai.api.Color} returns this +*/ +proto.clarifai.api.Color.prototype.setW3c = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Color} returns this + */ +proto.clarifai.api.Color.prototype.clearW3c = function() { + return this.setW3c(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Color.prototype.hasW3c = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional float value = 3; + * @return {number} + */ +proto.clarifai.api.Color.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Color} returns this + */ +proto.clarifai.api.Color.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.W3C.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.W3C.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.W3C} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.W3C.toObject = function(includeInstance, msg) { + var f, obj = { + hex: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.W3C} + */ +proto.clarifai.api.W3C.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.W3C; + return proto.clarifai.api.W3C.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.W3C} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.W3C} + */ +proto.clarifai.api.W3C.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setHex(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.W3C.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.W3C.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.W3C} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.W3C.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHex(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string hex = 1; + * @return {string} + */ +proto.clarifai.api.W3C.prototype.getHex = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.W3C} returns this + */ +proto.clarifai.api.W3C.prototype.setHex = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.clarifai.api.W3C.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.W3C} returns this + */ +proto.clarifai.api.W3C.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.UserAppIDSet.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.UserAppIDSet.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.UserAppIDSet} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.UserAppIDSet.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + appId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.UserAppIDSet.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.UserAppIDSet; + return proto.clarifai.api.UserAppIDSet.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.UserAppIDSet} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.UserAppIDSet.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.UserAppIDSet.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.UserAppIDSet.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.UserAppIDSet} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.UserAppIDSet.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.clarifai.api.UserAppIDSet.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.UserAppIDSet} returns this + */ +proto.clarifai.api.UserAppIDSet.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string app_id = 2; + * @return {string} + */ +proto.clarifai.api.UserAppIDSet.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.UserAppIDSet} returns this + */ +proto.clarifai.api.UserAppIDSet.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchAction.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAction.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchAction} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAction.toObject = function(includeInstance, msg) { + var f, obj = { + op: jspb.Message.getFieldWithDefault(msg, 1, ""), + mergeConflictResolution: jspb.Message.getFieldWithDefault(msg, 2, ""), + path: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchAction} + */ +proto.clarifai.api.PatchAction.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchAction; + return proto.clarifai.api.PatchAction.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchAction} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchAction} + */ +proto.clarifai.api.PatchAction.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setOp(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMergeConflictResolution(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPath(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchAction.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchAction.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchAction} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAction.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOp(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMergeConflictResolution(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPath(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string op = 1; + * @return {string} + */ +proto.clarifai.api.PatchAction.prototype.getOp = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAction} returns this + */ +proto.clarifai.api.PatchAction.prototype.setOp = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string merge_conflict_resolution = 2; + * @return {string} + */ +proto.clarifai.api.PatchAction.prototype.getMergeConflictResolution = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAction} returns this + */ +proto.clarifai.api.PatchAction.prototype.setMergeConflictResolution = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string path = 3; + * @return {string} + */ +proto.clarifai.api.PatchAction.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAction} returns this + */ +proto.clarifai.api.PatchAction.prototype.setPath = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Concept.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Concept.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Concept} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Concept.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + language: jspb.Message.getFieldWithDefault(msg, 5, ""), + appId: jspb.Message.getFieldWithDefault(msg, 6, ""), + definition: jspb.Message.getFieldWithDefault(msg, 7, ""), + vocabId: jspb.Message.getFieldWithDefault(msg, 8, ""), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 10, ""), + keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Concept} + */ +proto.clarifai.api.Concept.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Concept; + return proto.clarifai.api.Concept.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Concept} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Concept} + */ +proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setValue(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setDefinition(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setVocabId(value); + break; + case 9: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 11: + var value = new proto.clarifai.api.KeypointInfo; + reader.readMessage(value,proto.clarifai.api.KeypointInfo.deserializeBinaryFromReader); + msg.setKeypointInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Concept.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Concept.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Concept} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getValue(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getDefinition(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getVocabId(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getKeypointInfo(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.clarifai.api.KeypointInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Concept.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.clarifai.api.Concept.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional float value = 3; + * @return {number} + */ +proto.clarifai.api.Concept.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Concept.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Concept} returns this +*/ +proto.clarifai.api.Concept.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Concept.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string language = 5; + * @return {string} + */ +proto.clarifai.api.Concept.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string app_id = 6; + * @return {string} + */ +proto.clarifai.api.Concept.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional string definition = 7; + * @return {string} + */ +proto.clarifai.api.Concept.prototype.getDefinition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setDefinition = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string vocab_id = 8; + * @return {string} + */ +proto.clarifai.api.Concept.prototype.getVocabId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setVocabId = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional Visibility visibility = 9; + * @return {?proto.clarifai.api.Visibility} + */ +proto.clarifai.api.Concept.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 9)); +}; + + +/** + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.Concept} returns this +*/ +proto.clarifai.api.Concept.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.clearVisibility = function() { + return this.setVisibility(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Concept.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional string user_id = 10; + * @return {string} + */ +proto.clarifai.api.Concept.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional KeypointInfo keypoint_info = 11; + * @return {?proto.clarifai.api.KeypointInfo} + */ +proto.clarifai.api.Concept.prototype.getKeypointInfo = function() { + return /** @type{?proto.clarifai.api.KeypointInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.KeypointInfo, 11)); +}; + + +/** + * @param {?proto.clarifai.api.KeypointInfo|undefined} value + * @return {!proto.clarifai.api.Concept} returns this +*/ +proto.clarifai.api.Concept.prototype.setKeypointInfo = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.clearKeypointInfo = function() { + return this.setKeypointInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Concept.prototype.hasKeypointInfo = function() { + return jspb.Message.getField(this, 11) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.KeypointInfo.repeatedFields_ = [1,2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.KeypointInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.KeypointInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.KeypointInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.KeypointInfo.toObject = function(includeInstance, msg) { + var f, obj = { + keypointNamesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + skeletonList: jspb.Message.toObjectList(msg.getSkeletonList(), + proto.clarifai.api.KeypointEdge.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.KeypointInfo} + */ +proto.clarifai.api.KeypointInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.KeypointInfo; + return proto.clarifai.api.KeypointInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.KeypointInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.KeypointInfo} + */ +proto.clarifai.api.KeypointInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addKeypointNames(value); + break; + case 2: + var value = new proto.clarifai.api.KeypointEdge; + reader.readMessage(value,proto.clarifai.api.KeypointEdge.deserializeBinaryFromReader); + msg.addSkeleton(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.KeypointInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.KeypointInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.KeypointInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.KeypointInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKeypointNamesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } + f = message.getSkeletonList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.clarifai.api.KeypointEdge.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated string keypoint_names = 1; + * @return {!Array} + */ +proto.clarifai.api.KeypointInfo.prototype.getKeypointNamesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.KeypointInfo} returns this + */ +proto.clarifai.api.KeypointInfo.prototype.setKeypointNamesList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.KeypointInfo} returns this + */ +proto.clarifai.api.KeypointInfo.prototype.addKeypointNames = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.KeypointInfo} returns this + */ +proto.clarifai.api.KeypointInfo.prototype.clearKeypointNamesList = function() { + return this.setKeypointNamesList([]); +}; + + +/** + * repeated KeypointEdge skeleton = 2; + * @return {!Array} + */ +proto.clarifai.api.KeypointInfo.prototype.getSkeletonList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.KeypointEdge, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.KeypointInfo} returns this +*/ +proto.clarifai.api.KeypointInfo.prototype.setSkeletonList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.KeypointEdge=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.KeypointEdge} + */ +proto.clarifai.api.KeypointInfo.prototype.addSkeleton = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.KeypointEdge, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.KeypointInfo} returns this + */ +proto.clarifai.api.KeypointInfo.prototype.clearSkeletonList = function() { + return this.setSkeletonList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.KeypointEdge.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.KeypointEdge.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.KeypointEdge} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.KeypointEdge.toObject = function(includeInstance, msg) { + var f, obj = { + k1: jspb.Message.getFieldWithDefault(msg, 1, 0), + k2: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.KeypointEdge} + */ +proto.clarifai.api.KeypointEdge.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.KeypointEdge; + return proto.clarifai.api.KeypointEdge.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.KeypointEdge} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.KeypointEdge} + */ +proto.clarifai.api.KeypointEdge.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setK1(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setK2(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.KeypointEdge.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.KeypointEdge.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.KeypointEdge} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.KeypointEdge.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getK1(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getK2(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } +}; + + +/** + * optional uint32 k1 = 1; + * @return {number} + */ +proto.clarifai.api.KeypointEdge.prototype.getK1 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.KeypointEdge} returns this + */ +proto.clarifai.api.KeypointEdge.prototype.setK1 = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint32 k2 = 2; + * @return {number} + */ +proto.clarifai.api.KeypointEdge.prototype.getK2 = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.KeypointEdge} returns this + */ +proto.clarifai.api.KeypointEdge.prototype.setK2 = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ConceptCount.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptCount.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptCount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptCount.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + conceptTypeCount: (f = msg.getConceptTypeCount()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), + detailConceptCount: (f = msg.getDetailConceptCount()) && proto.clarifai.api.DetailConceptCount.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ConceptCount} + */ +proto.clarifai.api.ConceptCount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptCount; + return proto.clarifai.api.ConceptCount.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptCount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptCount} + */ +proto.clarifai.api.ConceptCount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = new proto.clarifai.api.ConceptTypeCount; + reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); + msg.setConceptTypeCount(value); + break; + case 4: + var value = new proto.clarifai.api.DetailConceptCount; + reader.readMessage(value,proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader); + msg.setDetailConceptCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptCount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptCount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ConceptCount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptCount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getConceptTypeCount(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + ); + } + f = message.getDetailConceptCount(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.DetailConceptCount.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.ConceptCount.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptCount} returns this + */ +proto.clarifai.api.ConceptCount.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.clarifai.api.ConceptCount.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptCount} returns this + */ +proto.clarifai.api.ConceptCount.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional ConceptTypeCount concept_type_count = 3; + * @return {?proto.clarifai.api.ConceptTypeCount} + */ +proto.clarifai.api.ConceptCount.prototype.getConceptTypeCount = function() { + return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 3)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value + * @return {!proto.clarifai.api.ConceptCount} returns this +*/ +proto.clarifai.api.ConceptCount.prototype.setConceptTypeCount = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ConceptCount} returns this + */ +proto.clarifai.api.ConceptCount.prototype.clearConceptTypeCount = function() { + return this.setConceptTypeCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ConceptCount.prototype.hasConceptTypeCount = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional DetailConceptCount detail_concept_count = 4; + * @return {?proto.clarifai.api.DetailConceptCount} + */ +proto.clarifai.api.ConceptCount.prototype.getDetailConceptCount = function() { + return /** @type{?proto.clarifai.api.DetailConceptCount} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DetailConceptCount, 4)); +}; + + +/** + * @param {?proto.clarifai.api.DetailConceptCount|undefined} value + * @return {!proto.clarifai.api.ConceptCount} returns this +*/ +proto.clarifai.api.ConceptCount.prototype.setDetailConceptCount = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ConceptCount} returns this + */ +proto.clarifai.api.ConceptCount.prototype.clearDetailConceptCount = function() { + return this.setDetailConceptCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ConceptCount.prototype.hasDetailConceptCount = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ConceptTypeCount.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptTypeCount.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptTypeCount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptTypeCount.toObject = function(includeInstance, msg) { + var f, obj = { + positive: jspb.Message.getFieldWithDefault(msg, 1, 0), + negative: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ConceptTypeCount} + */ +proto.clarifai.api.ConceptTypeCount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptTypeCount; + return proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptTypeCount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptTypeCount} + */ +proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPositive(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setNegative(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptTypeCount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ConceptTypeCount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPositive(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getNegative(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } +}; + + +/** + * optional uint32 positive = 1; + * @return {number} + */ +proto.clarifai.api.ConceptTypeCount.prototype.getPositive = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ConceptTypeCount} returns this + */ +proto.clarifai.api.ConceptTypeCount.prototype.setPositive = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint32 negative = 2; + * @return {number} + */ +proto.clarifai.api.ConceptTypeCount.prototype.getNegative = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ConceptTypeCount} returns this + */ +proto.clarifai.api.ConceptTypeCount.prototype.setNegative = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DetailConceptCount.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DetailConceptCount.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DetailConceptCount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DetailConceptCount.toObject = function(includeInstance, msg) { + var f, obj = { + processed: (f = msg.getProcessed()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), + toProcess: (f = msg.getToProcess()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), + errors: (f = msg.getErrors()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), + processing: (f = msg.getProcessing()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DetailConceptCount} + */ +proto.clarifai.api.DetailConceptCount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DetailConceptCount; + return proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DetailConceptCount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DetailConceptCount} + */ +proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.ConceptTypeCount; + reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); + msg.setProcessed(value); + break; + case 2: + var value = new proto.clarifai.api.ConceptTypeCount; + reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); + msg.setToProcess(value); + break; + case 3: + var value = new proto.clarifai.api.ConceptTypeCount; + reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); + msg.setErrors(value); + break; + case 4: + var value = new proto.clarifai.api.ConceptTypeCount; + reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); + msg.setProcessing(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DetailConceptCount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DetailConceptCount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DetailConceptCount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DetailConceptCount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProcessed(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + ); + } + f = message.getToProcess(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + ); + } + f = message.getErrors(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + ); + } + f = message.getProcessing(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ConceptTypeCount processed = 1; + * @return {?proto.clarifai.api.ConceptTypeCount} + */ +proto.clarifai.api.DetailConceptCount.prototype.getProcessed = function() { + return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 1)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value + * @return {!proto.clarifai.api.DetailConceptCount} returns this +*/ +proto.clarifai.api.DetailConceptCount.prototype.setProcessed = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DetailConceptCount} returns this + */ +proto.clarifai.api.DetailConceptCount.prototype.clearProcessed = function() { + return this.setProcessed(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DetailConceptCount.prototype.hasProcessed = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ConceptTypeCount to_process = 2; + * @return {?proto.clarifai.api.ConceptTypeCount} + */ +proto.clarifai.api.DetailConceptCount.prototype.getToProcess = function() { + return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 2)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value + * @return {!proto.clarifai.api.DetailConceptCount} returns this +*/ +proto.clarifai.api.DetailConceptCount.prototype.setToProcess = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DetailConceptCount} returns this + */ +proto.clarifai.api.DetailConceptCount.prototype.clearToProcess = function() { + return this.setToProcess(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DetailConceptCount.prototype.hasToProcess = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ConceptTypeCount errors = 3; + * @return {?proto.clarifai.api.ConceptTypeCount} + */ +proto.clarifai.api.DetailConceptCount.prototype.getErrors = function() { + return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 3)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value + * @return {!proto.clarifai.api.DetailConceptCount} returns this +*/ +proto.clarifai.api.DetailConceptCount.prototype.setErrors = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DetailConceptCount} returns this + */ +proto.clarifai.api.DetailConceptCount.prototype.clearErrors = function() { + return this.setErrors(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DetailConceptCount.prototype.hasErrors = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ConceptTypeCount processing = 4; + * @return {?proto.clarifai.api.ConceptTypeCount} + */ +proto.clarifai.api.DetailConceptCount.prototype.getProcessing = function() { + return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 4)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value + * @return {!proto.clarifai.api.DetailConceptCount} returns this +*/ +proto.clarifai.api.DetailConceptCount.prototype.setProcessing = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DetailConceptCount} returns this + */ +proto.clarifai.api.DetailConceptCount.prototype.clearProcessing = function() { + return this.setProcessing(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ConceptQuery.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptQuery.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptQuery} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptQuery.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + language: jspb.Message.getFieldWithDefault(msg, 2, ""), + workflowId: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ConceptQuery} + */ +proto.clarifai.api.ConceptQuery.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptQuery; + return proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptQuery} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptQuery} + */ +proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptQuery.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptQuery.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ConceptQuery} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getWorkflowId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.clarifai.api.ConceptQuery.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptQuery} returns this + */ +proto.clarifai.api.ConceptQuery.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string language = 2; + * @return {string} + */ +proto.clarifai.api.ConceptQuery.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptQuery} returns this + */ +proto.clarifai.api.ConceptQuery.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string workflow_id = 3; + * @return {string} + */ +proto.clarifai.api.ConceptQuery.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptQuery} returns this + */ +proto.clarifai.api.ConceptQuery.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ConceptRelation.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptRelation.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptRelation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptRelation.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + subjectConcept: (f = msg.getSubjectConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f), + objectConcept: (f = msg.getObjectConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f), + predicate: jspb.Message.getFieldWithDefault(msg, 4, ""), + knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 5, ""), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ConceptRelation} + */ +proto.clarifai.api.ConceptRelation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptRelation; + return proto.clarifai.api.ConceptRelation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptRelation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptRelation} + */ +proto.clarifai.api.ConceptRelation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.setSubjectConcept(value); + break; + case 3: + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.setObjectConcept(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setPredicate(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setKnowledgeGraphId(value); + break; + case 6: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptRelation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptRelation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ConceptRelation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptRelation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSubjectConcept(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Concept.serializeBinaryToWriter + ); + } + f = message.getObjectConcept(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Concept.serializeBinaryToWriter + ); + } + f = message.getPredicate(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getKnowledgeGraphId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.ConceptRelation.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptRelation} returns this + */ +proto.clarifai.api.ConceptRelation.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Concept subject_concept = 2; + * @return {?proto.clarifai.api.Concept} + */ +proto.clarifai.api.ConceptRelation.prototype.getSubjectConcept = function() { + return /** @type{?proto.clarifai.api.Concept} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Concept|undefined} value + * @return {!proto.clarifai.api.ConceptRelation} returns this +*/ +proto.clarifai.api.ConceptRelation.prototype.setSubjectConcept = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ConceptRelation} returns this + */ +proto.clarifai.api.ConceptRelation.prototype.clearSubjectConcept = function() { + return this.setSubjectConcept(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ConceptRelation.prototype.hasSubjectConcept = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Concept object_concept = 3; + * @return {?proto.clarifai.api.Concept} + */ +proto.clarifai.api.ConceptRelation.prototype.getObjectConcept = function() { + return /** @type{?proto.clarifai.api.Concept} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Concept|undefined} value + * @return {!proto.clarifai.api.ConceptRelation} returns this +*/ +proto.clarifai.api.ConceptRelation.prototype.setObjectConcept = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ConceptRelation} returns this + */ +proto.clarifai.api.ConceptRelation.prototype.clearObjectConcept = function() { + return this.setObjectConcept(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ConceptRelation.prototype.hasObjectConcept = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string predicate = 4; + * @return {string} + */ +proto.clarifai.api.ConceptRelation.prototype.getPredicate = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptRelation} returns this + */ +proto.clarifai.api.ConceptRelation.prototype.setPredicate = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string knowledge_graph_id = 5; + * @return {string} + */ +proto.clarifai.api.ConceptRelation.prototype.getKnowledgeGraphId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptRelation} returns this + */ +proto.clarifai.api.ConceptRelation.prototype.setKnowledgeGraphId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional Visibility visibility = 6; + * @return {?proto.clarifai.api.Visibility} + */ +proto.clarifai.api.ConceptRelation.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 6)); +}; + + +/** + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.ConceptRelation} returns this +*/ +proto.clarifai.api.ConceptRelation.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ConceptRelation} returns this + */ +proto.clarifai.api.ConceptRelation.prototype.clearVisibility = function() { + return this.setVisibility(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ConceptRelation.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.KnowledgeGraph.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.KnowledgeGraph.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.KnowledgeGraph} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.KnowledgeGraph.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + examplesAppId: jspb.Message.getFieldWithDefault(msg, 4, ""), + sampledExamplesAppId: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.KnowledgeGraph} + */ +proto.clarifai.api.KnowledgeGraph.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.KnowledgeGraph; + return proto.clarifai.api.KnowledgeGraph.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.KnowledgeGraph} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.KnowledgeGraph} + */ +proto.clarifai.api.KnowledgeGraph.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setExamplesAppId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setSampledExamplesAppId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.KnowledgeGraph.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.KnowledgeGraph.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.KnowledgeGraph} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.KnowledgeGraph.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getExamplesAppId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getSampledExamplesAppId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.KnowledgeGraph.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.KnowledgeGraph} returns this + */ +proto.clarifai.api.KnowledgeGraph.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.clarifai.api.KnowledgeGraph.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.KnowledgeGraph} returns this + */ +proto.clarifai.api.KnowledgeGraph.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.clarifai.api.KnowledgeGraph.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.KnowledgeGraph} returns this + */ +proto.clarifai.api.KnowledgeGraph.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string examples_app_id = 4; + * @return {string} + */ +proto.clarifai.api.KnowledgeGraph.prototype.getExamplesAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.KnowledgeGraph} returns this + */ +proto.clarifai.api.KnowledgeGraph.prototype.setExamplesAppId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string sampled_examples_app_id = 5; + * @return {string} + */ +proto.clarifai.api.KnowledgeGraph.prototype.getSampledExamplesAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.KnowledgeGraph} returns this + */ +proto.clarifai.api.KnowledgeGraph.prototype.setSampledExamplesAppId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ConceptMappingJob.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ConceptMappingJob.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptMappingJob.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptMappingJob} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptMappingJob.toObject = function(includeInstance, msg) { + var f, obj = { + knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 1, ""), + conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ConceptMappingJob} + */ +proto.clarifai.api.ConceptMappingJob.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptMappingJob; + return proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptMappingJob} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptMappingJob} + */ +proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setKnowledgeGraphId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addConceptIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptMappingJob.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ConceptMappingJob} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKnowledgeGraphId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getConceptIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional string knowledge_graph_id = 1; + * @return {string} + */ +proto.clarifai.api.ConceptMappingJob.prototype.getKnowledgeGraphId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptMappingJob} returns this + */ +proto.clarifai.api.ConceptMappingJob.prototype.setKnowledgeGraphId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated string concept_ids = 2; + * @return {!Array} + */ +proto.clarifai.api.ConceptMappingJob.prototype.getConceptIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ConceptMappingJob} returns this + */ +proto.clarifai.api.ConceptMappingJob.prototype.setConceptIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptMappingJob} returns this + */ +proto.clarifai.api.ConceptMappingJob.prototype.addConceptIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ConceptMappingJob} returns this + */ +proto.clarifai.api.ConceptMappingJob.prototype.clearConceptIdsList = function() { + return this.setConceptIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ConceptLanguage.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptLanguage.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptLanguage} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptLanguage.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + definition: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ConceptLanguage} + */ +proto.clarifai.api.ConceptLanguage.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptLanguage; + return proto.clarifai.api.ConceptLanguage.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptLanguage} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptLanguage} + */ +proto.clarifai.api.ConceptLanguage.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDefinition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptLanguage.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptLanguage.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ConceptLanguage} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptLanguage.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDefinition(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.ConceptLanguage.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptLanguage} returns this + */ +proto.clarifai.api.ConceptLanguage.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string name = 2; + * @return {string} + */ +proto.clarifai.api.ConceptLanguage.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptLanguage} returns this + */ +proto.clarifai.api.ConceptLanguage.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string definition = 3; + * @return {string} + */ +proto.clarifai.api.ConceptLanguage.prototype.getDefinition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ConceptLanguage} returns this + */ +proto.clarifai.api.ConceptLanguage.prototype.setDefinition = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Data.repeatedFields_ = [3,7,8,9,11,12,15,16,17,18]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Data.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Data.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Data} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Data.toObject = function(includeInstance, msg) { + var f, obj = { + image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f), + video: (f = msg.getVideo()) && proto.clarifai.api.Video.toObject(includeInstance, f), + conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), + proto.clarifai.api.Concept.toObject, includeInstance), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + geo: (f = msg.getGeo()) && proto.clarifai.api.Geo.toObject(includeInstance, f), + colorsList: jspb.Message.toObjectList(msg.getColorsList(), + proto.clarifai.api.Color.toObject, includeInstance), + clustersList: jspb.Message.toObjectList(msg.getClustersList(), + proto.clarifai.api.Cluster.toObject, includeInstance), + embeddingsList: jspb.Message.toObjectList(msg.getEmbeddingsList(), + proto.clarifai.api.Embedding.toObject, includeInstance), + regionsList: jspb.Message.toObjectList(msg.getRegionsList(), + proto.clarifai.api.Region.toObject, includeInstance), + framesList: jspb.Message.toObjectList(msg.getFramesList(), + proto.clarifai.api.Frame.toObject, includeInstance), + text: (f = msg.getText()) && proto.clarifai.api.Text.toObject(includeInstance, f), + audio: (f = msg.getAudio()) && proto.clarifai.api.Audio.toObject(includeInstance, f), + tracksList: jspb.Message.toObjectList(msg.getTracksList(), + proto.clarifai.api.Track.toObject, includeInstance), + timeSegmentsList: jspb.Message.toObjectList(msg.getTimeSegmentsList(), + proto.clarifai.api.TimeSegment.toObject, includeInstance), + hitsList: jspb.Message.toObjectList(msg.getHitsList(), + proto.clarifai.api.Hit.toObject, includeInstance), + heatmapsList: jspb.Message.toObjectList(msg.getHeatmapsList(), + proto.clarifai.api.Image.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Data} + */ +proto.clarifai.api.Data.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Data; + return proto.clarifai.api.Data.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Data} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Data} + */ +proto.clarifai.api.Data.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Image; + reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader); + msg.setImage(value); + break; + case 2: + var value = new proto.clarifai.api.Video; + reader.readMessage(value,proto.clarifai.api.Video.deserializeBinaryFromReader); + msg.setVideo(value); + break; + case 3: + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.addConcepts(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 6: + var value = new proto.clarifai.api.Geo; + reader.readMessage(value,proto.clarifai.api.Geo.deserializeBinaryFromReader); + msg.setGeo(value); + break; + case 7: + var value = new proto.clarifai.api.Color; + reader.readMessage(value,proto.clarifai.api.Color.deserializeBinaryFromReader); + msg.addColors(value); + break; + case 8: + var value = new proto.clarifai.api.Cluster; + reader.readMessage(value,proto.clarifai.api.Cluster.deserializeBinaryFromReader); + msg.addClusters(value); + break; + case 9: + var value = new proto.clarifai.api.Embedding; + reader.readMessage(value,proto.clarifai.api.Embedding.deserializeBinaryFromReader); + msg.addEmbeddings(value); + break; + case 11: + var value = new proto.clarifai.api.Region; + reader.readMessage(value,proto.clarifai.api.Region.deserializeBinaryFromReader); + msg.addRegions(value); + break; + case 12: + var value = new proto.clarifai.api.Frame; + reader.readMessage(value,proto.clarifai.api.Frame.deserializeBinaryFromReader); + msg.addFrames(value); + break; + case 13: + var value = new proto.clarifai.api.Text; + reader.readMessage(value,proto.clarifai.api.Text.deserializeBinaryFromReader); + msg.setText(value); + break; + case 14: + var value = new proto.clarifai.api.Audio; + reader.readMessage(value,proto.clarifai.api.Audio.deserializeBinaryFromReader); + msg.setAudio(value); + break; + case 15: + var value = new proto.clarifai.api.Track; + reader.readMessage(value,proto.clarifai.api.Track.deserializeBinaryFromReader); + msg.addTracks(value); + break; + case 16: + var value = new proto.clarifai.api.TimeSegment; + reader.readMessage(value,proto.clarifai.api.TimeSegment.deserializeBinaryFromReader); + msg.addTimeSegments(value); + break; + case 17: + var value = new proto.clarifai.api.Hit; + reader.readMessage(value,proto.clarifai.api.Hit.deserializeBinaryFromReader); + msg.addHits(value); + break; + case 18: + var value = new proto.clarifai.api.Image; + reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader); + msg.addHeatmaps(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Data.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Data.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Data} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Data.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getImage(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.Image.serializeBinaryToWriter + ); + } + f = message.getVideo(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Video.serializeBinaryToWriter + ); + } + f = message.getConceptsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.clarifai.api.Concept.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getGeo(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.Geo.serializeBinaryToWriter + ); + } + f = message.getColorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + proto.clarifai.api.Color.serializeBinaryToWriter + ); + } + f = message.getClustersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.clarifai.api.Cluster.serializeBinaryToWriter + ); + } + f = message.getEmbeddingsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.clarifai.api.Embedding.serializeBinaryToWriter + ); + } + f = message.getRegionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 11, + f, + proto.clarifai.api.Region.serializeBinaryToWriter + ); + } + f = message.getFramesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + proto.clarifai.api.Frame.serializeBinaryToWriter + ); + } + f = message.getText(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.clarifai.api.Text.serializeBinaryToWriter + ); + } + f = message.getAudio(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.clarifai.api.Audio.serializeBinaryToWriter + ); + } + f = message.getTracksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 15, + f, + proto.clarifai.api.Track.serializeBinaryToWriter + ); + } + f = message.getTimeSegmentsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 16, + f, + proto.clarifai.api.TimeSegment.serializeBinaryToWriter + ); + } + f = message.getHitsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 17, + f, + proto.clarifai.api.Hit.serializeBinaryToWriter + ); + } + f = message.getHeatmapsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 18, + f, + proto.clarifai.api.Image.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Image image = 1; + * @return {?proto.clarifai.api.Image} + */ +proto.clarifai.api.Data.prototype.getImage = function() { + return /** @type{?proto.clarifai.api.Image} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 1)); +}; + + +/** + * @param {?proto.clarifai.api.Image|undefined} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setImage = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearImage = function() { + return this.setImage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Data.prototype.hasImage = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Video video = 2; + * @return {?proto.clarifai.api.Video} + */ +proto.clarifai.api.Data.prototype.getVideo = function() { + return /** @type{?proto.clarifai.api.Video} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Video, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Video|undefined} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setVideo = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearVideo = function() { + return this.setVideo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Data.prototype.hasVideo = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Concept concepts = 3; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.Concept=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Concept} + */ +proto.clarifai.api.Data.prototype.addConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Concept, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearConceptsList = function() { + return this.setConceptsList([]); +}; + + +/** + * optional google.protobuf.Struct metadata = 5; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.Data.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Data.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional Geo geo = 6; + * @return {?proto.clarifai.api.Geo} + */ +proto.clarifai.api.Data.prototype.getGeo = function() { + return /** @type{?proto.clarifai.api.Geo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Geo, 6)); +}; + + +/** + * @param {?proto.clarifai.api.Geo|undefined} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setGeo = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearGeo = function() { + return this.setGeo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Data.prototype.hasGeo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * repeated Color colors = 7; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getColorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Color, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setColorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.clarifai.api.Color=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Color} + */ +proto.clarifai.api.Data.prototype.addColors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.Color, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearColorsList = function() { + return this.setColorsList([]); +}; + + +/** + * repeated Cluster clusters = 8; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getClustersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Cluster, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setClustersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.clarifai.api.Cluster=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Cluster} + */ +proto.clarifai.api.Data.prototype.addClusters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.Cluster, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearClustersList = function() { + return this.setClustersList([]); +}; + + +/** + * repeated Embedding embeddings = 9; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getEmbeddingsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Embedding, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setEmbeddingsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); +}; + + +/** + * @param {!proto.clarifai.api.Embedding=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Embedding} + */ +proto.clarifai.api.Data.prototype.addEmbeddings = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.Embedding, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearEmbeddingsList = function() { + return this.setEmbeddingsList([]); +}; + + +/** + * repeated Region regions = 11; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getRegionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Region, 11)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setRegionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 11, value); +}; + + +/** + * @param {!proto.clarifai.api.Region=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Region} + */ +proto.clarifai.api.Data.prototype.addRegions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.clarifai.api.Region, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearRegionsList = function() { + return this.setRegionsList([]); +}; + + +/** + * repeated Frame frames = 12; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getFramesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Frame, 12)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setFramesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); +}; + + +/** + * @param {!proto.clarifai.api.Frame=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Frame} + */ +proto.clarifai.api.Data.prototype.addFrames = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.Frame, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearFramesList = function() { + return this.setFramesList([]); +}; + + +/** + * optional Text text = 13; + * @return {?proto.clarifai.api.Text} + */ +proto.clarifai.api.Data.prototype.getText = function() { + return /** @type{?proto.clarifai.api.Text} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Text, 13)); +}; + + +/** + * @param {?proto.clarifai.api.Text|undefined} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setText = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearText = function() { + return this.setText(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Data.prototype.hasText = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional Audio audio = 14; + * @return {?proto.clarifai.api.Audio} + */ +proto.clarifai.api.Data.prototype.getAudio = function() { + return /** @type{?proto.clarifai.api.Audio} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Audio, 14)); +}; + + +/** + * @param {?proto.clarifai.api.Audio|undefined} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setAudio = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearAudio = function() { + return this.setAudio(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Data.prototype.hasAudio = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * repeated Track tracks = 15; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getTracksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Track, 15)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setTracksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 15, value); +}; + + +/** + * @param {!proto.clarifai.api.Track=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Track} + */ +proto.clarifai.api.Data.prototype.addTracks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.clarifai.api.Track, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearTracksList = function() { + return this.setTracksList([]); +}; + + +/** + * repeated TimeSegment time_segments = 16; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getTimeSegmentsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.TimeSegment, 16)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setTimeSegmentsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 16, value); +}; + + +/** + * @param {!proto.clarifai.api.TimeSegment=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.TimeSegment} + */ +proto.clarifai.api.Data.prototype.addTimeSegments = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.clarifai.api.TimeSegment, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearTimeSegmentsList = function() { + return this.setTimeSegmentsList([]); +}; + + +/** + * repeated Hit hits = 17; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getHitsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 17)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setHitsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 17, value); +}; + + +/** + * @param {!proto.clarifai.api.Hit=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Hit} + */ +proto.clarifai.api.Data.prototype.addHits = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.clarifai.api.Hit, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearHitsList = function() { + return this.setHitsList([]); +}; + + +/** + * repeated Image heatmaps = 18; + * @return {!Array} + */ +proto.clarifai.api.Data.prototype.getHeatmapsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Image, 18)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Data} returns this +*/ +proto.clarifai.api.Data.prototype.setHeatmapsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 18, value); +}; + + +/** + * @param {!proto.clarifai.api.Image=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Image} + */ +proto.clarifai.api.Data.prototype.addHeatmaps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.clarifai.api.Image, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Data} returns this + */ +proto.clarifai.api.Data.prototype.clearHeatmapsList = function() { + return this.setHeatmapsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Region.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Region.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Region} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Region.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + regionInfo: (f = msg.getRegionInfo()) && proto.clarifai.api.RegionInfo.toObject(includeInstance, f), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + trackId: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Region} + */ +proto.clarifai.api.Region.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Region; + return proto.clarifai.api.Region.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Region} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Region} + */ +proto.clarifai.api.Region.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.clarifai.api.RegionInfo; + reader.readMessage(value,proto.clarifai.api.RegionInfo.deserializeBinaryFromReader); + msg.setRegionInfo(value); + break; + case 3: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = /** @type {number} */ (reader.readFloat()); + msg.setValue(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setTrackId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Region.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Region.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Region} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Region.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getRegionInfo(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.RegionInfo.serializeBinaryToWriter + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Data.serializeBinaryToWriter + ); + } + f = message.getValue(); + if (f !== 0.0) { + writer.writeFloat( + 4, + f + ); + } + f = message.getTrackId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Region.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Region} returns this + */ +proto.clarifai.api.Region.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional RegionInfo region_info = 2; + * @return {?proto.clarifai.api.RegionInfo} + */ +proto.clarifai.api.Region.prototype.getRegionInfo = function() { + return /** @type{?proto.clarifai.api.RegionInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.RegionInfo, 2)); +}; + + +/** + * @param {?proto.clarifai.api.RegionInfo|undefined} value + * @return {!proto.clarifai.api.Region} returns this +*/ +proto.clarifai.api.Region.prototype.setRegionInfo = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Region} returns this + */ +proto.clarifai.api.Region.prototype.clearRegionInfo = function() { + return this.setRegionInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Region.prototype.hasRegionInfo = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Data data = 3; + * @return {?proto.clarifai.api.Data} + */ +proto.clarifai.api.Region.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.Region} returns this +*/ +proto.clarifai.api.Region.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Region} returns this + */ +proto.clarifai.api.Region.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Region.prototype.hasData = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional float value = 4; + * @return {number} + */ +proto.clarifai.api.Region.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Region} returns this + */ +proto.clarifai.api.Region.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + +/** + * optional string track_id = 5; + * @return {string} + */ +proto.clarifai.api.Region.prototype.getTrackId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Region} returns this + */ +proto.clarifai.api.Region.prototype.setTrackId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.RegionInfo.repeatedFields_ = [9]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.RegionInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.RegionInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.RegionInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.RegionInfo.toObject = function(includeInstance, msg) { + var f, obj = { + boundingBox: (f = msg.getBoundingBox()) && proto.clarifai.api.BoundingBox.toObject(includeInstance, f), + mask: (f = msg.getMask()) && proto.clarifai.api.Mask.toObject(includeInstance, f), + polygon: (f = msg.getPolygon()) && proto.clarifai.api.Polygon.toObject(includeInstance, f), + point: (f = msg.getPoint()) && proto.clarifai.api.Point.toObject(includeInstance, f), + span: (f = msg.getSpan()) && proto.clarifai.api.Span.toObject(includeInstance, f), + token: (f = msg.getToken()) && proto.clarifai.api.Token.toObject(includeInstance, f), + keypointLocationsList: jspb.Message.toObjectList(msg.getKeypointLocationsList(), + proto.clarifai.api.Point.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.RegionInfo} + */ +proto.clarifai.api.RegionInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.RegionInfo; + return proto.clarifai.api.RegionInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.RegionInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.RegionInfo} + */ +proto.clarifai.api.RegionInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.BoundingBox; + reader.readMessage(value,proto.clarifai.api.BoundingBox.deserializeBinaryFromReader); + msg.setBoundingBox(value); + break; + case 4: + var value = new proto.clarifai.api.Mask; + reader.readMessage(value,proto.clarifai.api.Mask.deserializeBinaryFromReader); + msg.setMask(value); + break; + case 5: + var value = new proto.clarifai.api.Polygon; + reader.readMessage(value,proto.clarifai.api.Polygon.deserializeBinaryFromReader); + msg.setPolygon(value); + break; + case 6: + var value = new proto.clarifai.api.Point; + reader.readMessage(value,proto.clarifai.api.Point.deserializeBinaryFromReader); + msg.setPoint(value); + break; + case 7: + var value = new proto.clarifai.api.Span; + reader.readMessage(value,proto.clarifai.api.Span.deserializeBinaryFromReader); + msg.setSpan(value); + break; + case 8: + var value = new proto.clarifai.api.Token; + reader.readMessage(value,proto.clarifai.api.Token.deserializeBinaryFromReader); + msg.setToken(value); + break; + case 9: + var value = new proto.clarifai.api.Point; + reader.readMessage(value,proto.clarifai.api.Point.deserializeBinaryFromReader); + msg.addKeypointLocations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.RegionInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.RegionInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.RegionInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.RegionInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBoundingBox(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.BoundingBox.serializeBinaryToWriter + ); + } + f = message.getMask(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.Mask.serializeBinaryToWriter + ); + } + f = message.getPolygon(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.Polygon.serializeBinaryToWriter + ); + } + f = message.getPoint(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.Point.serializeBinaryToWriter + ); + } + f = message.getSpan(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.clarifai.api.Span.serializeBinaryToWriter + ); + } + f = message.getToken(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.clarifai.api.Token.serializeBinaryToWriter + ); + } + f = message.getKeypointLocationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.clarifai.api.Point.serializeBinaryToWriter + ); + } +}; + + +/** + * optional BoundingBox bounding_box = 1; + * @return {?proto.clarifai.api.BoundingBox} + */ +proto.clarifai.api.RegionInfo.prototype.getBoundingBox = function() { + return /** @type{?proto.clarifai.api.BoundingBox} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.BoundingBox, 1)); +}; + + +/** + * @param {?proto.clarifai.api.BoundingBox|undefined} value + * @return {!proto.clarifai.api.RegionInfo} returns this +*/ +proto.clarifai.api.RegionInfo.prototype.setBoundingBox = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.RegionInfo} returns this + */ +proto.clarifai.api.RegionInfo.prototype.clearBoundingBox = function() { + return this.setBoundingBox(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.RegionInfo.prototype.hasBoundingBox = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Mask mask = 4; + * @return {?proto.clarifai.api.Mask} + */ +proto.clarifai.api.RegionInfo.prototype.getMask = function() { + return /** @type{?proto.clarifai.api.Mask} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Mask, 4)); +}; + + +/** + * @param {?proto.clarifai.api.Mask|undefined} value + * @return {!proto.clarifai.api.RegionInfo} returns this +*/ +proto.clarifai.api.RegionInfo.prototype.setMask = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.RegionInfo} returns this + */ +proto.clarifai.api.RegionInfo.prototype.clearMask = function() { + return this.setMask(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.RegionInfo.prototype.hasMask = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Polygon polygon = 5; + * @return {?proto.clarifai.api.Polygon} + */ +proto.clarifai.api.RegionInfo.prototype.getPolygon = function() { + return /** @type{?proto.clarifai.api.Polygon} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Polygon, 5)); +}; + + +/** + * @param {?proto.clarifai.api.Polygon|undefined} value + * @return {!proto.clarifai.api.RegionInfo} returns this +*/ +proto.clarifai.api.RegionInfo.prototype.setPolygon = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.RegionInfo} returns this + */ +proto.clarifai.api.RegionInfo.prototype.clearPolygon = function() { + return this.setPolygon(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.RegionInfo.prototype.hasPolygon = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional Point point = 6; + * @return {?proto.clarifai.api.Point} + */ +proto.clarifai.api.RegionInfo.prototype.getPoint = function() { + return /** @type{?proto.clarifai.api.Point} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Point, 6)); +}; + + +/** + * @param {?proto.clarifai.api.Point|undefined} value + * @return {!proto.clarifai.api.RegionInfo} returns this +*/ +proto.clarifai.api.RegionInfo.prototype.setPoint = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.RegionInfo} returns this + */ +proto.clarifai.api.RegionInfo.prototype.clearPoint = function() { + return this.setPoint(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.RegionInfo.prototype.hasPoint = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional Span span = 7; + * @return {?proto.clarifai.api.Span} + */ +proto.clarifai.api.RegionInfo.prototype.getSpan = function() { + return /** @type{?proto.clarifai.api.Span} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Span, 7)); +}; + + +/** + * @param {?proto.clarifai.api.Span|undefined} value + * @return {!proto.clarifai.api.RegionInfo} returns this +*/ +proto.clarifai.api.RegionInfo.prototype.setSpan = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.RegionInfo} returns this + */ +proto.clarifai.api.RegionInfo.prototype.clearSpan = function() { + return this.setSpan(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.RegionInfo.prototype.hasSpan = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional Token token = 8; + * @return {?proto.clarifai.api.Token} + */ +proto.clarifai.api.RegionInfo.prototype.getToken = function() { + return /** @type{?proto.clarifai.api.Token} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Token, 8)); +}; + + +/** + * @param {?proto.clarifai.api.Token|undefined} value + * @return {!proto.clarifai.api.RegionInfo} returns this +*/ +proto.clarifai.api.RegionInfo.prototype.setToken = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.RegionInfo} returns this + */ +proto.clarifai.api.RegionInfo.prototype.clearToken = function() { + return this.setToken(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.RegionInfo.prototype.hasToken = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * repeated Point keypoint_locations = 9; + * @return {!Array} + */ +proto.clarifai.api.RegionInfo.prototype.getKeypointLocationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Point, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.RegionInfo} returns this +*/ +proto.clarifai.api.RegionInfo.prototype.setKeypointLocationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); +}; + + +/** + * @param {!proto.clarifai.api.Point=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Point} + */ +proto.clarifai.api.RegionInfo.prototype.addKeypointLocations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.Point, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.RegionInfo} returns this + */ +proto.clarifai.api.RegionInfo.prototype.clearKeypointLocationsList = function() { + return this.setKeypointLocationsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.BoundingBox.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.BoundingBox.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.BoundingBox} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.BoundingBox.toObject = function(includeInstance, msg) { + var f, obj = { + topRow: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + leftCol: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + bottomRow: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + rightCol: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.BoundingBox} + */ +proto.clarifai.api.BoundingBox.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.BoundingBox; + return proto.clarifai.api.BoundingBox.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.BoundingBox} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.BoundingBox} + */ +proto.clarifai.api.BoundingBox.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readFloat()); + msg.setTopRow(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setLeftCol(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setBottomRow(value); + break; + case 4: + var value = /** @type {number} */ (reader.readFloat()); + msg.setRightCol(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.BoundingBox.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.BoundingBox.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.BoundingBox} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.BoundingBox.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTopRow(); + if (f !== 0.0) { + writer.writeFloat( + 1, + f + ); + } + f = message.getLeftCol(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } + f = message.getBottomRow(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getRightCol(); + if (f !== 0.0) { + writer.writeFloat( + 4, + f + ); + } +}; + + +/** + * optional float top_row = 1; + * @return {number} + */ +proto.clarifai.api.BoundingBox.prototype.getTopRow = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.BoundingBox} returns this + */ +proto.clarifai.api.BoundingBox.prototype.setTopRow = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional float left_col = 2; + * @return {number} + */ +proto.clarifai.api.BoundingBox.prototype.getLeftCol = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.BoundingBox} returns this + */ +proto.clarifai.api.BoundingBox.prototype.setLeftCol = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * optional float bottom_row = 3; + * @return {number} + */ +proto.clarifai.api.BoundingBox.prototype.getBottomRow = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.BoundingBox} returns this + */ +proto.clarifai.api.BoundingBox.prototype.setBottomRow = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional float right_col = 4; + * @return {number} + */ +proto.clarifai.api.BoundingBox.prototype.getRightCol = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.BoundingBox} returns this + */ +proto.clarifai.api.BoundingBox.prototype.setRightCol = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.FrameInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.FrameInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.FrameInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.FrameInfo.toObject = function(includeInstance, msg) { + var f, obj = { + index: jspb.Message.getFieldWithDefault(msg, 1, 0), + time: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.FrameInfo} + */ +proto.clarifai.api.FrameInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.FrameInfo; + return proto.clarifai.api.FrameInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.FrameInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.FrameInfo} + */ +proto.clarifai.api.FrameInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setIndex(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.FrameInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.FrameInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.FrameInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.FrameInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIndex(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getTime(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } +}; + + +/** + * optional uint32 index = 1; + * @return {number} + */ +proto.clarifai.api.FrameInfo.prototype.getIndex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.FrameInfo} returns this + */ +proto.clarifai.api.FrameInfo.prototype.setIndex = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint32 time = 2; + * @return {number} + */ +proto.clarifai.api.FrameInfo.prototype.getTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.FrameInfo} returns this + */ +proto.clarifai.api.FrameInfo.prototype.setTime = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Frame.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Frame.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Frame} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Frame.toObject = function(includeInstance, msg) { + var f, obj = { + frameInfo: (f = msg.getFrameInfo()) && proto.clarifai.api.FrameInfo.toObject(includeInstance, f), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Frame} + */ +proto.clarifai.api.Frame.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Frame; + return proto.clarifai.api.Frame.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Frame} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Frame} + */ +proto.clarifai.api.Frame.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.FrameInfo; + reader.readMessage(value,proto.clarifai.api.FrameInfo.deserializeBinaryFromReader); + msg.setFrameInfo(value); + break; + case 2: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Frame.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Frame.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Frame} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Frame.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFrameInfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.FrameInfo.serializeBinaryToWriter + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Data.serializeBinaryToWriter + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional FrameInfo frame_info = 1; + * @return {?proto.clarifai.api.FrameInfo} + */ +proto.clarifai.api.Frame.prototype.getFrameInfo = function() { + return /** @type{?proto.clarifai.api.FrameInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.FrameInfo, 1)); +}; + + +/** + * @param {?proto.clarifai.api.FrameInfo|undefined} value + * @return {!proto.clarifai.api.Frame} returns this +*/ +proto.clarifai.api.Frame.prototype.setFrameInfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Frame} returns this + */ +proto.clarifai.api.Frame.prototype.clearFrameInfo = function() { + return this.setFrameInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Frame.prototype.hasFrameInfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Data data = 2; + * @return {?proto.clarifai.api.Data} + */ +proto.clarifai.api.Frame.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.Frame} returns this +*/ +proto.clarifai.api.Frame.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Frame} returns this + */ +proto.clarifai.api.Frame.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Frame.prototype.hasData = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string id = 3; + * @return {string} + */ +proto.clarifai.api.Frame.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Frame} returns this + */ +proto.clarifai.api.Frame.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Mask.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Mask.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Mask} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Mask.toObject = function(includeInstance, msg) { + var f, obj = { + image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Mask} + */ +proto.clarifai.api.Mask.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Mask; + return proto.clarifai.api.Mask.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Mask} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Mask} + */ +proto.clarifai.api.Mask.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = new proto.clarifai.api.Image; + reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader); + msg.setImage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Mask.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Mask.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Mask} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Mask.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getImage(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Image.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Image image = 2; + * @return {?proto.clarifai.api.Image} + */ +proto.clarifai.api.Mask.prototype.getImage = function() { + return /** @type{?proto.clarifai.api.Image} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Image|undefined} value + * @return {!proto.clarifai.api.Mask} returns this +*/ +proto.clarifai.api.Mask.prototype.setImage = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Mask} returns this + */ +proto.clarifai.api.Mask.prototype.clearImage = function() { + return this.setImage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Mask.prototype.hasImage = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Polygon.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Polygon.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Polygon.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Polygon} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Polygon.toObject = function(includeInstance, msg) { + var f, obj = { + pointsList: jspb.Message.toObjectList(msg.getPointsList(), + proto.clarifai.api.Point.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Polygon} + */ +proto.clarifai.api.Polygon.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Polygon; + return proto.clarifai.api.Polygon.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Polygon} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Polygon} + */ +proto.clarifai.api.Polygon.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Point; + reader.readMessage(value,proto.clarifai.api.Point.deserializeBinaryFromReader); + msg.addPoints(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Polygon.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Polygon.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Polygon} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Polygon.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPointsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.clarifai.api.Point.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Point points = 1; + * @return {!Array} + */ +proto.clarifai.api.Polygon.prototype.getPointsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Point, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Polygon} returns this +*/ +proto.clarifai.api.Polygon.prototype.setPointsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.clarifai.api.Point=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Point} + */ +proto.clarifai.api.Polygon.prototype.addPoints = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Point, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Polygon} returns this + */ +proto.clarifai.api.Polygon.prototype.clearPointsList = function() { + return this.setPointsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Point.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Point.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Point} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Point.toObject = function(includeInstance, msg) { + var f, obj = { + row: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + col: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + z: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + visibility: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Point} + */ +proto.clarifai.api.Point.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Point; + return proto.clarifai.api.Point.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Point} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Point} + */ +proto.clarifai.api.Point.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readFloat()); + msg.setRow(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setCol(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setZ(value); + break; + case 4: + var value = /** @type {!proto.clarifai.api.Point.Visibility} */ (reader.readEnum()); + msg.setVisibility(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Point.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Point.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Point} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Point.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRow(); + if (f !== 0.0) { + writer.writeFloat( + 1, + f + ); + } + f = message.getCol(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } + f = message.getZ(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getVisibility(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.clarifai.api.Point.Visibility = { + NOT_SET: 0, + VISIBLE: 1, + NOT_VISIBLE: 2, + NOT_PRESENT: 3 +}; + +/** + * optional float row = 1; + * @return {number} + */ +proto.clarifai.api.Point.prototype.getRow = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Point} returns this + */ +proto.clarifai.api.Point.prototype.setRow = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional float col = 2; + * @return {number} + */ +proto.clarifai.api.Point.prototype.getCol = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Point} returns this + */ +proto.clarifai.api.Point.prototype.setCol = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * optional float z = 3; + * @return {number} + */ +proto.clarifai.api.Point.prototype.getZ = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Point} returns this + */ +proto.clarifai.api.Point.prototype.setZ = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional Visibility visibility = 4; + * @return {!proto.clarifai.api.Point.Visibility} + */ +proto.clarifai.api.Point.prototype.getVisibility = function() { + return /** @type {!proto.clarifai.api.Point.Visibility} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.clarifai.api.Point.Visibility} value + * @return {!proto.clarifai.api.Point} returns this + */ +proto.clarifai.api.Point.prototype.setVisibility = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Span.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Span.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Span} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Span.toObject = function(includeInstance, msg) { + var f, obj = { + charStart: jspb.Message.getFieldWithDefault(msg, 1, 0), + charEnd: jspb.Message.getFieldWithDefault(msg, 2, 0), + rawText: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Span} + */ +proto.clarifai.api.Span.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Span; + return proto.clarifai.api.Span.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Span} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Span} + */ +proto.clarifai.api.Span.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCharStart(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCharEnd(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setRawText(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Span.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Span.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Span} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Span.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCharStart(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getCharEnd(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getRawText(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional uint32 char_start = 1; + * @return {number} + */ +proto.clarifai.api.Span.prototype.getCharStart = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Span} returns this + */ +proto.clarifai.api.Span.prototype.setCharStart = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint32 char_end = 2; + * @return {number} + */ +proto.clarifai.api.Span.prototype.getCharEnd = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Span} returns this + */ +proto.clarifai.api.Span.prototype.setCharEnd = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string raw_text = 3; + * @return {string} + */ +proto.clarifai.api.Span.prototype.getRawText = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Span} returns this + */ +proto.clarifai.api.Span.prototype.setRawText = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Token.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Token.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Token} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Token.toObject = function(includeInstance, msg) { + var f, obj = { + charStart: jspb.Message.getFieldWithDefault(msg, 1, 0), + charEnd: jspb.Message.getFieldWithDefault(msg, 2, 0), + rawText: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Token} + */ +proto.clarifai.api.Token.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Token; + return proto.clarifai.api.Token.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Token} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Token} + */ +proto.clarifai.api.Token.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCharStart(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCharEnd(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setRawText(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Token.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Token.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Token} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Token.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCharStart(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getCharEnd(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getRawText(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional uint32 char_start = 1; + * @return {number} + */ +proto.clarifai.api.Token.prototype.getCharStart = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Token} returns this + */ +proto.clarifai.api.Token.prototype.setCharStart = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint32 char_end = 2; + * @return {number} + */ +proto.clarifai.api.Token.prototype.getCharEnd = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Token} returns this + */ +proto.clarifai.api.Token.prototype.setCharEnd = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string raw_text = 3; + * @return {string} + */ +proto.clarifai.api.Token.prototype.getRawText = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Token} returns this + */ +proto.clarifai.api.Token.prototype.setRawText = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Embedding.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Embedding.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Embedding.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Embedding} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Embedding.toObject = function(includeInstance, msg) { + var f, obj = { + vectorList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f, + numDimensions: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Embedding} + */ +proto.clarifai.api.Embedding.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Embedding; + return proto.clarifai.api.Embedding.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Embedding} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Embedding} + */ +proto.clarifai.api.Embedding.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addVector(values[i]); + } + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setNumDimensions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Embedding.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Embedding.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Embedding} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Embedding.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVectorList(); + if (f.length > 0) { + writer.writePackedFloat( + 1, + f + ); + } + f = message.getNumDimensions(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } +}; + + +/** + * repeated float vector = 1; + * @return {!Array} + */ +proto.clarifai.api.Embedding.prototype.getVectorList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Embedding} returns this + */ +proto.clarifai.api.Embedding.prototype.setVectorList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Embedding} returns this + */ +proto.clarifai.api.Embedding.prototype.addVector = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Embedding} returns this + */ +proto.clarifai.api.Embedding.prototype.clearVectorList = function() { + return this.setVectorList([]); +}; + + +/** + * optional uint32 num_dimensions = 2; + * @return {number} + */ +proto.clarifai.api.Embedding.prototype.getNumDimensions = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Embedding} returns this + */ +proto.clarifai.api.Embedding.prototype.setNumDimensions = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GeoPoint.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GeoPoint.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GeoPoint} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GeoPoint.toObject = function(includeInstance, msg) { + var f, obj = { + longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GeoPoint} + */ +proto.clarifai.api.GeoPoint.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GeoPoint; + return proto.clarifai.api.GeoPoint.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GeoPoint} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GeoPoint} + */ +proto.clarifai.api.GeoPoint.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readFloat()); + msg.setLongitude(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setLatitude(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GeoPoint.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GeoPoint.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GeoPoint} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GeoPoint.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getLongitude(); + if (f !== 0.0) { + writer.writeFloat( + 1, + f + ); + } + f = message.getLatitude(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } +}; + + +/** + * optional float longitude = 1; + * @return {number} + */ +proto.clarifai.api.GeoPoint.prototype.getLongitude = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GeoPoint} returns this + */ +proto.clarifai.api.GeoPoint.prototype.setLongitude = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional float latitude = 2; + * @return {number} + */ +proto.clarifai.api.GeoPoint.prototype.getLatitude = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GeoPoint} returns this + */ +proto.clarifai.api.GeoPoint.prototype.setLatitude = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GeoLimit.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GeoLimit.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GeoLimit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GeoLimit.toObject = function(includeInstance, msg) { + var f, obj = { + type: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GeoLimit} + */ +proto.clarifai.api.GeoLimit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GeoLimit; + return proto.clarifai.api.GeoLimit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GeoLimit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GeoLimit} + */ +proto.clarifai.api.GeoLimit.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GeoLimit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GeoLimit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GeoLimit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GeoLimit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getValue(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } +}; + + +/** + * optional string type = 1; + * @return {string} + */ +proto.clarifai.api.GeoLimit.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GeoLimit} returns this + */ +proto.clarifai.api.GeoLimit.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional float value = 2; + * @return {number} + */ +proto.clarifai.api.GeoLimit.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GeoLimit} returns this + */ +proto.clarifai.api.GeoLimit.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GeoBoxedPoint.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GeoBoxedPoint.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GeoBoxedPoint} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GeoBoxedPoint.toObject = function(includeInstance, msg) { + var f, obj = { + geoPoint: (f = msg.getGeoPoint()) && proto.clarifai.api.GeoPoint.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GeoBoxedPoint} + */ +proto.clarifai.api.GeoBoxedPoint.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GeoBoxedPoint; + return proto.clarifai.api.GeoBoxedPoint.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GeoBoxedPoint} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GeoBoxedPoint} + */ +proto.clarifai.api.GeoBoxedPoint.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.GeoPoint; + reader.readMessage(value,proto.clarifai.api.GeoPoint.deserializeBinaryFromReader); + msg.setGeoPoint(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GeoBoxedPoint.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GeoBoxedPoint.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GeoBoxedPoint} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GeoBoxedPoint.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGeoPoint(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.GeoPoint.serializeBinaryToWriter + ); + } +}; + + +/** + * optional GeoPoint geo_point = 1; + * @return {?proto.clarifai.api.GeoPoint} + */ +proto.clarifai.api.GeoBoxedPoint.prototype.getGeoPoint = function() { + return /** @type{?proto.clarifai.api.GeoPoint} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.GeoPoint, 1)); +}; + + +/** + * @param {?proto.clarifai.api.GeoPoint|undefined} value + * @return {!proto.clarifai.api.GeoBoxedPoint} returns this +*/ +proto.clarifai.api.GeoBoxedPoint.prototype.setGeoPoint = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GeoBoxedPoint} returns this + */ +proto.clarifai.api.GeoBoxedPoint.prototype.clearGeoPoint = function() { + return this.setGeoPoint(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GeoBoxedPoint.prototype.hasGeoPoint = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Geo.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Geo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Geo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Geo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Geo.toObject = function(includeInstance, msg) { + var f, obj = { + geoPoint: (f = msg.getGeoPoint()) && proto.clarifai.api.GeoPoint.toObject(includeInstance, f), + geoLimit: (f = msg.getGeoLimit()) && proto.clarifai.api.GeoLimit.toObject(includeInstance, f), + geoBoxList: jspb.Message.toObjectList(msg.getGeoBoxList(), + proto.clarifai.api.GeoBoxedPoint.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Geo} + */ +proto.clarifai.api.Geo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Geo; + return proto.clarifai.api.Geo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Geo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Geo} + */ +proto.clarifai.api.Geo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.GeoPoint; + reader.readMessage(value,proto.clarifai.api.GeoPoint.deserializeBinaryFromReader); + msg.setGeoPoint(value); + break; + case 2: + var value = new proto.clarifai.api.GeoLimit; + reader.readMessage(value,proto.clarifai.api.GeoLimit.deserializeBinaryFromReader); + msg.setGeoLimit(value); + break; + case 3: + var value = new proto.clarifai.api.GeoBoxedPoint; + reader.readMessage(value,proto.clarifai.api.GeoBoxedPoint.deserializeBinaryFromReader); + msg.addGeoBox(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Geo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Geo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Geo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Geo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGeoPoint(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.GeoPoint.serializeBinaryToWriter + ); + } + f = message.getGeoLimit(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.GeoLimit.serializeBinaryToWriter + ); + } + f = message.getGeoBoxList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.clarifai.api.GeoBoxedPoint.serializeBinaryToWriter + ); + } +}; + + +/** + * optional GeoPoint geo_point = 1; + * @return {?proto.clarifai.api.GeoPoint} + */ +proto.clarifai.api.Geo.prototype.getGeoPoint = function() { + return /** @type{?proto.clarifai.api.GeoPoint} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.GeoPoint, 1)); +}; + + +/** + * @param {?proto.clarifai.api.GeoPoint|undefined} value + * @return {!proto.clarifai.api.Geo} returns this +*/ +proto.clarifai.api.Geo.prototype.setGeoPoint = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Geo} returns this + */ +proto.clarifai.api.Geo.prototype.clearGeoPoint = function() { + return this.setGeoPoint(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Geo.prototype.hasGeoPoint = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional GeoLimit geo_limit = 2; + * @return {?proto.clarifai.api.GeoLimit} + */ +proto.clarifai.api.Geo.prototype.getGeoLimit = function() { + return /** @type{?proto.clarifai.api.GeoLimit} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.GeoLimit, 2)); +}; + + +/** + * @param {?proto.clarifai.api.GeoLimit|undefined} value + * @return {!proto.clarifai.api.Geo} returns this +*/ +proto.clarifai.api.Geo.prototype.setGeoLimit = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Geo} returns this + */ +proto.clarifai.api.Geo.prototype.clearGeoLimit = function() { + return this.setGeoLimit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Geo.prototype.hasGeoLimit = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated GeoBoxedPoint geo_box = 3; + * @return {!Array} + */ +proto.clarifai.api.Geo.prototype.getGeoBoxList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.GeoBoxedPoint, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Geo} returns this +*/ +proto.clarifai.api.Geo.prototype.setGeoBoxList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.GeoBoxedPoint=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GeoBoxedPoint} + */ +proto.clarifai.api.Geo.prototype.addGeoBox = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.GeoBoxedPoint, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Geo} returns this + */ +proto.clarifai.api.Geo.prototype.clearGeoBoxList = function() { + return this.setGeoBoxList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Image.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Image.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Image} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Image.toObject = function(includeInstance, msg) { + var f, obj = { + url: jspb.Message.getFieldWithDefault(msg, 1, ""), + base64: msg.getBase64_asB64(), + allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), + imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Image} + */ +proto.clarifai.api.Image.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Image; + return proto.clarifai.api.Image.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Image} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Image} + */ +proto.clarifai.api.Image.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setBase64(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowDuplicateUrl(value); + break; + case 5: + var value = new proto.clarifai.api.HostedURL; + reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); + msg.setHosted(value); + break; + case 6: + var value = new proto.clarifai.api.ImageInfo; + reader.readMessage(value,proto.clarifai.api.ImageInfo.deserializeBinaryFromReader); + msg.setImageInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Image.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Image.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Image} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Image.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getBase64_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getAllowDuplicateUrl(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getHosted(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.HostedURL.serializeBinaryToWriter + ); + } + f = message.getImageInfo(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.ImageInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string url = 1; + * @return {string} + */ +proto.clarifai.api.Image.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Image} returns this + */ +proto.clarifai.api.Image.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes base64 = 2; + * @return {!(string|Uint8Array)} + */ +proto.clarifai.api.Image.prototype.getBase64 = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes base64 = 2; + * This is a type-conversion wrapper around `getBase64()` + * @return {string} + */ +proto.clarifai.api.Image.prototype.getBase64_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBase64())); +}; + + +/** + * optional bytes base64 = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBase64()` + * @return {!Uint8Array} + */ +proto.clarifai.api.Image.prototype.getBase64_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBase64())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.clarifai.api.Image} returns this + */ +proto.clarifai.api.Image.prototype.setBase64 = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional bool allow_duplicate_url = 4; + * @return {boolean} + */ +proto.clarifai.api.Image.prototype.getAllowDuplicateUrl = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.Image} returns this + */ +proto.clarifai.api.Image.prototype.setAllowDuplicateUrl = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional HostedURL hosted = 5; + * @return {?proto.clarifai.api.HostedURL} + */ +proto.clarifai.api.Image.prototype.getHosted = function() { + return /** @type{?proto.clarifai.api.HostedURL} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 5)); +}; + + +/** + * @param {?proto.clarifai.api.HostedURL|undefined} value + * @return {!proto.clarifai.api.Image} returns this +*/ +proto.clarifai.api.Image.prototype.setHosted = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Image} returns this + */ +proto.clarifai.api.Image.prototype.clearHosted = function() { + return this.setHosted(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Image.prototype.hasHosted = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ImageInfo image_info = 6; + * @return {?proto.clarifai.api.ImageInfo} + */ +proto.clarifai.api.Image.prototype.getImageInfo = function() { + return /** @type{?proto.clarifai.api.ImageInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ImageInfo, 6)); +}; + + +/** + * @param {?proto.clarifai.api.ImageInfo|undefined} value + * @return {!proto.clarifai.api.Image} returns this +*/ +proto.clarifai.api.Image.prototype.setImageInfo = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Image} returns this + */ +proto.clarifai.api.Image.prototype.clearImageInfo = function() { + return this.setImageInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Image.prototype.hasImageInfo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ImageInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ImageInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ImageInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ImageInfo.toObject = function(includeInstance, msg) { + var f, obj = { + width: jspb.Message.getFieldWithDefault(msg, 1, 0), + height: jspb.Message.getFieldWithDefault(msg, 2, 0), + format: jspb.Message.getFieldWithDefault(msg, 3, ""), + colorMode: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ImageInfo} + */ +proto.clarifai.api.ImageInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ImageInfo; + return proto.clarifai.api.ImageInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ImageInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ImageInfo} + */ +proto.clarifai.api.ImageInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setWidth(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setHeight(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setFormat(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setColorMode(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ImageInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ImageInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ImageInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ImageInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getWidth(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getFormat(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getColorMode(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional int32 width = 1; + * @return {number} + */ +proto.clarifai.api.ImageInfo.prototype.getWidth = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ImageInfo} returns this + */ +proto.clarifai.api.ImageInfo.prototype.setWidth = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional int32 height = 2; + * @return {number} + */ +proto.clarifai.api.ImageInfo.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ImageInfo} returns this + */ +proto.clarifai.api.ImageInfo.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string format = 3; + * @return {string} + */ +proto.clarifai.api.ImageInfo.prototype.getFormat = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ImageInfo} returns this + */ +proto.clarifai.api.ImageInfo.prototype.setFormat = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string color_mode = 4; + * @return {string} + */ +proto.clarifai.api.ImageInfo.prototype.getColorMode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ImageInfo} returns this + */ +proto.clarifai.api.ImageInfo.prototype.setColorMode = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.HostedURL.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.HostedURL.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.HostedURL.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.HostedURL} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.HostedURL.toObject = function(includeInstance, msg) { + var f, obj = { + prefix: jspb.Message.getFieldWithDefault(msg, 1, ""), + suffix: jspb.Message.getFieldWithDefault(msg, 2, ""), + sizesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + crossorigin: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.HostedURL} + */ +proto.clarifai.api.HostedURL.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.HostedURL; + return proto.clarifai.api.HostedURL.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.HostedURL} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.HostedURL} + */ +proto.clarifai.api.HostedURL.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setPrefix(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSuffix(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addSizes(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setCrossorigin(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.HostedURL.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.HostedURL.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.HostedURL} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.HostedURL.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPrefix(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSuffix(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getSizesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getCrossorigin(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string prefix = 1; + * @return {string} + */ +proto.clarifai.api.HostedURL.prototype.getPrefix = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.HostedURL} returns this + */ +proto.clarifai.api.HostedURL.prototype.setPrefix = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string suffix = 2; + * @return {string} + */ +proto.clarifai.api.HostedURL.prototype.getSuffix = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.HostedURL} returns this + */ +proto.clarifai.api.HostedURL.prototype.setSuffix = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string sizes = 3; + * @return {!Array} + */ +proto.clarifai.api.HostedURL.prototype.getSizesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.HostedURL} returns this + */ +proto.clarifai.api.HostedURL.prototype.setSizesList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.HostedURL} returns this + */ +proto.clarifai.api.HostedURL.prototype.addSizes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.HostedURL} returns this + */ +proto.clarifai.api.HostedURL.prototype.clearSizesList = function() { + return this.setSizesList([]); +}; + + +/** + * optional string crossorigin = 4; + * @return {string} + */ +proto.clarifai.api.HostedURL.prototype.getCrossorigin = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.HostedURL} returns this + */ +proto.clarifai.api.HostedURL.prototype.setCrossorigin = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Input.repeatedFields_ = [7]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Input.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Input.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Input} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Input.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.Input.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Input; + return proto.clarifai.api.Input.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Input} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.Input.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 6: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addDatasetIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Input.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Input.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Input} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Input.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Data.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Input.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional Data data = 2; + * @return {?proto.clarifai.api.Data} + */ +proto.clarifai.api.Input.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.Input} returns this +*/ +proto.clarifai.api.Input.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.clearData = function() { + return this.setData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Input.prototype.hasData = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.Timestamp created_at = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Input.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Input} returns this +*/ +proto.clarifai.api.Input.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Input.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional google.protobuf.Timestamp modified_at = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Input.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Input} returns this +*/ +proto.clarifai.api.Input.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Input.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional status.Status status = 6; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.Input.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 6)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.Input} returns this +*/ +proto.clarifai.api.Input.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Input.prototype.hasStatus = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * repeated string dataset_ids = 7; + * @return {!Array} + */ +proto.clarifai.api.Input.prototype.getDatasetIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.setDatasetIdsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.addDatasetIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Input} returns this + */ +proto.clarifai.api.Input.prototype.clearDatasetIdsList = function() { + return this.setDatasetIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.InputBatch.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.InputBatch.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputBatch.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.InputBatch} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.InputBatch.toObject = function(includeInstance, msg) { + var f, obj = { + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto.clarifai.api.Input.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.InputBatch} + */ +proto.clarifai.api.InputBatch.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.InputBatch; + return proto.clarifai.api.InputBatch.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.InputBatch} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.InputBatch} + */ +proto.clarifai.api.InputBatch.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.addInputs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.InputBatch.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.InputBatch.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.InputBatch} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.InputBatch.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.clarifai.api.Input.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Input inputs = 1; + * @return {!Array} + */ +proto.clarifai.api.InputBatch.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Input, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.InputBatch} returns this +*/ +proto.clarifai.api.InputBatch.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.InputBatch.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Input, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.InputBatch} returns this + */ +proto.clarifai.api.InputBatch.prototype.clearInputsList = function() { + return this.setInputsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.InputCount.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputCount.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.InputCount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.InputCount.toObject = function(includeInstance, msg) { + var f, obj = { + processed: jspb.Message.getFieldWithDefault(msg, 1, 0), + toProcess: jspb.Message.getFieldWithDefault(msg, 2, 0), + errors: jspb.Message.getFieldWithDefault(msg, 3, 0), + processing: jspb.Message.getFieldWithDefault(msg, 4, 0), + reindexed: jspb.Message.getFieldWithDefault(msg, 5, 0), + toReindex: jspb.Message.getFieldWithDefault(msg, 6, 0), + reindexErrors: jspb.Message.getFieldWithDefault(msg, 7, 0), + reindexing: jspb.Message.getFieldWithDefault(msg, 8, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.InputCount} + */ +proto.clarifai.api.InputCount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.InputCount; + return proto.clarifai.api.InputCount.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.InputCount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.InputCount} + */ +proto.clarifai.api.InputCount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setProcessed(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setToProcess(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setErrors(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setProcessing(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setReindexed(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint32()); + msg.setToReindex(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint32()); + msg.setReindexErrors(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint32()); + msg.setReindexing(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.InputCount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.InputCount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.InputCount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.InputCount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProcessed(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getToProcess(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getErrors(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getProcessing(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getReindexed(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } + f = message.getToReindex(); + if (f !== 0) { + writer.writeUint32( + 6, + f + ); + } + f = message.getReindexErrors(); + if (f !== 0) { + writer.writeUint32( + 7, + f + ); + } + f = message.getReindexing(); + if (f !== 0) { + writer.writeUint32( + 8, + f + ); + } +}; + + +/** + * optional uint32 processed = 1; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getProcessed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setProcessed = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint32 to_process = 2; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getToProcess = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setToProcess = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 errors = 3; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getErrors = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setErrors = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint32 processing = 4; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getProcessing = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setProcessing = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint32 reindexed = 5; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getReindexed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setReindexed = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint32 to_reindex = 6; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getToReindex = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setToReindex = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint32 reindex_errors = 7; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getReindexErrors = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setReindexErrors = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint32 reindexing = 8; + * @return {number} + */ +proto.clarifai.api.InputCount.prototype.getReindexing = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputCount} returns this + */ +proto.clarifai.api.InputCount.prototype.setReindexing = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Dataset.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Dataset.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Dataset} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Dataset.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 4, ""), + userId: jspb.Message.getFieldWithDefault(msg, 5, ""), + description: jspb.Message.getFieldWithDefault(msg, 7, ""), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + defaultAnnotationFilter: (f = msg.getDefaultAnnotationFilter()) && proto.clarifai.api.AnnotationFilter.toObject(includeInstance, f), + defaultProcessingInfo: (f = msg.getDefaultProcessingInfo()) && proto.clarifai.api.DatasetVersionProcessingInfo.toObject(includeInstance, f), + notes: jspb.Message.getFieldWithDefault(msg, 11, ""), + version: (f = msg.getVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f), + isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), + starCount: jspb.Message.getFieldWithDefault(msg, 15, 0), + bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Dataset} + */ +proto.clarifai.api.Dataset.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Dataset; + return proto.clarifai.api.Dataset.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Dataset} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Dataset} + */ +proto.clarifai.api.Dataset.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 8: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 9: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 12: + var value = new proto.clarifai.api.AnnotationFilter; + reader.readMessage(value,proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader); + msg.setDefaultAnnotationFilter(value); + break; + case 16: + var value = new proto.clarifai.api.DatasetVersionProcessingInfo; + reader.readMessage(value,proto.clarifai.api.DatasetVersionProcessingInfo.deserializeBinaryFromReader); + msg.setDefaultProcessingInfo(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setNotes(value); + break; + case 13: + var value = new proto.clarifai.api.DatasetVersion; + reader.readMessage(value,proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader); + msg.setVersion(value); + break; + case 14: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsStarred(value); + break; + case 15: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStarCount(value); + break; + case 17: + var value = new proto.clarifai.api.BookmarkOrigin; + reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader); + msg.setBookmarkOrigin(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Dataset.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Dataset.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Dataset} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Dataset.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getDefaultAnnotationFilter(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter + ); + } + f = message.getDefaultProcessingInfo(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.clarifai.api.DatasetVersionProcessingInfo.serializeBinaryToWriter + ); + } + f = message.getNotes(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getVersion(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.clarifai.api.DatasetVersion.serializeBinaryToWriter + ); + } + f = message.getIsStarred(); + if (f) { + writer.writeBool( + 14, + f + ); + } + f = message.getStarCount(); + if (f !== 0) { + writer.writeInt32( + 15, + f + ); + } + f = message.getBookmarkOrigin(); + if (f != null) { + writer.writeMessage( + 17, + f, + proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Dataset.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Dataset.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.Timestamp modified_at = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Dataset.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string app_id = 4; + * @return {string} + */ +proto.clarifai.api.Dataset.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string user_id = 5; + * @return {string} + */ +proto.clarifai.api.Dataset.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string description = 7; + * @return {string} + */ +proto.clarifai.api.Dataset.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional google.protobuf.Struct metadata = 8; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.Dataset.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional Visibility visibility = 9; + * @return {?proto.clarifai.api.Visibility} + */ +proto.clarifai.api.Dataset.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 9)); +}; + + +/** + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearVisibility = function() { + return this.setVisibility(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional AnnotationFilter default_annotation_filter = 12; + * @return {?proto.clarifai.api.AnnotationFilter} + */ +proto.clarifai.api.Dataset.prototype.getDefaultAnnotationFilter = function() { + return /** @type{?proto.clarifai.api.AnnotationFilter} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AnnotationFilter, 12)); +}; + + +/** + * @param {?proto.clarifai.api.AnnotationFilter|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setDefaultAnnotationFilter = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearDefaultAnnotationFilter = function() { + return this.setDefaultAnnotationFilter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasDefaultAnnotationFilter = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional DatasetVersionProcessingInfo default_processing_info = 16; + * @return {?proto.clarifai.api.DatasetVersionProcessingInfo} + */ +proto.clarifai.api.Dataset.prototype.getDefaultProcessingInfo = function() { + return /** @type{?proto.clarifai.api.DatasetVersionProcessingInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionProcessingInfo, 16)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersionProcessingInfo|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setDefaultProcessingInfo = function(value) { + return jspb.Message.setWrapperField(this, 16, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearDefaultProcessingInfo = function() { + return this.setDefaultProcessingInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasDefaultProcessingInfo = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional string notes = 11; + * @return {string} + */ +proto.clarifai.api.Dataset.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.setNotes = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + +/** + * optional DatasetVersion version = 13; + * @return {?proto.clarifai.api.DatasetVersion} + */ +proto.clarifai.api.Dataset.prototype.getVersion = function() { + return /** @type{?proto.clarifai.api.DatasetVersion} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersion, 13)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersion|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setVersion = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearVersion = function() { + return this.setVersion(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasVersion = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional bool is_starred = 14; + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.getIsStarred = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.setIsStarred = function(value) { + return jspb.Message.setProto3BooleanField(this, 14, value); +}; + + +/** + * optional int32 star_count = 15; + * @return {number} + */ +proto.clarifai.api.Dataset.prototype.getStarCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.setStarCount = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional BookmarkOrigin bookmark_origin = 17; + * @return {?proto.clarifai.api.BookmarkOrigin} + */ +proto.clarifai.api.Dataset.prototype.getBookmarkOrigin = function() { + return /** @type{?proto.clarifai.api.BookmarkOrigin} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 17)); +}; + + +/** + * @param {?proto.clarifai.api.BookmarkOrigin|undefined} value + * @return {!proto.clarifai.api.Dataset} returns this +*/ +proto.clarifai.api.Dataset.prototype.setBookmarkOrigin = function(value) { + return jspb.Message.setWrapperField(this, 17, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Dataset} returns this + */ +proto.clarifai.api.Dataset.prototype.clearBookmarkOrigin = function() { + return this.setBookmarkOrigin(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Dataset.prototype.hasBookmarkOrigin = function() { + return jspb.Message.getField(this, 17) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.AnnotationFilter.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AnnotationFilter.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AnnotationFilter} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AnnotationFilter.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 4, ""), + appId: jspb.Message.getFieldWithDefault(msg, 5, ""), + savedSearch: (f = msg.getSavedSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AnnotationFilter} + */ +proto.clarifai.api.AnnotationFilter.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AnnotationFilter; + return proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AnnotationFilter} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AnnotationFilter} + */ +proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 8: + var value = new proto.clarifai.api.Search; + reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); + msg.setSavedSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.AnnotationFilter.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AnnotationFilter} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getSavedSearch(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.clarifai.api.Search.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.AnnotationFilter.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.AnnotationFilter} returns this + */ +proto.clarifai.api.AnnotationFilter.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.AnnotationFilter.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.AnnotationFilter} returns this +*/ +proto.clarifai.api.AnnotationFilter.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AnnotationFilter} returns this + */ +proto.clarifai.api.AnnotationFilter.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.AnnotationFilter.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.Timestamp modified_at = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.AnnotationFilter.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.AnnotationFilter} returns this +*/ +proto.clarifai.api.AnnotationFilter.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AnnotationFilter} returns this + */ +proto.clarifai.api.AnnotationFilter.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.AnnotationFilter.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string user_id = 4; + * @return {string} + */ +proto.clarifai.api.AnnotationFilter.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.AnnotationFilter} returns this + */ +proto.clarifai.api.AnnotationFilter.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string app_id = 5; + * @return {string} + */ +proto.clarifai.api.AnnotationFilter.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.AnnotationFilter} returns this + */ +proto.clarifai.api.AnnotationFilter.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional Search saved_search = 8; + * @return {?proto.clarifai.api.Search} + */ +proto.clarifai.api.AnnotationFilter.prototype.getSavedSearch = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 8)); +}; + + +/** + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.AnnotationFilter} returns this +*/ +proto.clarifai.api.AnnotationFilter.prototype.setSavedSearch = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AnnotationFilter} returns this + */ +proto.clarifai.api.AnnotationFilter.prototype.clearSavedSearch = function() { + return this.setSavedSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.AnnotationFilter.prototype.hasSavedSearch = function() { + return jspb.Message.getField(this, 8) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetInput.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetInput.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetInput} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetInput.toObject = function(includeInstance, msg) { + var f, obj = { + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetInput} + */ +proto.clarifai.api.DatasetInput.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetInput; + return proto.clarifai.api.DatasetInput.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetInput} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetInput} + */ +proto.clarifai.api.DatasetInput.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 2: + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setInput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetInput.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetInput.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetInput} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetInput.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getInput(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Input.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.Timestamp created_at = 1; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.DatasetInput.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.DatasetInput} returns this +*/ +proto.clarifai.api.DatasetInput.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetInput} returns this + */ +proto.clarifai.api.DatasetInput.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetInput.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Input input = 2; + * @return {?proto.clarifai.api.Input} + */ +proto.clarifai.api.DatasetInput.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.DatasetInput} returns this +*/ +proto.clarifai.api.DatasetInput.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetInput} returns this + */ +proto.clarifai.api.DatasetInput.prototype.clearInput = function() { + return this.setInput(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetInput.prototype.hasInput = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DatasetVersion.repeatedFields_ = [14]; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.DatasetVersion.oneofGroups_ = [[15,18]]; + +/** + * @enum {number} + */ +proto.clarifai.api.DatasetVersion.DataConfigCase = { + DATA_CONFIG_NOT_SET: 0, + ANNOTATION_FILTER_CONFIG: 15, + MODEL_PREDICT_CONFIG: 18 +}; + +/** + * @return {proto.clarifai.api.DatasetVersion.DataConfigCase} + */ +proto.clarifai.api.DatasetVersion.prototype.getDataConfigCase = function() { + return /** @type {proto.clarifai.api.DatasetVersion.DataConfigCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.DatasetVersion.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetVersion.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetVersion.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetVersion} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersion.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 4, ""), + userId: jspb.Message.getFieldWithDefault(msg, 5, ""), + datasetId: jspb.Message.getFieldWithDefault(msg, 6, ""), + annotationFilterConfig: (f = msg.getAnnotationFilterConfig()) && proto.clarifai.api.AnnotationFilterConfig.toObject(includeInstance, f), + modelPredictConfig: (f = msg.getModelPredictConfig()) && proto.clarifai.api.ModelPredictConfig.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + description: jspb.Message.getFieldWithDefault(msg, 10, ""), + processingInfo: (f = msg.getProcessingInfo()) && proto.clarifai.api.DatasetVersionProcessingInfo.toObject(includeInstance, f), + metricsMap: (f = msg.getMetricsMap()) ? f.toObject(includeInstance, proto.clarifai.api.DatasetVersionMetrics.toObject) : [], + exportInfo: (f = msg.getExportInfo()) && proto.clarifai.api.DatasetVersionExportInfo.toObject(includeInstance, f), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetVersion} + */ +proto.clarifai.api.DatasetVersion.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetVersion; + return proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetVersion} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetVersion} + */ +proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 15: + var value = new proto.clarifai.api.AnnotationFilterConfig; + reader.readMessage(value,proto.clarifai.api.AnnotationFilterConfig.deserializeBinaryFromReader); + msg.setAnnotationFilterConfig(value); + break; + case 18: + var value = new proto.clarifai.api.ModelPredictConfig; + reader.readMessage(value,proto.clarifai.api.ModelPredictConfig.deserializeBinaryFromReader); + msg.setModelPredictConfig(value); + break; + case 8: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 19: + var value = new proto.clarifai.api.DatasetVersionProcessingInfo; + reader.readMessage(value,proto.clarifai.api.DatasetVersionProcessingInfo.deserializeBinaryFromReader); + msg.setProcessingInfo(value); + break; + case 16: + var value = msg.getMetricsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader, "", new proto.clarifai.api.DatasetVersionMetrics()); + }); + break; + case 17: + var value = new proto.clarifai.api.DatasetVersionExportInfo; + reader.readMessage(value,proto.clarifai.api.DatasetVersionExportInfo.deserializeBinaryFromReader); + msg.setExportInfo(value); + break; + case 12: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 13: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.addEmbedModelVersionIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetVersion.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetVersion.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetVersion} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getAnnotationFilterConfig(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.clarifai.api.AnnotationFilterConfig.serializeBinaryToWriter + ); + } + f = message.getModelPredictConfig(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.clarifai.api.ModelPredictConfig.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getProcessingInfo(); + if (f != null) { + writer.writeMessage( + 19, + f, + proto.clarifai.api.DatasetVersionProcessingInfo.serializeBinaryToWriter + ); + } + f = message.getMetricsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter); + } + f = message.getExportInfo(); + if (f != null) { + writer.writeMessage( + 17, + f, + proto.clarifai.api.DatasetVersionExportInfo.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 12, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getEmbedModelVersionIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 14, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.DatasetVersion.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.DatasetVersion.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.Timestamp modified_at = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.DatasetVersion.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string app_id = 4; + * @return {string} + */ +proto.clarifai.api.DatasetVersion.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string user_id = 5; + * @return {string} + */ +proto.clarifai.api.DatasetVersion.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional string dataset_id = 6; + * @return {string} + */ +proto.clarifai.api.DatasetVersion.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional AnnotationFilterConfig annotation_filter_config = 15; + * @return {?proto.clarifai.api.AnnotationFilterConfig} + */ +proto.clarifai.api.DatasetVersion.prototype.getAnnotationFilterConfig = function() { + return /** @type{?proto.clarifai.api.AnnotationFilterConfig} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AnnotationFilterConfig, 15)); +}; + + +/** + * @param {?proto.clarifai.api.AnnotationFilterConfig|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setAnnotationFilterConfig = function(value) { + return jspb.Message.setOneofWrapperField(this, 15, proto.clarifai.api.DatasetVersion.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearAnnotationFilterConfig = function() { + return this.setAnnotationFilterConfig(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasAnnotationFilterConfig = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +/** + * optional ModelPredictConfig model_predict_config = 18; + * @return {?proto.clarifai.api.ModelPredictConfig} + */ +proto.clarifai.api.DatasetVersion.prototype.getModelPredictConfig = function() { + return /** @type{?proto.clarifai.api.ModelPredictConfig} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ModelPredictConfig, 18)); +}; + + +/** + * @param {?proto.clarifai.api.ModelPredictConfig|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setModelPredictConfig = function(value) { + return jspb.Message.setOneofWrapperField(this, 18, proto.clarifai.api.DatasetVersion.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearModelPredictConfig = function() { + return this.setModelPredictConfig(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasModelPredictConfig = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional status.Status status = 8; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.DatasetVersion.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 8)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasStatus = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional string description = 10; + * @return {string} + */ +proto.clarifai.api.DatasetVersion.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional DatasetVersionProcessingInfo processing_info = 19; + * @return {?proto.clarifai.api.DatasetVersionProcessingInfo} + */ +proto.clarifai.api.DatasetVersion.prototype.getProcessingInfo = function() { + return /** @type{?proto.clarifai.api.DatasetVersionProcessingInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionProcessingInfo, 19)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersionProcessingInfo|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setProcessingInfo = function(value) { + return jspb.Message.setWrapperField(this, 19, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearProcessingInfo = function() { + return this.setProcessingInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasProcessingInfo = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * map metrics = 16; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.clarifai.api.DatasetVersion.prototype.getMetricsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 16, opt_noLazyCreate, + proto.clarifai.api.DatasetVersionMetrics)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearMetricsMap = function() { + this.getMetricsMap().clear(); + return this; +}; + + +/** + * optional DatasetVersionExportInfo export_info = 17; + * @return {?proto.clarifai.api.DatasetVersionExportInfo} + */ +proto.clarifai.api.DatasetVersion.prototype.getExportInfo = function() { + return /** @type{?proto.clarifai.api.DatasetVersionExportInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionExportInfo, 17)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersionExportInfo|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setExportInfo = function(value) { + return jspb.Message.setWrapperField(this, 17, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearExportInfo = function() { + return this.setExportInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasExportInfo = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional google.protobuf.Struct metadata = 12; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.DatasetVersion.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 12)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional Visibility visibility = 13; + * @return {?proto.clarifai.api.Visibility} + */ +proto.clarifai.api.DatasetVersion.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 13)); +}; + + +/** + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.DatasetVersion} returns this +*/ +proto.clarifai.api.DatasetVersion.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearVisibility = function() { + return this.setVisibility(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersion.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * repeated string embed_model_version_ids = 14; + * @return {!Array} + */ +proto.clarifai.api.DatasetVersion.prototype.getEmbedModelVersionIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 14)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.setEmbedModelVersionIdsList = function(value) { + return jspb.Message.setField(this, 14, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.addEmbedModelVersionIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 14, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DatasetVersion} returns this + */ +proto.clarifai.api.DatasetVersion.prototype.clearEmbedModelVersionIdsList = function() { + return this.setEmbedModelVersionIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.AnnotationFilterConfig.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AnnotationFilterConfig.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AnnotationFilterConfig} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AnnotationFilterConfig.toObject = function(includeInstance, msg) { + var f, obj = { + annotationFilter: (f = msg.getAnnotationFilter()) && proto.clarifai.api.AnnotationFilter.toObject(includeInstance, f), + ignoreEmptyInputs: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AnnotationFilterConfig} + */ +proto.clarifai.api.AnnotationFilterConfig.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AnnotationFilterConfig; + return proto.clarifai.api.AnnotationFilterConfig.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AnnotationFilterConfig} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AnnotationFilterConfig} + */ +proto.clarifai.api.AnnotationFilterConfig.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.AnnotationFilter; + reader.readMessage(value,proto.clarifai.api.AnnotationFilter.deserializeBinaryFromReader); + msg.setAnnotationFilter(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIgnoreEmptyInputs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.AnnotationFilterConfig.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AnnotationFilterConfig.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AnnotationFilterConfig} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AnnotationFilterConfig.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAnnotationFilter(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.AnnotationFilter.serializeBinaryToWriter + ); + } + f = message.getIgnoreEmptyInputs(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional AnnotationFilter annotation_filter = 1; + * @return {?proto.clarifai.api.AnnotationFilter} + */ +proto.clarifai.api.AnnotationFilterConfig.prototype.getAnnotationFilter = function() { + return /** @type{?proto.clarifai.api.AnnotationFilter} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AnnotationFilter, 1)); +}; + + +/** + * @param {?proto.clarifai.api.AnnotationFilter|undefined} value + * @return {!proto.clarifai.api.AnnotationFilterConfig} returns this +*/ +proto.clarifai.api.AnnotationFilterConfig.prototype.setAnnotationFilter = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AnnotationFilterConfig} returns this + */ +proto.clarifai.api.AnnotationFilterConfig.prototype.clearAnnotationFilter = function() { + return this.setAnnotationFilter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.AnnotationFilterConfig.prototype.hasAnnotationFilter = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool ignore_empty_inputs = 2; + * @return {boolean} + */ +proto.clarifai.api.AnnotationFilterConfig.prototype.getIgnoreEmptyInputs = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.AnnotationFilterConfig} returns this + */ +proto.clarifai.api.AnnotationFilterConfig.prototype.setIgnoreEmptyInputs = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ModelPredictConfig.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelPredictConfig.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ModelPredictConfig} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ModelPredictConfig.toObject = function(includeInstance, msg) { + var f, obj = { + model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ModelPredictConfig} + */ +proto.clarifai.api.ModelPredictConfig.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ModelPredictConfig; + return proto.clarifai.api.ModelPredictConfig.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ModelPredictConfig} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ModelPredictConfig} + */ +proto.clarifai.api.ModelPredictConfig.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Model; + reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); + msg.setModel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ModelPredictConfig.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ModelPredictConfig.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ModelPredictConfig} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ModelPredictConfig.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getModel(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.Model.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Model model = 1; + * @return {?proto.clarifai.api.Model} + */ +proto.clarifai.api.ModelPredictConfig.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 1)); +}; + + +/** + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.ModelPredictConfig} returns this +*/ +proto.clarifai.api.ModelPredictConfig.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelPredictConfig} returns this + */ +proto.clarifai.api.ModelPredictConfig.prototype.clearModel = function() { + return this.setModel(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ModelPredictConfig.prototype.hasModel = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetVersionMetrics.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetVersionMetrics} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionMetrics.toObject = function(includeInstance, msg) { + var f, obj = { + inputsCount: (f = msg.getInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + unlabeledInputsCount: (f = msg.getUnlabeledInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + inputsWithMetadataCount: (f = msg.getInputsWithMetadataCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + inputsWithGeoCount: (f = msg.getInputsWithGeoCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + regionsCount: (f = msg.getRegionsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + regionLocationMatrix: (f = msg.getRegionLocationMatrix()) && proto_clarifai_api_utils_matrix_pb.MatrixUint64.toObject(includeInstance, f), + boundingBoxesCount: (f = msg.getBoundingBoxesCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + polygonsCount: (f = msg.getPolygonsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + pointsCount: (f = msg.getPointsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + masksCount: (f = msg.getMasksCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + regionInputsCount: (f = msg.getRegionInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + regionFramesCount: (f = msg.getRegionFramesCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + framesCount: (f = msg.getFramesCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + frameInputsCount: (f = msg.getFrameInputsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + embeddingsCount: (f = msg.getEmbeddingsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + positiveInputTagsCount: (f = msg.getPositiveInputTagsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + positiveRegionTagsCount: (f = msg.getPositiveRegionTagsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f), + positiveFrameTagsCount: (f = msg.getPositiveFrameTagsCount()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetVersionMetrics} + */ +proto.clarifai.api.DatasetVersionMetrics.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetVersionMetrics; + return proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetVersionMetrics} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetVersionMetrics} + */ +proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setInputsCount(value); + break; + case 6: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setUnlabeledInputsCount(value); + break; + case 8: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setInputsWithMetadataCount(value); + break; + case 9: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setInputsWithGeoCount(value); + break; + case 20: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setRegionsCount(value); + break; + case 21: + var value = new proto_clarifai_api_utils_matrix_pb.MatrixUint64; + reader.readMessage(value,proto_clarifai_api_utils_matrix_pb.MatrixUint64.deserializeBinaryFromReader); + msg.setRegionLocationMatrix(value); + break; + case 22: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setBoundingBoxesCount(value); + break; + case 23: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setPolygonsCount(value); + break; + case 24: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setPointsCount(value); + break; + case 25: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setMasksCount(value); + break; + case 60: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setRegionInputsCount(value); + break; + case 61: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setRegionFramesCount(value); + break; + case 30: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setFramesCount(value); + break; + case 70: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setFrameInputsCount(value); + break; + case 40: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setEmbeddingsCount(value); + break; + case 50: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setPositiveInputTagsCount(value); + break; + case 51: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setPositiveRegionTagsCount(value); + break; + case 52: + var value = new google_protobuf_wrappers_pb.UInt64Value; + reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader); + msg.setPositiveFrameTagsCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetVersionMetrics} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInputsCount(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getUnlabeledInputsCount(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getInputsWithMetadataCount(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getInputsWithGeoCount(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getRegionsCount(); + if (f != null) { + writer.writeMessage( + 20, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getRegionLocationMatrix(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto_clarifai_api_utils_matrix_pb.MatrixUint64.serializeBinaryToWriter + ); + } + f = message.getBoundingBoxesCount(); + if (f != null) { + writer.writeMessage( + 22, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getPolygonsCount(); + if (f != null) { + writer.writeMessage( + 23, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getPointsCount(); + if (f != null) { + writer.writeMessage( + 24, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getMasksCount(); + if (f != null) { + writer.writeMessage( + 25, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getRegionInputsCount(); + if (f != null) { + writer.writeMessage( + 60, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getRegionFramesCount(); + if (f != null) { + writer.writeMessage( + 61, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getFramesCount(); + if (f != null) { + writer.writeMessage( + 30, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getFrameInputsCount(); + if (f != null) { + writer.writeMessage( + 70, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getEmbeddingsCount(); + if (f != null) { + writer.writeMessage( + 40, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getPositiveInputTagsCount(); + if (f != null) { + writer.writeMessage( + 50, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getPositiveRegionTagsCount(); + if (f != null) { + writer.writeMessage( + 51, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } + f = message.getPositiveFrameTagsCount(); + if (f != null) { + writer.writeMessage( + 52, + f, + google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.UInt64Value inputs_count = 1; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getInputsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 1)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setInputsCount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearInputsCount = function() { + return this.setInputsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasInputsCount = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional google.protobuf.UInt64Value unlabeled_inputs_count = 6; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getUnlabeledInputsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 6)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setUnlabeledInputsCount = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearUnlabeledInputsCount = function() { + return this.setUnlabeledInputsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasUnlabeledInputsCount = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional google.protobuf.UInt64Value inputs_with_metadata_count = 8; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getInputsWithMetadataCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 8)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setInputsWithMetadataCount = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearInputsWithMetadataCount = function() { + return this.setInputsWithMetadataCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasInputsWithMetadataCount = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional google.protobuf.UInt64Value inputs_with_geo_count = 9; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getInputsWithGeoCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 9)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setInputsWithGeoCount = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearInputsWithGeoCount = function() { + return this.setInputsWithGeoCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasInputsWithGeoCount = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional google.protobuf.UInt64Value regions_count = 20; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 20)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionsCount = function(value) { + return jspb.Message.setWrapperField(this, 20, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionsCount = function() { + return this.setRegionsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionsCount = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional MatrixUint64 region_location_matrix = 21; + * @return {?proto.MatrixUint64} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionLocationMatrix = function() { + return /** @type{?proto.MatrixUint64} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_utils_matrix_pb.MatrixUint64, 21)); +}; + + +/** + * @param {?proto.MatrixUint64|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionLocationMatrix = function(value) { + return jspb.Message.setWrapperField(this, 21, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionLocationMatrix = function() { + return this.setRegionLocationMatrix(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionLocationMatrix = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional google.protobuf.UInt64Value bounding_boxes_count = 22; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getBoundingBoxesCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 22)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setBoundingBoxesCount = function(value) { + return jspb.Message.setWrapperField(this, 22, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearBoundingBoxesCount = function() { + return this.setBoundingBoxesCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasBoundingBoxesCount = function() { + return jspb.Message.getField(this, 22) != null; +}; + + +/** + * optional google.protobuf.UInt64Value polygons_count = 23; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getPolygonsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 23)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setPolygonsCount = function(value) { + return jspb.Message.setWrapperField(this, 23, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearPolygonsCount = function() { + return this.setPolygonsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasPolygonsCount = function() { + return jspb.Message.getField(this, 23) != null; +}; + + +/** + * optional google.protobuf.UInt64Value points_count = 24; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getPointsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 24)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setPointsCount = function(value) { + return jspb.Message.setWrapperField(this, 24, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearPointsCount = function() { + return this.setPointsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasPointsCount = function() { + return jspb.Message.getField(this, 24) != null; +}; + + +/** + * optional google.protobuf.UInt64Value masks_count = 25; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getMasksCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 25)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setMasksCount = function(value) { + return jspb.Message.setWrapperField(this, 25, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearMasksCount = function() { + return this.setMasksCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasMasksCount = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional google.protobuf.UInt64Value region_inputs_count = 60; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionInputsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 60)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionInputsCount = function(value) { + return jspb.Message.setWrapperField(this, 60, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionInputsCount = function() { + return this.setRegionInputsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionInputsCount = function() { + return jspb.Message.getField(this, 60) != null; +}; + + +/** + * optional google.protobuf.UInt64Value region_frames_count = 61; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getRegionFramesCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 61)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setRegionFramesCount = function(value) { + return jspb.Message.setWrapperField(this, 61, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearRegionFramesCount = function() { + return this.setRegionFramesCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasRegionFramesCount = function() { + return jspb.Message.getField(this, 61) != null; +}; + + +/** + * optional google.protobuf.UInt64Value frames_count = 30; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getFramesCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 30)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setFramesCount = function(value) { + return jspb.Message.setWrapperField(this, 30, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearFramesCount = function() { + return this.setFramesCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasFramesCount = function() { + return jspb.Message.getField(this, 30) != null; +}; + + +/** + * optional google.protobuf.UInt64Value frame_inputs_count = 70; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getFrameInputsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 70)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setFrameInputsCount = function(value) { + return jspb.Message.setWrapperField(this, 70, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearFrameInputsCount = function() { + return this.setFrameInputsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasFrameInputsCount = function() { + return jspb.Message.getField(this, 70) != null; +}; + + +/** + * optional google.protobuf.UInt64Value embeddings_count = 40; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getEmbeddingsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 40)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setEmbeddingsCount = function(value) { + return jspb.Message.setWrapperField(this, 40, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearEmbeddingsCount = function() { + return this.setEmbeddingsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasEmbeddingsCount = function() { + return jspb.Message.getField(this, 40) != null; +}; + + +/** + * optional google.protobuf.UInt64Value positive_input_tags_count = 50; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getPositiveInputTagsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 50)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setPositiveInputTagsCount = function(value) { + return jspb.Message.setWrapperField(this, 50, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearPositiveInputTagsCount = function() { + return this.setPositiveInputTagsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasPositiveInputTagsCount = function() { + return jspb.Message.getField(this, 50) != null; +}; + + +/** + * optional google.protobuf.UInt64Value positive_region_tags_count = 51; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getPositiveRegionTagsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 51)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setPositiveRegionTagsCount = function(value) { + return jspb.Message.setWrapperField(this, 51, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearPositiveRegionTagsCount = function() { + return this.setPositiveRegionTagsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasPositiveRegionTagsCount = function() { + return jspb.Message.getField(this, 51) != null; +}; + + +/** + * optional google.protobuf.UInt64Value positive_frame_tags_count = 52; + * @return {?proto.google.protobuf.UInt64Value} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.getPositiveFrameTagsCount = function() { + return /** @type{?proto.google.protobuf.UInt64Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 52)); +}; + + +/** + * @param {?proto.google.protobuf.UInt64Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this +*/ +proto.clarifai.api.DatasetVersionMetrics.prototype.setPositiveFrameTagsCount = function(value) { + return jspb.Message.setWrapperField(this, 52, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.clearPositiveFrameTagsCount = function() { + return this.setPositiveFrameTagsCount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetrics.prototype.hasPositiveFrameTagsCount = function() { + return jspb.Message.getField(this, 52) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetVersionMetricsGroup.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetVersionMetricsGroup} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionMetricsGroup.toObject = function(includeInstance, msg) { + var f, obj = { + parentPath: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 2, 0), + value: (f = msg.getValue()) && google_protobuf_struct_pb.Value.toObject(includeInstance, f), + metrics: (f = msg.getMetrics()) && proto.clarifai.api.DatasetVersionMetrics.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetVersionMetricsGroup; + return proto.clarifai.api.DatasetVersionMetricsGroup.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetVersionMetricsGroup} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setParentPath(value); + break; + case 2: + var value = /** @type {!proto.clarifai.api.DatasetVersionMetricsGroupType} */ (reader.readEnum()); + msg.setType(value); + break; + case 3: + var value = new google_protobuf_struct_pb.Value; + reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); + msg.setValue(value); + break; + case 4: + var value = new proto.clarifai.api.DatasetVersionMetrics; + reader.readMessage(value,proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader); + msg.setMetrics(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetVersionMetricsGroup.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetVersionMetricsGroup} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionMetricsGroup.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParentPath(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getValue(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_struct_pb.Value.serializeBinaryToWriter + ); + } + f = message.getMetrics(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string parent_path = 1; + * @return {string} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getParentPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setParentPath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional DatasetVersionMetricsGroupType type = 2; + * @return {!proto.clarifai.api.DatasetVersionMetricsGroupType} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getType = function() { + return /** @type {!proto.clarifai.api.DatasetVersionMetricsGroupType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersionMetricsGroupType} value + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional google.protobuf.Value value = 3; + * @return {?proto.google.protobuf.Value} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getValue = function() { + return /** @type{?proto.google.protobuf.Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Value|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this +*/ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setValue = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.clearValue = function() { + return this.setValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.hasValue = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional DatasetVersionMetrics metrics = 4; + * @return {?proto.clarifai.api.DatasetVersionMetrics} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.getMetrics = function() { + return /** @type{?proto.clarifai.api.DatasetVersionMetrics} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionMetrics, 4)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersionMetrics|undefined} value + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this +*/ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.setMetrics = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} returns this + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.clearMetrics = function() { + return this.setMetrics(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionMetricsGroup.prototype.hasMetrics = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetVersionExportInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetVersionExportInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionExportInfo.toObject = function(includeInstance, msg) { + var f, obj = { + clarifaiDataProtobuf: (f = msg.getClarifaiDataProtobuf()) && proto.clarifai.api.DatasetVersionExport.toObject(includeInstance, f), + clarifaiDataJson: (f = msg.getClarifaiDataJson()) && proto.clarifai.api.DatasetVersionExport.toObject(includeInstance, f), + coco: (f = msg.getCoco()) && proto.clarifai.api.DatasetVersionExport.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetVersionExportInfo} + */ +proto.clarifai.api.DatasetVersionExportInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetVersionExportInfo; + return proto.clarifai.api.DatasetVersionExportInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetVersionExportInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetVersionExportInfo} + */ +proto.clarifai.api.DatasetVersionExportInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.DatasetVersionExport; + reader.readMessage(value,proto.clarifai.api.DatasetVersionExport.deserializeBinaryFromReader); + msg.setClarifaiDataProtobuf(value); + break; + case 3: + var value = new proto.clarifai.api.DatasetVersionExport; + reader.readMessage(value,proto.clarifai.api.DatasetVersionExport.deserializeBinaryFromReader); + msg.setClarifaiDataJson(value); + break; + case 2: + var value = new proto.clarifai.api.DatasetVersionExport; + reader.readMessage(value,proto.clarifai.api.DatasetVersionExport.deserializeBinaryFromReader); + msg.setCoco(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetVersionExportInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetVersionExportInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionExportInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getClarifaiDataProtobuf(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.DatasetVersionExport.serializeBinaryToWriter + ); + } + f = message.getClarifaiDataJson(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.DatasetVersionExport.serializeBinaryToWriter + ); + } + f = message.getCoco(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.DatasetVersionExport.serializeBinaryToWriter + ); + } +}; + + +/** + * optional DatasetVersionExport clarifai_data_protobuf = 1; + * @return {?proto.clarifai.api.DatasetVersionExport} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.getClarifaiDataProtobuf = function() { + return /** @type{?proto.clarifai.api.DatasetVersionExport} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionExport, 1)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersionExport|undefined} value + * @return {!proto.clarifai.api.DatasetVersionExportInfo} returns this +*/ +proto.clarifai.api.DatasetVersionExportInfo.prototype.setClarifaiDataProtobuf = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionExportInfo} returns this + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.clearClarifaiDataProtobuf = function() { + return this.setClarifaiDataProtobuf(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.hasClarifaiDataProtobuf = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DatasetVersionExport clarifai_data_json = 3; + * @return {?proto.clarifai.api.DatasetVersionExport} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.getClarifaiDataJson = function() { + return /** @type{?proto.clarifai.api.DatasetVersionExport} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionExport, 3)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersionExport|undefined} value + * @return {!proto.clarifai.api.DatasetVersionExportInfo} returns this +*/ +proto.clarifai.api.DatasetVersionExportInfo.prototype.setClarifaiDataJson = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionExportInfo} returns this + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.clearClarifaiDataJson = function() { + return this.setClarifaiDataJson(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.hasClarifaiDataJson = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional DatasetVersionExport coco = 2; + * @return {?proto.clarifai.api.DatasetVersionExport} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.getCoco = function() { + return /** @type{?proto.clarifai.api.DatasetVersionExport} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionExport, 2)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersionExport|undefined} value + * @return {!proto.clarifai.api.DatasetVersionExportInfo} returns this +*/ +proto.clarifai.api.DatasetVersionExportInfo.prototype.setCoco = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionExportInfo} returns this + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.clearCoco = function() { + return this.setCoco(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionExportInfo.prototype.hasCoco = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetVersionExport.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetVersionExport.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetVersionExport} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionExport.toObject = function(includeInstance, msg) { + var f, obj = { + format: jspb.Message.getFieldWithDefault(msg, 1, 0), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + url: jspb.Message.getFieldWithDefault(msg, 3, ""), + size: jspb.Message.getFieldWithDefault(msg, 4, 0), + includeEmbeddings: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetVersionExport} + */ +proto.clarifai.api.DatasetVersionExport.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetVersionExport; + return proto.clarifai.api.DatasetVersionExport.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetVersionExport} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetVersionExport} + */ +proto.clarifai.api.DatasetVersionExport.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.clarifai.api.DatasetVersionExportFormat} */ (reader.readEnum()); + msg.setFormat(value); + break; + case 2: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSize(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIncludeEmbeddings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetVersionExport.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetVersionExport.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetVersionExport} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionExport.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFormat(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getSize(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getIncludeEmbeddings(); + if (f) { + writer.writeBool( + 5, + f + ); + } +}; + + +/** + * optional DatasetVersionExportFormat format = 1; + * @return {!proto.clarifai.api.DatasetVersionExportFormat} + */ +proto.clarifai.api.DatasetVersionExport.prototype.getFormat = function() { + return /** @type {!proto.clarifai.api.DatasetVersionExportFormat} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersionExportFormat} value + * @return {!proto.clarifai.api.DatasetVersionExport} returns this + */ +proto.clarifai.api.DatasetVersionExport.prototype.setFormat = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional status.Status status = 2; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.DatasetVersionExport.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.DatasetVersionExport} returns this +*/ +proto.clarifai.api.DatasetVersionExport.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionExport} returns this + */ +proto.clarifai.api.DatasetVersionExport.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionExport.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string url = 3; + * @return {string} + */ +proto.clarifai.api.DatasetVersionExport.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DatasetVersionExport} returns this + */ +proto.clarifai.api.DatasetVersionExport.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint64 size = 4; + * @return {number} + */ +proto.clarifai.api.DatasetVersionExport.prototype.getSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.DatasetVersionExport} returns this + */ +proto.clarifai.api.DatasetVersionExport.prototype.setSize = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional bool include_embeddings = 5; + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionExport.prototype.getIncludeEmbeddings = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.DatasetVersionExport} returns this + */ +proto.clarifai.api.DatasetVersionExport.prototype.setIncludeEmbeddings = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetVersionProcessingInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetVersionProcessingInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetVersionProcessingInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionProcessingInfo.toObject = function(includeInstance, msg) { + var f, obj = { + frameInterpolationInfo: (f = msg.getFrameInterpolationInfo()) && proto.clarifai.api.FrameInterpolationInfo.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetVersionProcessingInfo} + */ +proto.clarifai.api.DatasetVersionProcessingInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetVersionProcessingInfo; + return proto.clarifai.api.DatasetVersionProcessingInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetVersionProcessingInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetVersionProcessingInfo} + */ +proto.clarifai.api.DatasetVersionProcessingInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.FrameInterpolationInfo; + reader.readMessage(value,proto.clarifai.api.FrameInterpolationInfo.deserializeBinaryFromReader); + msg.setFrameInterpolationInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetVersionProcessingInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetVersionProcessingInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetVersionProcessingInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetVersionProcessingInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFrameInterpolationInfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.FrameInterpolationInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional FrameInterpolationInfo frame_interpolation_info = 1; + * @return {?proto.clarifai.api.FrameInterpolationInfo} + */ +proto.clarifai.api.DatasetVersionProcessingInfo.prototype.getFrameInterpolationInfo = function() { + return /** @type{?proto.clarifai.api.FrameInterpolationInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.FrameInterpolationInfo, 1)); +}; + + +/** + * @param {?proto.clarifai.api.FrameInterpolationInfo|undefined} value + * @return {!proto.clarifai.api.DatasetVersionProcessingInfo} returns this +*/ +proto.clarifai.api.DatasetVersionProcessingInfo.prototype.setFrameInterpolationInfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetVersionProcessingInfo} returns this + */ +proto.clarifai.api.DatasetVersionProcessingInfo.prototype.clearFrameInterpolationInfo = function() { + return this.setFrameInterpolationInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DatasetVersionProcessingInfo.prototype.hasFrameInterpolationInfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.FrameInterpolationInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.FrameInterpolationInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.FrameInterpolationInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.FrameInterpolationInfo.toObject = function(includeInstance, msg) { + var f, obj = { + sampleMs: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.FrameInterpolationInfo} + */ +proto.clarifai.api.FrameInterpolationInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.FrameInterpolationInfo; + return proto.clarifai.api.FrameInterpolationInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.FrameInterpolationInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.FrameInterpolationInfo} + */ +proto.clarifai.api.FrameInterpolationInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSampleMs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.FrameInterpolationInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.FrameInterpolationInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.FrameInterpolationInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.FrameInterpolationInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSampleMs(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } +}; + + +/** + * optional uint32 sample_ms = 1; + * @return {number} + */ +proto.clarifai.api.FrameInterpolationInfo.prototype.getSampleMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.FrameInterpolationInfo} returns this + */ +proto.clarifai.api.FrameInterpolationInfo.prototype.setSampleMs = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.WorkflowResultsSimilarity.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.WorkflowResultsSimilarity.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.WorkflowResultsSimilarity.toObject = function(includeInstance, msg) { + var f, obj = { + probeInput: (f = msg.getProbeInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), + poolResultsList: jspb.Message.toObjectList(msg.getPoolResultsList(), + proto.clarifai.api.Hit.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.WorkflowResultsSimilarity} + */ +proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.WorkflowResultsSimilarity; + return proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.WorkflowResultsSimilarity} + */ +proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setProbeInput(value); + break; + case 2: + var value = new proto.clarifai.api.Hit; + reader.readMessage(value,proto.clarifai.api.Hit.deserializeBinaryFromReader); + msg.addPoolResults(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.WorkflowResultsSimilarity} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProbeInput(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.Input.serializeBinaryToWriter + ); + } + f = message.getPoolResultsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.clarifai.api.Hit.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Input probe_input = 1; + * @return {?proto.clarifai.api.Input} + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.getProbeInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 1)); +}; + + +/** + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this +*/ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.setProbeInput = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearProbeInput = function() { + return this.setProbeInput(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.hasProbeInput = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Hit pool_results = 2; + * @return {!Array} + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.getPoolResultsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this +*/ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.setPoolResultsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Hit=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Hit} + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.addPoolResults = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Hit, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this + */ +proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearPoolResultsList = function() { + return this.setPoolResultsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Key.repeatedFields_ = [3,7,4,9]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Key.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Key.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Key} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Key.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 8, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + scopesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + endpointsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + appsList: jspb.Message.toObjectList(msg.getAppsList(), + proto.clarifai.api.App.toObject, includeInstance), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + authorizedIdpIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Key} + */ +proto.clarifai.api.Key.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Key; + return proto.clarifai.api.Key.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Key} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Key} + */ +proto.clarifai.api.Key.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addScopes(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addEndpoints(value); + break; + case 4: + var value = new proto.clarifai.api.App; + reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader); + msg.addApps(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setExpiresAt(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.addAuthorizedIdpIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Key.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Key.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Key} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Annotation.prototype.getId = function() { +proto.clarifai.api.Key.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getType(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getScopesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getEndpointsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, + f + ); + } + f = message.getAppsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.clarifai.api.App.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getExpiresAt(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAuthorizedIdpIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 9, + f + ); + } +}; + + +/** + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Key.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.setId = function(value) { +proto.clarifai.api.Key.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string input_id = 2; + * optional string type = 8; * @return {string} */ -proto.clarifai.api.Annotation.prototype.getInputId = function() { +proto.clarifai.api.Key.prototype.getType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.setType = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.clarifai.api.Key.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.setInputId = function(value) { +proto.clarifai.api.Key.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional Data data = 3; - * @return {?proto.clarifai.api.Data} + * repeated string scopes = 3; + * @return {!Array} */ -proto.clarifai.api.Annotation.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 3)); +proto.clarifai.api.Key.prototype.getScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.Annotation} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.setScopesList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.addScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.clearScopesList = function() { + return this.setScopesList([]); +}; + + +/** + * repeated string endpoints = 7; + * @return {!Array} + */ +proto.clarifai.api.Key.prototype.getEndpointsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.setEndpointsList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.addEndpoints = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); +}; + + +/** + * repeated App apps = 4; + * @return {!Array} + */ +proto.clarifai.api.Key.prototype.getAppsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.App, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.Key.prototype.setAppsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.clarifai.api.App=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.App} + */ +proto.clarifai.api.Key.prototype.addApps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.App, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.clearAppsList = function() { + return this.setAppsList([]); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Key.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Key} returns this +*/ +proto.clarifai.api.Key.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.Key.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -3253,36 +22244,36 @@ proto.clarifai.api.Annotation.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Annotation.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.Key.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional google.protobuf.Struct annotation_info = 13; - * @return {?proto.google.protobuf.Struct} + * optional google.protobuf.Timestamp expires_at = 6; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Annotation.prototype.getAnnotationInfo = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13)); +proto.clarifai.api.Key.prototype.getExpiresAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.Annotation} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.setAnnotationInfo = function(value) { - return jspb.Message.setWrapperField(this, 13, value); +proto.clarifai.api.Key.prototype.setExpiresAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.clearAnnotationInfo = function() { - return this.setAnnotationInfo(undefined); +proto.clarifai.api.Key.prototype.clearExpiresAt = function() { + return this.setExpiresAt(undefined); }; @@ -3290,126 +22281,550 @@ proto.clarifai.api.Annotation.prototype.clearAnnotationInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Annotation.prototype.hasAnnotationInfo = function() { - return jspb.Message.getField(this, 13) != null; +proto.clarifai.api.Key.prototype.hasExpiresAt = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional string user_id = 15; - * @return {string} + * repeated string authorized_idp_ids = 9; + * @return {!Array} */ -proto.clarifai.api.Annotation.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +proto.clarifai.api.Key.prototype.getAuthorizedIdpIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Key} returns this + */ +proto.clarifai.api.Key.prototype.setAuthorizedIdpIdsList = function(value) { + return jspb.Message.setField(this, 9, value || []); }; /** * @param {string} value - * @return {!proto.clarifai.api.Annotation} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); +proto.clarifai.api.Key.prototype.addAuthorizedIdpIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); }; /** - * optional string model_version_id = 16; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Key} returns this */ -proto.clarifai.api.Annotation.prototype.getModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +proto.clarifai.api.Key.prototype.clearAuthorizedIdpIdsList = function() { + return this.setAuthorizedIdpIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Model.repeatedFields_ = [20,21,25,31,32]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Model.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Model.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Model} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Model.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 4, ""), + outputInfo: (f = msg.getOutputInfo()) && proto.clarifai.api.OutputInfo.toObject(includeInstance, f), + modelVersion: (f = msg.getModelVersion()) && proto.clarifai.api.ModelVersion.toObject(includeInstance, f), + displayName: jspb.Message.getFieldWithDefault(msg, 7, ""), + userId: jspb.Message.getFieldWithDefault(msg, 9, ""), + defaultEvalInfo: (f = msg.getDefaultEvalInfo()) && proto.clarifai.api.EvalInfo.toObject(includeInstance, f), + modelTypeId: jspb.Message.getFieldWithDefault(msg, 14, ""), + task: jspb.Message.getFieldWithDefault(msg, 26, ""), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + description: jspb.Message.getFieldWithDefault(msg, 16, ""), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + presets: (f = msg.getPresets()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + notes: jspb.Message.getFieldWithDefault(msg, 18, ""), + toolkitsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f, + useCasesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, + languagesList: (f = jspb.Message.getRepeatedField(msg, 25)) == null ? undefined : f, + languagesFullList: jspb.Message.toObjectList(msg.getLanguagesFullList(), + proto.clarifai.api.FullTag.toObject, includeInstance), + checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 32)) == null ? undefined : f, + isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), + starCount: jspb.Message.getFieldWithDefault(msg, 23, 0), + workflowRecommended: (f = msg.getWorkflowRecommended()) && google_protobuf_wrappers_pb.BoolValue.toObject(includeInstance, f), + bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Model} + */ +proto.clarifai.api.Model.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Model; + return proto.clarifai.api.Model.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Model} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Model} + */ +proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 19: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 5: + var value = new proto.clarifai.api.OutputInfo; + reader.readMessage(value,proto.clarifai.api.OutputInfo.deserializeBinaryFromReader); + msg.setOutputInfo(value); + break; + case 6: + var value = new proto.clarifai.api.ModelVersion; + reader.readMessage(value,proto.clarifai.api.ModelVersion.deserializeBinaryFromReader); + msg.setModelVersion(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setDisplayName(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 30: + var value = new proto.clarifai.api.EvalInfo; + reader.readMessage(value,proto.clarifai.api.EvalInfo.deserializeBinaryFromReader); + msg.setDefaultEvalInfo(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setModelTypeId(value); + break; + case 26: + var value = /** @type {string} */ (reader.readString()); + msg.setTask(value); + break; + case 15: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 17: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 27: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setPresets(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setNotes(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.addToolkits(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.addUseCases(value); + break; + case 25: + var value = /** @type {string} */ (reader.readString()); + msg.addLanguages(value); + break; + case 31: + var value = new proto.clarifai.api.FullTag; + reader.readMessage(value,proto.clarifai.api.FullTag.deserializeBinaryFromReader); + msg.addLanguagesFull(value); + break; + case 32: + var value = /** @type {string} */ (reader.readString()); + msg.addCheckConsents(value); + break; + case 22: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsStarred(value); + break; + case 23: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStarCount(value); + break; + case 29: + var value = new google_protobuf_wrappers_pb.BoolValue; + reader.readMessage(value,google_protobuf_wrappers_pb.BoolValue.deserializeBinaryFromReader); + msg.setWorkflowRecommended(value); + break; + case 33: + var value = new proto.clarifai.api.BookmarkOrigin; + reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader); + msg.setBookmarkOrigin(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {string} value - * @return {!proto.clarifai.api.Annotation} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Annotation.prototype.setModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); +proto.clarifai.api.Model.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Model.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional string embed_model_version_id = 14; - * @return {string} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Model} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Annotation.prototype.getEmbedModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 19, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getOutputInfo(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.OutputInfo.serializeBinaryToWriter + ); + } + f = message.getModelVersion(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.ModelVersion.serializeBinaryToWriter + ); + } + f = message.getDisplayName(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getDefaultEvalInfo(); + if (f != null) { + writer.writeMessage( + 30, + f, + proto.clarifai.api.EvalInfo.serializeBinaryToWriter + ); + } + f = message.getModelTypeId(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getTask(); + if (f.length > 0) { + writer.writeString( + 26, + f + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 17, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getPresets(); + if (f != null) { + writer.writeMessage( + 27, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getNotes(); + if (f.length > 0) { + writer.writeString( + 18, + f + ); + } + f = message.getToolkitsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 20, + f + ); + } + f = message.getUseCasesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 21, + f + ); + } + f = message.getLanguagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 25, + f + ); + } + f = message.getLanguagesFullList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 31, + f, + proto.clarifai.api.FullTag.serializeBinaryToWriter + ); + } + f = message.getCheckConsentsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 32, + f + ); + } + f = message.getIsStarred(); + if (f) { + writer.writeBool( + 22, + f + ); + } + f = message.getStarCount(); + if (f !== 0) { + writer.writeInt32( + 23, + f + ); + } + f = message.getWorkflowRecommended(); + if (f != null) { + writer.writeMessage( + 29, + f, + google_protobuf_wrappers_pb.BoolValue.serializeBinaryToWriter + ); + } + f = message.getBookmarkOrigin(); + if (f != null) { + writer.writeMessage( + 33, + f, + proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter + ); + } }; /** - * @param {string} value - * @return {!proto.clarifai.api.Annotation} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.Annotation.prototype.setEmbedModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); +proto.clarifai.api.Model.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional status.Status status = 7; - * @return {?proto.clarifai.api.status.Status} + * @param {string} value + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 7)); -}; - - -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.Annotation} returns this -*/ -proto.clarifai.api.Annotation.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.Model.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Annotation} returns this + * optional string name = 2; + * @return {string} */ -proto.clarifai.api.Annotation.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.Model.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.hasStatus = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.Model.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional google.protobuf.Timestamp created_at = 8; + * optional google.protobuf.Timestamp created_at = 3; * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Annotation.prototype.getCreatedAt = function() { +proto.clarifai.api.Model.prototype.getCreatedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 8, value); +proto.clarifai.api.Model.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.clearCreatedAt = function() { +proto.clarifai.api.Model.prototype.clearCreatedAt = function() { return this.setCreatedAt(undefined); }; @@ -3418,35 +22833,35 @@ proto.clarifai.api.Annotation.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Annotation.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.Model.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional google.protobuf.Timestamp modified_at = 9; + * optional google.protobuf.Timestamp modified_at = 19; * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Annotation.prototype.getModifiedAt = function() { +proto.clarifai.api.Model.prototype.getModifiedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 19)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.clarifai.api.Model.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 19, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.clearModifiedAt = function() { +proto.clarifai.api.Model.prototype.clearModifiedAt = function() { return this.setModifiedAt(undefined); }; @@ -3455,72 +22870,54 @@ proto.clarifai.api.Annotation.prototype.clearModifiedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Annotation.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional bool trusted = 10; - * @return {boolean} - */ -proto.clarifai.api.Annotation.prototype.getTrusted = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.Annotation} returns this - */ -proto.clarifai.api.Annotation.prototype.setTrusted = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); +proto.clarifai.api.Model.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 19) != null; }; /** - * optional bool input_level = 17; - * @return {boolean} + * optional string app_id = 4; + * @return {string} */ -proto.clarifai.api.Annotation.prototype.getInputLevel = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); +proto.clarifai.api.Model.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Annotation} returns this + * @param {string} value + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.setInputLevel = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); +proto.clarifai.api.Model.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional google.protobuf.Struct consensus_info = 18; - * @return {?proto.google.protobuf.Struct} + * optional OutputInfo output_info = 5; + * @return {?proto.clarifai.api.OutputInfo} */ -proto.clarifai.api.Annotation.prototype.getConsensusInfo = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 18)); +proto.clarifai.api.Model.prototype.getOutputInfo = function() { + return /** @type{?proto.clarifai.api.OutputInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.OutputInfo, 5)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.Annotation} returns this + * @param {?proto.clarifai.api.OutputInfo|undefined} value + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.setConsensusInfo = function(value) { - return jspb.Message.setWrapperField(this, 18, value); +proto.clarifai.api.Model.prototype.setOutputInfo = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Annotation} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.Annotation.prototype.clearConsensusInfo = function() { - return this.setConsensusInfo(undefined); +proto.clarifai.api.Model.prototype.clearOutputInfo = function() { + return this.setOutputInfo(undefined); }; @@ -3528,432 +22925,182 @@ proto.clarifai.api.Annotation.prototype.clearConsensusInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Annotation.prototype.hasConsensusInfo = function() { - return jspb.Message.getField(this, 18) != null; -}; - - -/** - * optional string task_id = 19; - * @return {string} - */ -proto.clarifai.api.Annotation.prototype.getTaskId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Annotation} returns this - */ -proto.clarifai.api.Annotation.prototype.setTaskId = function(value) { - return jspb.Message.setProto3StringField(this, 19, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.App.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.App.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.App} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.App.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - defaultLanguage: jspb.Message.getFieldWithDefault(msg, 3, ""), - defaultWorkflowId: jspb.Message.getFieldWithDefault(msg, 4, ""), - userId: jspb.Message.getFieldWithDefault(msg, 5, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - legalConsentStatus: jspb.Message.getFieldWithDefault(msg, 7, 0), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 14, ""), - sampleMs: jspb.Message.getFieldWithDefault(msg, 15, 0), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - dataTierId: jspb.Message.getFieldWithDefault(msg, 18, ""), - isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), - starCount: jspb.Message.getFieldWithDefault(msg, 20, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.App} - */ -proto.clarifai.api.App.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.App; - return proto.clarifai.api.App.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Model.prototype.hasOutputInfo = function() { + return jspb.Message.getField(this, 5) != null; }; -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.App} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.App} - */ -proto.clarifai.api.App.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDefaultLanguage(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDefaultWorkflowId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 17: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLegalConsentStatus(value); - break; - case 13: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 15: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSampleMs(value); - break; - case 16: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setDataTierId(value); - break; - case 19: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsStarred(value); - break; - case 20: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStarCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +/** + * optional ModelVersion model_version = 6; + * @return {?proto.clarifai.api.ModelVersion} + */ +proto.clarifai.api.Model.prototype.getModelVersion = function() { + return /** @type{?proto.clarifai.api.ModelVersion} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ModelVersion, 6)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {?proto.clarifai.api.ModelVersion|undefined} value + * @return {!proto.clarifai.api.Model} returns this +*/ +proto.clarifai.api.Model.prototype.setModelVersion = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.App.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Model.prototype.clearModelVersion = function() { + return this.setModelVersion(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.App} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.App.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDefaultLanguage(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getDefaultWorkflowId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 17, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLegalConsentStatus(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 13, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getSampleMs(); - if (f !== 0) { - writer.writeUint32( - 15, - f - ); - } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 16, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter - ); - } - f = message.getDataTierId(); - if (f.length > 0) { - writer.writeString( - 18, - f - ); - } - f = message.getIsStarred(); - if (f) { - writer.writeBool( - 19, - f - ); - } - f = message.getStarCount(); - if (f !== 0) { - writer.writeInt32( - 20, - f - ); - } +proto.clarifai.api.Model.prototype.hasModelVersion = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional string id = 1; + * optional string display_name = 7; * @return {string} */ -proto.clarifai.api.App.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Model.prototype.getDisplayName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.Model.prototype.setDisplayName = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * optional string name = 2; + * optional string user_id = 9; * @return {string} */ -proto.clarifai.api.App.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.Model.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.Model.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); }; /** - * optional string default_language = 3; - * @return {string} + * optional EvalInfo default_eval_info = 30; + * @return {?proto.clarifai.api.EvalInfo} */ -proto.clarifai.api.App.prototype.getDefaultLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.Model.prototype.getDefaultEvalInfo = function() { + return /** @type{?proto.clarifai.api.EvalInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.EvalInfo, 30)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.App} returns this + * @param {?proto.clarifai.api.EvalInfo|undefined} value + * @return {!proto.clarifai.api.Model} returns this +*/ +proto.clarifai.api.Model.prototype.setDefaultEvalInfo = function(value) { + return jspb.Message.setWrapperField(this, 30, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setDefaultLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.Model.prototype.clearDefaultEvalInfo = function() { + return this.setDefaultEvalInfo(undefined); }; /** - * optional string default_workflow_id = 4; + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Model.prototype.hasDefaultEvalInfo = function() { + return jspb.Message.getField(this, 30) != null; +}; + + +/** + * optional string model_type_id = 14; * @return {string} */ -proto.clarifai.api.App.prototype.getDefaultWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.Model.prototype.getModelTypeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setDefaultWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.Model.prototype.setModelTypeId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); }; /** - * optional string user_id = 5; + * optional string task = 26; * @return {string} */ -proto.clarifai.api.App.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.Model.prototype.getTask = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.Model.prototype.setTask = function(value) { + return jspb.Message.setProto3StringField(this, 26, value); }; /** - * optional google.protobuf.Timestamp created_at = 6; - * @return {?proto.google.protobuf.Timestamp} + * optional Visibility visibility = 15; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.App.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +proto.clarifai.api.Model.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 15)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.App} returns this + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.Model.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 15, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.Model.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; @@ -3961,91 +23108,91 @@ proto.clarifai.api.App.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.App.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.Model.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 15) != null; }; /** - * optional google.protobuf.Timestamp modified_at = 17; - * @return {?proto.google.protobuf.Timestamp} + * optional string description = 16; + * @return {string} */ -proto.clarifai.api.App.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17)); +proto.clarifai.api.Model.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.App} returns this -*/ -proto.clarifai.api.App.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 17, value); + * @param {string} value + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.App} returns this + * optional google.protobuf.Struct metadata = 17; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.App.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.Model.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 17)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.App.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 17) != null; + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Model} returns this +*/ +proto.clarifai.api.Model.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** - * optional uint32 legal_consent_status = 7; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.getLegalConsentStatus = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.clarifai.api.Model.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.App} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.App.prototype.setLegalConsentStatus = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); +proto.clarifai.api.Model.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * optional google.protobuf.Struct metadata = 13; + * optional google.protobuf.Struct presets = 27; * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.App.prototype.getMetadata = function() { +proto.clarifai.api.Model.prototype.getPresets = function() { return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13)); + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 27)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 13, value); +proto.clarifai.api.Model.prototype.setPresets = function(value) { + return jspb.Message.setWrapperField(this, 27, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.Model.prototype.clearPresets = function() { + return this.setPresets(undefined); }; @@ -4053,135 +23200,322 @@ proto.clarifai.api.App.prototype.clearMetadata = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.App.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 13) != null; +proto.clarifai.api.Model.prototype.hasPresets = function() { + return jspb.Message.getField(this, 27) != null; }; /** - * optional string description = 14; + * optional string notes = 18; * @return {string} */ -proto.clarifai.api.App.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +proto.clarifai.api.Model.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.App} returns this + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); +proto.clarifai.api.Model.prototype.setNotes = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); }; /** - * optional uint32 sample_ms = 15; - * @return {number} + * repeated string toolkits = 20; + * @return {!Array} */ -proto.clarifai.api.App.prototype.getSampleMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +proto.clarifai.api.Model.prototype.getToolkitsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 20)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.App} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setSampleMs = function(value) { - return jspb.Message.setProto3IntField(this, 15, value); +proto.clarifai.api.Model.prototype.setToolkitsList = function(value) { + return jspb.Message.setField(this, 20, value || []); }; /** - * optional Visibility visibility = 16; - * @return {?proto.clarifai.api.Visibility} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 16)); +proto.clarifai.api.Model.prototype.addToolkits = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 20, value, opt_index); }; /** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.App} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.clearToolkitsList = function() { + return this.setToolkitsList([]); +}; + + +/** + * repeated string use_cases = 21; + * @return {!Array} + */ +proto.clarifai.api.Model.prototype.getUseCasesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.setUseCasesList = function(value) { + return jspb.Message.setField(this, 21, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.addUseCases = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 21, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.clearUseCasesList = function() { + return this.setUseCasesList([]); +}; + + +/** + * repeated string languages = 25; + * @return {!Array} + */ +proto.clarifai.api.Model.prototype.getLanguagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 25)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.setLanguagesList = function(value) { + return jspb.Message.setField(this, 25, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.addLanguages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 25, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.clearLanguagesList = function() { + return this.setLanguagesList([]); +}; + + +/** + * repeated FullTag languages_full = 31; + * @return {!Array} + */ +proto.clarifai.api.Model.prototype.getLanguagesFullList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.FullTag, 31)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 16, value); +proto.clarifai.api.Model.prototype.setLanguagesFullList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 31, value); +}; + + +/** + * @param {!proto.clarifai.api.FullTag=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.FullTag} + */ +proto.clarifai.api.Model.prototype.addLanguagesFull = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.clarifai.api.FullTag, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.clearLanguagesFullList = function() { + return this.setLanguagesFullList([]); +}; + + +/** + * repeated string check_consents = 32; + * @return {!Array} + */ +proto.clarifai.api.Model.prototype.getCheckConsentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 32)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.setCheckConsentsList = function(value) { + return jspb.Message.setField(this, 32, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.addCheckConsents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 32, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.clearCheckConsentsList = function() { + return this.setCheckConsentsList([]); +}; + + +/** + * optional bool is_starred = 22; + * @return {boolean} + */ +proto.clarifai.api.Model.prototype.getIsStarred = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.setIsStarred = function(value) { + return jspb.Message.setProto3BooleanField(this, 22, value); +}; + + +/** + * optional int32 star_count = 23; + * @return {number} + */ +proto.clarifai.api.Model.prototype.getStarCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Model} returns this + */ +proto.clarifai.api.Model.prototype.setStarCount = function(value) { + return jspb.Message.setProto3IntField(this, 23, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.App} returns this + * optional google.protobuf.BoolValue workflow_recommended = 29; + * @return {?proto.google.protobuf.BoolValue} */ -proto.clarifai.api.App.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.Model.prototype.getWorkflowRecommended = function() { + return /** @type{?proto.google.protobuf.BoolValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.BoolValue, 29)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.App.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 16) != null; + * @param {?proto.google.protobuf.BoolValue|undefined} value + * @return {!proto.clarifai.api.Model} returns this +*/ +proto.clarifai.api.Model.prototype.setWorkflowRecommended = function(value) { + return jspb.Message.setWrapperField(this, 29, value); }; /** - * optional string data_tier_id = 18; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.getDataTierId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); +proto.clarifai.api.Model.prototype.clearWorkflowRecommended = function() { + return this.setWorkflowRecommended(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.App} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.App.prototype.setDataTierId = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); +proto.clarifai.api.Model.prototype.hasWorkflowRecommended = function() { + return jspb.Message.getField(this, 29) != null; }; /** - * optional bool is_starred = 19; - * @return {boolean} + * optional BookmarkOrigin bookmark_origin = 33; + * @return {?proto.clarifai.api.BookmarkOrigin} */ -proto.clarifai.api.App.prototype.getIsStarred = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false)); +proto.clarifai.api.Model.prototype.getBookmarkOrigin = function() { + return /** @type{?proto.clarifai.api.BookmarkOrigin} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 33)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.App} returns this - */ -proto.clarifai.api.App.prototype.setIsStarred = function(value) { - return jspb.Message.setProto3BooleanField(this, 19, value); + * @param {?proto.clarifai.api.BookmarkOrigin|undefined} value + * @return {!proto.clarifai.api.Model} returns this +*/ +proto.clarifai.api.Model.prototype.setBookmarkOrigin = function(value) { + return jspb.Message.setWrapperField(this, 33, value); }; /** - * optional int32 star_count = 20; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Model} returns this */ -proto.clarifai.api.App.prototype.getStarCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +proto.clarifai.api.Model.prototype.clearBookmarkOrigin = function() { + return this.setBookmarkOrigin(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.App} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.App.prototype.setStarCount = function(value) { - return jspb.Message.setProto3IntField(this, 20, value); +proto.clarifai.api.Model.prototype.hasBookmarkOrigin = function() { + return jspb.Message.getField(this, 33) != null; }; @@ -4201,8 +23535,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.AppQuery.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.AppQuery.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelReference.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelReference.toObject(opt_includeInstance, this); }; @@ -4211,13 +23545,17 @@ proto.clarifai.api.AppQuery.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.AppQuery} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelReference} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AppQuery.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelReference.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + url: jspb.Message.getFieldWithDefault(msg, 3, ""), + name: jspb.Message.getFieldWithDefault(msg, 4, ""), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -4231,23 +23569,23 @@ proto.clarifai.api.AppQuery.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.AppQuery} + * @return {!proto.clarifai.api.ModelReference} */ -proto.clarifai.api.AppQuery.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelReference.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.AppQuery; - return proto.clarifai.api.AppQuery.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelReference; + return proto.clarifai.api.ModelReference.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.AppQuery} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelReference} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.AppQuery} + * @return {!proto.clarifai.api.ModelReference} */ -proto.clarifai.api.AppQuery.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelReference.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4255,9 +23593,26 @@ proto.clarifai.api.AppQuery.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 4: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; default: reader.skipField(); break; @@ -4271,9 +23626,9 @@ proto.clarifai.api.AppQuery.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.AppQuery.prototype.serializeBinary = function() { +proto.clarifai.api.ModelReference.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.AppQuery.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelReference.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4281,47 +23636,160 @@ proto.clarifai.api.AppQuery.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.AppQuery} message + * @param {!proto.clarifai.api.ModelReference} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AppQuery.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelReference.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } }; /** - * optional string name = 1; + * optional string id = 1; * @return {string} */ -proto.clarifai.api.AppQuery.prototype.getName = function() { +proto.clarifai.api.ModelReference.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.AppQuery} returns this + * @return {!proto.clarifai.api.ModelReference} returns this */ -proto.clarifai.api.AppQuery.prototype.setName = function(value) { +proto.clarifai.api.ModelReference.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.ModelReference.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.clarifai.api.ModelReference} returns this */ -proto.clarifai.api.Collaborator.repeatedFields_ = [4,5]; +proto.clarifai.api.ModelReference.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string url = 3; + * @return {string} + */ +proto.clarifai.api.ModelReference.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ModelReference} returns this + */ +proto.clarifai.api.ModelReference.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string name = 4; + * @return {string} + */ +proto.clarifai.api.ModelReference.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ModelReference} returns this + */ +proto.clarifai.api.ModelReference.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional google.protobuf.Struct metadata = 5; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.ModelReference.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.ModelReference} returns this +*/ +proto.clarifai.api.ModelReference.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelReference} returns this + */ +proto.clarifai.api.ModelReference.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ModelReference.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 5) != null; +}; + + @@ -4338,8 +23806,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Collaborator.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Collaborator.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelVersionInputExample.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelVersionInputExample.toObject(opt_includeInstance, this); }; @@ -4348,20 +23816,18 @@ proto.clarifai.api.Collaborator.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Collaborator} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelVersionInputExample} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Collaborator.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelVersionInputExample.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f), - user: (f = msg.getUser()) && proto.clarifai.api.User.toObject(includeInstance, f), - scopesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - endpointsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 5, ""), + description: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { @@ -4375,23 +23841,23 @@ proto.clarifai.api.Collaborator.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Collaborator} + * @return {!proto.clarifai.api.ModelVersionInputExample} */ -proto.clarifai.api.Collaborator.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelVersionInputExample.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Collaborator; - return proto.clarifai.api.Collaborator.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelVersionInputExample; + return proto.clarifai.api.ModelVersionInputExample.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Collaborator} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelVersionInputExample} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Collaborator} + * @return {!proto.clarifai.api.ModelVersionInputExample} */ -proto.clarifai.api.Collaborator.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelVersionInputExample.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4403,37 +23869,25 @@ proto.clarifai.api.Collaborator.deserializeBinaryFromReader = function(msg, read msg.setId(value); break; case 2: - var value = new proto.clarifai.api.App; - reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader); - msg.setApp(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); break; case 3: - var value = new proto.clarifai.api.User; - reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader); - msg.setUser(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersionId(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addScopes(value); + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.addEndpoints(value); + msg.setName(value); break; case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDeletedAt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; default: reader.skipField(); @@ -4448,9 +23902,9 @@ proto.clarifai.api.Collaborator.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Collaborator.prototype.serializeBinary = function() { +proto.clarifai.api.ModelVersionInputExample.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Collaborator.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelVersionInputExample.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4458,11 +23912,11 @@ proto.clarifai.api.Collaborator.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Collaborator} message + * @param {!proto.clarifai.api.ModelVersionInputExample} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Collaborator.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelVersionInputExample.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -4471,291 +23925,124 @@ proto.clarifai.api.Collaborator.serializeBinaryToWriter = function(message, writ f ); } - f = message.getApp(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.App.serializeBinaryToWriter - ); - } - f = message.getUser(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.User.serializeBinaryToWriter - ); - } - f = message.getScopesList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedString( - 4, + writer.writeString( + 2, f ); } - f = message.getEndpointsList(); + f = message.getModelVersionId(); if (f.length > 0) { - writer.writeRepeatedString( - 5, + writer.writeString( + 3, f ); } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); + f = message.getData(); if (f != null) { writer.writeMessage( - 7, + 4, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.Data.serializeBinaryToWriter ); } - f = message.getDeletedAt(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 6, + f ); } }; /** - * optional string id = 1; - * @return {string} - */ -proto.clarifai.api.Collaborator.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Collaborator} returns this - */ -proto.clarifai.api.Collaborator.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional App app = 2; - * @return {?proto.clarifai.api.App} - */ -proto.clarifai.api.Collaborator.prototype.getApp = function() { - return /** @type{?proto.clarifai.api.App} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.App, 2)); -}; - - -/** - * @param {?proto.clarifai.api.App|undefined} value - * @return {!proto.clarifai.api.Collaborator} returns this -*/ -proto.clarifai.api.Collaborator.prototype.setApp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaborator} returns this - */ -proto.clarifai.api.Collaborator.prototype.clearApp = function() { - return this.setApp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.Collaborator.prototype.hasApp = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional User user = 3; - * @return {?proto.clarifai.api.User} - */ -proto.clarifai.api.Collaborator.prototype.getUser = function() { - return /** @type{?proto.clarifai.api.User} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.User, 3)); -}; - - -/** - * @param {?proto.clarifai.api.User|undefined} value - * @return {!proto.clarifai.api.Collaborator} returns this -*/ -proto.clarifai.api.Collaborator.prototype.setUser = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaborator} returns this - */ -proto.clarifai.api.Collaborator.prototype.clearUser = function() { - return this.setUser(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.Collaborator.prototype.hasUser = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated string scopes = 4; - * @return {!Array} - */ -proto.clarifai.api.Collaborator.prototype.getScopesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Collaborator} returns this - */ -proto.clarifai.api.Collaborator.prototype.setScopesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaborator} returns this - */ -proto.clarifai.api.Collaborator.prototype.addScopes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Collaborator} returns this - */ -proto.clarifai.api.Collaborator.prototype.clearScopesList = function() { - return this.setScopesList([]); -}; - - -/** - * repeated string endpoints = 5; - * @return {!Array} - */ -proto.clarifai.api.Collaborator.prototype.getEndpointsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Collaborator} returns this - */ -proto.clarifai.api.Collaborator.prototype.setEndpointsList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaborator} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.Collaborator.prototype.addEndpoints = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +proto.clarifai.api.ModelVersionInputExample.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Collaborator} returns this + * @param {string} value + * @return {!proto.clarifai.api.ModelVersionInputExample} returns this */ -proto.clarifai.api.Collaborator.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); +proto.clarifai.api.ModelVersionInputExample.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional google.protobuf.Timestamp created_at = 6; - * @return {?proto.google.protobuf.Timestamp} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.Collaborator.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +proto.clarifai.api.ModelVersionInputExample.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Collaborator} returns this -*/ -proto.clarifai.api.Collaborator.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + * @param {string} value + * @return {!proto.clarifai.api.ModelVersionInputExample} returns this + */ +proto.clarifai.api.ModelVersionInputExample.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaborator} returns this + * optional string model_version_id = 3; + * @return {string} */ -proto.clarifai.api.Collaborator.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.ModelVersionInputExample.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.ModelVersionInputExample} returns this */ -proto.clarifai.api.Collaborator.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.ModelVersionInputExample.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional google.protobuf.Timestamp modified_at = 7; - * @return {?proto.google.protobuf.Timestamp} + * optional Data data = 4; + * @return {?proto.clarifai.api.Data} */ -proto.clarifai.api.Collaborator.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); +proto.clarifai.api.ModelVersionInputExample.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 4)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Collaborator} returns this + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.ModelVersionInputExample} returns this */ -proto.clarifai.api.Collaborator.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.ModelVersionInputExample.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaborator} returns this + * @return {!proto.clarifai.api.ModelVersionInputExample} returns this */ -proto.clarifai.api.Collaborator.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.ModelVersionInputExample.prototype.clearData = function() { + return this.setData(undefined); }; @@ -4763,56 +24050,48 @@ proto.clarifai.api.Collaborator.prototype.clearModifiedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Collaborator.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.ModelVersionInputExample.prototype.hasData = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional google.protobuf.Timestamp deleted_at = 8; - * @return {?proto.google.protobuf.Timestamp} + * optional string name = 5; + * @return {string} */ -proto.clarifai.api.Collaborator.prototype.getDeletedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +proto.clarifai.api.ModelVersionInputExample.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Collaborator} returns this -*/ -proto.clarifai.api.Collaborator.prototype.setDeletedAt = function(value) { - return jspb.Message.setWrapperField(this, 8, value); + * @param {string} value + * @return {!proto.clarifai.api.ModelVersionInputExample} returns this + */ +proto.clarifai.api.ModelVersionInputExample.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaborator} returns this + * optional string description = 6; + * @return {string} */ -proto.clarifai.api.Collaborator.prototype.clearDeletedAt = function() { - return this.setDeletedAt(undefined); +proto.clarifai.api.ModelVersionInputExample.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.ModelVersionInputExample} returns this */ -proto.clarifai.api.Collaborator.prototype.hasDeletedAt = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.ModelVersionInputExample.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.Collaboration.repeatedFields_ = [3,4]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4828,8 +24107,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Collaboration.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Collaboration.toObject(opt_includeInstance, this); +proto.clarifai.api.OutputInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.OutputInfo.toObject(opt_includeInstance, this); }; @@ -4838,17 +24117,17 @@ proto.clarifai.api.Collaboration.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Collaboration} msg The msg instance to transform. + * @param {!proto.clarifai.api.OutputInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Collaboration.toObject = function(includeInstance, msg) { +proto.clarifai.api.OutputInfo.toObject = function(includeInstance, msg) { var f, obj = { - app: (f = msg.getApp()) && proto.clarifai.api.App.toObject(includeInstance, f), - appOwner: (f = msg.getAppOwner()) && proto.clarifai.api.User.toObject(includeInstance, f), - scopesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + outputConfig: (f = msg.getOutputConfig()) && proto.clarifai.api.OutputConfig.toObject(includeInstance, f), + message: jspb.Message.getFieldWithDefault(msg, 3, ""), + fieldsMap: (f = msg.getFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -4862,23 +24141,23 @@ proto.clarifai.api.Collaboration.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Collaboration} + * @return {!proto.clarifai.api.OutputInfo} */ -proto.clarifai.api.Collaboration.deserializeBinary = function(bytes) { +proto.clarifai.api.OutputInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Collaboration; - return proto.clarifai.api.Collaboration.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.OutputInfo; + return proto.clarifai.api.OutputInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Collaboration} msg The message object to deserialize into. + * @param {!proto.clarifai.api.OutputInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Collaboration} + * @return {!proto.clarifai.api.OutputInfo} */ -proto.clarifai.api.Collaboration.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.OutputInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4886,27 +24165,28 @@ proto.clarifai.api.Collaboration.deserializeBinaryFromReader = function(msg, rea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.App; - reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader); - msg.setApp(value); + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); break; case 2: - var value = new proto.clarifai.api.User; - reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader); - msg.setAppOwner(value); + var value = new proto.clarifai.api.OutputConfig; + reader.readMessage(value,proto.clarifai.api.OutputConfig.deserializeBinaryFromReader); + msg.setOutputConfig(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.addScopes(value); + msg.setMessage(value); break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addEndpoints(value); + case 6: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setFieldsMap(value); break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); + case 7: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setParams(value); break; default: reader.skipField(); @@ -4921,9 +24201,9 @@ proto.clarifai.api.Collaboration.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Collaboration.prototype.serializeBinary = function() { +proto.clarifai.api.OutputInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Collaboration.serializeBinaryToWriter(this, writer); + proto.clarifai.api.OutputInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4931,78 +24211,79 @@ proto.clarifai.api.Collaboration.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Collaboration} message + * @param {!proto.clarifai.api.OutputInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Collaboration.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.OutputInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getApp(); + f = message.getData(); if (f != null) { writer.writeMessage( 1, f, - proto.clarifai.api.App.serializeBinaryToWriter + proto.clarifai.api.Data.serializeBinaryToWriter ); } - f = message.getAppOwner(); + f = message.getOutputConfig(); if (f != null) { writer.writeMessage( 2, f, - proto.clarifai.api.User.serializeBinaryToWriter + proto.clarifai.api.OutputConfig.serializeBinaryToWriter ); } - f = message.getScopesList(); + f = message.getMessage(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 3, f ); } - f = message.getEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f + f = message.getFieldsMap(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } - f = message.getCreatedAt(); + f = message.getParams(); if (f != null) { writer.writeMessage( - 5, + 7, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } }; /** - * optional App app = 1; - * @return {?proto.clarifai.api.App} + * optional Data data = 1; + * @return {?proto.clarifai.api.Data} */ -proto.clarifai.api.Collaboration.prototype.getApp = function() { - return /** @type{?proto.clarifai.api.App} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.App, 1)); +proto.clarifai.api.OutputInfo.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 1)); }; /** - * @param {?proto.clarifai.api.App|undefined} value - * @return {!proto.clarifai.api.Collaboration} returns this + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.setApp = function(value) { +proto.clarifai.api.OutputInfo.prototype.setData = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaboration} returns this + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.clearApp = function() { - return this.setApp(undefined); +proto.clarifai.api.OutputInfo.prototype.clearData = function() { + return this.setData(undefined); }; @@ -5010,36 +24291,36 @@ proto.clarifai.api.Collaboration.prototype.clearApp = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Collaboration.prototype.hasApp = function() { +proto.clarifai.api.OutputInfo.prototype.hasData = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional User app_owner = 2; - * @return {?proto.clarifai.api.User} + * optional OutputConfig output_config = 2; + * @return {?proto.clarifai.api.OutputConfig} */ -proto.clarifai.api.Collaboration.prototype.getAppOwner = function() { - return /** @type{?proto.clarifai.api.User} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.User, 2)); +proto.clarifai.api.OutputInfo.prototype.getOutputConfig = function() { + return /** @type{?proto.clarifai.api.OutputConfig} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.OutputConfig, 2)); }; /** - * @param {?proto.clarifai.api.User|undefined} value - * @return {!proto.clarifai.api.Collaboration} returns this + * @param {?proto.clarifai.api.OutputConfig|undefined} value + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.setAppOwner = function(value) { +proto.clarifai.api.OutputInfo.prototype.setOutputConfig = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaboration} returns this + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.clearAppOwner = function() { - return this.setAppOwner(undefined); +proto.clarifai.api.OutputInfo.prototype.clearOutputConfig = function() { + return this.setOutputConfig(undefined); }; @@ -5047,110 +24328,91 @@ proto.clarifai.api.Collaboration.prototype.clearAppOwner = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Collaboration.prototype.hasAppOwner = function() { +proto.clarifai.api.OutputInfo.prototype.hasOutputConfig = function() { return jspb.Message.getField(this, 2) != null; }; /** - * repeated string scopes = 3; - * @return {!Array} - */ -proto.clarifai.api.Collaboration.prototype.getScopesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Collaboration} returns this + * optional string message = 3; + * @return {string} */ -proto.clarifai.api.Collaboration.prototype.setScopesList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.OutputInfo.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaboration} returns this - */ -proto.clarifai.api.Collaboration.prototype.addScopes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Collaboration} returns this + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.clearScopesList = function() { - return this.setScopesList([]); +proto.clarifai.api.OutputInfo.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * repeated string endpoints = 4; - * @return {!Array} + * optional google.protobuf.Struct fields_map = 6; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Collaboration.prototype.getEndpointsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.clarifai.api.OutputInfo.prototype.getFieldsMap = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Collaboration} returns this - */ -proto.clarifai.api.Collaboration.prototype.setEndpointsList = function(value) { - return jspb.Message.setField(this, 4, value || []); + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.OutputInfo} returns this +*/ +proto.clarifai.api.OutputInfo.prototype.setFieldsMap = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaboration} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.addEndpoints = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.OutputInfo.prototype.clearFieldsMap = function() { + return this.setFieldsMap(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Collaboration} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Collaboration.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); +proto.clarifai.api.OutputInfo.prototype.hasFieldsMap = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional google.protobuf.Timestamp created_at = 5; - * @return {?proto.google.protobuf.Timestamp} + * optional google.protobuf.Struct params = 7; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Collaboration.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +proto.clarifai.api.OutputInfo.prototype.getParams = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Collaboration} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.OutputInfo.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collaboration} returns this + * @return {!proto.clarifai.api.OutputInfo} returns this */ -proto.clarifai.api.Collaboration.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.OutputInfo.prototype.clearParams = function() { + return this.setParams(undefined); }; @@ -5158,8 +24420,8 @@ proto.clarifai.api.Collaboration.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Collaboration.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.OutputInfo.prototype.hasParams = function() { + return jspb.Message.getField(this, 7) != null; }; @@ -5179,8 +24441,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Audio.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Audio.toObject(opt_includeInstance, this); +proto.clarifai.api.InputInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputInfo.toObject(opt_includeInstance, this); }; @@ -5189,17 +24451,15 @@ proto.clarifai.api.Audio.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Audio} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Audio.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputInfo.toObject = function(includeInstance, msg) { var f, obj = { - url: jspb.Message.getFieldWithDefault(msg, 1, ""), - base64: msg.getBase64_asB64(), - allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), - audioInfo: (f = msg.getAudioInfo()) && proto.clarifai.api.AudioInfo.toObject(includeInstance, f) + fieldsMap: (f = msg.getFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + baseEmbedModel: (f = msg.getBaseEmbedModel()) && proto.clarifai.api.Model.toObject(includeInstance, f) }; if (includeInstance) { @@ -5213,23 +24473,23 @@ proto.clarifai.api.Audio.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Audio} + * @return {!proto.clarifai.api.InputInfo} */ -proto.clarifai.api.Audio.deserializeBinary = function(bytes) { +proto.clarifai.api.InputInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Audio; - return proto.clarifai.api.Audio.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputInfo; + return proto.clarifai.api.InputInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Audio} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Audio} + * @return {!proto.clarifai.api.InputInfo} */ -proto.clarifai.api.Audio.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5237,26 +24497,19 @@ proto.clarifai.api.Audio.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setFieldsMap(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBase64(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowDuplicateUrl(value); - break; - case 5: - var value = new proto.clarifai.api.HostedURL; - reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); - msg.setHosted(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setParams(value); break; - case 6: - var value = new proto.clarifai.api.AudioInfo; - reader.readMessage(value,proto.clarifai.api.AudioInfo.deserializeBinaryFromReader); - msg.setAudioInfo(value); + case 3: + var value = new proto.clarifai.api.Model; + reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); + msg.setBaseEmbedModel(value); break; default: reader.skipField(); @@ -5271,165 +24524,111 @@ proto.clarifai.api.Audio.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Audio.prototype.serializeBinary = function() { +proto.clarifai.api.InputInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Audio.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Audio} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.Audio.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUrl(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBase64_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getAllowDuplicateUrl(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getHosted(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.clarifai.api.HostedURL.serializeBinaryToWriter - ); - } - f = message.getAudioInfo(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.clarifai.api.AudioInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string url = 1; - * @return {string} - */ -proto.clarifai.api.Audio.prototype.getUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Audio} returns this - */ -proto.clarifai.api.Audio.prototype.setUrl = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes base64 = 2; - * @return {!(string|Uint8Array)} - */ -proto.clarifai.api.Audio.prototype.getBase64 = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes base64 = 2; - * This is a type-conversion wrapper around `getBase64()` - * @return {string} - */ -proto.clarifai.api.Audio.prototype.getBase64_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBase64())); -}; - - -/** - * optional bytes base64 = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBase64()` - * @return {!Uint8Array} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.InputInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Audio.prototype.getBase64_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBase64())); +proto.clarifai.api.InputInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFieldsMap(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getBaseEmbedModel(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Model.serializeBinaryToWriter + ); + } }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.clarifai.api.Audio} returns this + * optional google.protobuf.Struct fields_map = 1; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Audio.prototype.setBase64 = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.clarifai.api.InputInfo.prototype.getFieldsMap = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); }; /** - * optional bool allow_duplicate_url = 4; - * @return {boolean} + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.InputInfo} returns this +*/ +proto.clarifai.api.InputInfo.prototype.setFieldsMap = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InputInfo} returns this */ -proto.clarifai.api.Audio.prototype.getAllowDuplicateUrl = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.InputInfo.prototype.clearFieldsMap = function() { + return this.setFieldsMap(undefined); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Audio} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Audio.prototype.setAllowDuplicateUrl = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.InputInfo.prototype.hasFieldsMap = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional HostedURL hosted = 5; - * @return {?proto.clarifai.api.HostedURL} + * optional google.protobuf.Struct params = 2; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Audio.prototype.getHosted = function() { - return /** @type{?proto.clarifai.api.HostedURL} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 5)); +proto.clarifai.api.InputInfo.prototype.getParams = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2)); }; /** - * @param {?proto.clarifai.api.HostedURL|undefined} value - * @return {!proto.clarifai.api.Audio} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.InputInfo} returns this */ -proto.clarifai.api.Audio.prototype.setHosted = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.InputInfo.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Audio} returns this + * @return {!proto.clarifai.api.InputInfo} returns this */ -proto.clarifai.api.Audio.prototype.clearHosted = function() { - return this.setHosted(undefined); +proto.clarifai.api.InputInfo.prototype.clearParams = function() { + return this.setParams(undefined); }; @@ -5437,36 +24636,36 @@ proto.clarifai.api.Audio.prototype.clearHosted = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Audio.prototype.hasHosted = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.InputInfo.prototype.hasParams = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional AudioInfo audio_info = 6; - * @return {?proto.clarifai.api.AudioInfo} + * optional Model base_embed_model = 3; + * @return {?proto.clarifai.api.Model} */ -proto.clarifai.api.Audio.prototype.getAudioInfo = function() { - return /** @type{?proto.clarifai.api.AudioInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.AudioInfo, 6)); +proto.clarifai.api.InputInfo.prototype.getBaseEmbedModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 3)); }; /** - * @param {?proto.clarifai.api.AudioInfo|undefined} value - * @return {!proto.clarifai.api.Audio} returns this + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.InputInfo} returns this */ -proto.clarifai.api.Audio.prototype.setAudioInfo = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.InputInfo.prototype.setBaseEmbedModel = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Audio} returns this + * @return {!proto.clarifai.api.InputInfo} returns this */ -proto.clarifai.api.Audio.prototype.clearAudioInfo = function() { - return this.setAudioInfo(undefined); +proto.clarifai.api.InputInfo.prototype.clearBaseEmbedModel = function() { + return this.setBaseEmbedModel(undefined); }; @@ -5474,8 +24673,8 @@ proto.clarifai.api.Audio.prototype.clearAudioInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Audio.prototype.hasAudioInfo = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.InputInfo.prototype.hasBaseEmbedModel = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -5495,8 +24694,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.AudioInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.AudioInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.TrainInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TrainInfo.toObject(opt_includeInstance, this); }; @@ -5505,16 +24704,13 @@ proto.clarifai.api.AudioInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.AudioInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.TrainInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AudioInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.TrainInfo.toObject = function(includeInstance, msg) { var f, obj = { - audioFormat: jspb.Message.getFieldWithDefault(msg, 1, ""), - sampleRate: jspb.Message.getFieldWithDefault(msg, 2, 0), - durationSeconds: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - bitRate: jspb.Message.getFieldWithDefault(msg, 4, 0) + params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -5528,23 +24724,23 @@ proto.clarifai.api.AudioInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.AudioInfo} + * @return {!proto.clarifai.api.TrainInfo} */ -proto.clarifai.api.AudioInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.TrainInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.AudioInfo; - return proto.clarifai.api.AudioInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TrainInfo; + return proto.clarifai.api.TrainInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.AudioInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TrainInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.AudioInfo} + * @return {!proto.clarifai.api.TrainInfo} */ -proto.clarifai.api.AudioInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5552,20 +24748,9 @@ proto.clarifai.api.AudioInfo.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setAudioFormat(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSampleRate(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setDurationSeconds(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBitRate(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setParams(value); break; default: reader.skipField(); @@ -5580,9 +24765,9 @@ proto.clarifai.api.AudioInfo.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.AudioInfo.prototype.serializeBinary = function() { +proto.clarifai.api.TrainInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.AudioInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TrainInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5590,112 +24775,57 @@ proto.clarifai.api.AudioInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.AudioInfo} message + * @param {!proto.clarifai.api.TrainInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AudioInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TrainInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAudioFormat(); - if (f.length > 0) { - writer.writeString( + f = message.getParams(); + if (f != null) { + writer.writeMessage( 1, - f - ); - } - f = message.getSampleRate(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getDurationSeconds(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getBitRate(); - if (f !== 0) { - writer.writeInt32( - 4, - f + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } }; /** - * optional string audio_format = 1; - * @return {string} - */ -proto.clarifai.api.AudioInfo.prototype.getAudioFormat = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.AudioInfo} returns this - */ -proto.clarifai.api.AudioInfo.prototype.setAudioFormat = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int32 sample_rate = 2; - * @return {number} - */ -proto.clarifai.api.AudioInfo.prototype.getSampleRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.AudioInfo} returns this - */ -proto.clarifai.api.AudioInfo.prototype.setSampleRate = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional float duration_seconds = 3; - * @return {number} + * optional google.protobuf.Struct params = 1; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.AudioInfo.prototype.getDurationSeconds = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.clarifai.api.TrainInfo.prototype.getParams = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.AudioInfo} returns this - */ -proto.clarifai.api.AudioInfo.prototype.setDurationSeconds = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.TrainInfo} returns this +*/ +proto.clarifai.api.TrainInfo.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional int32 bit_rate = 4; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.TrainInfo} returns this */ -proto.clarifai.api.AudioInfo.prototype.getBitRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.TrainInfo.prototype.clearParams = function() { + return this.setParams(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.AudioInfo} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.AudioInfo.prototype.setBitRate = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.TrainInfo.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -5715,8 +24845,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Track.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Track.toObject(opt_includeInstance, this); +proto.clarifai.api.EvalInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.EvalInfo.toObject(opt_includeInstance, this); }; @@ -5725,16 +24855,13 @@ proto.clarifai.api.Track.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Track} msg The msg instance to transform. + * @param {!proto.clarifai.api.EvalInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Track.toObject = function(includeInstance, msg) { +proto.clarifai.api.EvalInfo.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - timeInfo: (f = msg.getTimeInfo()) && proto.clarifai.api.TimeInfo.toObject(includeInstance, f), - quality: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0) + params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -5748,23 +24875,23 @@ proto.clarifai.api.Track.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Track} + * @return {!proto.clarifai.api.EvalInfo} */ -proto.clarifai.api.Track.deserializeBinary = function(bytes) { +proto.clarifai.api.EvalInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Track; - return proto.clarifai.api.Track.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.EvalInfo; + return proto.clarifai.api.EvalInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Track} msg The message object to deserialize into. + * @param {!proto.clarifai.api.EvalInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Track} + * @return {!proto.clarifai.api.EvalInfo} */ -proto.clarifai.api.Track.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.EvalInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5772,22 +24899,9 @@ proto.clarifai.api.Track.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = new proto.clarifai.api.TimeInfo; - reader.readMessage(value,proto.clarifai.api.TimeInfo.deserializeBinaryFromReader); - msg.setTimeInfo(value); - break; - case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setQuality(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setParams(value); break; default: reader.skipField(); @@ -5802,9 +24916,9 @@ proto.clarifai.api.Track.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Track.prototype.serializeBinary = function() { +proto.clarifai.api.EvalInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Track.serializeBinaryToWriter(this, writer); + proto.clarifai.api.EvalInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5812,152 +24926,208 @@ proto.clarifai.api.Track.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Track} message + * @param {!proto.clarifai.api.EvalInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Track.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.EvalInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.Data.serializeBinaryToWriter - ); - } - f = message.getTimeInfo(); + f = message.getParams(); if (f != null) { writer.writeMessage( - 4, + 1, f, - proto.clarifai.api.TimeInfo.serializeBinaryToWriter - ); - } - f = message.getQuality(); - if (f !== 0.0) { - writer.writeFloat( - 5, - f + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } }; /** - * optional string id = 1; - * @return {string} + * optional google.protobuf.Struct params = 1; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Track.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.EvalInfo.prototype.getParams = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Track} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.EvalInfo} returns this +*/ +proto.clarifai.api.EvalInfo.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalInfo} returns this */ -proto.clarifai.api.Track.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.EvalInfo.prototype.clearParams = function() { + return this.setParams(undefined); }; /** - * optional Data data = 2; - * @return {?proto.clarifai.api.Data} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Track.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); +proto.clarifai.api.EvalInfo.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.Track} returns this -*/ -proto.clarifai.api.Track.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ImportInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ImportInfo.toObject(opt_includeInstance, this); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Track} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ImportInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Track.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.ImportInfo.toObject = function(includeInstance, msg) { + var f, obj = { + params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ImportInfo} */ -proto.clarifai.api.Track.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.ImportInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ImportInfo; + return proto.clarifai.api.ImportInfo.deserializeBinaryFromReader(msg, reader); }; /** - * optional TimeInfo time_info = 4; - * @return {?proto.clarifai.api.TimeInfo} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ImportInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ImportInfo} */ -proto.clarifai.api.Track.prototype.getTimeInfo = function() { - return /** @type{?proto.clarifai.api.TimeInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TimeInfo, 4)); +proto.clarifai.api.ImportInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setParams(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {?proto.clarifai.api.TimeInfo|undefined} value - * @return {!proto.clarifai.api.Track} returns this -*/ -proto.clarifai.api.Track.prototype.setTimeInfo = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ImportInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ImportInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Track} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ImportInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Track.prototype.clearTimeInfo = function() { - return this.setTimeInfo(undefined); +proto.clarifai.api.ImportInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } }; /** - * Returns whether this field is set. - * @return {boolean} + * optional google.protobuf.Struct params = 1; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Track.prototype.hasTimeInfo = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.ImportInfo.prototype.getParams = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); }; /** - * optional float quality = 5; - * @return {number} + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.ImportInfo} returns this +*/ +proto.clarifai.api.ImportInfo.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ImportInfo} returns this */ -proto.clarifai.api.Track.prototype.getQuality = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +proto.clarifai.api.ImportInfo.prototype.clearParams = function() { + return this.setParams(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Track} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Track.prototype.setQuality = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); +proto.clarifai.api.ImportInfo.prototype.hasParams = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -5967,7 +25137,7 @@ proto.clarifai.api.Track.prototype.setQuality = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.Cluster.repeatedFields_ = [4,5]; +proto.clarifai.api.OutputConfig.repeatedFields_ = [8]; @@ -5984,8 +25154,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Cluster.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Cluster.toObject(opt_includeInstance, this); +proto.clarifai.api.OutputConfig.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.OutputConfig.toObject(opt_includeInstance, this); }; @@ -5994,18 +25164,26 @@ proto.clarifai.api.Cluster.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Cluster} msg The msg instance to transform. + * @param {!proto.clarifai.api.OutputConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Cluster.toObject = function(includeInstance, msg) { +proto.clarifai.api.OutputConfig.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - count: jspb.Message.getFieldWithDefault(msg, 2, 0), - score: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - hitsList: jspb.Message.toObjectList(msg.getHitsList(), - proto.clarifai.api.Hit.toObject, includeInstance), - projectionList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 5)) == null ? undefined : f + conceptsMutuallyExclusive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + existingModelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + language: jspb.Message.getFieldWithDefault(msg, 4, ""), + hyperParameters: jspb.Message.getFieldWithDefault(msg, 5, ""), + maxConcepts: jspb.Message.getFieldWithDefault(msg, 6, 0), + minValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + selectConceptsList: jspb.Message.toObjectList(msg.getSelectConceptsList(), + proto.clarifai.api.Concept.toObject, includeInstance), + trainingTimeout: jspb.Message.getFieldWithDefault(msg, 9, 0), + sampleMs: jspb.Message.getFieldWithDefault(msg, 10, 0), + hyperParams: (f = msg.getHyperParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + embedModelVersionId: jspb.Message.getFieldWithDefault(msg, 14, ""), + failOnMissingPositiveExamples: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), + modelMetadata: (f = msg.getModelMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -6019,23 +25197,23 @@ proto.clarifai.api.Cluster.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Cluster} + * @return {!proto.clarifai.api.OutputConfig} */ -proto.clarifai.api.Cluster.deserializeBinary = function(bytes) { +proto.clarifai.api.OutputConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Cluster; - return proto.clarifai.api.Cluster.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.OutputConfig; + return proto.clarifai.api.OutputConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Cluster} msg The message object to deserialize into. + * @param {!proto.clarifai.api.OutputConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Cluster} + * @return {!proto.clarifai.api.OutputConfig} */ -proto.clarifai.api.Cluster.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.OutputConfig.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6043,27 +25221,59 @@ proto.clarifai.api.Cluster.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setConceptsMutuallyExclusive(value); + break; + case 3: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setExistingModelId(value); break; - case 2: + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setHyperParameters(value); + break; + case 6: var value = /** @type {number} */ (reader.readUint32()); - msg.setCount(value); + msg.setMaxConcepts(value); break; - case 3: + case 7: var value = /** @type {number} */ (reader.readFloat()); - msg.setScore(value); + msg.setMinValue(value); break; - case 4: - var value = new proto.clarifai.api.Hit; - reader.readMessage(value,proto.clarifai.api.Hit.deserializeBinaryFromReader); - msg.addHits(value); + case 8: + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.addSelectConcepts(value); break; - case 5: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addProjection(values[i]); - } + case 9: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTrainingTimeout(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSampleMs(value); + break; + case 13: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setHyperParams(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setEmbedModelVersionId(value); + break; + case 15: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFailOnMissingPositiveExamples(value); + break; + case 17: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setModelMetadata(value); break; default: reader.skipField(); @@ -6078,9 +25288,9 @@ proto.clarifai.api.Cluster.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Cluster.prototype.serializeBinary = function() { +proto.clarifai.api.OutputConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Cluster.serializeBinaryToWriter(this, writer); + proto.clarifai.api.OutputConfig.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6088,361 +25298,389 @@ proto.clarifai.api.Cluster.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Cluster} message + * @param {!proto.clarifai.api.OutputConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Cluster.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.OutputConfig.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getConceptsMutuallyExclusive(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getExistingModelId(); if (f.length > 0) { writer.writeString( - 1, + 3, f ); } - f = message.getCount(); + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getHyperParameters(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getMaxConcepts(); if (f !== 0) { writer.writeUint32( - 2, + 6, f ); } - f = message.getScore(); + f = message.getMinValue(); if (f !== 0.0) { writer.writeFloat( - 3, + 7, f ); } - f = message.getHitsList(); + f = message.getSelectConceptsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 4, + 8, f, - proto.clarifai.api.Hit.serializeBinaryToWriter + proto.clarifai.api.Concept.serializeBinaryToWriter ); } - f = message.getProjectionList(); + f = message.getTrainingTimeout(); + if (f !== 0) { + writer.writeUint32( + 9, + f + ); + } + f = message.getSampleMs(); + if (f !== 0) { + writer.writeUint32( + 10, + f + ); + } + f = message.getHyperParams(); + if (f != null) { + writer.writeMessage( + 13, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getEmbedModelVersionId(); if (f.length > 0) { - writer.writePackedFloat( - 5, + writer.writeString( + 14, f ); } + f = message.getFailOnMissingPositiveExamples(); + if (f) { + writer.writeBool( + 15, + f + ); + } + f = message.getModelMetadata(); + if (f != null) { + writer.writeMessage( + 17, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } }; /** - * optional string id = 1; + * optional bool concepts_mutually_exclusive = 1; + * @return {boolean} + */ +proto.clarifai.api.OutputConfig.prototype.getConceptsMutuallyExclusive = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.OutputConfig} returns this + */ +proto.clarifai.api.OutputConfig.prototype.setConceptsMutuallyExclusive = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional string existing_model_id = 3; * @return {string} */ -proto.clarifai.api.Cluster.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.OutputConfig.prototype.getExistingModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Cluster} returns this + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Cluster.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.OutputConfig.prototype.setExistingModelId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional uint32 count = 2; + * optional string language = 4; + * @return {string} + */ +proto.clarifai.api.OutputConfig.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.OutputConfig} returns this + */ +proto.clarifai.api.OutputConfig.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string hyper_parameters = 5; + * @return {string} + */ +proto.clarifai.api.OutputConfig.prototype.getHyperParameters = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.OutputConfig} returns this + */ +proto.clarifai.api.OutputConfig.prototype.setHyperParameters = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional uint32 max_concepts = 6; * @return {number} */ -proto.clarifai.api.Cluster.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.OutputConfig.prototype.getMaxConcepts = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.Cluster} returns this + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Cluster.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.OutputConfig.prototype.setMaxConcepts = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; /** - * optional float score = 3; + * optional float min_value = 7; * @return {number} */ -proto.clarifai.api.Cluster.prototype.getScore = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.clarifai.api.OutputConfig.prototype.getMinValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.Cluster} returns this + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Cluster.prototype.setScore = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); +proto.clarifai.api.OutputConfig.prototype.setMinValue = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); }; /** - * repeated Hit hits = 4; - * @return {!Array} + * repeated Concept select_concepts = 8; + * @return {!Array} */ -proto.clarifai.api.Cluster.prototype.getHitsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 4)); +proto.clarifai.api.OutputConfig.prototype.getSelectConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 8)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Cluster} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Cluster.prototype.setHitsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); +proto.clarifai.api.OutputConfig.prototype.setSelectConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); }; /** - * @param {!proto.clarifai.api.Hit=} opt_value + * @param {!proto.clarifai.api.Concept=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Hit} + * @return {!proto.clarifai.api.Concept} */ -proto.clarifai.api.Cluster.prototype.addHits = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Hit, opt_index); +proto.clarifai.api.OutputConfig.prototype.addSelectConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.Concept, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Cluster} returns this + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Cluster.prototype.clearHitsList = function() { - return this.setHitsList([]); +proto.clarifai.api.OutputConfig.prototype.clearSelectConceptsList = function() { + return this.setSelectConceptsList([]); }; /** - * repeated float projection = 5; - * @return {!Array} + * optional uint32 training_timeout = 9; + * @return {number} */ -proto.clarifai.api.Cluster.prototype.getProjectionList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 5)); +proto.clarifai.api.OutputConfig.prototype.getTrainingTimeout = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Cluster} returns this + * @param {number} value + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Cluster.prototype.setProjectionList = function(value) { - return jspb.Message.setField(this, 5, value || []); +proto.clarifai.api.OutputConfig.prototype.setTrainingTimeout = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); }; /** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Cluster} returns this + * optional uint32 sample_ms = 10; + * @return {number} */ -proto.clarifai.api.Cluster.prototype.addProjection = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +proto.clarifai.api.OutputConfig.prototype.getSampleMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Cluster} returns this + * @param {number} value + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Cluster.prototype.clearProjectionList = function() { - return this.setProjectionList([]); +proto.clarifai.api.OutputConfig.prototype.setSampleMs = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional google.protobuf.Struct hyper_params = 13; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Color.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Color.toObject(opt_includeInstance, this); +proto.clarifai.api.OutputConfig.prototype.getHyperParams = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Color} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.Color.toObject = function(includeInstance, msg) { - var f, obj = { - rawHex: jspb.Message.getFieldWithDefault(msg, 1, ""), - w3c: (f = msg.getW3c()) && proto.clarifai.api.W3C.toObject(includeInstance, f), - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.OutputConfig} returns this +*/ +proto.clarifai.api.OutputConfig.prototype.setHyperParams = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Color} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Color.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Color; - return proto.clarifai.api.Color.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.OutputConfig.prototype.clearHyperParams = function() { + return this.setHyperParams(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.Color} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Color} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Color.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRawHex(value); - break; - case 2: - var value = new proto.clarifai.api.W3C; - reader.readMessage(value,proto.clarifai.api.W3C.deserializeBinaryFromReader); - msg.setW3c(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.OutputConfig.prototype.hasHyperParams = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string embed_model_version_id = 14; + * @return {string} */ -proto.clarifai.api.Color.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Color.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.OutputConfig.prototype.getEmbedModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Color} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Color.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRawHex(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getW3c(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.W3C.serializeBinaryToWriter - ); - } - f = message.getValue(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } +proto.clarifai.api.OutputConfig.prototype.setEmbedModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); }; /** - * optional string raw_hex = 1; - * @return {string} + * optional bool fail_on_missing_positive_examples = 15; + * @return {boolean} */ -proto.clarifai.api.Color.prototype.getRawHex = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.OutputConfig.prototype.getFailOnMissingPositiveExamples = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Color} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Color.prototype.setRawHex = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.OutputConfig.prototype.setFailOnMissingPositiveExamples = function(value) { + return jspb.Message.setProto3BooleanField(this, 15, value); }; /** - * optional W3C w3c = 2; - * @return {?proto.clarifai.api.W3C} + * optional google.protobuf.Struct model_metadata = 17; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Color.prototype.getW3c = function() { - return /** @type{?proto.clarifai.api.W3C} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.W3C, 2)); +proto.clarifai.api.OutputConfig.prototype.getModelMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 17)); }; /** - * @param {?proto.clarifai.api.W3C|undefined} value - * @return {!proto.clarifai.api.Color} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Color.prototype.setW3c = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.OutputConfig.prototype.setModelMetadata = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Color} returns this + * @return {!proto.clarifai.api.OutputConfig} returns this */ -proto.clarifai.api.Color.prototype.clearW3c = function() { - return this.setW3c(undefined); +proto.clarifai.api.OutputConfig.prototype.clearModelMetadata = function() { + return this.setModelMetadata(undefined); }; @@ -6450,29 +25688,18 @@ proto.clarifai.api.Color.prototype.clearW3c = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Color.prototype.hasW3c = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.OutputConfig.prototype.hasModelMetadata = function() { + return jspb.Message.getField(this, 17) != null; }; -/** - * optional float value = 3; - * @return {number} - */ -proto.clarifai.api.Color.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - /** - * @param {number} value - * @return {!proto.clarifai.api.Color} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.Color.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - +proto.clarifai.api.ModelType.repeatedFields_ = [5,6,11,16,17]; @@ -6489,8 +25716,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.W3C.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.W3C.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelType.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelType.toObject(opt_includeInstance, this); }; @@ -6499,14 +25726,28 @@ proto.clarifai.api.W3C.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.W3C} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelType} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.W3C.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelType.toObject = function(includeInstance, msg) { var f, obj = { - hex: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + title: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + inputFieldsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + outputFieldsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + trainable: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + creatable: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(), + proto.clarifai.api.ModelTypeField.toObject, includeInstance), + requiresSequentialFrames: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + expectedInputLayersList: jspb.Message.toObjectList(msg.getExpectedInputLayersList(), + proto.clarifai.api.ModelLayerInfo.toObject, includeInstance), + expectedOutputLayersList: jspb.Message.toObjectList(msg.getExpectedOutputLayersList(), + proto.clarifai.api.ModelLayerInfo.toObject, includeInstance), + evaluationType: jspb.Message.getFieldWithDefault(msg, 18, 0) }; if (includeInstance) { @@ -6520,23 +25761,23 @@ proto.clarifai.api.W3C.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.W3C} + * @return {!proto.clarifai.api.ModelType} */ -proto.clarifai.api.W3C.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelType.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.W3C; - return proto.clarifai.api.W3C.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelType; + return proto.clarifai.api.ModelType.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.W3C} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelType} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.W3C} + * @return {!proto.clarifai.api.ModelType} */ -proto.clarifai.api.W3C.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelType.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6545,11 +25786,58 @@ proto.clarifai.api.W3C.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setHex(value); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + msg.setTitle(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addInputFields(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addOutputFields(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTrainable(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCreatable(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setInternalOnly(value); + break; + case 11: + var value = new proto.clarifai.api.ModelTypeField; + reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader); + msg.addModelTypeFields(value); + break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRequiresSequentialFrames(value); + break; + case 16: + var value = new proto.clarifai.api.ModelLayerInfo; + reader.readMessage(value,proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader); + msg.addExpectedInputLayers(value); + break; + case 17: + var value = new proto.clarifai.api.ModelLayerInfo; + reader.readMessage(value,proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader); + msg.addExpectedOutputLayers(value); + break; + case 18: + var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum()); + msg.setEvaluationType(value); break; default: reader.skipField(); @@ -6564,9 +25852,9 @@ proto.clarifai.api.W3C.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.W3C.prototype.serializeBinary = function() { +proto.clarifai.api.ModelType.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.W3C.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelType.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6574,416 +25862,449 @@ proto.clarifai.api.W3C.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.W3C} message + * @param {!proto.clarifai.api.ModelType} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.W3C.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelType.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getHex(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getName(); + f = message.getTitle(); if (f.length > 0) { writer.writeString( 2, f ); } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getInputFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getOutputFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } + f = message.getTrainable(); + if (f) { + writer.writeBool( + 8, + f + ); + } + f = message.getCreatable(); + if (f) { + writer.writeBool( + 9, + f + ); + } + f = message.getInternalOnly(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = message.getModelTypeFieldsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 11, + f, + proto.clarifai.api.ModelTypeField.serializeBinaryToWriter + ); + } + f = message.getRequiresSequentialFrames(); + if (f) { + writer.writeBool( + 12, + f + ); + } + f = message.getExpectedInputLayersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 16, + f, + proto.clarifai.api.ModelLayerInfo.serializeBinaryToWriter + ); + } + f = message.getExpectedOutputLayersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 17, + f, + proto.clarifai.api.ModelLayerInfo.serializeBinaryToWriter + ); + } + f = message.getEvaluationType(); + if (f !== 0.0) { + writer.writeEnum( + 18, + f + ); + } }; /** - * optional string hex = 1; + * optional string id = 1; * @return {string} */ -proto.clarifai.api.W3C.prototype.getHex = function() { +proto.clarifai.api.ModelType.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.W3C} returns this + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.W3C.prototype.setHex = function(value) { +proto.clarifai.api.ModelType.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string name = 2; + * optional string title = 2; * @return {string} */ -proto.clarifai.api.W3C.prototype.getName = function() { +proto.clarifai.api.ModelType.prototype.getTitle = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.W3C} returns this + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.W3C.prototype.setName = function(value) { +proto.clarifai.api.ModelType.prototype.setTitle = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * optional string description = 3; + * @return {string} + */ +proto.clarifai.api.ModelType.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + +/** + * @param {string} value + * @return {!proto.clarifai.api.ModelType} returns this + */ +proto.clarifai.api.ModelType.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * repeated string input_fields = 5; + * @return {!Array} */ -proto.clarifai.api.UserAppIDSet.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.UserAppIDSet.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelType.prototype.getInputFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.UserAppIDSet} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!Array} value + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.UserAppIDSet.toObject = function(includeInstance, msg) { - var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - appId: jspb.Message.getFieldWithDefault(msg, 2, "") - }; +proto.clarifai.api.ModelType.prototype.setInputFieldsList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelType} returns this + */ +proto.clarifai.api.ModelType.prototype.addInputFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.UserAppIDSet} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.UserAppIDSet.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.UserAppIDSet; - return proto.clarifai.api.UserAppIDSet.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ModelType.prototype.clearInputFieldsList = function() { + return this.setInputFieldsList([]); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.UserAppIDSet} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.UserAppIDSet} + * repeated string output_fields = 6; + * @return {!Array} */ -proto.clarifai.api.UserAppIDSet.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ModelType.prototype.getOutputFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!Array} value + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.UserAppIDSet.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.UserAppIDSet.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ModelType.prototype.setOutputFieldsList = function(value) { + return jspb.Message.setField(this, 6, value || []); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.UserAppIDSet} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.UserAppIDSet.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } +proto.clarifai.api.ModelType.prototype.addOutputFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); }; /** - * optional string user_id = 1; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.UserAppIDSet.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ModelType.prototype.clearOutputFieldsList = function() { + return this.setOutputFieldsList([]); }; /** - * @param {string} value - * @return {!proto.clarifai.api.UserAppIDSet} returns this + * optional bool trainable = 8; + * @return {boolean} */ -proto.clarifai.api.UserAppIDSet.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModelType.prototype.getTrainable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** - * optional string app_id = 2; - * @return {string} + * @param {boolean} value + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.UserAppIDSet.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.ModelType.prototype.setTrainable = function(value) { + return jspb.Message.setProto3BooleanField(this, 8, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.UserAppIDSet} returns this + * optional bool creatable = 9; + * @return {boolean} */ -proto.clarifai.api.UserAppIDSet.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.ModelType.prototype.getCreatable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ModelType} returns this + */ +proto.clarifai.api.ModelType.prototype.setCreatable = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); +}; + +/** + * optional bool internal_only = 10; + * @return {boolean} + */ +proto.clarifai.api.ModelType.prototype.getInternalOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {boolean} value + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.PatchAction.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchAction.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelType.prototype.setInternalOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchAction} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * repeated ModelTypeField model_type_fields = 11; + * @return {!Array} */ -proto.clarifai.api.PatchAction.toObject = function(includeInstance, msg) { - var f, obj = { - op: jspb.Message.getFieldWithDefault(msg, 1, ""), - mergeConflictResolution: jspb.Message.getFieldWithDefault(msg, 2, ""), - path: jspb.Message.getFieldWithDefault(msg, 3, "") - }; +proto.clarifai.api.ModelType.prototype.getModelTypeFieldsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 11)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ModelType} returns this +*/ +proto.clarifai.api.ModelType.prototype.setModelTypeFieldsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 11, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchAction} + * @param {!proto.clarifai.api.ModelTypeField=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelTypeField} */ -proto.clarifai.api.PatchAction.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchAction; - return proto.clarifai.api.PatchAction.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ModelType.prototype.addModelTypeFields = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.clarifai.api.ModelTypeField, opt_index); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.PatchAction} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchAction} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.PatchAction.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOp(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setMergeConflictResolution(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ModelType.prototype.clearModelTypeFieldsList = function() { + return this.setModelTypeFieldsList([]); +}; + + +/** + * optional bool requires_sequential_frames = 12; + * @return {boolean} + */ +proto.clarifai.api.ModelType.prototype.getRequiresSequentialFrames = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ModelType} returns this + */ +proto.clarifai.api.ModelType.prototype.setRequiresSequentialFrames = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * repeated ModelLayerInfo expected_input_layers = 16; + * @return {!Array} */ -proto.clarifai.api.PatchAction.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchAction.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ModelType.prototype.getExpectedInputLayersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelLayerInfo, 16)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchAction} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!Array} value + * @return {!proto.clarifai.api.ModelType} returns this +*/ +proto.clarifai.api.ModelType.prototype.setExpectedInputLayersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 16, value); +}; + + +/** + * @param {!proto.clarifai.api.ModelLayerInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelLayerInfo} */ -proto.clarifai.api.PatchAction.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOp(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getMergeConflictResolution(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } +proto.clarifai.api.ModelType.prototype.addExpectedInputLayers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.clarifai.api.ModelLayerInfo, opt_index); }; /** - * optional string op = 1; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.PatchAction.prototype.getOp = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ModelType.prototype.clearExpectedInputLayersList = function() { + return this.setExpectedInputLayersList([]); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchAction} returns this + * repeated ModelLayerInfo expected_output_layers = 17; + * @return {!Array} */ -proto.clarifai.api.PatchAction.prototype.setOp = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModelType.prototype.getExpectedOutputLayersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelLayerInfo, 17)); }; /** - * optional string merge_conflict_resolution = 2; - * @return {string} + * @param {!Array} value + * @return {!proto.clarifai.api.ModelType} returns this +*/ +proto.clarifai.api.ModelType.prototype.setExpectedOutputLayersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 17, value); +}; + + +/** + * @param {!proto.clarifai.api.ModelLayerInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelLayerInfo} */ -proto.clarifai.api.PatchAction.prototype.getMergeConflictResolution = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.ModelType.prototype.addExpectedOutputLayers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.clarifai.api.ModelLayerInfo, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchAction} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.PatchAction.prototype.setMergeConflictResolution = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.ModelType.prototype.clearExpectedOutputLayersList = function() { + return this.setExpectedOutputLayersList([]); }; /** - * optional string path = 3; - * @return {string} + * optional EvaluationType evaluation_type = 18; + * @return {!proto.clarifai.api.EvaluationType} */ -proto.clarifai.api.PatchAction.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.ModelType.prototype.getEvaluationType = function() { + return /** @type {!proto.clarifai.api.EvaluationType} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchAction} returns this + * @param {!proto.clarifai.api.EvaluationType} value + * @return {!proto.clarifai.api.ModelType} returns this */ -proto.clarifai.api.PatchAction.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.ModelType.prototype.setEvaluationType = function(value) { + return jspb.Message.setProto3EnumField(this, 18, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ModelLayerInfo.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -6999,8 +26320,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Concept.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Concept.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelLayerInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelLayerInfo.toObject(opt_includeInstance, this); }; @@ -7009,22 +26330,17 @@ proto.clarifai.api.Concept.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Concept} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelLayerInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Concept.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelLayerInfo.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - language: jspb.Message.getFieldWithDefault(msg, 5, ""), - appId: jspb.Message.getFieldWithDefault(msg, 6, ""), - definition: jspb.Message.getFieldWithDefault(msg, 7, ""), - vocabId: jspb.Message.getFieldWithDefault(msg, 8, ""), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - userId: jspb.Message.getFieldWithDefault(msg, 10, "") + dataFieldName: jspb.Message.getFieldWithDefault(msg, 1, ""), + shapesList: jspb.Message.toObjectList(msg.getShapesList(), + proto.clarifai.api.LayerShape.toObject, includeInstance), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + requiresLabelFilename: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { @@ -7038,23 +26354,23 @@ proto.clarifai.api.Concept.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Concept} + * @return {!proto.clarifai.api.ModelLayerInfo} */ -proto.clarifai.api.Concept.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelLayerInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Concept; - return proto.clarifai.api.Concept.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelLayerInfo; + return proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Concept} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelLayerInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Concept} + * @return {!proto.clarifai.api.ModelLayerInfo} */ -proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelLayerInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7063,45 +26379,20 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setDataFieldName(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = new proto.clarifai.api.LayerShape; + reader.readMessage(value,proto.clarifai.api.LayerShape.deserializeBinaryFromReader); + msg.addShapes(value); break; case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setValue(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 6: var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDefinition(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setVocabId(value); - break; - case 9: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); + msg.setDescription(value); break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRequiresLabelFilename(value); break; default: reader.skipField(); @@ -7116,9 +26407,9 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Concept.prototype.serializeBinary = function() { +proto.clarifai.api.ModelLayerInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Concept.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelLayerInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7126,81 +26417,38 @@ proto.clarifai.api.Concept.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Concept} message + * @param {!proto.clarifai.api.ModelLayerInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelLayerInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getDataFieldName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getName(); + f = message.getShapesList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getValue(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 4, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDefinition(); - if (f.length > 0) { - writer.writeString( - 7, - f + proto.clarifai.api.LayerShape.serializeBinaryToWriter ); } - f = message.getVocabId(); + f = message.getDescription(); if (f.length > 0) { writer.writeString( - 8, + 3, f ); } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 10, + f = message.getRequiresLabelFilename(); + if (f) { + writer.writeBool( + 4, f ); } @@ -7208,220 +26456,94 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) { /** - * optional string id = 1; + * optional string data_field_name = 1; * @return {string} */ -proto.clarifai.api.Concept.prototype.getId = function() { +proto.clarifai.api.ModelLayerInfo.prototype.getDataFieldName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Concept} returns this + * @return {!proto.clarifai.api.ModelLayerInfo} returns this */ -proto.clarifai.api.Concept.prototype.setId = function(value) { +proto.clarifai.api.ModelLayerInfo.prototype.setDataFieldName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string name = 2; - * @return {string} - */ -proto.clarifai.api.Concept.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Concept} returns this - */ -proto.clarifai.api.Concept.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional float value = 3; - * @return {number} - */ -proto.clarifai.api.Concept.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.Concept} returns this - */ -proto.clarifai.api.Concept.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 4; - * @return {?proto.google.protobuf.Timestamp} + * repeated LayerShape shapes = 2; + * @return {!Array} */ -proto.clarifai.api.Concept.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +proto.clarifai.api.ModelLayerInfo.prototype.getShapesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LayerShape, 2)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Concept} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.ModelLayerInfo} returns this */ -proto.clarifai.api.Concept.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Concept} returns this - */ -proto.clarifai.api.Concept.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.Concept.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional string language = 5; - * @return {string} - */ -proto.clarifai.api.Concept.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Concept} returns this - */ -proto.clarifai.api.Concept.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string app_id = 6; - * @return {string} - */ -proto.clarifai.api.Concept.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Concept} returns this - */ -proto.clarifai.api.Concept.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.clarifai.api.ModelLayerInfo.prototype.setShapesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional string definition = 7; - * @return {string} + * @param {!proto.clarifai.api.LayerShape=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.LayerShape} */ -proto.clarifai.api.Concept.prototype.getDefinition = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.clarifai.api.ModelLayerInfo.prototype.addShapes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LayerShape, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Concept} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelLayerInfo} returns this */ -proto.clarifai.api.Concept.prototype.setDefinition = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.clarifai.api.ModelLayerInfo.prototype.clearShapesList = function() { + return this.setShapesList([]); }; /** - * optional string vocab_id = 8; + * optional string description = 3; * @return {string} */ -proto.clarifai.api.Concept.prototype.getVocabId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.clarifai.api.ModelLayerInfo.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Concept} returns this - */ -proto.clarifai.api.Concept.prototype.setVocabId = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional Visibility visibility = 9; - * @return {?proto.clarifai.api.Visibility} - */ -proto.clarifai.api.Concept.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 9)); -}; - - -/** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.Concept} returns this -*/ -proto.clarifai.api.Concept.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Concept} returns this + * @return {!proto.clarifai.api.ModelLayerInfo} returns this */ -proto.clarifai.api.Concept.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.ModelLayerInfo.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Returns whether this field is set. + * optional bool requires_label_filename = 4; * @return {boolean} */ -proto.clarifai.api.Concept.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * optional string user_id = 10; - * @return {string} - */ -proto.clarifai.api.Concept.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.clarifai.api.ModelLayerInfo.prototype.getRequiresLabelFilename = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Concept} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.ModelLayerInfo} returns this */ -proto.clarifai.api.Concept.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.clarifai.api.ModelLayerInfo.prototype.setRequiresLabelFilename = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; @@ -7441,8 +26563,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ConceptCount.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConceptCount.toObject(opt_includeInstance, this); +proto.clarifai.api.TritonCondaEnvInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TritonCondaEnvInfo.toObject(opt_includeInstance, this); }; @@ -7451,16 +26573,14 @@ proto.clarifai.api.ConceptCount.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConceptCount} msg The msg instance to transform. + * @param {!proto.clarifai.api.TritonCondaEnvInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptCount.toObject = function(includeInstance, msg) { +proto.clarifai.api.TritonCondaEnvInfo.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - conceptTypeCount: (f = msg.getConceptTypeCount()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), - detailConceptCount: (f = msg.getDetailConceptCount()) && proto.clarifai.api.DetailConceptCount.toObject(includeInstance, f) + condaPackUrl: jspb.Message.getFieldWithDefault(msg, 1, ""), + condaYamlUrl: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -7474,23 +26594,23 @@ proto.clarifai.api.ConceptCount.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConceptCount} + * @return {!proto.clarifai.api.TritonCondaEnvInfo} */ -proto.clarifai.api.ConceptCount.deserializeBinary = function(bytes) { +proto.clarifai.api.TritonCondaEnvInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConceptCount; - return proto.clarifai.api.ConceptCount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TritonCondaEnvInfo; + return proto.clarifai.api.TritonCondaEnvInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ConceptCount} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TritonCondaEnvInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConceptCount} + * @return {!proto.clarifai.api.TritonCondaEnvInfo} */ -proto.clarifai.api.ConceptCount.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TritonCondaEnvInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7499,21 +26619,11 @@ proto.clarifai.api.ConceptCount.deserializeBinaryFromReader = function(msg, read switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setCondaPackUrl(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new proto.clarifai.api.ConceptTypeCount; - reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); - msg.setConceptTypeCount(value); - break; - case 4: - var value = new proto.clarifai.api.DetailConceptCount; - reader.readMessage(value,proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader); - msg.setDetailConceptCount(value); + msg.setCondaYamlUrl(value); break; default: reader.skipField(); @@ -7528,9 +26638,9 @@ proto.clarifai.api.ConceptCount.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ConceptCount.prototype.serializeBinary = function() { +proto.clarifai.api.TritonCondaEnvInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConceptCount.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TritonCondaEnvInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7538,155 +26648,72 @@ proto.clarifai.api.ConceptCount.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConceptCount} message + * @param {!proto.clarifai.api.TritonCondaEnvInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptCount.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TritonCondaEnvInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getCondaPackUrl(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getName(); + f = message.getCondaYamlUrl(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getConceptTypeCount(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter - ); - } - f = message.getDetailConceptCount(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.clarifai.api.DetailConceptCount.serializeBinaryToWriter - ); - } }; /** - * optional string id = 1; + * optional string conda_pack_url = 1; * @return {string} */ -proto.clarifai.api.ConceptCount.prototype.getId = function() { +proto.clarifai.api.TritonCondaEnvInfo.prototype.getCondaPackUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ConceptCount} returns this + * @return {!proto.clarifai.api.TritonCondaEnvInfo} returns this */ -proto.clarifai.api.ConceptCount.prototype.setId = function(value) { +proto.clarifai.api.TritonCondaEnvInfo.prototype.setCondaPackUrl = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string name = 2; + * optional string conda_yaml_url = 2; * @return {string} */ -proto.clarifai.api.ConceptCount.prototype.getName = function() { +proto.clarifai.api.TritonCondaEnvInfo.prototype.getCondaYamlUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ConceptCount} returns this + * @return {!proto.clarifai.api.TritonCondaEnvInfo} returns this */ -proto.clarifai.api.ConceptCount.prototype.setName = function(value) { +proto.clarifai.api.TritonCondaEnvInfo.prototype.setCondaYamlUrl = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional ConceptTypeCount concept_type_count = 3; - * @return {?proto.clarifai.api.ConceptTypeCount} - */ -proto.clarifai.api.ConceptCount.prototype.getConceptTypeCount = function() { - return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 3)); -}; - - -/** - * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value - * @return {!proto.clarifai.api.ConceptCount} returns this -*/ -proto.clarifai.api.ConceptCount.prototype.setConceptTypeCount = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ConceptCount} returns this - */ -proto.clarifai.api.ConceptCount.prototype.clearConceptTypeCount = function() { - return this.setConceptTypeCount(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.ConceptCount.prototype.hasConceptTypeCount = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional DetailConceptCount detail_concept_count = 4; - * @return {?proto.clarifai.api.DetailConceptCount} - */ -proto.clarifai.api.ConceptCount.prototype.getDetailConceptCount = function() { - return /** @type{?proto.clarifai.api.DetailConceptCount} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.DetailConceptCount, 4)); -}; - - -/** - * @param {?proto.clarifai.api.DetailConceptCount|undefined} value - * @return {!proto.clarifai.api.ConceptCount} returns this -*/ -proto.clarifai.api.ConceptCount.prototype.setDetailConceptCount = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ConceptCount} returns this - */ -proto.clarifai.api.ConceptCount.prototype.clearDetailConceptCount = function() { - return this.setDetailConceptCount(undefined); -}; - /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.ConceptCount.prototype.hasDetailConceptCount = function() { - return jspb.Message.getField(this, 4) != null; -}; - - + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.LayerShape.repeatedFields_ = [1,2]; @@ -7703,8 +26730,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ConceptTypeCount.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConceptTypeCount.toObject(opt_includeInstance, this); +proto.clarifai.api.LayerShape.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.LayerShape.toObject(opt_includeInstance, this); }; @@ -7713,14 +26740,16 @@ proto.clarifai.api.ConceptTypeCount.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConceptTypeCount} msg The msg instance to transform. + * @param {!proto.clarifai.api.LayerShape} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptTypeCount.toObject = function(includeInstance, msg) { +proto.clarifai.api.LayerShape.toObject = function(includeInstance, msg) { var f, obj = { - positive: jspb.Message.getFieldWithDefault(msg, 1, 0), - negative: jspb.Message.getFieldWithDefault(msg, 2, 0) + dimsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + maxDimsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + dataType: jspb.Message.getFieldWithDefault(msg, 3, 0), + description: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -7734,23 +26763,23 @@ proto.clarifai.api.ConceptTypeCount.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConceptTypeCount} + * @return {!proto.clarifai.api.LayerShape} */ -proto.clarifai.api.ConceptTypeCount.deserializeBinary = function(bytes) { +proto.clarifai.api.LayerShape.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConceptTypeCount; - return proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.LayerShape; + return proto.clarifai.api.LayerShape.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ConceptTypeCount} msg The message object to deserialize into. + * @param {!proto.clarifai.api.LayerShape} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConceptTypeCount} + * @return {!proto.clarifai.api.LayerShape} */ -proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.LayerShape.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7758,12 +26787,24 @@ proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPositive(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addDims(values[i]); + } break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNegative(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addMaxDims(values[i]); + } + break; + case 3: + var value = /** @type {!proto.clarifai.api.DataType} */ (reader.readEnum()); + msg.setDataType(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; default: reader.skipField(); @@ -7778,9 +26819,9 @@ proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ConceptTypeCount.prototype.serializeBinary = function() { +proto.clarifai.api.LayerShape.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter(this, writer); + proto.clarifai.api.LayerShape.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7788,66 +26829,161 @@ proto.clarifai.api.ConceptTypeCount.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConceptTypeCount} message + * @param {!proto.clarifai.api.LayerShape} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.LayerShape.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPositive(); - if (f !== 0) { - writer.writeUint32( + f = message.getDimsList(); + if (f.length > 0) { + writer.writePackedInt32( 1, f ); } - f = message.getNegative(); - if (f !== 0) { - writer.writeUint32( + f = message.getMaxDimsList(); + if (f.length > 0) { + writer.writePackedInt32( 2, f ); } + f = message.getDataType(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } }; /** - * optional uint32 positive = 1; - * @return {number} + * repeated int32 dims = 1; + * @return {!Array} */ -proto.clarifai.api.ConceptTypeCount.prototype.getPositive = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.LayerShape.prototype.getDimsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.LayerShape} returns this + */ +proto.clarifai.api.LayerShape.prototype.setDimsList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; /** * @param {number} value - * @return {!proto.clarifai.api.ConceptTypeCount} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.LayerShape} returns this */ -proto.clarifai.api.ConceptTypeCount.prototype.setPositive = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.LayerShape.prototype.addDims = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** - * optional uint32 negative = 2; - * @return {number} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.LayerShape} returns this */ -proto.clarifai.api.ConceptTypeCount.prototype.getNegative = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.LayerShape.prototype.clearDimsList = function() { + return this.setDimsList([]); +}; + + +/** + * repeated int32 max_dims = 2; + * @return {!Array} + */ +proto.clarifai.api.LayerShape.prototype.getMaxDimsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.LayerShape} returns this + */ +proto.clarifai.api.LayerShape.prototype.setMaxDimsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {number} value - * @return {!proto.clarifai.api.ConceptTypeCount} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.LayerShape} returns this */ -proto.clarifai.api.ConceptTypeCount.prototype.setNegative = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.LayerShape.prototype.addMaxDims = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.LayerShape} returns this + */ +proto.clarifai.api.LayerShape.prototype.clearMaxDimsList = function() { + return this.setMaxDimsList([]); +}; + + +/** + * optional DataType data_type = 3; + * @return {!proto.clarifai.api.DataType} + */ +proto.clarifai.api.LayerShape.prototype.getDataType = function() { + return /** @type {!proto.clarifai.api.DataType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.clarifai.api.DataType} value + * @return {!proto.clarifai.api.LayerShape} returns this + */ +proto.clarifai.api.LayerShape.prototype.setDataType = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional string description = 4; + * @return {string} + */ +proto.clarifai.api.LayerShape.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.LayerShape} returns this + */ +proto.clarifai.api.LayerShape.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ModelTypeField.repeatedFields_ = [6]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -7863,8 +26999,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DetailConceptCount.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DetailConceptCount.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelTypeField.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelTypeField.toObject(opt_includeInstance, this); }; @@ -7873,16 +27009,22 @@ proto.clarifai.api.DetailConceptCount.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DetailConceptCount} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelTypeField} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DetailConceptCount.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelTypeField.toObject = function(includeInstance, msg) { var f, obj = { - processed: (f = msg.getProcessed()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), - toProcess: (f = msg.getToProcess()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), - errors: (f = msg.getErrors()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f), - processing: (f = msg.getProcessing()) && proto.clarifai.api.ConceptTypeCount.toObject(includeInstance, f) + path: jspb.Message.getFieldWithDefault(msg, 1, ""), + fieldType: jspb.Message.getFieldWithDefault(msg, 2, 0), + defaultValue: (f = msg.getDefaultValue()) && google_protobuf_struct_pb.Value.toObject(includeInstance, f), + description: jspb.Message.getFieldWithDefault(msg, 4, ""), + placeholder: jspb.Message.getFieldWithDefault(msg, 5, ""), + modelTypeEnumOptionsList: jspb.Message.toObjectList(msg.getModelTypeEnumOptionsList(), + proto.clarifai.api.ModelTypeEnumOption.toObject, includeInstance), + internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + required: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + modelTypeRangeInfo: (f = msg.getModelTypeRangeInfo()) && proto.clarifai.api.ModelTypeRangeInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -7896,23 +27038,23 @@ proto.clarifai.api.DetailConceptCount.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DetailConceptCount} + * @return {!proto.clarifai.api.ModelTypeField} */ -proto.clarifai.api.DetailConceptCount.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelTypeField.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DetailConceptCount; - return proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelTypeField; + return proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DetailConceptCount} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelTypeField} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DetailConceptCount} + * @return {!proto.clarifai.api.ModelTypeField} */ -proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7920,24 +27062,43 @@ proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.ConceptTypeCount; - reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); - msg.setProcessed(value); + var value = /** @type {string} */ (reader.readString()); + msg.setPath(value); break; case 2: - var value = new proto.clarifai.api.ConceptTypeCount; - reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); - msg.setToProcess(value); + var value = /** @type {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} */ (reader.readEnum()); + msg.setFieldType(value); break; case 3: - var value = new proto.clarifai.api.ConceptTypeCount; - reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); - msg.setErrors(value); + var value = new google_protobuf_struct_pb.Value; + reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); + msg.setDefaultValue(value); break; case 4: - var value = new proto.clarifai.api.ConceptTypeCount; - reader.readMessage(value,proto.clarifai.api.ConceptTypeCount.deserializeBinaryFromReader); - msg.setProcessing(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setPlaceholder(value); + break; + case 6: + var value = new proto.clarifai.api.ModelTypeEnumOption; + reader.readMessage(value,proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader); + msg.addModelTypeEnumOptions(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setInternalOnly(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRequired(value); + break; + case 9: + var value = new proto.clarifai.api.ModelTypeRangeInfo; + reader.readMessage(value,proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader); + msg.setModelTypeRangeInfo(value); break; default: reader.skipField(); @@ -7952,9 +27113,9 @@ proto.clarifai.api.DetailConceptCount.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DetailConceptCount.prototype.serializeBinary = function() { +proto.clarifai.api.ModelTypeField.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DetailConceptCount.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelTypeField.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7962,146 +27123,166 @@ proto.clarifai.api.DetailConceptCount.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DetailConceptCount} message + * @param {!proto.clarifai.api.ModelTypeField} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DetailConceptCount.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelTypeField.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getProcessed(); - if (f != null) { - writer.writeMessage( + f = message.getPath(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + f ); } - f = message.getToProcess(); - if (f != null) { - writer.writeMessage( + f = message.getFieldType(); + if (f !== 0.0) { + writer.writeEnum( 2, - f, - proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + f ); } - f = message.getErrors(); + f = message.getDefaultValue(); if (f != null) { writer.writeMessage( 3, f, - proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + google_protobuf_struct_pb.Value.serializeBinaryToWriter ); } - f = message.getProcessing(); + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getPlaceholder(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getModelTypeEnumOptionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter + ); + } + f = message.getInternalOnly(); + if (f) { + writer.writeBool( + 7, + f + ); + } + f = message.getRequired(); + if (f) { + writer.writeBool( + 8, + f + ); + } + f = message.getModelTypeRangeInfo(); if (f != null) { writer.writeMessage( - 4, + 9, f, - proto.clarifai.api.ConceptTypeCount.serializeBinaryToWriter + proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter ); } }; /** - * optional ConceptTypeCount processed = 1; - * @return {?proto.clarifai.api.ConceptTypeCount} - */ -proto.clarifai.api.DetailConceptCount.prototype.getProcessed = function() { - return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 1)); -}; - - -/** - * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value - * @return {!proto.clarifai.api.DetailConceptCount} returns this -*/ -proto.clarifai.api.DetailConceptCount.prototype.setProcessed = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DetailConceptCount} returns this + * @enum {number} */ -proto.clarifai.api.DetailConceptCount.prototype.clearProcessed = function() { - return this.setProcessed(undefined); +proto.clarifai.api.ModelTypeField.ModelTypeFieldType = { + INVALID_MODEL_TYPE_FIELD_TYPE: 0, + BOOLEAN: 1, + STRING: 2, + NUMBER: 3, + ARRAY_OF_CONCEPTS: 4, + ARRAY_OF_CONCEPTS_WITH_THRESHOLD: 5, + RANGE: 7, + ENUM: 8, + COLLABORATORS: 9, + JSON: 10, + ARRAY_OF_NUMBERS: 11, + WORKFLOW_EMBED_MODELS: 12, + ARRAY_OF_STRINGS: 13, + RECURSIVE_ENUM: 14, + PYTHON_CODE: 15, + DATASET_ID: 16, + DATASET_VERSION_ID: 17, + ARRAY_OF_MODEL_CONCEPTS: 18 }; - /** - * Returns whether this field is set. - * @return {boolean} + * optional string path = 1; + * @return {string} */ -proto.clarifai.api.DetailConceptCount.prototype.hasProcessed = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ModelTypeField.prototype.getPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional ConceptTypeCount to_process = 2; - * @return {?proto.clarifai.api.ConceptTypeCount} + * @param {string} value + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.DetailConceptCount.prototype.getToProcess = function() { - return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 2)); -}; - - -/** - * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value - * @return {!proto.clarifai.api.DetailConceptCount} returns this -*/ -proto.clarifai.api.DetailConceptCount.prototype.setToProcess = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.ModelTypeField.prototype.setPath = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DetailConceptCount} returns this + * optional ModelTypeFieldType field_type = 2; + * @return {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} */ -proto.clarifai.api.DetailConceptCount.prototype.clearToProcess = function() { - return this.setToProcess(undefined); +proto.clarifai.api.ModelTypeField.prototype.getFieldType = function() { + return /** @type {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} value + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.DetailConceptCount.prototype.hasToProcess = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.ModelTypeField.prototype.setFieldType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; /** - * optional ConceptTypeCount errors = 3; - * @return {?proto.clarifai.api.ConceptTypeCount} + * optional google.protobuf.Value default_value = 3; + * @return {?proto.google.protobuf.Value} */ -proto.clarifai.api.DetailConceptCount.prototype.getErrors = function() { - return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 3)); +proto.clarifai.api.ModelTypeField.prototype.getDefaultValue = function() { + return /** @type{?proto.google.protobuf.Value} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 3)); }; /** - * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value - * @return {!proto.clarifai.api.DetailConceptCount} returns this + * @param {?proto.google.protobuf.Value|undefined} value + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.DetailConceptCount.prototype.setErrors = function(value) { +proto.clarifai.api.ModelTypeField.prototype.setDefaultValue = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DetailConceptCount} returns this + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.DetailConceptCount.prototype.clearErrors = function() { - return this.setErrors(undefined); +proto.clarifai.api.ModelTypeField.prototype.clearDefaultValue = function() { + return this.setDefaultValue(undefined); }; @@ -8109,235 +27290,155 @@ proto.clarifai.api.DetailConceptCount.prototype.clearErrors = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DetailConceptCount.prototype.hasErrors = function() { +proto.clarifai.api.ModelTypeField.prototype.hasDefaultValue = function() { return jspb.Message.getField(this, 3) != null; }; /** - * optional ConceptTypeCount processing = 4; - * @return {?proto.clarifai.api.ConceptTypeCount} - */ -proto.clarifai.api.DetailConceptCount.prototype.getProcessing = function() { - return /** @type{?proto.clarifai.api.ConceptTypeCount} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptTypeCount, 4)); -}; - - -/** - * @param {?proto.clarifai.api.ConceptTypeCount|undefined} value - * @return {!proto.clarifai.api.DetailConceptCount} returns this -*/ -proto.clarifai.api.DetailConceptCount.prototype.setProcessing = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DetailConceptCount} returns this - */ -proto.clarifai.api.DetailConceptCount.prototype.clearProcessing = function() { - return this.setProcessing(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * optional string description = 4; + * @return {string} */ -proto.clarifai.api.DetailConceptCount.prototype.hasProcessing = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.ModelTypeField.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.ConceptQuery.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConceptQuery.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelTypeField.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConceptQuery} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string placeholder = 5; + * @return {string} */ -proto.clarifai.api.ConceptQuery.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - language: jspb.Message.getFieldWithDefault(msg, 2, ""), - workflowId: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.ModelTypeField.prototype.getPlaceholder = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConceptQuery} + * @param {string} value + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.ConceptQuery.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConceptQuery; - return proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ModelTypeField.prototype.setPlaceholder = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ConceptQuery} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConceptQuery} + * repeated ModelTypeEnumOption model_type_enum_options = 6; + * @return {!Array} */ -proto.clarifai.api.ConceptQuery.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ModelTypeField.prototype.getModelTypeEnumOptionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeEnumOption, 6)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!Array} value + * @return {!proto.clarifai.api.ModelTypeField} returns this +*/ +proto.clarifai.api.ModelTypeField.prototype.setModelTypeEnumOptionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.clarifai.api.ModelTypeEnumOption=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelTypeEnumOption} */ -proto.clarifai.api.ConceptQuery.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConceptQuery.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ModelTypeField.prototype.addModelTypeEnumOptions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.ModelTypeEnumOption, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConceptQuery} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.ConceptQuery.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getWorkflowId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } +proto.clarifai.api.ModelTypeField.prototype.clearModelTypeEnumOptionsList = function() { + return this.setModelTypeEnumOptionsList([]); }; /** - * optional string name = 1; - * @return {string} + * optional bool internal_only = 7; + * @return {boolean} */ -proto.clarifai.api.ConceptQuery.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ModelTypeField.prototype.getInternalOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ConceptQuery} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.ConceptQuery.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModelTypeField.prototype.setInternalOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); }; /** - * optional string language = 2; - * @return {string} + * optional bool required = 8; + * @return {boolean} */ -proto.clarifai.api.ConceptQuery.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.ModelTypeField.prototype.getRequired = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ConceptQuery} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.ConceptQuery.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.ModelTypeField.prototype.setRequired = function(value) { + return jspb.Message.setProto3BooleanField(this, 8, value); }; /** - * optional string workflow_id = 3; - * @return {string} + * optional ModelTypeRangeInfo model_type_range_info = 9; + * @return {?proto.clarifai.api.ModelTypeRangeInfo} */ -proto.clarifai.api.ConceptQuery.prototype.getWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.ModelTypeField.prototype.getModelTypeRangeInfo = function() { + return /** @type{?proto.clarifai.api.ModelTypeRangeInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ModelTypeRangeInfo, 9)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ConceptQuery} returns this + * @param {?proto.clarifai.api.ModelTypeRangeInfo|undefined} value + * @return {!proto.clarifai.api.ModelTypeField} returns this +*/ +proto.clarifai.api.ModelTypeField.prototype.setModelTypeRangeInfo = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelTypeField} returns this */ -proto.clarifai.api.ConceptQuery.prototype.setWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.ModelTypeField.prototype.clearModelTypeRangeInfo = function() { + return this.setModelTypeRangeInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ModelTypeField.prototype.hasModelTypeRangeInfo = function() { + return jspb.Message.getField(this, 9) != null; }; @@ -8357,8 +27458,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ConceptRelation.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConceptRelation.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelTypeRangeInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelTypeRangeInfo.toObject(opt_includeInstance, this); }; @@ -8367,18 +27468,15 @@ proto.clarifai.api.ConceptRelation.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConceptRelation} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelTypeRangeInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptRelation.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelTypeRangeInfo.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - subjectConcept: (f = msg.getSubjectConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f), - objectConcept: (f = msg.getObjectConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f), - predicate: jspb.Message.getFieldWithDefault(msg, 4, ""), - knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 5, ""), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f) + min: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + max: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + step: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) }; if (includeInstance) { @@ -8392,23 +27490,23 @@ proto.clarifai.api.ConceptRelation.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConceptRelation} + * @return {!proto.clarifai.api.ModelTypeRangeInfo} */ -proto.clarifai.api.ConceptRelation.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelTypeRangeInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConceptRelation; - return proto.clarifai.api.ConceptRelation.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelTypeRangeInfo; + return proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ConceptRelation} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelTypeRangeInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConceptRelation} + * @return {!proto.clarifai.api.ModelTypeRangeInfo} */ -proto.clarifai.api.ConceptRelation.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8416,31 +27514,16 @@ proto.clarifai.api.ConceptRelation.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMin(value); break; case 2: - var value = new proto.clarifai.api.Concept; - reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); - msg.setSubjectConcept(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMax(value); break; case 3: - var value = new proto.clarifai.api.Concept; - reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); - msg.setObjectConcept(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPredicate(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setKnowledgeGraphId(value); - break; - case 6: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setStep(value); break; default: reader.skipField(); @@ -8455,9 +27538,9 @@ proto.clarifai.api.ConceptRelation.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ConceptRelation.prototype.serializeBinary = function() { +proto.clarifai.api.ModelTypeRangeInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConceptRelation.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8465,225 +27548,97 @@ proto.clarifai.api.ConceptRelation.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConceptRelation} message + * @param {!proto.clarifai.api.ModelTypeRangeInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptRelation.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getMin(); + if (f !== 0.0) { + writer.writeFloat( 1, f ); } - f = message.getSubjectConcept(); - if (f != null) { - writer.writeMessage( + f = message.getMax(); + if (f !== 0.0) { + writer.writeFloat( 2, - f, - proto.clarifai.api.Concept.serializeBinaryToWriter - ); - } - f = message.getObjectConcept(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.Concept.serializeBinaryToWriter - ); - } - f = message.getPredicate(); - if (f.length > 0) { - writer.writeString( - 4, f ); } - f = message.getKnowledgeGraphId(); - if (f.length > 0) { - writer.writeString( - 5, + f = message.getStep(); + if (f !== 0.0) { + writer.writeFloat( + 3, f ); } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.clarifai.api.ConceptRelation.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ConceptRelation} returns this - */ -proto.clarifai.api.ConceptRelation.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Concept subject_concept = 2; - * @return {?proto.clarifai.api.Concept} - */ -proto.clarifai.api.ConceptRelation.prototype.getSubjectConcept = function() { - return /** @type{?proto.clarifai.api.Concept} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Concept|undefined} value - * @return {!proto.clarifai.api.ConceptRelation} returns this -*/ -proto.clarifai.api.ConceptRelation.prototype.setSubjectConcept = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ConceptRelation} returns this - */ -proto.clarifai.api.ConceptRelation.prototype.clearSubjectConcept = function() { - return this.setSubjectConcept(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.ConceptRelation.prototype.hasSubjectConcept = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Concept object_concept = 3; - * @return {?proto.clarifai.api.Concept} - */ -proto.clarifai.api.ConceptRelation.prototype.getObjectConcept = function() { - return /** @type{?proto.clarifai.api.Concept} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 3)); -}; - - -/** - * @param {?proto.clarifai.api.Concept|undefined} value - * @return {!proto.clarifai.api.ConceptRelation} returns this -*/ -proto.clarifai.api.ConceptRelation.prototype.setObjectConcept = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ConceptRelation} returns this - */ -proto.clarifai.api.ConceptRelation.prototype.clearObjectConcept = function() { - return this.setObjectConcept(undefined); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional float min = 1; + * @return {number} */ -proto.clarifai.api.ConceptRelation.prototype.hasObjectConcept = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.ModelTypeRangeInfo.prototype.getMin = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** - * optional string predicate = 4; - * @return {string} + * @param {number} value + * @return {!proto.clarifai.api.ModelTypeRangeInfo} returns this */ -proto.clarifai.api.ConceptRelation.prototype.getPredicate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.ModelTypeRangeInfo.prototype.setMin = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ConceptRelation} returns this + * optional float max = 2; + * @return {number} */ -proto.clarifai.api.ConceptRelation.prototype.setPredicate = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.ModelTypeRangeInfo.prototype.getMax = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** - * optional string knowledge_graph_id = 5; - * @return {string} + * @param {number} value + * @return {!proto.clarifai.api.ModelTypeRangeInfo} returns this */ -proto.clarifai.api.ConceptRelation.prototype.getKnowledgeGraphId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.ModelTypeRangeInfo.prototype.setMax = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ConceptRelation} returns this + * optional float step = 3; + * @return {number} */ -proto.clarifai.api.ConceptRelation.prototype.setKnowledgeGraphId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.ModelTypeRangeInfo.prototype.getStep = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** - * optional Visibility visibility = 6; - * @return {?proto.clarifai.api.Visibility} + * @param {number} value + * @return {!proto.clarifai.api.ModelTypeRangeInfo} returns this */ -proto.clarifai.api.ConceptRelation.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 6)); -}; - - -/** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.ConceptRelation} returns this -*/ -proto.clarifai.api.ConceptRelation.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.ModelTypeRangeInfo.prototype.setStep = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ConceptRelation} returns this - */ -proto.clarifai.api.ConceptRelation.prototype.clearVisibility = function() { - return this.setVisibility(undefined); -}; - /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.ConceptRelation.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 6) != null; -}; - - +proto.clarifai.api.ModelTypeEnumOption.repeatedFields_ = [5,3]; @@ -8700,8 +27655,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.KnowledgeGraph.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.KnowledgeGraph.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelTypeEnumOption.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelTypeEnumOption.toObject(opt_includeInstance, this); }; @@ -8710,17 +27665,20 @@ proto.clarifai.api.KnowledgeGraph.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.KnowledgeGraph} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelTypeEnumOption} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.KnowledgeGraph.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelTypeEnumOption.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - examplesAppId: jspb.Message.getFieldWithDefault(msg, 4, ""), - sampledExamplesAppId: jspb.Message.getFieldWithDefault(msg, 5, "") + aliasesList: jspb.Message.toObjectList(msg.getAliasesList(), + proto.clarifai.api.ModelTypeEnumOptionAlias.toObject, includeInstance), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(), + proto.clarifai.api.ModelTypeField.toObject, includeInstance), + internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + recommended: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { @@ -8734,23 +27692,23 @@ proto.clarifai.api.KnowledgeGraph.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.KnowledgeGraph} + * @return {!proto.clarifai.api.ModelTypeEnumOption} */ -proto.clarifai.api.KnowledgeGraph.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelTypeEnumOption.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.KnowledgeGraph; - return proto.clarifai.api.KnowledgeGraph.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelTypeEnumOption; + return proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.KnowledgeGraph} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelTypeEnumOption} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.KnowledgeGraph} + * @return {!proto.clarifai.api.ModelTypeEnumOption} */ -proto.clarifai.api.KnowledgeGraph.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8761,21 +27719,27 @@ proto.clarifai.api.KnowledgeGraph.deserializeBinaryFromReader = function(msg, re var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; + case 5: + var value = new proto.clarifai.api.ModelTypeEnumOptionAlias; + reader.readMessage(value,proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader); + msg.addAliases(value); + break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + msg.setDescription(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + var value = new proto.clarifai.api.ModelTypeField; + reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader); + msg.addModelTypeFields(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setExamplesAppId(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setInternalOnly(value); break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setSampledExamplesAppId(value); + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRecommended(value); break; default: reader.skipField(); @@ -8790,9 +27754,9 @@ proto.clarifai.api.KnowledgeGraph.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.KnowledgeGraph.prototype.serializeBinary = function() { +proto.clarifai.api.ModelTypeEnumOption.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.KnowledgeGraph.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8800,11 +27764,11 @@ proto.clarifai.api.KnowledgeGraph.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.KnowledgeGraph} message + * @param {!proto.clarifai.api.ModelTypeEnumOption} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.KnowledgeGraph.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -8813,31 +27777,40 @@ proto.clarifai.api.KnowledgeGraph.serializeBinaryToWriter = function(message, wr f ); } - f = message.getName(); + f = message.getAliasesList(); if (f.length > 0) { - writer.writeString( - 2, - f + writer.writeRepeatedMessage( + 5, + f, + proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( - 3, + 2, f ); } - f = message.getExamplesAppId(); + f = message.getModelTypeFieldsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( + 3, + f, + proto.clarifai.api.ModelTypeField.serializeBinaryToWriter + ); + } + f = message.getInternalOnly(); + if (f) { + writer.writeBool( 4, f ); } - f = message.getSampledExamplesAppId(); - if (f.length > 0) { - writer.writeString( - 5, + f = message.getRecommended(); + if (f) { + writer.writeBool( + 6, f ); } @@ -8845,102 +27818,153 @@ proto.clarifai.api.KnowledgeGraph.serializeBinaryToWriter = function(message, wr /** - * optional string id = 1; - * @return {string} + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.ModelTypeEnumOption.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this + */ +proto.clarifai.api.ModelTypeEnumOption.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated ModelTypeEnumOptionAlias aliases = 5; + * @return {!Array} + */ +proto.clarifai.api.ModelTypeEnumOption.prototype.getAliasesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeEnumOptionAlias, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this +*/ +proto.clarifai.api.ModelTypeEnumOption.prototype.setAliasesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} */ -proto.clarifai.api.KnowledgeGraph.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ModelTypeEnumOption.prototype.addAliases = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.ModelTypeEnumOptionAlias, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.KnowledgeGraph} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this */ -proto.clarifai.api.KnowledgeGraph.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModelTypeEnumOption.prototype.clearAliasesList = function() { + return this.setAliasesList([]); }; /** - * optional string name = 2; + * optional string description = 2; * @return {string} */ -proto.clarifai.api.KnowledgeGraph.prototype.getName = function() { +proto.clarifai.api.ModelTypeEnumOption.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.KnowledgeGraph} returns this + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this */ -proto.clarifai.api.KnowledgeGraph.prototype.setName = function(value) { +proto.clarifai.api.ModelTypeEnumOption.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string description = 3; - * @return {string} + * repeated ModelTypeField model_type_fields = 3; + * @return {!Array} */ -proto.clarifai.api.KnowledgeGraph.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.ModelTypeEnumOption.prototype.getModelTypeFieldsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 3)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.KnowledgeGraph} returns this - */ -proto.clarifai.api.KnowledgeGraph.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + * @param {!Array} value + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this +*/ +proto.clarifai.api.ModelTypeEnumOption.prototype.setModelTypeFieldsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * optional string examples_app_id = 4; - * @return {string} + * @param {!proto.clarifai.api.ModelTypeField=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelTypeField} */ -proto.clarifai.api.KnowledgeGraph.prototype.getExamplesAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.ModelTypeEnumOption.prototype.addModelTypeFields = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelTypeField, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.KnowledgeGraph} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this */ -proto.clarifai.api.KnowledgeGraph.prototype.setExamplesAppId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.ModelTypeEnumOption.prototype.clearModelTypeFieldsList = function() { + return this.setModelTypeFieldsList([]); }; /** - * optional string sampled_examples_app_id = 5; - * @return {string} + * optional bool internal_only = 4; + * @return {boolean} */ -proto.clarifai.api.KnowledgeGraph.prototype.getSampledExamplesAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.ModelTypeEnumOption.prototype.getInternalOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.KnowledgeGraph} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this */ -proto.clarifai.api.KnowledgeGraph.prototype.setSampledExamplesAppId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.ModelTypeEnumOption.prototype.setInternalOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; +/** + * optional bool recommended = 6; + * @return {boolean} + */ +proto.clarifai.api.ModelTypeEnumOption.prototype.getRecommended = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {boolean} value + * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this */ -proto.clarifai.api.ConceptMappingJob.repeatedFields_ = [2]; +proto.clarifai.api.ModelTypeEnumOption.prototype.setRecommended = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + @@ -8957,8 +27981,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ConceptMappingJob.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConceptMappingJob.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelTypeEnumOptionAlias.toObject(opt_includeInstance, this); }; @@ -8967,14 +27991,14 @@ proto.clarifai.api.ConceptMappingJob.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConceptMappingJob} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptMappingJob.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelTypeEnumOptionAlias.toObject = function(includeInstance, msg) { var f, obj = { - knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 1, ""), - conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + idInt: jspb.Message.getFieldWithDefault(msg, 1, 0), + wildcardString: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -8988,23 +28012,23 @@ proto.clarifai.api.ConceptMappingJob.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConceptMappingJob} + * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} */ -proto.clarifai.api.ConceptMappingJob.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConceptMappingJob; - return proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelTypeEnumOptionAlias; + return proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ConceptMappingJob} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConceptMappingJob} + * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} */ -proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9012,12 +28036,12 @@ proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKnowledgeGraphId(value); + var value = /** @type {number} */ (reader.readInt64()); + msg.setIdInt(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addConceptIds(value); + msg.setWildcardString(value); break; default: reader.skipField(); @@ -9032,9 +28056,9 @@ proto.clarifai.api.ConceptMappingJob.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ConceptMappingJob.prototype.serializeBinary = function() { +proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9042,22 +28066,22 @@ proto.clarifai.api.ConceptMappingJob.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConceptMappingJob} message + * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getKnowledgeGraphId(); - if (f.length > 0) { - writer.writeString( + f = message.getIdInt(); + if (f !== 0) { + writer.writeInt64( 1, f ); } - f = message.getConceptIdsList(); + f = message.getWildcardString(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); @@ -9066,57 +28090,38 @@ proto.clarifai.api.ConceptMappingJob.serializeBinaryToWriter = function(message, /** - * optional string knowledge_graph_id = 1; - * @return {string} - */ -proto.clarifai.api.ConceptMappingJob.prototype.getKnowledgeGraphId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ConceptMappingJob} returns this + * optional int64 id_int = 1; + * @return {number} */ -proto.clarifai.api.ConceptMappingJob.prototype.setKnowledgeGraphId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.getIdInt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * repeated string concept_ids = 2; - * @return {!Array} + * @param {number} value + * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} returns this */ -proto.clarifai.api.ConceptMappingJob.prototype.getConceptIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.setIdInt = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ConceptMappingJob} returns this + * optional string wildcard_string = 2; + * @return {string} */ -proto.clarifai.api.ConceptMappingJob.prototype.setConceptIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.getWildcardString = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptMappingJob} returns this - */ -proto.clarifai.api.ConceptMappingJob.prototype.addConceptIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ConceptMappingJob} returns this + * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} returns this */ -proto.clarifai.api.ConceptMappingJob.prototype.clearConceptIdsList = function() { - return this.setConceptIdsList([]); +proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.setWildcardString = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -9136,8 +28141,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ConceptLanguage.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConceptLanguage.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelQuery.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelQuery.toObject(opt_includeInstance, this); }; @@ -9146,15 +28151,14 @@ proto.clarifai.api.ConceptLanguage.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConceptLanguage} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelQuery} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptLanguage.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelQuery.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - definition: jspb.Message.getFieldWithDefault(msg, 3, "") + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + modelTypeId: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -9168,23 +28172,23 @@ proto.clarifai.api.ConceptLanguage.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConceptLanguage} + * @return {!proto.clarifai.api.ModelQuery} */ -proto.clarifai.api.ConceptLanguage.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelQuery.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConceptLanguage; - return proto.clarifai.api.ConceptLanguage.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelQuery; + return proto.clarifai.api.ModelQuery.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ConceptLanguage} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelQuery} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConceptLanguage} + * @return {!proto.clarifai.api.ModelQuery} */ -proto.clarifai.api.ConceptLanguage.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelQuery.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9192,16 +28196,12 @@ proto.clarifai.api.ConceptLanguage.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setDefinition(value); + msg.setModelTypeId(value); break; default: reader.skipField(); @@ -9216,9 +28216,9 @@ proto.clarifai.api.ConceptLanguage.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ConceptLanguage.prototype.serializeBinary = function() { +proto.clarifai.api.ModelQuery.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConceptLanguage.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelQuery.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9226,27 +28226,20 @@ proto.clarifai.api.ConceptLanguage.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConceptLanguage} message + * @param {!proto.clarifai.api.ModelQuery} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConceptLanguage.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelQuery.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } f = message.getName(); if (f.length > 0) { writer.writeString( - 2, + 1, f ); } - f = message.getDefinition(); + f = message.getModelTypeId(); if (f.length > 0) { writer.writeString( 3, @@ -9257,67 +28250,42 @@ proto.clarifai.api.ConceptLanguage.serializeBinaryToWriter = function(message, w /** - * optional string id = 1; + * optional string name = 1; * @return {string} */ -proto.clarifai.api.ConceptLanguage.prototype.getId = function() { +proto.clarifai.api.ModelQuery.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ConceptLanguage} returns this + * @return {!proto.clarifai.api.ModelQuery} returns this */ -proto.clarifai.api.ConceptLanguage.prototype.setId = function(value) { +proto.clarifai.api.ModelQuery.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string name = 2; - * @return {string} - */ -proto.clarifai.api.ConceptLanguage.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ConceptLanguage} returns this - */ -proto.clarifai.api.ConceptLanguage.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string definition = 3; + * optional string model_type_id = 3; * @return {string} */ -proto.clarifai.api.ConceptLanguage.prototype.getDefinition = function() { +proto.clarifai.api.ModelQuery.prototype.getModelTypeId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ConceptLanguage} returns this + * @return {!proto.clarifai.api.ModelQuery} returns this */ -proto.clarifai.api.ConceptLanguage.prototype.setDefinition = function(value) { +proto.clarifai.api.ModelQuery.prototype.setModelTypeId = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.Data.repeatedFields_ = [3,7,8,9,11,12,15,16,17]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -9333,8 +28301,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Data.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Data.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelVersion.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelVersion.toObject(opt_includeInstance, this); }; @@ -9343,36 +28311,32 @@ proto.clarifai.api.Data.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Data} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelVersion} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Data.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) { var f, obj = { - image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f), - video: (f = msg.getVideo()) && proto.clarifai.api.Video.toObject(includeInstance, f), - conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), - proto.clarifai.api.Concept.toObject, includeInstance), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + activeConceptCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + metrics: (f = msg.getMetrics()) && proto.clarifai.api.EvalMetrics.toObject(includeInstance, f), + totalInputCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + pretrainedModelConfig: (f = msg.getPretrainedModelConfig()) && proto.clarifai.api.PretrainedModelConfig.toObject(includeInstance, f), + completedAt: (f = msg.getCompletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + description: jspb.Message.getFieldWithDefault(msg, 11, ""), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 13, ""), + userId: jspb.Message.getFieldWithDefault(msg, 14, ""), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - geo: (f = msg.getGeo()) && proto.clarifai.api.Geo.toObject(includeInstance, f), - colorsList: jspb.Message.toObjectList(msg.getColorsList(), - proto.clarifai.api.Color.toObject, includeInstance), - clustersList: jspb.Message.toObjectList(msg.getClustersList(), - proto.clarifai.api.Cluster.toObject, includeInstance), - embeddingsList: jspb.Message.toObjectList(msg.getEmbeddingsList(), - proto.clarifai.api.Embedding.toObject, includeInstance), - regionsList: jspb.Message.toObjectList(msg.getRegionsList(), - proto.clarifai.api.Region.toObject, includeInstance), - framesList: jspb.Message.toObjectList(msg.getFramesList(), - proto.clarifai.api.Frame.toObject, includeInstance), - text: (f = msg.getText()) && proto.clarifai.api.Text.toObject(includeInstance, f), - audio: (f = msg.getAudio()) && proto.clarifai.api.Audio.toObject(includeInstance, f), - tracksList: jspb.Message.toObjectList(msg.getTracksList(), - proto.clarifai.api.Track.toObject, includeInstance), - timeSegmentsList: jspb.Message.toObjectList(msg.getTimeSegmentsList(), - proto.clarifai.api.TimeSegment.toObject, includeInstance), - hitsList: jspb.Message.toObjectList(msg.getHitsList(), - proto.clarifai.api.Hit.toObject, includeInstance) + license: jspb.Message.getFieldWithDefault(msg, 17, ""), + outputInfo: (f = msg.getOutputInfo()) && proto.clarifai.api.OutputInfo.toObject(includeInstance, f), + inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f), + trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f), + importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f), + trainLog: jspb.Message.getFieldWithDefault(msg, 23, "") }; if (includeInstance) { @@ -9386,23 +28350,23 @@ proto.clarifai.api.Data.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Data} + * @return {!proto.clarifai.api.ModelVersion} */ -proto.clarifai.api.Data.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelVersion.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Data; - return proto.clarifai.api.Data.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelVersion; + return proto.clarifai.api.ModelVersion.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Data} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelVersion} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Data} + * @return {!proto.clarifai.api.ModelVersion} */ -proto.clarifai.api.Data.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9410,79 +28374,96 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.Image; - reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader); - msg.setImage(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var value = new proto.clarifai.api.Video; - reader.readMessage(value,proto.clarifai.api.Video.deserializeBinaryFromReader); - msg.setVideo(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 3: - var value = new proto.clarifai.api.Concept; - reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); - msg.addConcepts(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setActiveConceptCount(value); break; case 5: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); + var value = new proto.clarifai.api.EvalMetrics; + reader.readMessage(value,proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader); + msg.setMetrics(value); break; case 6: - var value = new proto.clarifai.api.Geo; - reader.readMessage(value,proto.clarifai.api.Geo.deserializeBinaryFromReader); - msg.setGeo(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setTotalInputCount(value); break; case 7: - var value = new proto.clarifai.api.Color; - reader.readMessage(value,proto.clarifai.api.Color.deserializeBinaryFromReader); - msg.addColors(value); - break; - case 8: - var value = new proto.clarifai.api.Cluster; - reader.readMessage(value,proto.clarifai.api.Cluster.deserializeBinaryFromReader); - msg.addClusters(value); + var value = new proto.clarifai.api.PretrainedModelConfig; + reader.readMessage(value,proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader); + msg.setPretrainedModelConfig(value); break; - case 9: - var value = new proto.clarifai.api.Embedding; - reader.readMessage(value,proto.clarifai.api.Embedding.deserializeBinaryFromReader); - msg.addEmbeddings(value); + case 10: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCompletedAt(value); break; case 11: - var value = new proto.clarifai.api.Region; - reader.readMessage(value,proto.clarifai.api.Region.deserializeBinaryFromReader); - msg.addRegions(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; case 12: - var value = new proto.clarifai.api.Frame; - reader.readMessage(value,proto.clarifai.api.Frame.deserializeBinaryFromReader); - msg.addFrames(value); + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); break; case 13: - var value = new proto.clarifai.api.Text; - reader.readMessage(value,proto.clarifai.api.Text.deserializeBinaryFromReader); - msg.setText(value); + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); break; case 14: - var value = new proto.clarifai.api.Audio; - reader.readMessage(value,proto.clarifai.api.Audio.deserializeBinaryFromReader); - msg.setAudio(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); break; case 15: - var value = new proto.clarifai.api.Track; - reader.readMessage(value,proto.clarifai.api.Track.deserializeBinaryFromReader); - msg.addTracks(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); break; case 16: - var value = new proto.clarifai.api.TimeSegment; - reader.readMessage(value,proto.clarifai.api.TimeSegment.deserializeBinaryFromReader); - msg.addTimeSegments(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); break; case 17: - var value = new proto.clarifai.api.Hit; - reader.readMessage(value,proto.clarifai.api.Hit.deserializeBinaryFromReader); - msg.addHits(value); + var value = /** @type {string} */ (reader.readString()); + msg.setLicense(value); + break; + case 19: + var value = new proto.clarifai.api.OutputInfo; + reader.readMessage(value,proto.clarifai.api.OutputInfo.deserializeBinaryFromReader); + msg.setOutputInfo(value); + break; + case 20: + var value = new proto.clarifai.api.InputInfo; + reader.readMessage(value,proto.clarifai.api.InputInfo.deserializeBinaryFromReader); + msg.setInputInfo(value); + break; + case 21: + var value = new proto.clarifai.api.TrainInfo; + reader.readMessage(value,proto.clarifai.api.TrainInfo.deserializeBinaryFromReader); + msg.setTrainInfo(value); + break; + case 22: + var value = new proto.clarifai.api.ImportInfo; + reader.readMessage(value,proto.clarifai.api.ImportInfo.deserializeBinaryFromReader); + msg.setImportInfo(value); + break; + case 23: + var value = /** @type {string} */ (reader.readString()); + msg.setTrainLog(value); break; default: reader.skipField(); @@ -9497,9 +28478,9 @@ proto.clarifai.api.Data.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Data.prototype.serializeBinary = function() { +proto.clarifai.api.ModelVersion.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Data.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelVersion.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9507,197 +28488,210 @@ proto.clarifai.api.Data.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Data} message + * @param {!proto.clarifai.api.ModelVersion} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Data.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getImage(); - if (f != null) { - writer.writeMessage( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto.clarifai.api.Image.serializeBinaryToWriter + f ); } - f = message.getVideo(); + f = message.getCreatedAt(); if (f != null) { writer.writeMessage( 2, f, - proto.clarifai.api.Video.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getConceptsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getStatus(); + if (f != null) { + writer.writeMessage( 3, f, - proto.clarifai.api.Concept.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getMetadata(); + f = message.getActiveConceptCount(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getMetrics(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.EvalMetrics.serializeBinaryToWriter + ); + } + f = message.getTotalInputCount(); + if (f !== 0) { + writer.writeUint32( + 6, + f + ); + } + f = message.getPretrainedModelConfig(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter + ); + } + f = message.getCompletedAt(); if (f != null) { writer.writeMessage( - 5, + 10, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getGeo(); + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getVisibility(); if (f != null) { writer.writeMessage( - 6, + 12, f, - proto.clarifai.api.Geo.serializeBinaryToWriter + proto.clarifai.api.Visibility.serializeBinaryToWriter ); } - f = message.getColorsList(); + f = message.getAppId(); if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.clarifai.api.Color.serializeBinaryToWriter + writer.writeString( + 13, + f ); } - f = message.getClustersList(); + f = message.getUserId(); if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.clarifai.api.Cluster.serializeBinaryToWriter + writer.writeString( + 14, + f ); } - f = message.getEmbeddingsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 15, f, - proto.clarifai.api.Embedding.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getRegionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 11, + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 16, f, - proto.clarifai.api.Region.serializeBinaryToWriter + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } - f = message.getFramesList(); + f = message.getLicense(); if (f.length > 0) { - writer.writeRepeatedMessage( - 12, - f, - proto.clarifai.api.Frame.serializeBinaryToWriter + writer.writeString( + 17, + f ); } - f = message.getText(); + f = message.getOutputInfo(); if (f != null) { writer.writeMessage( - 13, + 19, f, - proto.clarifai.api.Text.serializeBinaryToWriter + proto.clarifai.api.OutputInfo.serializeBinaryToWriter ); } - f = message.getAudio(); + f = message.getInputInfo(); if (f != null) { writer.writeMessage( - 14, + 20, f, - proto.clarifai.api.Audio.serializeBinaryToWriter + proto.clarifai.api.InputInfo.serializeBinaryToWriter ); } - f = message.getTracksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 15, + f = message.getTrainInfo(); + if (f != null) { + writer.writeMessage( + 21, f, - proto.clarifai.api.Track.serializeBinaryToWriter + proto.clarifai.api.TrainInfo.serializeBinaryToWriter ); } - f = message.getTimeSegmentsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 16, + f = message.getImportInfo(); + if (f != null) { + writer.writeMessage( + 22, f, - proto.clarifai.api.TimeSegment.serializeBinaryToWriter + proto.clarifai.api.ImportInfo.serializeBinaryToWriter ); } - f = message.getHitsList(); + f = message.getTrainLog(); if (f.length > 0) { - writer.writeRepeatedMessage( - 17, - f, - proto.clarifai.api.Hit.serializeBinaryToWriter + writer.writeString( + 23, + f ); } }; /** - * optional Image image = 1; - * @return {?proto.clarifai.api.Image} - */ -proto.clarifai.api.Data.prototype.getImage = function() { - return /** @type{?proto.clarifai.api.Image} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 1)); -}; - - -/** - * @param {?proto.clarifai.api.Image|undefined} value - * @return {!proto.clarifai.api.Data} returns this -*/ -proto.clarifai.api.Data.prototype.setImage = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Data} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.Data.prototype.clearImage = function() { - return this.setImage(undefined); +proto.clarifai.api.ModelVersion.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.hasImage = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ModelVersion.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional Video video = 2; - * @return {?proto.clarifai.api.Video} + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Data.prototype.getVideo = function() { - return /** @type{?proto.clarifai.api.Video} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Video, 2)); +proto.clarifai.api.ModelVersion.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** - * @param {?proto.clarifai.api.Video|undefined} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setVideo = function(value) { +proto.clarifai.api.ModelVersion.prototype.setCreatedAt = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Data} returns this + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearVideo = function() { - return this.setVideo(undefined); +proto.clarifai.api.ModelVersion.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -9705,74 +28699,36 @@ proto.clarifai.api.Data.prototype.clearVideo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Data.prototype.hasVideo = function() { +proto.clarifai.api.ModelVersion.prototype.hasCreatedAt = function() { return jspb.Message.getField(this, 2) != null; }; /** - * repeated Concept concepts = 3; - * @return {!Array} - */ -proto.clarifai.api.Data.prototype.getConceptsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this -*/ -proto.clarifai.api.Data.prototype.setConceptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.Concept=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Concept} - */ -proto.clarifai.api.Data.prototype.addConcepts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Concept, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this - */ -proto.clarifai.api.Data.prototype.clearConceptsList = function() { - return this.setConceptsList([]); -}; - - -/** - * optional google.protobuf.Struct metadata = 5; - * @return {?proto.google.protobuf.Struct} + * optional status.Status status = 3; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.Data.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +proto.clarifai.api.ModelVersion.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 3)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.ModelVersion.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Data} returns this + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.ModelVersion.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -9780,263 +28736,201 @@ proto.clarifai.api.Data.prototype.clearMetadata = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Data.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional Geo geo = 6; - * @return {?proto.clarifai.api.Geo} - */ -proto.clarifai.api.Data.prototype.getGeo = function() { - return /** @type{?proto.clarifai.api.Geo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Geo, 6)); -}; - - -/** - * @param {?proto.clarifai.api.Geo|undefined} value - * @return {!proto.clarifai.api.Data} returns this -*/ -proto.clarifai.api.Data.prototype.setGeo = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.ModelVersion.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Data} returns this + * optional uint32 active_concept_count = 4; + * @return {number} */ -proto.clarifai.api.Data.prototype.clearGeo = function() { - return this.setGeo(undefined); +proto.clarifai.api.ModelVersion.prototype.getActiveConceptCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.hasGeo = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.ModelVersion.prototype.setActiveConceptCount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; /** - * repeated Color colors = 7; - * @return {!Array} + * optional EvalMetrics metrics = 5; + * @return {?proto.clarifai.api.EvalMetrics} */ -proto.clarifai.api.Data.prototype.getColorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Color, 7)); +proto.clarifai.api.ModelVersion.prototype.getMetrics = function() { + return /** @type{?proto.clarifai.api.EvalMetrics} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.EvalMetrics, 5)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.clarifai.api.EvalMetrics|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setColorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.clarifai.api.Color=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Color} - */ -proto.clarifai.api.Data.prototype.addColors = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.Color, opt_index); +proto.clarifai.api.ModelVersion.prototype.setMetrics = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearColorsList = function() { - return this.setColorsList([]); +proto.clarifai.api.ModelVersion.prototype.clearMetrics = function() { + return this.setMetrics(undefined); }; /** - * repeated Cluster clusters = 8; - * @return {!Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Data.prototype.getClustersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Cluster, 8)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this -*/ -proto.clarifai.api.Data.prototype.setClustersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); +proto.clarifai.api.ModelVersion.prototype.hasMetrics = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * @param {!proto.clarifai.api.Cluster=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Cluster} + * optional uint32 total_input_count = 6; + * @return {number} */ -proto.clarifai.api.Data.prototype.addClusters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.Cluster, opt_index); +proto.clarifai.api.ModelVersion.prototype.getTotalInputCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * @param {number} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearClustersList = function() { - return this.setClustersList([]); +proto.clarifai.api.ModelVersion.prototype.setTotalInputCount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; /** - * repeated Embedding embeddings = 9; - * @return {!Array} + * optional PretrainedModelConfig pretrained_model_config = 7; + * @return {?proto.clarifai.api.PretrainedModelConfig} */ -proto.clarifai.api.Data.prototype.getEmbeddingsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Embedding, 9)); +proto.clarifai.api.ModelVersion.prototype.getPretrainedModelConfig = function() { + return /** @type{?proto.clarifai.api.PretrainedModelConfig} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.PretrainedModelConfig, 7)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.clarifai.api.PretrainedModelConfig|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setEmbeddingsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); +proto.clarifai.api.ModelVersion.prototype.setPretrainedModelConfig = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** - * @param {!proto.clarifai.api.Embedding=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Embedding} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.addEmbeddings = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.Embedding, opt_index); +proto.clarifai.api.ModelVersion.prototype.clearPretrainedModelConfig = function() { + return this.setPretrainedModelConfig(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Data.prototype.clearEmbeddingsList = function() { - return this.setEmbeddingsList([]); +proto.clarifai.api.ModelVersion.prototype.hasPretrainedModelConfig = function() { + return jspb.Message.getField(this, 7) != null; }; /** - * repeated Region regions = 11; - * @return {!Array} + * optional google.protobuf.Timestamp completed_at = 10; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Data.prototype.getRegionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Region, 11)); +proto.clarifai.api.ModelVersion.prototype.getCompletedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setRegionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 11, value); -}; - - -/** - * @param {!proto.clarifai.api.Region=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Region} - */ -proto.clarifai.api.Data.prototype.addRegions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.clarifai.api.Region, opt_index); +proto.clarifai.api.ModelVersion.prototype.setCompletedAt = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearRegionsList = function() { - return this.setRegionsList([]); +proto.clarifai.api.ModelVersion.prototype.clearCompletedAt = function() { + return this.setCompletedAt(undefined); }; /** - * repeated Frame frames = 12; - * @return {!Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Data.prototype.getFramesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Frame, 12)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this -*/ -proto.clarifai.api.Data.prototype.setFramesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 12, value); +proto.clarifai.api.ModelVersion.prototype.hasCompletedAt = function() { + return jspb.Message.getField(this, 10) != null; }; /** - * @param {!proto.clarifai.api.Frame=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Frame} + * optional string description = 11; + * @return {string} */ -proto.clarifai.api.Data.prototype.addFrames = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.Frame, opt_index); +proto.clarifai.api.ModelVersion.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * @param {string} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearFramesList = function() { - return this.setFramesList([]); +proto.clarifai.api.ModelVersion.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); }; /** - * optional Text text = 13; - * @return {?proto.clarifai.api.Text} + * optional Visibility visibility = 12; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.Data.prototype.getText = function() { - return /** @type{?proto.clarifai.api.Text} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Text, 13)); +proto.clarifai.api.ModelVersion.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 12)); }; /** - * @param {?proto.clarifai.api.Text|undefined} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setText = function(value) { - return jspb.Message.setWrapperField(this, 13, value); +proto.clarifai.api.ModelVersion.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 12, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Data} returns this + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearText = function() { - return this.setText(undefined); +proto.clarifai.api.ModelVersion.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; @@ -10044,369 +28938,238 @@ proto.clarifai.api.Data.prototype.clearText = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Data.prototype.hasText = function() { - return jspb.Message.getField(this, 13) != null; -}; - - -/** - * optional Audio audio = 14; - * @return {?proto.clarifai.api.Audio} - */ -proto.clarifai.api.Data.prototype.getAudio = function() { - return /** @type{?proto.clarifai.api.Audio} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Audio, 14)); -}; - - -/** - * @param {?proto.clarifai.api.Audio|undefined} value - * @return {!proto.clarifai.api.Data} returns this -*/ -proto.clarifai.api.Data.prototype.setAudio = function(value) { - return jspb.Message.setWrapperField(this, 14, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Data} returns this - */ -proto.clarifai.api.Data.prototype.clearAudio = function() { - return this.setAudio(undefined); +proto.clarifai.api.ModelVersion.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 12) != null; }; /** - * Returns whether this field is set. - * @return {boolean} + * optional string app_id = 13; + * @return {string} */ -proto.clarifai.api.Data.prototype.hasAudio = function() { - return jspb.Message.getField(this, 14) != null; +proto.clarifai.api.ModelVersion.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); }; /** - * repeated Track tracks = 15; - * @return {!Array} + * @param {string} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.getTracksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Track, 15)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this -*/ -proto.clarifai.api.Data.prototype.setTracksList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 15, value); +proto.clarifai.api.ModelVersion.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 13, value); }; /** - * @param {!proto.clarifai.api.Track=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Track} + * optional string user_id = 14; + * @return {string} */ -proto.clarifai.api.Data.prototype.addTracks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.clarifai.api.Track, opt_index); +proto.clarifai.api.ModelVersion.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * @param {string} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.clearTracksList = function() { - return this.setTracksList([]); +proto.clarifai.api.ModelVersion.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); }; /** - * repeated TimeSegment time_segments = 16; - * @return {!Array} + * optional google.protobuf.Timestamp modified_at = 15; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Data.prototype.getTimeSegmentsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.TimeSegment, 16)); +proto.clarifai.api.ModelVersion.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 15)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setTimeSegmentsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 16, value); +proto.clarifai.api.ModelVersion.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 15, value); }; /** - * @param {!proto.clarifai.api.TimeSegment=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.TimeSegment} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.addTimeSegments = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.clarifai.api.TimeSegment, opt_index); +proto.clarifai.api.ModelVersion.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Data.prototype.clearTimeSegmentsList = function() { - return this.setTimeSegmentsList([]); +proto.clarifai.api.ModelVersion.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 15) != null; }; /** - * repeated Hit hits = 17; - * @return {!Array} + * optional google.protobuf.Struct metadata = 16; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Data.prototype.getHitsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 17)); +proto.clarifai.api.ModelVersion.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 16)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Data} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.setHitsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 17, value); +proto.clarifai.api.ModelVersion.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 16, value); }; /** - * @param {!proto.clarifai.api.Hit=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Hit} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Data.prototype.addHits = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.clarifai.api.Hit, opt_index); +proto.clarifai.api.ModelVersion.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Data} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Data.prototype.clearHitsList = function() { - return this.setHitsList([]); +proto.clarifai.api.ModelVersion.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 16) != null; }; +/** + * optional string license = 17; + * @return {string} + */ +proto.clarifai.api.ModelVersion.prototype.getLicense = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Region.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelVersion.prototype.setLicense = function(value) { + return jspb.Message.setProto3StringField(this, 17, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Region} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional OutputInfo output_info = 19; + * @return {?proto.clarifai.api.OutputInfo} */ -proto.clarifai.api.Region.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - regionInfo: (f = msg.getRegionInfo()) && proto.clarifai.api.RegionInfo.toObject(includeInstance, f), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - trackId: jspb.Message.getFieldWithDefault(msg, 5, "") - }; +proto.clarifai.api.ModelVersion.prototype.getOutputInfo = function() { + return /** @type{?proto.clarifai.api.OutputInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.OutputInfo, 19)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {?proto.clarifai.api.OutputInfo|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this +*/ +proto.clarifai.api.ModelVersion.prototype.setOutputInfo = function(value) { + return jspb.Message.setWrapperField(this, 19, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Region} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Region; - return proto.clarifai.api.Region.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ModelVersion.prototype.clearOutputInfo = function() { + return this.setOutputInfo(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.Region} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Region} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Region.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new proto.clarifai.api.RegionInfo; - reader.readMessage(value,proto.clarifai.api.RegionInfo.deserializeBinaryFromReader); - msg.setRegionInfo(value); - break; - case 3: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setValue(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setTrackId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ModelVersion.prototype.hasOutputInfo = function() { + return jspb.Message.getField(this, 19) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional InputInfo input_info = 20; + * @return {?proto.clarifai.api.InputInfo} */ -proto.clarifai.api.Region.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Region.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ModelVersion.prototype.getInputInfo = function() { + return /** @type{?proto.clarifai.api.InputInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.InputInfo, 20)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Region} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.Region.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRegionInfo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.RegionInfo.serializeBinaryToWriter - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.Data.serializeBinaryToWriter - ); - } - f = message.getValue(); - if (f !== 0.0) { - writer.writeFloat( - 4, - f - ); - } - f = message.getTrackId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } + * @param {?proto.clarifai.api.InputInfo|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this +*/ +proto.clarifai.api.ModelVersion.prototype.setInputInfo = function(value) { + return jspb.Message.setWrapperField(this, 20, value); }; /** - * optional string id = 1; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ModelVersion.prototype.clearInputInfo = function() { + return this.setInputInfo(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Region} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Region.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModelVersion.prototype.hasInputInfo = function() { + return jspb.Message.getField(this, 20) != null; }; /** - * optional RegionInfo region_info = 2; - * @return {?proto.clarifai.api.RegionInfo} + * optional TrainInfo train_info = 21; + * @return {?proto.clarifai.api.TrainInfo} */ -proto.clarifai.api.Region.prototype.getRegionInfo = function() { - return /** @type{?proto.clarifai.api.RegionInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.RegionInfo, 2)); +proto.clarifai.api.ModelVersion.prototype.getTrainInfo = function() { + return /** @type{?proto.clarifai.api.TrainInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TrainInfo, 21)); }; /** - * @param {?proto.clarifai.api.RegionInfo|undefined} value - * @return {!proto.clarifai.api.Region} returns this + * @param {?proto.clarifai.api.TrainInfo|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.prototype.setRegionInfo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.ModelVersion.prototype.setTrainInfo = function(value) { + return jspb.Message.setWrapperField(this, 21, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Region} returns this + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.prototype.clearRegionInfo = function() { - return this.setRegionInfo(undefined); +proto.clarifai.api.ModelVersion.prototype.clearTrainInfo = function() { + return this.setTrainInfo(undefined); }; @@ -10414,36 +29177,36 @@ proto.clarifai.api.Region.prototype.clearRegionInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Region.prototype.hasRegionInfo = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.ModelVersion.prototype.hasTrainInfo = function() { + return jspb.Message.getField(this, 21) != null; }; /** - * optional Data data = 3; - * @return {?proto.clarifai.api.Data} + * optional ImportInfo import_info = 22; + * @return {?proto.clarifai.api.ImportInfo} */ -proto.clarifai.api.Region.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 3)); +proto.clarifai.api.ModelVersion.prototype.getImportInfo = function() { + return /** @type{?proto.clarifai.api.ImportInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ImportInfo, 22)); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.Region} returns this + * @param {?proto.clarifai.api.ImportInfo|undefined} value + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.ModelVersion.prototype.setImportInfo = function(value) { + return jspb.Message.setWrapperField(this, 22, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Region} returns this + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.ModelVersion.prototype.clearImportInfo = function() { + return this.setImportInfo(undefined); }; @@ -10451,44 +29214,26 @@ proto.clarifai.api.Region.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Region.prototype.hasData = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional float value = 4; - * @return {number} - */ -proto.clarifai.api.Region.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.Region} returns this - */ -proto.clarifai.api.Region.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); +proto.clarifai.api.ModelVersion.prototype.hasImportInfo = function() { + return jspb.Message.getField(this, 22) != null; }; /** - * optional string track_id = 5; + * optional string train_log = 23; * @return {string} */ -proto.clarifai.api.Region.prototype.getTrackId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.ModelVersion.prototype.getTrainLog = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Region} returns this + * @return {!proto.clarifai.api.ModelVersion} returns this */ -proto.clarifai.api.Region.prototype.setTrackId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.ModelVersion.prototype.setTrainLog = function(value) { + return jspb.Message.setProto3StringField(this, 23, value); }; @@ -10508,8 +29253,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.RegionInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.RegionInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.PretrainedModelConfig.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PretrainedModelConfig.toObject(opt_includeInstance, this); }; @@ -10518,16 +29263,15 @@ proto.clarifai.api.RegionInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.RegionInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.PretrainedModelConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.RegionInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.PretrainedModelConfig.toObject = function(includeInstance, msg) { var f, obj = { - boundingBox: (f = msg.getBoundingBox()) && proto.clarifai.api.BoundingBox.toObject(includeInstance, f), - mask: (f = msg.getMask()) && proto.clarifai.api.Mask.toObject(includeInstance, f), - polygon: (f = msg.getPolygon()) && proto.clarifai.api.Polygon.toObject(includeInstance, f), - point: (f = msg.getPoint()) && proto.clarifai.api.Point.toObject(includeInstance, f) + inputFieldsMap: (f = msg.getInputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + outputFieldsMap: (f = msg.getOutputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, "") }; if (includeInstance) { @@ -10541,48 +29285,42 @@ proto.clarifai.api.RegionInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.RegionInfo} + * @return {!proto.clarifai.api.PretrainedModelConfig} */ -proto.clarifai.api.RegionInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.PretrainedModelConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.RegionInfo; - return proto.clarifai.api.RegionInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PretrainedModelConfig; + return proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.RegionInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PretrainedModelConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.RegionInfo} + * @return {!proto.clarifai.api.PretrainedModelConfig} */ -proto.clarifai.api.RegionInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = new proto.clarifai.api.BoundingBox; - reader.readMessage(value,proto.clarifai.api.BoundingBox.deserializeBinaryFromReader); - msg.setBoundingBox(value); + case 3: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setInputFieldsMap(value); break; case 4: - var value = new proto.clarifai.api.Mask; - reader.readMessage(value,proto.clarifai.api.Mask.deserializeBinaryFromReader); - msg.setMask(value); - break; - case 5: - var value = new proto.clarifai.api.Polygon; - reader.readMessage(value,proto.clarifai.api.Polygon.deserializeBinaryFromReader); - msg.setPolygon(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setOutputFieldsMap(value); break; case 6: - var value = new proto.clarifai.api.Point; - reader.readMessage(value,proto.clarifai.api.Point.deserializeBinaryFromReader); - msg.setPoint(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelZipUrl(value); break; default: reader.skipField(); @@ -10597,9 +29335,9 @@ proto.clarifai.api.RegionInfo.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.RegionInfo.prototype.serializeBinary = function() { +proto.clarifai.api.PretrainedModelConfig.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.RegionInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10607,146 +29345,63 @@ proto.clarifai.api.RegionInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.RegionInfo} message + * @param {!proto.clarifai.api.PretrainedModelConfig} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.RegionInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBoundingBox(); + f = message.getInputFieldsMap(); if (f != null) { writer.writeMessage( - 1, + 3, f, - proto.clarifai.api.BoundingBox.serializeBinaryToWriter + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } - f = message.getMask(); + f = message.getOutputFieldsMap(); if (f != null) { writer.writeMessage( 4, f, - proto.clarifai.api.Mask.serializeBinaryToWriter - ); - } - f = message.getPolygon(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.clarifai.api.Polygon.serializeBinaryToWriter + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } - f = message.getPoint(); - if (f != null) { - writer.writeMessage( + f = message.getModelZipUrl(); + if (f.length > 0) { + writer.writeString( 6, - f, - proto.clarifai.api.Point.serializeBinaryToWriter + f ); } }; /** - * optional BoundingBox bounding_box = 1; - * @return {?proto.clarifai.api.BoundingBox} - */ -proto.clarifai.api.RegionInfo.prototype.getBoundingBox = function() { - return /** @type{?proto.clarifai.api.BoundingBox} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.BoundingBox, 1)); -}; - - -/** - * @param {?proto.clarifai.api.BoundingBox|undefined} value - * @return {!proto.clarifai.api.RegionInfo} returns this -*/ -proto.clarifai.api.RegionInfo.prototype.setBoundingBox = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.RegionInfo} returns this - */ -proto.clarifai.api.RegionInfo.prototype.clearBoundingBox = function() { - return this.setBoundingBox(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.RegionInfo.prototype.hasBoundingBox = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Mask mask = 4; - * @return {?proto.clarifai.api.Mask} - */ -proto.clarifai.api.RegionInfo.prototype.getMask = function() { - return /** @type{?proto.clarifai.api.Mask} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Mask, 4)); -}; - - -/** - * @param {?proto.clarifai.api.Mask|undefined} value - * @return {!proto.clarifai.api.RegionInfo} returns this -*/ -proto.clarifai.api.RegionInfo.prototype.setMask = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.RegionInfo} returns this - */ -proto.clarifai.api.RegionInfo.prototype.clearMask = function() { - return this.setMask(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.RegionInfo.prototype.hasMask = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional Polygon polygon = 5; - * @return {?proto.clarifai.api.Polygon} + * optional google.protobuf.Struct input_fields_map = 3; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.RegionInfo.prototype.getPolygon = function() { - return /** @type{?proto.clarifai.api.Polygon} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Polygon, 5)); +proto.clarifai.api.PretrainedModelConfig.prototype.getInputFieldsMap = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); }; /** - * @param {?proto.clarifai.api.Polygon|undefined} value - * @return {!proto.clarifai.api.RegionInfo} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.PretrainedModelConfig} returns this */ -proto.clarifai.api.RegionInfo.prototype.setPolygon = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.PretrainedModelConfig.prototype.setInputFieldsMap = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.RegionInfo} returns this - */ -proto.clarifai.api.RegionInfo.prototype.clearPolygon = function() { - return this.setPolygon(undefined); + * @return {!proto.clarifai.api.PretrainedModelConfig} returns this + */ +proto.clarifai.api.PretrainedModelConfig.prototype.clearInputFieldsMap = function() { + return this.setInputFieldsMap(undefined); }; @@ -10754,36 +29409,36 @@ proto.clarifai.api.RegionInfo.prototype.clearPolygon = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.RegionInfo.prototype.hasPolygon = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.PretrainedModelConfig.prototype.hasInputFieldsMap = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional Point point = 6; - * @return {?proto.clarifai.api.Point} + * optional google.protobuf.Struct output_fields_map = 4; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.RegionInfo.prototype.getPoint = function() { - return /** @type{?proto.clarifai.api.Point} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Point, 6)); +proto.clarifai.api.PretrainedModelConfig.prototype.getOutputFieldsMap = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)); }; /** - * @param {?proto.clarifai.api.Point|undefined} value - * @return {!proto.clarifai.api.RegionInfo} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.PretrainedModelConfig} returns this */ -proto.clarifai.api.RegionInfo.prototype.setPoint = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.PretrainedModelConfig.prototype.setOutputFieldsMap = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.RegionInfo} returns this + * @return {!proto.clarifai.api.PretrainedModelConfig} returns this */ -proto.clarifai.api.RegionInfo.prototype.clearPoint = function() { - return this.setPoint(undefined); +proto.clarifai.api.PretrainedModelConfig.prototype.clearOutputFieldsMap = function() { + return this.setOutputFieldsMap(undefined); }; @@ -10791,12 +29446,37 @@ proto.clarifai.api.RegionInfo.prototype.clearPoint = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.RegionInfo.prototype.hasPoint = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.PretrainedModelConfig.prototype.hasOutputFieldsMap = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string model_zip_url = 6; + * @return {string} + */ +proto.clarifai.api.PretrainedModelConfig.prototype.getModelZipUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PretrainedModelConfig} returns this + */ +proto.clarifai.api.PretrainedModelConfig.prototype.setModelZipUrl = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.TrainStats.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -10812,8 +29492,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.BoundingBox.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.BoundingBox.toObject(opt_includeInstance, this); +proto.clarifai.api.TrainStats.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TrainStats.toObject(opt_includeInstance, this); }; @@ -10822,16 +29502,14 @@ proto.clarifai.api.BoundingBox.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.BoundingBox} msg The msg instance to transform. + * @param {!proto.clarifai.api.TrainStats} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.BoundingBox.toObject = function(includeInstance, msg) { +proto.clarifai.api.TrainStats.toObject = function(includeInstance, msg) { var f, obj = { - topRow: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - leftCol: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - bottomRow: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - rightCol: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) + lossCurveList: jspb.Message.toObjectList(msg.getLossCurveList(), + proto.clarifai.api.LossCurveEntry.toObject, includeInstance) }; if (includeInstance) { @@ -10845,23 +29523,23 @@ proto.clarifai.api.BoundingBox.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.BoundingBox} + * @return {!proto.clarifai.api.TrainStats} */ -proto.clarifai.api.BoundingBox.deserializeBinary = function(bytes) { +proto.clarifai.api.TrainStats.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.BoundingBox; - return proto.clarifai.api.BoundingBox.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TrainStats; + return proto.clarifai.api.TrainStats.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.BoundingBox} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TrainStats} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.BoundingBox} + * @return {!proto.clarifai.api.TrainStats} */ -proto.clarifai.api.BoundingBox.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TrainStats.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10869,20 +29547,9 @@ proto.clarifai.api.BoundingBox.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setTopRow(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLeftCol(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setBottomRow(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setRightCol(value); + var value = new proto.clarifai.api.LossCurveEntry; + reader.readMessage(value,proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader); + msg.addLossCurve(value); break; default: reader.skipField(); @@ -10897,9 +29564,9 @@ proto.clarifai.api.BoundingBox.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.BoundingBox.prototype.serializeBinary = function() { +proto.clarifai.api.TrainStats.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.BoundingBox.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TrainStats.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10907,112 +29574,58 @@ proto.clarifai.api.BoundingBox.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.BoundingBox} message + * @param {!proto.clarifai.api.TrainStats} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.BoundingBox.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TrainStats.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTopRow(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getLossCurveList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, - f - ); - } - f = message.getLeftCol(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } - f = message.getBottomRow(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getRightCol(); - if (f !== 0.0) { - writer.writeFloat( - 4, - f + f, + proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter ); } }; /** - * optional float top_row = 1; - * @return {number} - */ -proto.clarifai.api.BoundingBox.prototype.getTopRow = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.BoundingBox} returns this - */ -proto.clarifai.api.BoundingBox.prototype.setTopRow = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional float left_col = 2; - * @return {number} - */ -proto.clarifai.api.BoundingBox.prototype.getLeftCol = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.BoundingBox} returns this - */ -proto.clarifai.api.BoundingBox.prototype.setLeftCol = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); -}; - - -/** - * optional float bottom_row = 3; - * @return {number} + * repeated LossCurveEntry loss_curve = 1; + * @return {!Array} */ -proto.clarifai.api.BoundingBox.prototype.getBottomRow = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.clarifai.api.TrainStats.prototype.getLossCurveList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LossCurveEntry, 1)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.BoundingBox} returns this - */ -proto.clarifai.api.BoundingBox.prototype.setBottomRow = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); + * @param {!Array} value + * @return {!proto.clarifai.api.TrainStats} returns this +*/ +proto.clarifai.api.TrainStats.prototype.setLossCurveList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * optional float right_col = 4; - * @return {number} + * @param {!proto.clarifai.api.LossCurveEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.LossCurveEntry} */ -proto.clarifai.api.BoundingBox.prototype.getRightCol = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +proto.clarifai.api.TrainStats.prototype.addLossCurve = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.LossCurveEntry, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.BoundingBox} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.TrainStats} returns this */ -proto.clarifai.api.BoundingBox.prototype.setRightCol = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); +proto.clarifai.api.TrainStats.prototype.clearLossCurveList = function() { + return this.setLossCurveList([]); }; @@ -11032,8 +29645,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.FrameInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.FrameInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.LossCurveEntry.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.LossCurveEntry.toObject(opt_includeInstance, this); }; @@ -11042,14 +29655,15 @@ proto.clarifai.api.FrameInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.FrameInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.LossCurveEntry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.FrameInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.LossCurveEntry.toObject = function(includeInstance, msg) { var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, 0), - time: jspb.Message.getFieldWithDefault(msg, 2, 0) + epoch: jspb.Message.getFieldWithDefault(msg, 1, 0), + globalStep: jspb.Message.getFieldWithDefault(msg, 2, 0), + cost: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) }; if (includeInstance) { @@ -11063,23 +29677,23 @@ proto.clarifai.api.FrameInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.FrameInfo} + * @return {!proto.clarifai.api.LossCurveEntry} */ -proto.clarifai.api.FrameInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.LossCurveEntry.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.FrameInfo; - return proto.clarifai.api.FrameInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.LossCurveEntry; + return proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.FrameInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.LossCurveEntry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.FrameInfo} + * @return {!proto.clarifai.api.LossCurveEntry} */ -proto.clarifai.api.FrameInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11088,11 +29702,15 @@ proto.clarifai.api.FrameInfo.deserializeBinaryFromReader = function(msg, reader) switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); - msg.setIndex(value); + msg.setEpoch(value); break; case 2: var value = /** @type {number} */ (reader.readUint32()); - msg.setTime(value); + msg.setGlobalStep(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setCost(value); break; default: reader.skipField(); @@ -11107,9 +29725,9 @@ proto.clarifai.api.FrameInfo.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.FrameInfo.prototype.serializeBinary = function() { +proto.clarifai.api.LossCurveEntry.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.FrameInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11117,65 +29735,90 @@ proto.clarifai.api.FrameInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.FrameInfo} message + * @param {!proto.clarifai.api.LossCurveEntry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.FrameInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getIndex(); + f = message.getEpoch(); if (f !== 0) { writer.writeUint32( 1, f ); } - f = message.getTime(); + f = message.getGlobalStep(); if (f !== 0) { writer.writeUint32( 2, f ); } + f = message.getCost(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } }; /** - * optional uint32 index = 1; + * optional uint32 epoch = 1; * @return {number} */ -proto.clarifai.api.FrameInfo.prototype.getIndex = function() { +proto.clarifai.api.LossCurveEntry.prototype.getEpoch = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.FrameInfo} returns this + * @return {!proto.clarifai.api.LossCurveEntry} returns this */ -proto.clarifai.api.FrameInfo.prototype.setIndex = function(value) { +proto.clarifai.api.LossCurveEntry.prototype.setEpoch = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional uint32 time = 2; + * optional uint32 global_step = 2; * @return {number} */ -proto.clarifai.api.FrameInfo.prototype.getTime = function() { +proto.clarifai.api.LossCurveEntry.prototype.getGlobalStep = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.FrameInfo} returns this + * @return {!proto.clarifai.api.LossCurveEntry} returns this */ -proto.clarifai.api.FrameInfo.prototype.setTime = function(value) { +proto.clarifai.api.LossCurveEntry.prototype.setGlobalStep = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; +/** + * optional float cost = 3; + * @return {number} + */ +proto.clarifai.api.LossCurveEntry.prototype.getCost = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.LossCurveEntry} returns this + */ +proto.clarifai.api.LossCurveEntry.prototype.setCost = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + @@ -11192,8 +29835,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Frame.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Frame.toObject(opt_includeInstance, this); +proto.clarifai.api.LabelCount.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.LabelCount.toObject(opt_includeInstance, this); }; @@ -11202,15 +29845,15 @@ proto.clarifai.api.Frame.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Frame} msg The msg instance to transform. + * @param {!proto.clarifai.api.LabelCount} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Frame.toObject = function(includeInstance, msg) { +proto.clarifai.api.LabelCount.toObject = function(includeInstance, msg) { var f, obj = { - frameInfo: (f = msg.getFrameInfo()) && proto.clarifai.api.FrameInfo.toObject(includeInstance, f), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 3, "") + conceptName: jspb.Message.getFieldWithDefault(msg, 1, ""), + count: jspb.Message.getFieldWithDefault(msg, 2, 0), + concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f) }; if (includeInstance) { @@ -11224,23 +29867,23 @@ proto.clarifai.api.Frame.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Frame} + * @return {!proto.clarifai.api.LabelCount} */ -proto.clarifai.api.Frame.deserializeBinary = function(bytes) { +proto.clarifai.api.LabelCount.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Frame; - return proto.clarifai.api.Frame.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.LabelCount; + return proto.clarifai.api.LabelCount.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Frame} msg The message object to deserialize into. + * @param {!proto.clarifai.api.LabelCount} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Frame} + * @return {!proto.clarifai.api.LabelCount} */ -proto.clarifai.api.Frame.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.LabelCount.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11248,18 +29891,17 @@ proto.clarifai.api.Frame.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.FrameInfo; - reader.readMessage(value,proto.clarifai.api.FrameInfo.deserializeBinaryFromReader); - msg.setFrameInfo(value); + var value = /** @type {string} */ (reader.readString()); + msg.setConceptName(value); break; case 2: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setCount(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.setConcept(value); break; default: reader.skipField(); @@ -11274,9 +29916,9 @@ proto.clarifai.api.Frame.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Frame.prototype.serializeBinary = function() { +proto.clarifai.api.LabelCount.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Frame.serializeBinaryToWriter(this, writer); + proto.clarifai.api.LabelCount.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11284,100 +29926,98 @@ proto.clarifai.api.Frame.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Frame} message + * @param {!proto.clarifai.api.LabelCount} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Frame.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.LabelCount.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFrameInfo(); - if (f != null) { - writer.writeMessage( + f = message.getConceptName(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto.clarifai.api.FrameInfo.serializeBinaryToWriter + f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getCount(); + if (f !== 0) { + writer.writeUint32( 2, - f, - proto.clarifai.api.Data.serializeBinaryToWriter + f ); } - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getConcept(); + if (f != null) { + writer.writeMessage( 3, - f + f, + proto.clarifai.api.Concept.serializeBinaryToWriter ); } }; /** - * optional FrameInfo frame_info = 1; - * @return {?proto.clarifai.api.FrameInfo} + * optional string concept_name = 1; + * @return {string} */ -proto.clarifai.api.Frame.prototype.getFrameInfo = function() { - return /** @type{?proto.clarifai.api.FrameInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.FrameInfo, 1)); +proto.clarifai.api.LabelCount.prototype.getConceptName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.clarifai.api.FrameInfo|undefined} value - * @return {!proto.clarifai.api.Frame} returns this -*/ -proto.clarifai.api.Frame.prototype.setFrameInfo = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.clarifai.api.LabelCount} returns this + */ +proto.clarifai.api.LabelCount.prototype.setConceptName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Frame} returns this + * optional uint32 count = 2; + * @return {number} */ -proto.clarifai.api.Frame.prototype.clearFrameInfo = function() { - return this.setFrameInfo(undefined); +proto.clarifai.api.LabelCount.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.LabelCount} returns this */ -proto.clarifai.api.Frame.prototype.hasFrameInfo = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.LabelCount.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional Data data = 2; - * @return {?proto.clarifai.api.Data} + * optional Concept concept = 3; + * @return {?proto.clarifai.api.Concept} */ -proto.clarifai.api.Frame.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); +proto.clarifai.api.LabelCount.prototype.getConcept = function() { + return /** @type{?proto.clarifai.api.Concept} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 3)); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.Frame} returns this + * @param {?proto.clarifai.api.Concept|undefined} value + * @return {!proto.clarifai.api.LabelCount} returns this */ -proto.clarifai.api.Frame.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.LabelCount.prototype.setConcept = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Frame} returns this + * @return {!proto.clarifai.api.LabelCount} returns this */ -proto.clarifai.api.Frame.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.LabelCount.prototype.clearConcept = function() { + return this.setConcept(undefined); }; @@ -11385,29 +30025,18 @@ proto.clarifai.api.Frame.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Frame.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.LabelCount.prototype.hasConcept = function() { + return jspb.Message.getField(this, 3) != null; }; -/** - * optional string id = 3; - * @return {string} - */ -proto.clarifai.api.Frame.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - /** - * @param {string} value - * @return {!proto.clarifai.api.Frame} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.Frame.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - +proto.clarifai.api.LabelDistribution.repeatedFields_ = [1]; @@ -11424,8 +30053,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Mask.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Mask.toObject(opt_includeInstance, this); +proto.clarifai.api.LabelDistribution.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.LabelDistribution.toObject(opt_includeInstance, this); }; @@ -11434,13 +30063,14 @@ proto.clarifai.api.Mask.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Mask} msg The msg instance to transform. + * @param {!proto.clarifai.api.LabelDistribution} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Mask.toObject = function(includeInstance, msg) { +proto.clarifai.api.LabelDistribution.toObject = function(includeInstance, msg) { var f, obj = { - image: (f = msg.getImage()) && proto.clarifai.api.Image.toObject(includeInstance, f) + positiveLabelCountsList: jspb.Message.toObjectList(msg.getPositiveLabelCountsList(), + proto.clarifai.api.LabelCount.toObject, includeInstance) }; if (includeInstance) { @@ -11454,33 +30084,33 @@ proto.clarifai.api.Mask.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Mask} + * @return {!proto.clarifai.api.LabelDistribution} */ -proto.clarifai.api.Mask.deserializeBinary = function(bytes) { +proto.clarifai.api.LabelDistribution.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Mask; - return proto.clarifai.api.Mask.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.LabelDistribution; + return proto.clarifai.api.LabelDistribution.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Mask} msg The message object to deserialize into. + * @param {!proto.clarifai.api.LabelDistribution} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Mask} + * @return {!proto.clarifai.api.LabelDistribution} */ -proto.clarifai.api.Mask.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.LabelDistribution.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 2: - var value = new proto.clarifai.api.Image; - reader.readMessage(value,proto.clarifai.api.Image.deserializeBinaryFromReader); - msg.setImage(value); + case 1: + var value = new proto.clarifai.api.LabelCount; + reader.readMessage(value,proto.clarifai.api.LabelCount.deserializeBinaryFromReader); + msg.addPositiveLabelCounts(value); break; default: reader.skipField(); @@ -11495,9 +30125,9 @@ proto.clarifai.api.Mask.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Mask.prototype.serializeBinary = function() { +proto.clarifai.api.LabelDistribution.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Mask.serializeBinaryToWriter(this, writer); + proto.clarifai.api.LabelDistribution.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11505,68 +30135,62 @@ proto.clarifai.api.Mask.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Mask} message + * @param {!proto.clarifai.api.LabelDistribution} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Mask.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.LabelDistribution.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getImage(); - if (f != null) { - writer.writeMessage( - 2, + f = message.getPositiveLabelCountsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, f, - proto.clarifai.api.Image.serializeBinaryToWriter + proto.clarifai.api.LabelCount.serializeBinaryToWriter ); } }; /** - * optional Image image = 2; - * @return {?proto.clarifai.api.Image} + * repeated LabelCount positive_label_counts = 1; + * @return {!Array} */ -proto.clarifai.api.Mask.prototype.getImage = function() { - return /** @type{?proto.clarifai.api.Image} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Image, 2)); +proto.clarifai.api.LabelDistribution.prototype.getPositiveLabelCountsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LabelCount, 1)); }; /** - * @param {?proto.clarifai.api.Image|undefined} value - * @return {!proto.clarifai.api.Mask} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.LabelDistribution} returns this */ -proto.clarifai.api.Mask.prototype.setImage = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.LabelDistribution.prototype.setPositiveLabelCountsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Mask} returns this + * @param {!proto.clarifai.api.LabelCount=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.LabelCount} */ -proto.clarifai.api.Mask.prototype.clearImage = function() { - return this.setImage(undefined); +proto.clarifai.api.LabelDistribution.prototype.addPositiveLabelCounts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.LabelCount, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.LabelDistribution} returns this */ -proto.clarifai.api.Mask.prototype.hasImage = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.LabelDistribution.prototype.clearPositiveLabelCountsList = function() { + return this.setPositiveLabelCountsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.Polygon.repeatedFields_ = [1]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11582,8 +30206,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Polygon.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Polygon.toObject(opt_includeInstance, this); +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.CooccurrenceMatrixEntry.toObject(opt_includeInstance, this); }; @@ -11592,14 +30216,15 @@ proto.clarifai.api.Polygon.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Polygon} msg The msg instance to transform. + * @param {!proto.clarifai.api.CooccurrenceMatrixEntry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Polygon.toObject = function(includeInstance, msg) { +proto.clarifai.api.CooccurrenceMatrixEntry.toObject = function(includeInstance, msg) { var f, obj = { - pointsList: jspb.Message.toObjectList(msg.getPointsList(), - proto.clarifai.api.Point.toObject, includeInstance) + row: jspb.Message.getFieldWithDefault(msg, 1, ""), + col: jspb.Message.getFieldWithDefault(msg, 2, ""), + count: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -11613,23 +30238,23 @@ proto.clarifai.api.Polygon.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Polygon} + * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} */ -proto.clarifai.api.Polygon.deserializeBinary = function(bytes) { +proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Polygon; - return proto.clarifai.api.Polygon.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.CooccurrenceMatrixEntry; + return proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Polygon} msg The message object to deserialize into. + * @param {!proto.clarifai.api.CooccurrenceMatrixEntry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Polygon} + * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} */ -proto.clarifai.api.Polygon.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11637,9 +30262,16 @@ proto.clarifai.api.Polygon.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.Point; - reader.readMessage(value,proto.clarifai.api.Point.deserializeBinaryFromReader); - msg.addPoints(value); + var value = /** @type {string} */ (reader.readString()); + msg.setRow(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setCol(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setCount(value); break; default: reader.skipField(); @@ -11654,9 +30286,9 @@ proto.clarifai.api.Polygon.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Polygon.prototype.serializeBinary = function() { +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Polygon.serializeBinaryToWriter(this, writer); + proto.clarifai.api.CooccurrenceMatrixEntry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11664,62 +30296,98 @@ proto.clarifai.api.Polygon.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Polygon} message + * @param {!proto.clarifai.api.CooccurrenceMatrixEntry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Polygon.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.CooccurrenceMatrixEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPointsList(); + f = message.getRow(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 1, - f, - proto.clarifai.api.Point.serializeBinaryToWriter + f + ); + } + f = message.getCol(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCount(); + if (f !== 0) { + writer.writeUint32( + 3, + f ); } }; /** - * repeated Point points = 1; - * @return {!Array} + * optional string row = 1; + * @return {string} */ -proto.clarifai.api.Polygon.prototype.getPointsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Point, 1)); +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.getRow = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Polygon} returns this -*/ -proto.clarifai.api.Polygon.prototype.setPointsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} returns this + */ +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.setRow = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {!proto.clarifai.api.Point=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Point} + * optional string col = 2; + * @return {string} */ -proto.clarifai.api.Polygon.prototype.addPoints = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Point, opt_index); +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.getCol = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Polygon} returns this + * @param {string} value + * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} returns this */ -proto.clarifai.api.Polygon.prototype.clearPointsList = function() { - return this.setPointsList([]); +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.setCol = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint32 count = 3; + * @return {number} + */ +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} returns this + */ +proto.clarifai.api.CooccurrenceMatrixEntry.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.CooccurrenceMatrix.repeatedFields_ = [1,2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11735,8 +30403,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Point.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Point.toObject(opt_includeInstance, this); +proto.clarifai.api.CooccurrenceMatrix.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.CooccurrenceMatrix.toObject(opt_includeInstance, this); }; @@ -11745,15 +30413,15 @@ proto.clarifai.api.Point.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Point} msg The msg instance to transform. + * @param {!proto.clarifai.api.CooccurrenceMatrix} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Point.toObject = function(includeInstance, msg) { +proto.clarifai.api.CooccurrenceMatrix.toObject = function(includeInstance, msg) { var f, obj = { - row: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - col: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - z: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) + matrixList: jspb.Message.toObjectList(msg.getMatrixList(), + proto.clarifai.api.CooccurrenceMatrixEntry.toObject, includeInstance), + conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -11767,23 +30435,23 @@ proto.clarifai.api.Point.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Point} + * @return {!proto.clarifai.api.CooccurrenceMatrix} */ -proto.clarifai.api.Point.deserializeBinary = function(bytes) { +proto.clarifai.api.CooccurrenceMatrix.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Point; - return proto.clarifai.api.Point.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.CooccurrenceMatrix; + return proto.clarifai.api.CooccurrenceMatrix.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Point} msg The message object to deserialize into. + * @param {!proto.clarifai.api.CooccurrenceMatrix} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Point} + * @return {!proto.clarifai.api.CooccurrenceMatrix} */ -proto.clarifai.api.Point.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.CooccurrenceMatrix.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11791,16 +30459,13 @@ proto.clarifai.api.Point.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setRow(value); + var value = new proto.clarifai.api.CooccurrenceMatrixEntry; + reader.readMessage(value,proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinaryFromReader); + msg.addMatrix(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setCol(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setZ(value); + var value = /** @type {string} */ (reader.readString()); + msg.addConceptIds(value); break; default: reader.skipField(); @@ -11815,9 +30480,9 @@ proto.clarifai.api.Point.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Point.prototype.serializeBinary = function() { +proto.clarifai.api.CooccurrenceMatrix.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Point.serializeBinaryToWriter(this, writer); + proto.clarifai.api.CooccurrenceMatrix.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11825,97 +30490,105 @@ proto.clarifai.api.Point.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Point} message + * @param {!proto.clarifai.api.CooccurrenceMatrix} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Point.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.CooccurrenceMatrix.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getRow(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getMatrixList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, - f + f, + proto.clarifai.api.CooccurrenceMatrixEntry.serializeBinaryToWriter ); } - f = message.getCol(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getConceptIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, f ); } - f = message.getZ(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } }; /** - * optional float row = 1; - * @return {number} + * repeated CooccurrenceMatrixEntry matrix = 1; + * @return {!Array} */ -proto.clarifai.api.Point.prototype.getRow = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +proto.clarifai.api.CooccurrenceMatrix.prototype.getMatrixList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.CooccurrenceMatrixEntry, 1)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Point} returns this - */ -proto.clarifai.api.Point.prototype.setRow = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); + * @param {!Array} value + * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this +*/ +proto.clarifai.api.CooccurrenceMatrix.prototype.setMatrixList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * optional float col = 2; - * @return {number} + * @param {!proto.clarifai.api.CooccurrenceMatrixEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} */ -proto.clarifai.api.Point.prototype.getCol = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.CooccurrenceMatrix.prototype.addMatrix = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.CooccurrenceMatrixEntry, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Point} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this */ -proto.clarifai.api.Point.prototype.setCol = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.CooccurrenceMatrix.prototype.clearMatrixList = function() { + return this.setMatrixList([]); }; /** - * optional float z = 3; - * @return {number} + * repeated string concept_ids = 2; + * @return {!Array} */ -proto.clarifai.api.Point.prototype.getZ = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.clarifai.api.CooccurrenceMatrix.prototype.getConceptIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Point} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this */ -proto.clarifai.api.Point.prototype.setZ = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); +proto.clarifai.api.CooccurrenceMatrix.prototype.setConceptIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this + */ +proto.clarifai.api.CooccurrenceMatrix.prototype.addConceptIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this */ -proto.clarifai.api.Embedding.repeatedFields_ = [1]; +proto.clarifai.api.CooccurrenceMatrix.prototype.clearConceptIdsList = function() { + return this.setConceptIdsList([]); +}; + + @@ -11932,8 +30605,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Embedding.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Embedding.toObject(opt_includeInstance, this); +proto.clarifai.api.ConfusionMatrixEntry.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConfusionMatrixEntry.toObject(opt_includeInstance, this); }; @@ -11942,14 +30615,15 @@ proto.clarifai.api.Embedding.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Embedding} msg The msg instance to transform. + * @param {!proto.clarifai.api.ConfusionMatrixEntry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Embedding.toObject = function(includeInstance, msg) { +proto.clarifai.api.ConfusionMatrixEntry.toObject = function(includeInstance, msg) { var f, obj = { - vectorList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f, - numDimensions: jspb.Message.getFieldWithDefault(msg, 2, 0) + predicted: jspb.Message.getFieldWithDefault(msg, 1, ""), + actual: jspb.Message.getFieldWithDefault(msg, 2, ""), + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; if (includeInstance) { @@ -11963,23 +30637,23 @@ proto.clarifai.api.Embedding.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Embedding} + * @return {!proto.clarifai.api.ConfusionMatrixEntry} */ -proto.clarifai.api.Embedding.deserializeBinary = function(bytes) { +proto.clarifai.api.ConfusionMatrixEntry.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Embedding; - return proto.clarifai.api.Embedding.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ConfusionMatrixEntry; + return proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Embedding} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ConfusionMatrixEntry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Embedding} + * @return {!proto.clarifai.api.ConfusionMatrixEntry} */ -proto.clarifai.api.Embedding.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11987,14 +30661,16 @@ proto.clarifai.api.Embedding.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addVector(values[i]); - } + var value = /** @type {string} */ (reader.readString()); + msg.setPredicted(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNumDimensions(value); + var value = /** @type {string} */ (reader.readString()); + msg.setActual(value); + break; + case 4: + var value = /** @type {number} */ (reader.readFloat()); + msg.setValue(value); break; default: reader.skipField(); @@ -12009,9 +30685,9 @@ proto.clarifai.api.Embedding.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Embedding.prototype.serializeBinary = function() { +proto.clarifai.api.ConfusionMatrixEntry.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Embedding.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12019,85 +30695,98 @@ proto.clarifai.api.Embedding.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Embedding} message + * @param {!proto.clarifai.api.ConfusionMatrixEntry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Embedding.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getVectorList(); + f = message.getPredicted(); if (f.length > 0) { - writer.writePackedFloat( + writer.writeString( 1, f ); } - f = message.getNumDimensions(); - if (f !== 0) { - writer.writeUint32( + f = message.getActual(); + if (f.length > 0) { + writer.writeString( 2, f ); } + f = message.getValue(); + if (f !== 0.0) { + writer.writeFloat( + 4, + f + ); + } }; /** - * repeated float vector = 1; - * @return {!Array} + * optional string predicted = 1; + * @return {string} */ -proto.clarifai.api.Embedding.prototype.getVectorList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); +proto.clarifai.api.ConfusionMatrixEntry.prototype.getPredicted = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Embedding} returns this + * @param {string} value + * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this */ -proto.clarifai.api.Embedding.prototype.setVectorList = function(value) { - return jspb.Message.setField(this, 1, value || []); +proto.clarifai.api.ConfusionMatrixEntry.prototype.setPredicted = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Embedding} returns this + * optional string actual = 2; + * @return {string} */ -proto.clarifai.api.Embedding.prototype.addVector = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +proto.clarifai.api.ConfusionMatrixEntry.prototype.getActual = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Embedding} returns this + * @param {string} value + * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this */ -proto.clarifai.api.Embedding.prototype.clearVectorList = function() { - return this.setVectorList([]); +proto.clarifai.api.ConfusionMatrixEntry.prototype.setActual = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint32 num_dimensions = 2; + * optional float value = 4; * @return {number} */ -proto.clarifai.api.Embedding.prototype.getNumDimensions = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.ConfusionMatrixEntry.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.Embedding} returns this + * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this */ -proto.clarifai.api.Embedding.prototype.setNumDimensions = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.ConfusionMatrixEntry.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ConfusionMatrix.repeatedFields_ = [1,2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -12113,8 +30802,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GeoPoint.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GeoPoint.toObject(opt_includeInstance, this); +proto.clarifai.api.ConfusionMatrix.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConfusionMatrix.toObject(opt_includeInstance, this); }; @@ -12123,14 +30812,15 @@ proto.clarifai.api.GeoPoint.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GeoPoint} msg The msg instance to transform. + * @param {!proto.clarifai.api.ConfusionMatrix} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GeoPoint.toObject = function(includeInstance, msg) { +proto.clarifai.api.ConfusionMatrix.toObject = function(includeInstance, msg) { var f, obj = { - longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) + matrixList: jspb.Message.toObjectList(msg.getMatrixList(), + proto.clarifai.api.ConfusionMatrixEntry.toObject, includeInstance), + conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -12144,23 +30834,23 @@ proto.clarifai.api.GeoPoint.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GeoPoint} + * @return {!proto.clarifai.api.ConfusionMatrix} */ -proto.clarifai.api.GeoPoint.deserializeBinary = function(bytes) { +proto.clarifai.api.ConfusionMatrix.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GeoPoint; - return proto.clarifai.api.GeoPoint.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ConfusionMatrix; + return proto.clarifai.api.ConfusionMatrix.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GeoPoint} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ConfusionMatrix} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GeoPoint} + * @return {!proto.clarifai.api.ConfusionMatrix} */ -proto.clarifai.api.GeoPoint.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ConfusionMatrix.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12168,12 +30858,13 @@ proto.clarifai.api.GeoPoint.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLongitude(value); + var value = new proto.clarifai.api.ConfusionMatrixEntry; + reader.readMessage(value,proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader); + msg.addMatrix(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLatitude(value); + var value = /** @type {string} */ (reader.readString()); + msg.addConceptIds(value); break; default: reader.skipField(); @@ -12188,9 +30879,9 @@ proto.clarifai.api.GeoPoint.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GeoPoint.prototype.serializeBinary = function() { +proto.clarifai.api.ConfusionMatrix.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GeoPoint.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ConfusionMatrix.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12198,22 +30889,23 @@ proto.clarifai.api.GeoPoint.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GeoPoint} message + * @param {!proto.clarifai.api.ConfusionMatrix} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GeoPoint.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ConfusionMatrix.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getLongitude(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getMatrixList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, - f + f, + proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter ); } - f = message.getLatitude(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getConceptIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, f ); @@ -12222,42 +30914,88 @@ proto.clarifai.api.GeoPoint.serializeBinaryToWriter = function(message, writer) /** - * optional float longitude = 1; - * @return {number} + * repeated ConfusionMatrixEntry matrix = 1; + * @return {!Array} + */ +proto.clarifai.api.ConfusionMatrix.prototype.getMatrixList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ConfusionMatrixEntry, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ConfusionMatrix} returns this +*/ +proto.clarifai.api.ConfusionMatrix.prototype.setMatrixList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.clarifai.api.ConfusionMatrixEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConfusionMatrixEntry} + */ +proto.clarifai.api.ConfusionMatrix.prototype.addMatrix = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.ConfusionMatrixEntry, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ConfusionMatrix} returns this */ -proto.clarifai.api.GeoPoint.prototype.getLongitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +proto.clarifai.api.ConfusionMatrix.prototype.clearMatrixList = function() { + return this.setMatrixList([]); }; /** - * @param {number} value - * @return {!proto.clarifai.api.GeoPoint} returns this + * repeated string concept_ids = 2; + * @return {!Array} */ -proto.clarifai.api.GeoPoint.prototype.setLongitude = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); +proto.clarifai.api.ConfusionMatrix.prototype.getConceptIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * optional float latitude = 2; - * @return {number} + * @param {!Array} value + * @return {!proto.clarifai.api.ConfusionMatrix} returns this */ -proto.clarifai.api.GeoPoint.prototype.getLatitude = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.ConfusionMatrix.prototype.setConceptIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {number} value - * @return {!proto.clarifai.api.GeoPoint} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConfusionMatrix} returns this */ -proto.clarifai.api.GeoPoint.prototype.setLatitude = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.ConfusionMatrix.prototype.addConceptIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ConfusionMatrix} returns this + */ +proto.clarifai.api.ConfusionMatrix.prototype.clearConceptIdsList = function() { + return this.setConceptIdsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ROC.repeatedFields_ = [1,2,3,4,5]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -12273,8 +31011,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GeoLimit.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GeoLimit.toObject(opt_includeInstance, this); +proto.clarifai.api.ROC.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ROC.toObject(opt_includeInstance, this); }; @@ -12283,14 +31021,17 @@ proto.clarifai.api.GeoLimit.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GeoLimit} msg The msg instance to transform. + * @param {!proto.clarifai.api.ROC} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GeoLimit.toObject = function(includeInstance, msg) { +proto.clarifai.api.ROC.toObject = function(includeInstance, msg) { var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0) + fprList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f, + tprList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f, + thresholdsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 3)) == null ? undefined : f, + fprPerImageList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 4)) == null ? undefined : f, + fprPerObjectList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 5)) == null ? undefined : f }; if (includeInstance) { @@ -12304,23 +31045,23 @@ proto.clarifai.api.GeoLimit.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GeoLimit} + * @return {!proto.clarifai.api.ROC} */ -proto.clarifai.api.GeoLimit.deserializeBinary = function(bytes) { +proto.clarifai.api.ROC.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GeoLimit; - return proto.clarifai.api.GeoLimit.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ROC; + return proto.clarifai.api.ROC.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GeoLimit} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ROC} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GeoLimit} + * @return {!proto.clarifai.api.ROC} */ -proto.clarifai.api.GeoLimit.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ROC.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12328,12 +31069,34 @@ proto.clarifai.api.GeoLimit.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addFpr(values[i]); + } break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setValue(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addTpr(values[i]); + } + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addThresholds(values[i]); + } + break; + case 4: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addFprPerImage(values[i]); + } + break; + case 5: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addFprPerObject(values[i]); + } break; default: reader.skipField(); @@ -12348,9 +31111,9 @@ proto.clarifai.api.GeoLimit.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GeoLimit.prototype.serializeBinary = function() { +proto.clarifai.api.ROC.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GeoLimit.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ROC.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12358,213 +31121,232 @@ proto.clarifai.api.GeoLimit.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GeoLimit} message + * @param {!proto.clarifai.api.ROC} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GeoLimit.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ROC.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getType(); + f = message.getFprList(); if (f.length > 0) { - writer.writeString( + writer.writePackedFloat( 1, f ); } - f = message.getValue(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getTprList(); + if (f.length > 0) { + writer.writePackedFloat( 2, f ); } + f = message.getThresholdsList(); + if (f.length > 0) { + writer.writePackedFloat( + 3, + f + ); + } + f = message.getFprPerImageList(); + if (f.length > 0) { + writer.writePackedFloat( + 4, + f + ); + } + f = message.getFprPerObjectList(); + if (f.length > 0) { + writer.writePackedFloat( + 5, + f + ); + } }; /** - * optional string type = 1; - * @return {string} + * repeated float fpr = 1; + * @return {!Array} */ -proto.clarifai.api.GeoLimit.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ROC.prototype.getFprList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GeoLimit} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoLimit.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ROC.prototype.setFprList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; /** - * optional float value = 2; - * @return {number} + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoLimit.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.ROC.prototype.addFpr = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ROC} returns this + */ +proto.clarifai.api.ROC.prototype.clearFprList = function() { + return this.setFprList([]); +}; + + +/** + * repeated float tpr = 2; + * @return {!Array} + */ +proto.clarifai.api.ROC.prototype.getTprList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ROC} returns this + */ +proto.clarifai.api.ROC.prototype.setTprList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {number} value - * @return {!proto.clarifai.api.GeoLimit} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoLimit.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.ROC.prototype.addTpr = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ROC} returns this + */ +proto.clarifai.api.ROC.prototype.clearTprList = function() { + return this.setTprList([]); +}; + +/** + * repeated float thresholds = 3; + * @return {!Array} + */ +proto.clarifai.api.ROC.prototype.getThresholdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 3)); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {!Array} value + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoBoxedPoint.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GeoBoxedPoint.toObject(opt_includeInstance, this); +proto.clarifai.api.ROC.prototype.setThresholdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GeoBoxedPoint} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoBoxedPoint.toObject = function(includeInstance, msg) { - var f, obj = { - geoPoint: (f = msg.getGeoPoint()) && proto.clarifai.api.GeoPoint.toObject(includeInstance, f) - }; +proto.clarifai.api.ROC.prototype.addThresholds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ROC} returns this + */ +proto.clarifai.api.ROC.prototype.clearThresholdsList = function() { + return this.setThresholdsList([]); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GeoBoxedPoint} + * repeated float fpr_per_image = 4; + * @return {!Array} */ -proto.clarifai.api.GeoBoxedPoint.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GeoBoxedPoint; - return proto.clarifai.api.GeoBoxedPoint.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ROC.prototype.getFprPerImageList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 4)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.GeoBoxedPoint} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GeoBoxedPoint} + * @param {!Array} value + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoBoxedPoint.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clarifai.api.GeoPoint; - reader.readMessage(value,proto.clarifai.api.GeoPoint.deserializeBinaryFromReader); - msg.setGeoPoint(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ROC.prototype.setFprPerImageList = function(value) { + return jspb.Message.setField(this, 4, value || []); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoBoxedPoint.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GeoBoxedPoint.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ROC.prototype.addFprPerImage = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GeoBoxedPoint} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoBoxedPoint.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGeoPoint(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clarifai.api.GeoPoint.serializeBinaryToWriter - ); - } +proto.clarifai.api.ROC.prototype.clearFprPerImageList = function() { + return this.setFprPerImageList([]); }; /** - * optional GeoPoint geo_point = 1; - * @return {?proto.clarifai.api.GeoPoint} + * repeated float fpr_per_object = 5; + * @return {!Array} */ -proto.clarifai.api.GeoBoxedPoint.prototype.getGeoPoint = function() { - return /** @type{?proto.clarifai.api.GeoPoint} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.GeoPoint, 1)); +proto.clarifai.api.ROC.prototype.getFprPerObjectList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 5)); }; /** - * @param {?proto.clarifai.api.GeoPoint|undefined} value - * @return {!proto.clarifai.api.GeoBoxedPoint} returns this -*/ -proto.clarifai.api.GeoBoxedPoint.prototype.setGeoPoint = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {!Array} value + * @return {!proto.clarifai.api.ROC} returns this + */ +proto.clarifai.api.ROC.prototype.setFprPerObjectList = function(value) { + return jspb.Message.setField(this, 5, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GeoBoxedPoint} returns this + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoBoxedPoint.prototype.clearGeoPoint = function() { - return this.setGeoPoint(undefined); +proto.clarifai.api.ROC.prototype.addFprPerObject = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ROC} returns this */ -proto.clarifai.api.GeoBoxedPoint.prototype.hasGeoPoint = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ROC.prototype.clearFprPerObjectList = function() { + return this.setFprPerObjectList([]); }; @@ -12574,7 +31356,7 @@ proto.clarifai.api.GeoBoxedPoint.prototype.hasGeoPoint = function() { * @private {!Array} * @const */ -proto.clarifai.api.Geo.repeatedFields_ = [3]; +proto.clarifai.api.PrecisionRecallCurve.repeatedFields_ = [1,2,3]; @@ -12591,8 +31373,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Geo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Geo.toObject(opt_includeInstance, this); +proto.clarifai.api.PrecisionRecallCurve.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PrecisionRecallCurve.toObject(opt_includeInstance, this); }; @@ -12601,16 +31383,15 @@ proto.clarifai.api.Geo.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Geo} msg The msg instance to transform. + * @param {!proto.clarifai.api.PrecisionRecallCurve} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Geo.toObject = function(includeInstance, msg) { +proto.clarifai.api.PrecisionRecallCurve.toObject = function(includeInstance, msg) { var f, obj = { - geoPoint: (f = msg.getGeoPoint()) && proto.clarifai.api.GeoPoint.toObject(includeInstance, f), - geoLimit: (f = msg.getGeoLimit()) && proto.clarifai.api.GeoLimit.toObject(includeInstance, f), - geoBoxList: jspb.Message.toObjectList(msg.getGeoBoxList(), - proto.clarifai.api.GeoBoxedPoint.toObject, includeInstance) + recallList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f, + precisionList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f, + thresholdsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -12624,23 +31405,23 @@ proto.clarifai.api.Geo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Geo} + * @return {!proto.clarifai.api.PrecisionRecallCurve} */ -proto.clarifai.api.Geo.deserializeBinary = function(bytes) { +proto.clarifai.api.PrecisionRecallCurve.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Geo; - return proto.clarifai.api.Geo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PrecisionRecallCurve; + return proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Geo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PrecisionRecallCurve} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Geo} + * @return {!proto.clarifai.api.PrecisionRecallCurve} */ -proto.clarifai.api.Geo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12648,19 +31429,22 @@ proto.clarifai.api.Geo.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.GeoPoint; - reader.readMessage(value,proto.clarifai.api.GeoPoint.deserializeBinaryFromReader); - msg.setGeoPoint(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addRecall(values[i]); + } break; case 2: - var value = new proto.clarifai.api.GeoLimit; - reader.readMessage(value,proto.clarifai.api.GeoLimit.deserializeBinaryFromReader); - msg.setGeoLimit(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addPrecision(values[i]); + } break; case 3: - var value = new proto.clarifai.api.GeoBoxedPoint; - reader.readMessage(value,proto.clarifai.api.GeoBoxedPoint.deserializeBinaryFromReader); - msg.addGeoBox(value); + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); + for (var i = 0; i < values.length; i++) { + msg.addThresholds(values[i]); + } break; default: reader.skipField(); @@ -12675,9 +31459,9 @@ proto.clarifai.api.Geo.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Geo.prototype.serializeBinary = function() { +proto.clarifai.api.PrecisionRecallCurve.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Geo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PrecisionRecallCurve.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12685,148 +31469,144 @@ proto.clarifai.api.Geo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Geo} message + * @param {!proto.clarifai.api.PrecisionRecallCurve} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Geo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PrecisionRecallCurve.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getGeoPoint(); - if (f != null) { - writer.writeMessage( + f = message.getRecallList(); + if (f.length > 0) { + writer.writePackedFloat( 1, - f, - proto.clarifai.api.GeoPoint.serializeBinaryToWriter + f ); } - f = message.getGeoLimit(); - if (f != null) { - writer.writeMessage( + f = message.getPrecisionList(); + if (f.length > 0) { + writer.writePackedFloat( 2, - f, - proto.clarifai.api.GeoLimit.serializeBinaryToWriter + f ); } - f = message.getGeoBoxList(); + f = message.getThresholdsList(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writePackedFloat( 3, - f, - proto.clarifai.api.GeoBoxedPoint.serializeBinaryToWriter + f ); } }; /** - * optional GeoPoint geo_point = 1; - * @return {?proto.clarifai.api.GeoPoint} + * repeated float recall = 1; + * @return {!Array} */ -proto.clarifai.api.Geo.prototype.getGeoPoint = function() { - return /** @type{?proto.clarifai.api.GeoPoint} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.GeoPoint, 1)); +proto.clarifai.api.PrecisionRecallCurve.prototype.getRecallList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); }; /** - * @param {?proto.clarifai.api.GeoPoint|undefined} value - * @return {!proto.clarifai.api.Geo} returns this -*/ -proto.clarifai.api.Geo.prototype.setGeoPoint = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {!Array} value + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this + */ +proto.clarifai.api.PrecisionRecallCurve.prototype.setRecallList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Geo} returns this + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this */ -proto.clarifai.api.Geo.prototype.clearGeoPoint = function() { - return this.setGeoPoint(undefined); +proto.clarifai.api.PrecisionRecallCurve.prototype.addRecall = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this */ -proto.clarifai.api.Geo.prototype.hasGeoPoint = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.PrecisionRecallCurve.prototype.clearRecallList = function() { + return this.setRecallList([]); }; /** - * optional GeoLimit geo_limit = 2; - * @return {?proto.clarifai.api.GeoLimit} + * repeated float precision = 2; + * @return {!Array} */ -proto.clarifai.api.Geo.prototype.getGeoLimit = function() { - return /** @type{?proto.clarifai.api.GeoLimit} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.GeoLimit, 2)); +proto.clarifai.api.PrecisionRecallCurve.prototype.getPrecisionList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); }; /** - * @param {?proto.clarifai.api.GeoLimit|undefined} value - * @return {!proto.clarifai.api.Geo} returns this -*/ -proto.clarifai.api.Geo.prototype.setGeoLimit = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this + */ +proto.clarifai.api.PrecisionRecallCurve.prototype.setPrecisionList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Geo} returns this + * @param {number} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this */ -proto.clarifai.api.Geo.prototype.clearGeoLimit = function() { - return this.setGeoLimit(undefined); +proto.clarifai.api.PrecisionRecallCurve.prototype.addPrecision = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this */ -proto.clarifai.api.Geo.prototype.hasGeoLimit = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PrecisionRecallCurve.prototype.clearPrecisionList = function() { + return this.setPrecisionList([]); }; /** - * repeated GeoBoxedPoint geo_box = 3; - * @return {!Array} + * repeated float thresholds = 3; + * @return {!Array} */ -proto.clarifai.api.Geo.prototype.getGeoBoxList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.GeoBoxedPoint, 3)); +proto.clarifai.api.PrecisionRecallCurve.prototype.getThresholdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 3)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Geo} returns this -*/ -proto.clarifai.api.Geo.prototype.setGeoBoxList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); + * @param {!Array} value + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this + */ +proto.clarifai.api.PrecisionRecallCurve.prototype.setThresholdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); }; /** - * @param {!proto.clarifai.api.GeoBoxedPoint=} opt_value + * @param {number} value * @param {number=} opt_index - * @return {!proto.clarifai.api.GeoBoxedPoint} + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this */ -proto.clarifai.api.Geo.prototype.addGeoBox = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.GeoBoxedPoint, opt_index); +proto.clarifai.api.PrecisionRecallCurve.prototype.addThresholds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Geo} returns this + * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this */ -proto.clarifai.api.Geo.prototype.clearGeoBoxList = function() { - return this.setGeoBoxList([]); +proto.clarifai.api.PrecisionRecallCurve.prototype.clearThresholdsList = function() { + return this.setThresholdsList([]); }; @@ -12846,8 +31626,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Image.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Image.toObject(opt_includeInstance, this); +proto.clarifai.api.BinaryMetrics.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.BinaryMetrics.toObject(opt_includeInstance, this); }; @@ -12856,17 +31636,25 @@ proto.clarifai.api.Image.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Image} msg The msg instance to transform. + * @param {!proto.clarifai.api.BinaryMetrics} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Image.toObject = function(includeInstance, msg) { +proto.clarifai.api.BinaryMetrics.toObject = function(includeInstance, msg) { var f, obj = { - url: jspb.Message.getFieldWithDefault(msg, 1, ""), - base64: msg.getBase64_asB64(), - allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), - imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f) + numPos: jspb.Message.getFieldWithDefault(msg, 1, 0), + numNeg: jspb.Message.getFieldWithDefault(msg, 2, 0), + numTot: jspb.Message.getFieldWithDefault(msg, 3, 0), + rocAuc: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + f1: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f), + rocCurve: (f = msg.getRocCurve()) && proto.clarifai.api.ROC.toObject(includeInstance, f), + precisionRecallCurve: (f = msg.getPrecisionRecallCurve()) && proto.clarifai.api.PrecisionRecallCurve.toObject(includeInstance, f), + avgPrecision: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), + areaName: jspb.Message.getFieldWithDefault(msg, 10, ""), + areaMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), + areaMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0), + iou: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0) }; if (includeInstance) { @@ -12880,23 +31668,23 @@ proto.clarifai.api.Image.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Image} + * @return {!proto.clarifai.api.BinaryMetrics} */ -proto.clarifai.api.Image.deserializeBinary = function(bytes) { +proto.clarifai.api.BinaryMetrics.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Image; - return proto.clarifai.api.Image.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.BinaryMetrics; + return proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Image} msg The message object to deserialize into. + * @param {!proto.clarifai.api.BinaryMetrics} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Image} + * @return {!proto.clarifai.api.BinaryMetrics} */ -proto.clarifai.api.Image.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12904,26 +31692,59 @@ proto.clarifai.api.Image.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setNumPos(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBase64(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setNumNeg(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setNumTot(value); break; case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowDuplicateUrl(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setRocAuc(value); break; case 5: - var value = new proto.clarifai.api.HostedURL; - reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); - msg.setHosted(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setF1(value); break; case 6: - var value = new proto.clarifai.api.ImageInfo; - reader.readMessage(value,proto.clarifai.api.ImageInfo.deserializeBinaryFromReader); - msg.setImageInfo(value); + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.setConcept(value); + break; + case 7: + var value = new proto.clarifai.api.ROC; + reader.readMessage(value,proto.clarifai.api.ROC.deserializeBinaryFromReader); + msg.setRocCurve(value); + break; + case 8: + var value = new proto.clarifai.api.PrecisionRecallCurve; + reader.readMessage(value,proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader); + msg.setPrecisionRecallCurve(value); + break; + case 9: + var value = /** @type {number} */ (reader.readFloat()); + msg.setAvgPrecision(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setAreaName(value); + break; + case 11: + var value = /** @type {number} */ (reader.readDouble()); + msg.setAreaMin(value); + break; + case 12: + var value = /** @type {number} */ (reader.readDouble()); + msg.setAreaMax(value); + break; + case 13: + var value = /** @type {number} */ (reader.readFloat()); + msg.setIou(value); break; default: reader.skipField(); @@ -12938,9 +31759,9 @@ proto.clarifai.api.Image.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Image.prototype.serializeBinary = function() { +proto.clarifai.api.BinaryMetrics.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Image.serializeBinaryToWriter(this, writer); + proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12948,155 +31769,224 @@ proto.clarifai.api.Image.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Image} message + * @param {!proto.clarifai.api.BinaryMetrics} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Image.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUrl(); - if (f.length > 0) { - writer.writeString( + f = message.getNumPos(); + if (f !== 0) { + writer.writeUint32( 1, f ); } - f = message.getBase64_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getNumNeg(); + if (f !== 0) { + writer.writeUint32( 2, f ); } - f = message.getAllowDuplicateUrl(); - if (f) { - writer.writeBool( + f = message.getNumTot(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getRocAuc(); + if (f !== 0.0) { + writer.writeFloat( 4, f ); } - f = message.getHosted(); + f = message.getF1(); + if (f !== 0.0) { + writer.writeFloat( + 5, + f + ); + } + f = message.getConcept(); if (f != null) { writer.writeMessage( - 5, + 6, f, - proto.clarifai.api.HostedURL.serializeBinaryToWriter + proto.clarifai.api.Concept.serializeBinaryToWriter ); } - f = message.getImageInfo(); + f = message.getRocCurve(); if (f != null) { writer.writeMessage( - 6, + 7, f, - proto.clarifai.api.ImageInfo.serializeBinaryToWriter + proto.clarifai.api.ROC.serializeBinaryToWriter + ); + } + f = message.getPrecisionRecallCurve(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.clarifai.api.PrecisionRecallCurve.serializeBinaryToWriter + ); + } + f = message.getAvgPrecision(); + if (f !== 0.0) { + writer.writeFloat( + 9, + f + ); + } + f = message.getAreaName(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getAreaMin(); + if (f !== 0.0) { + writer.writeDouble( + 11, + f + ); + } + f = message.getAreaMax(); + if (f !== 0.0) { + writer.writeDouble( + 12, + f + ); + } + f = message.getIou(); + if (f !== 0.0) { + writer.writeFloat( + 13, + f ); } }; /** - * optional string url = 1; - * @return {string} + * optional uint32 num_pos = 1; + * @return {number} */ -proto.clarifai.api.Image.prototype.getUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.BinaryMetrics.prototype.getNumPos = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Image} returns this + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.setUrl = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.BinaryMetrics.prototype.setNumPos = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional bytes base64 = 2; - * @return {!(string|Uint8Array)} + * optional uint32 num_neg = 2; + * @return {number} */ -proto.clarifai.api.Image.prototype.getBase64 = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.BinaryMetrics.prototype.getNumNeg = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * optional bytes base64 = 2; - * This is a type-conversion wrapper around `getBase64()` - * @return {string} + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.getBase64_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBase64())); +proto.clarifai.api.BinaryMetrics.prototype.setNumNeg = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional bytes base64 = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBase64()` - * @return {!Uint8Array} + * optional uint32 num_tot = 3; + * @return {number} */ -proto.clarifai.api.Image.prototype.getBase64_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBase64())); +proto.clarifai.api.BinaryMetrics.prototype.getNumTot = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.clarifai.api.Image} returns this + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.setBase64 = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.clarifai.api.BinaryMetrics.prototype.setNumTot = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional bool allow_duplicate_url = 4; - * @return {boolean} + * optional float roc_auc = 4; + * @return {number} */ -proto.clarifai.api.Image.prototype.getAllowDuplicateUrl = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.BinaryMetrics.prototype.getRocAuc = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Image} returns this + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.setAllowDuplicateUrl = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.BinaryMetrics.prototype.setRocAuc = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); }; /** - * optional HostedURL hosted = 5; - * @return {?proto.clarifai.api.HostedURL} + * optional float f1 = 5; + * @return {number} */ -proto.clarifai.api.Image.prototype.getHosted = function() { - return /** @type{?proto.clarifai.api.HostedURL} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 5)); +proto.clarifai.api.BinaryMetrics.prototype.getF1 = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; /** - * @param {?proto.clarifai.api.HostedURL|undefined} value - * @return {!proto.clarifai.api.Image} returns this + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this + */ +proto.clarifai.api.BinaryMetrics.prototype.setF1 = function(value) { + return jspb.Message.setProto3FloatField(this, 5, value); +}; + + +/** + * optional Concept concept = 6; + * @return {?proto.clarifai.api.Concept} + */ +proto.clarifai.api.BinaryMetrics.prototype.getConcept = function() { + return /** @type{?proto.clarifai.api.Concept} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 6)); +}; + + +/** + * @param {?proto.clarifai.api.Concept|undefined} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.setHosted = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.BinaryMetrics.prototype.setConcept = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Image} returns this + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.clearHosted = function() { - return this.setHosted(undefined); +proto.clarifai.api.BinaryMetrics.prototype.clearConcept = function() { + return this.setConcept(undefined); }; @@ -13104,45 +31994,172 @@ proto.clarifai.api.Image.prototype.clearHosted = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Image.prototype.hasHosted = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.BinaryMetrics.prototype.hasConcept = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional ImageInfo image_info = 6; - * @return {?proto.clarifai.api.ImageInfo} + * optional ROC roc_curve = 7; + * @return {?proto.clarifai.api.ROC} */ -proto.clarifai.api.Image.prototype.getImageInfo = function() { - return /** @type{?proto.clarifai.api.ImageInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ImageInfo, 6)); +proto.clarifai.api.BinaryMetrics.prototype.getRocCurve = function() { + return /** @type{?proto.clarifai.api.ROC} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ROC, 7)); }; /** - * @param {?proto.clarifai.api.ImageInfo|undefined} value - * @return {!proto.clarifai.api.Image} returns this + * @param {?proto.clarifai.api.ROC|undefined} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.setImageInfo = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.BinaryMetrics.prototype.setRocCurve = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Image} returns this + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.clearImageInfo = function() { - return this.setImageInfo(undefined); +proto.clarifai.api.BinaryMetrics.prototype.clearRocCurve = function() { + return this.setRocCurve(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.BinaryMetrics.prototype.hasRocCurve = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional PrecisionRecallCurve precision_recall_curve = 8; + * @return {?proto.clarifai.api.PrecisionRecallCurve} + */ +proto.clarifai.api.BinaryMetrics.prototype.getPrecisionRecallCurve = function() { + return /** @type{?proto.clarifai.api.PrecisionRecallCurve} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.PrecisionRecallCurve, 8)); +}; + + +/** + * @param {?proto.clarifai.api.PrecisionRecallCurve|undefined} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this +*/ +proto.clarifai.api.BinaryMetrics.prototype.setPrecisionRecallCurve = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.BinaryMetrics} returns this + */ +proto.clarifai.api.BinaryMetrics.prototype.clearPrecisionRecallCurve = function() { + return this.setPrecisionRecallCurve(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.BinaryMetrics.prototype.hasPrecisionRecallCurve = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional float avg_precision = 9; + * @return {number} + */ +proto.clarifai.api.BinaryMetrics.prototype.getAvgPrecision = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this + */ +proto.clarifai.api.BinaryMetrics.prototype.setAvgPrecision = function(value) { + return jspb.Message.setProto3FloatField(this, 9, value); +}; + + +/** + * optional string area_name = 10; + * @return {string} + */ +proto.clarifai.api.BinaryMetrics.prototype.getAreaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this + */ +proto.clarifai.api.BinaryMetrics.prototype.setAreaName = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional double area_min = 11; + * @return {number} + */ +proto.clarifai.api.BinaryMetrics.prototype.getAreaMin = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this + */ +proto.clarifai.api.BinaryMetrics.prototype.setAreaMin = function(value) { + return jspb.Message.setProto3FloatField(this, 11, value); +}; + + +/** + * optional double area_max = 12; + * @return {number} + */ +proto.clarifai.api.BinaryMetrics.prototype.getAreaMax = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this + */ +proto.clarifai.api.BinaryMetrics.prototype.setAreaMax = function(value) { + return jspb.Message.setProto3FloatField(this, 12, value); +}; + + +/** + * optional float iou = 13; + * @return {number} + */ +proto.clarifai.api.BinaryMetrics.prototype.getIou = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.BinaryMetrics} returns this */ -proto.clarifai.api.Image.prototype.hasImageInfo = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.BinaryMetrics.prototype.setIou = function(value) { + return jspb.Message.setProto3FloatField(this, 13, value); }; @@ -13162,8 +32179,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ImageInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ImageInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.TrackerMetrics.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TrackerMetrics.toObject(opt_includeInstance, this); }; @@ -13172,16 +32189,18 @@ proto.clarifai.api.ImageInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ImageInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.TrackerMetrics} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ImageInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.TrackerMetrics.toObject = function(includeInstance, msg) { var f, obj = { - width: jspb.Message.getFieldWithDefault(msg, 1, 0), - height: jspb.Message.getFieldWithDefault(msg, 2, 0), - format: jspb.Message.getFieldWithDefault(msg, 3, ""), - colorMode: jspb.Message.getFieldWithDefault(msg, 4, "") + motMota: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + motNumSwitches: jspb.Message.getFieldWithDefault(msg, 2, 0), + morseFrag: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + avgPrecision: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + aiid: jspb.Message.getFieldWithDefault(msg, 5, ""), + uniqueSwitchRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0) }; if (includeInstance) { @@ -13195,23 +32214,23 @@ proto.clarifai.api.ImageInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ImageInfo} + * @return {!proto.clarifai.api.TrackerMetrics} */ -proto.clarifai.api.ImageInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.TrackerMetrics.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ImageInfo; - return proto.clarifai.api.ImageInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TrackerMetrics; + return proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ImageInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TrackerMetrics} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ImageInfo} + * @return {!proto.clarifai.api.TrackerMetrics} */ -proto.clarifai.api.ImageInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13219,20 +32238,28 @@ proto.clarifai.api.ImageInfo.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setWidth(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMotMota(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); - msg.setHeight(value); + msg.setMotNumSwitches(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setFormat(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMorseFrag(value); break; case 4: + var value = /** @type {number} */ (reader.readFloat()); + msg.setAvgPrecision(value); + break; + case 5: var value = /** @type {string} */ (reader.readString()); - msg.setColorMode(value); + msg.setAiid(value); + break; + case 6: + var value = /** @type {number} */ (reader.readFloat()); + msg.setUniqueSwitchRate(value); break; default: reader.skipField(); @@ -13247,9 +32274,9 @@ proto.clarifai.api.ImageInfo.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ImageInfo.prototype.serializeBinary = function() { +proto.clarifai.api.TrackerMetrics.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ImageInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TrackerMetrics.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13257,37 +32284,51 @@ proto.clarifai.api.ImageInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ImageInfo} message + * @param {!proto.clarifai.api.TrackerMetrics} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ImageInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TrackerMetrics.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getWidth(); - if (f !== 0) { - writer.writeInt32( + f = message.getMotMota(); + if (f !== 0.0) { + writer.writeFloat( 1, f ); } - f = message.getHeight(); + f = message.getMotNumSwitches(); if (f !== 0) { writer.writeInt32( 2, f ); } - f = message.getFormat(); - if (f.length > 0) { - writer.writeString( + f = message.getMorseFrag(); + if (f !== 0.0) { + writer.writeFloat( 3, f ); } - f = message.getColorMode(); + f = message.getAvgPrecision(); + if (f !== 0.0) { + writer.writeFloat( + 4, + f + ); + } + f = message.getAiid(); if (f.length > 0) { writer.writeString( - 4, + 5, + f + ); + } + f = message.getUniqueSwitchRate(); + if (f !== 0.0) { + writer.writeFloat( + 6, f ); } @@ -13295,74 +32336,110 @@ proto.clarifai.api.ImageInfo.serializeBinaryToWriter = function(message, writer) /** - * optional int32 width = 1; + * optional float mot_mota = 1; * @return {number} */ -proto.clarifai.api.ImageInfo.prototype.getWidth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.TrackerMetrics.prototype.getMotMota = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ImageInfo} returns this + * @return {!proto.clarifai.api.TrackerMetrics} returns this */ -proto.clarifai.api.ImageInfo.prototype.setWidth = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.TrackerMetrics.prototype.setMotMota = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); }; /** - * optional int32 height = 2; + * optional int32 mot_num_switches = 2; * @return {number} */ -proto.clarifai.api.ImageInfo.prototype.getHeight = function() { +proto.clarifai.api.TrackerMetrics.prototype.getMotNumSwitches = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ImageInfo} returns this + * @return {!proto.clarifai.api.TrackerMetrics} returns this */ -proto.clarifai.api.ImageInfo.prototype.setHeight = function(value) { +proto.clarifai.api.TrackerMetrics.prototype.setMotNumSwitches = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional string format = 3; - * @return {string} + * optional float morse_frag = 3; + * @return {number} */ -proto.clarifai.api.ImageInfo.prototype.getFormat = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.TrackerMetrics.prototype.getMorseFrag = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ImageInfo} returns this + * @param {number} value + * @return {!proto.clarifai.api.TrackerMetrics} returns this */ -proto.clarifai.api.ImageInfo.prototype.setFormat = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.TrackerMetrics.prototype.setMorseFrag = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); }; /** - * optional string color_mode = 4; + * optional float avg_precision = 4; + * @return {number} + */ +proto.clarifai.api.TrackerMetrics.prototype.getAvgPrecision = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.TrackerMetrics} returns this + */ +proto.clarifai.api.TrackerMetrics.prototype.setAvgPrecision = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + +/** + * optional string aiid = 5; * @return {string} */ -proto.clarifai.api.ImageInfo.prototype.getColorMode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.TrackerMetrics.prototype.getAiid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ImageInfo} returns this + * @return {!proto.clarifai.api.TrackerMetrics} returns this */ -proto.clarifai.api.ImageInfo.prototype.setColorMode = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.TrackerMetrics.prototype.setAiid = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional float unique_switch_rate = 6; + * @return {number} + */ +proto.clarifai.api.TrackerMetrics.prototype.getUniqueSwitchRate = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.TrackerMetrics} returns this + */ +proto.clarifai.api.TrackerMetrics.prototype.setUniqueSwitchRate = function(value) { + return jspb.Message.setProto3FloatField(this, 6, value); }; @@ -13372,7 +32449,7 @@ proto.clarifai.api.ImageInfo.prototype.setColorMode = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.HostedURL.repeatedFields_ = [3]; +proto.clarifai.api.EvalTestSetEntry.repeatedFields_ = [3,4]; @@ -13389,8 +32466,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.HostedURL.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.HostedURL.toObject(opt_includeInstance, this); +proto.clarifai.api.EvalTestSetEntry.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.EvalTestSetEntry.toObject(opt_includeInstance, this); }; @@ -13399,16 +32476,18 @@ proto.clarifai.api.HostedURL.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.HostedURL} msg The msg instance to transform. + * @param {!proto.clarifai.api.EvalTestSetEntry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.HostedURL.toObject = function(includeInstance, msg) { +proto.clarifai.api.EvalTestSetEntry.toObject = function(includeInstance, msg) { var f, obj = { - prefix: jspb.Message.getFieldWithDefault(msg, 1, ""), - suffix: jspb.Message.getFieldWithDefault(msg, 2, ""), - sizesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - crossorigin: jspb.Message.getFieldWithDefault(msg, 4, "") + input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), + predictedConceptsList: jspb.Message.toObjectList(msg.getPredictedConceptsList(), + proto.clarifai.api.Concept.toObject, includeInstance), + groundTruthConceptsList: jspb.Message.toObjectList(msg.getGroundTruthConceptsList(), + proto.clarifai.api.Concept.toObject, includeInstance), + annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f) }; if (includeInstance) { @@ -13422,44 +32501,48 @@ proto.clarifai.api.HostedURL.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.HostedURL} + * @return {!proto.clarifai.api.EvalTestSetEntry} */ -proto.clarifai.api.HostedURL.deserializeBinary = function(bytes) { +proto.clarifai.api.EvalTestSetEntry.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.HostedURL; - return proto.clarifai.api.HostedURL.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.EvalTestSetEntry; + return proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.HostedURL} msg The message object to deserialize into. + * @param {!proto.clarifai.api.EvalTestSetEntry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.HostedURL} + * @return {!proto.clarifai.api.EvalTestSetEntry} */ -proto.clarifai.api.HostedURL.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPrefix(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setSuffix(value); + case 6: + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setInput(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addSizes(value); + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.addPredictedConcepts(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCrossorigin(value); + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.addGroundTruthConcepts(value); + break; + case 5: + var value = new proto.clarifai.api.Annotation; + reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); + msg.setAnnotation(value); break; default: reader.skipField(); @@ -13474,9 +32557,9 @@ proto.clarifai.api.HostedURL.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.HostedURL.prototype.serializeBinary = function() { +proto.clarifai.api.EvalTestSetEntry.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.HostedURL.serializeBinaryToWriter(this, writer); + proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13484,141 +32567,197 @@ proto.clarifai.api.HostedURL.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.HostedURL} message + * @param {!proto.clarifai.api.EvalTestSetEntry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.HostedURL.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPrefix(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSuffix(); - if (f.length > 0) { - writer.writeString( - 2, - f + f = message.getInput(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.Input.serializeBinaryToWriter ); } - f = message.getSizesList(); + f = message.getPredictedConceptsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 3, - f + f, + proto.clarifai.api.Concept.serializeBinaryToWriter ); } - f = message.getCrossorigin(); + f = message.getGroundTruthConceptsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 4, - f + f, + proto.clarifai.api.Concept.serializeBinaryToWriter + ); + } + f = message.getAnnotation(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.Annotation.serializeBinaryToWriter ); } }; /** - * optional string prefix = 1; - * @return {string} + * optional Input input = 6; + * @return {?proto.clarifai.api.Input} */ -proto.clarifai.api.HostedURL.prototype.getPrefix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.EvalTestSetEntry.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 6)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.HostedURL} returns this + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this +*/ +proto.clarifai.api.EvalTestSetEntry.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this */ -proto.clarifai.api.HostedURL.prototype.setPrefix = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.EvalTestSetEntry.prototype.clearInput = function() { + return this.setInput(undefined); }; /** - * optional string suffix = 2; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.HostedURL.prototype.getSuffix = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.EvalTestSetEntry.prototype.hasInput = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * @param {string} value - * @return {!proto.clarifai.api.HostedURL} returns this + * repeated Concept predicted_concepts = 3; + * @return {!Array} */ -proto.clarifai.api.HostedURL.prototype.setSuffix = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.EvalTestSetEntry.prototype.getPredictedConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 3)); }; /** - * repeated string sizes = 3; - * @return {!Array} + * @param {!Array} value + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this +*/ +proto.clarifai.api.EvalTestSetEntry.prototype.setPredictedConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.Concept=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Concept} */ -proto.clarifai.api.HostedURL.prototype.getSizesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.EvalTestSetEntry.prototype.addPredictedConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Concept, opt_index); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.HostedURL} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this */ -proto.clarifai.api.HostedURL.prototype.setSizesList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.EvalTestSetEntry.prototype.clearPredictedConceptsList = function() { + return this.setPredictedConceptsList([]); }; /** - * @param {string} value + * repeated Concept ground_truth_concepts = 4; + * @return {!Array} + */ +proto.clarifai.api.EvalTestSetEntry.prototype.getGroundTruthConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this +*/ +proto.clarifai.api.EvalTestSetEntry.prototype.setGroundTruthConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.clarifai.api.Concept=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.HostedURL} returns this + * @return {!proto.clarifai.api.Concept} */ -proto.clarifai.api.HostedURL.prototype.addSizes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.EvalTestSetEntry.prototype.addGroundTruthConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Concept, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.HostedURL} returns this + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this */ -proto.clarifai.api.HostedURL.prototype.clearSizesList = function() { - return this.setSizesList([]); +proto.clarifai.api.EvalTestSetEntry.prototype.clearGroundTruthConceptsList = function() { + return this.setGroundTruthConceptsList([]); }; /** - * optional string crossorigin = 4; - * @return {string} + * optional Annotation annotation = 5; + * @return {?proto.clarifai.api.Annotation} */ -proto.clarifai.api.HostedURL.prototype.getCrossorigin = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.EvalTestSetEntry.prototype.getAnnotation = function() { + return /** @type{?proto.clarifai.api.Annotation} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 5)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.HostedURL} returns this - */ -proto.clarifai.api.HostedURL.prototype.setCrossorigin = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); + * @param {?proto.clarifai.api.Annotation|undefined} value + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this +*/ +proto.clarifai.api.EvalTestSetEntry.prototype.setAnnotation = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + */ +proto.clarifai.api.EvalTestSetEntry.prototype.clearAnnotation = function() { + return this.setAnnotation(undefined); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Input.repeatedFields_ = [7]; +proto.clarifai.api.EvalTestSetEntry.prototype.hasAnnotation = function() { + return jspb.Message.getField(this, 5) != null; +}; + + @@ -13635,8 +32774,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Input.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Input.toObject(opt_includeInstance, this); +proto.clarifai.api.LOPQEvalResult.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.LOPQEvalResult.toObject(opt_includeInstance, this); }; @@ -13645,18 +32784,18 @@ proto.clarifai.api.Input.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Input} msg The msg instance to transform. + * @param {!proto.clarifai.api.LOPQEvalResult} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Input.toObject = function(includeInstance, msg) { +proto.clarifai.api.LOPQEvalResult.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f + k: jspb.Message.getFieldWithDefault(msg, 1, 0), + recallVsBruteForce: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + kendallTauVsBruteForce: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + mostFrequentCodePercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + lopqNdcg: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + bruteForceNdcg: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0) }; if (includeInstance) { @@ -13670,23 +32809,23 @@ proto.clarifai.api.Input.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Input} + * @return {!proto.clarifai.api.LOPQEvalResult} */ -proto.clarifai.api.Input.deserializeBinary = function(bytes) { +proto.clarifai.api.LOPQEvalResult.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Input; - return proto.clarifai.api.Input.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.LOPQEvalResult; + return proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Input} msg The message object to deserialize into. + * @param {!proto.clarifai.api.LOPQEvalResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Input} + * @return {!proto.clarifai.api.LOPQEvalResult} */ -proto.clarifai.api.Input.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13694,32 +32833,28 @@ proto.clarifai.api.Input.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setK(value); break; case 2: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setRecallVsBruteForce(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setKendallTauVsBruteForce(value); break; case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMostFrequentCodePercent(value); break; case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setLopqNdcg(value); break; case 6: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addDatasetIds(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setBruteForceNdcg(value); break; default: reader.skipField(); @@ -13734,9 +32869,9 @@ proto.clarifai.api.Input.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Input.prototype.serializeBinary = function() { +proto.clarifai.api.LOPQEvalResult.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Input.serializeBinaryToWriter(this, writer); + proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13744,55 +32879,51 @@ proto.clarifai.api.Input.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Input} message + * @param {!proto.clarifai.api.LOPQEvalResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Input.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getK(); + if (f !== 0) { + writer.writeInt32( 1, f ); } - f = message.getData(); - if (f != null) { - writer.writeMessage( + f = message.getRecallVsBruteForce(); + if (f !== 0.0) { + writer.writeFloat( 2, - f, - proto.clarifai.api.Data.serializeBinaryToWriter + f ); } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( + f = message.getKendallTauVsBruteForce(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getMostFrequentCodePercent(); + if (f !== 0.0) { + writer.writeFloat( 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( + f = message.getLopqNdcg(); + if (f !== 0.0) { + writer.writeFloat( 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( + f = message.getBruteForceNdcg(); + if (f !== 0.0) { + writer.writeFloat( 6, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getDatasetIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, f ); } @@ -13800,208 +32931,120 @@ proto.clarifai.api.Input.serializeBinaryToWriter = function(message, writer) { /** - * optional string id = 1; - * @return {string} - */ -proto.clarifai.api.Input.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Input} returns this - */ -proto.clarifai.api.Input.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Data data = 2; - * @return {?proto.clarifai.api.Data} - */ -proto.clarifai.api.Input.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.Input} returns this -*/ -proto.clarifai.api.Input.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Input} returns this - */ -proto.clarifai.api.Input.prototype.clearData = function() { - return this.setData(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * optional int32 k = 1; + * @return {number} */ -proto.clarifai.api.Input.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.LOPQEvalResult.prototype.getK = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * optional google.protobuf.Timestamp created_at = 4; - * @return {?proto.google.protobuf.Timestamp} + * @param {number} value + * @return {!proto.clarifai.api.LOPQEvalResult} returns this */ -proto.clarifai.api.Input.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Input} returns this -*/ -proto.clarifai.api.Input.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.LOPQEvalResult.prototype.setK = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Input} returns this + * optional float recall_vs_brute_force = 2; + * @return {number} */ -proto.clarifai.api.Input.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.LOPQEvalResult.prototype.getRecallVsBruteForce = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.LOPQEvalResult} returns this */ -proto.clarifai.api.Input.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.LOPQEvalResult.prototype.setRecallVsBruteForce = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); }; /** - * optional google.protobuf.Timestamp modified_at = 5; - * @return {?proto.google.protobuf.Timestamp} + * optional float kendall_tau_vs_brute_force = 3; + * @return {number} */ -proto.clarifai.api.Input.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Input} returns this -*/ -proto.clarifai.api.Input.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.LOPQEvalResult.prototype.getKendallTauVsBruteForce = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Input} returns this + * @param {number} value + * @return {!proto.clarifai.api.LOPQEvalResult} returns this */ -proto.clarifai.api.Input.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.LOPQEvalResult.prototype.setKendallTauVsBruteForce = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional float most_frequent_code_percent = 4; + * @return {number} */ -proto.clarifai.api.Input.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.LOPQEvalResult.prototype.getMostFrequentCodePercent = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** - * optional status.Status status = 6; - * @return {?proto.clarifai.api.status.Status} + * @param {number} value + * @return {!proto.clarifai.api.LOPQEvalResult} returns this */ -proto.clarifai.api.Input.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 6)); -}; - - -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.Input} returns this -*/ -proto.clarifai.api.Input.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.LOPQEvalResult.prototype.setMostFrequentCodePercent = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Input} returns this + * optional float lopq_ndcg = 5; + * @return {number} */ -proto.clarifai.api.Input.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.LOPQEvalResult.prototype.getLopqNdcg = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.LOPQEvalResult} returns this */ -proto.clarifai.api.Input.prototype.hasStatus = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.LOPQEvalResult.prototype.setLopqNdcg = function(value) { + return jspb.Message.setProto3FloatField(this, 5, value); }; /** - * repeated string dataset_ids = 7; - * @return {!Array} + * optional float brute_force_ndcg = 6; + * @return {number} */ -proto.clarifai.api.Input.prototype.getDatasetIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +proto.clarifai.api.LOPQEvalResult.prototype.getBruteForceNdcg = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Input} returns this + * @param {number} value + * @return {!proto.clarifai.api.LOPQEvalResult} returns this */ -proto.clarifai.api.Input.prototype.setDatasetIdsList = function(value) { - return jspb.Message.setField(this, 7, value || []); +proto.clarifai.api.LOPQEvalResult.prototype.setBruteForceNdcg = function(value) { + return jspb.Message.setProto3FloatField(this, 6, value); }; -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} returns this - */ -proto.clarifai.api.Input.prototype.addDatasetIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Input} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.Input.prototype.clearDatasetIdsList = function() { - return this.setDatasetIdsList([]); -}; - - +proto.clarifai.api.MetricsSummary.repeatedFields_ = [9]; @@ -14018,8 +33061,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.InputCount.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.InputCount.toObject(opt_includeInstance, this); +proto.clarifai.api.MetricsSummary.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MetricsSummary.toObject(opt_includeInstance, this); }; @@ -14028,20 +33071,24 @@ proto.clarifai.api.InputCount.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.InputCount} msg The msg instance to transform. + * @param {!proto.clarifai.api.MetricsSummary} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.InputCount.toObject = function(includeInstance, msg) { +proto.clarifai.api.MetricsSummary.toObject = function(includeInstance, msg) { var f, obj = { - processed: jspb.Message.getFieldWithDefault(msg, 1, 0), - toProcess: jspb.Message.getFieldWithDefault(msg, 2, 0), - errors: jspb.Message.getFieldWithDefault(msg, 3, 0), - processing: jspb.Message.getFieldWithDefault(msg, 4, 0), - reindexed: jspb.Message.getFieldWithDefault(msg, 5, 0), - toReindex: jspb.Message.getFieldWithDefault(msg, 6, 0), - reindexErrors: jspb.Message.getFieldWithDefault(msg, 7, 0), - reindexing: jspb.Message.getFieldWithDefault(msg, 8, 0) + top1Accuracy: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + top5Accuracy: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + macroAvgRocAuc: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + macroStdRocAuc: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), + macroAvgF1Score: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), + macroStdF1Score: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), + macroAvgPrecision: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), + macroAvgRecall: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), + meanAvgPrecisionIou50: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), + meanAvgPrecisionIouRange: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), + lopqMetricsList: jspb.Message.toObjectList(msg.getLopqMetricsList(), + proto.clarifai.api.LOPQEvalResult.toObject, includeInstance) }; if (includeInstance) { @@ -14055,23 +33102,23 @@ proto.clarifai.api.InputCount.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.InputCount} + * @return {!proto.clarifai.api.MetricsSummary} */ -proto.clarifai.api.InputCount.deserializeBinary = function(bytes) { +proto.clarifai.api.MetricsSummary.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.InputCount; - return proto.clarifai.api.InputCount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MetricsSummary; + return proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.InputCount} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MetricsSummary} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.InputCount} + * @return {!proto.clarifai.api.MetricsSummary} */ -proto.clarifai.api.InputCount.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14079,36 +33126,49 @@ proto.clarifai.api.InputCount.deserializeBinaryFromReader = function(msg, reader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setProcessed(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setTop1Accuracy(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setToProcess(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setTop5Accuracy(value); break; case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setErrors(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMacroAvgRocAuc(value); break; case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setProcessing(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMacroStdRocAuc(value); break; case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setReindexed(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMacroAvgF1Score(value); break; case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setToReindex(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMacroStdF1Score(value); break; case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setReindexErrors(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMacroAvgPrecision(value); break; case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setReindexing(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMacroAvgRecall(value); + break; + case 10: + var value = /** @type {number} */ (reader.readFloat()); + msg.setMeanAvgPrecisionIou50(value); + break; + case 11: + var value = /** @type {number} */ (reader.readFloat()); + msg.setMeanAvgPrecisionIouRange(value); + break; + case 9: + var value = new proto.clarifai.api.LOPQEvalResult; + reader.readMessage(value,proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader); + msg.addLopqMetrics(value); break; default: reader.skipField(); @@ -14123,9 +33183,9 @@ proto.clarifai.api.InputCount.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.InputCount.prototype.serializeBinary = function() { +proto.clarifai.api.MetricsSummary.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.InputCount.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MetricsSummary.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14133,216 +33193,319 @@ proto.clarifai.api.InputCount.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.InputCount} message + * @param {!proto.clarifai.api.MetricsSummary} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.InputCount.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MetricsSummary.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getProcessed(); - if (f !== 0) { - writer.writeUint32( + f = message.getTop1Accuracy(); + if (f !== 0.0) { + writer.writeFloat( 1, f ); } - f = message.getToProcess(); - if (f !== 0) { - writer.writeUint32( + f = message.getTop5Accuracy(); + if (f !== 0.0) { + writer.writeFloat( 2, f ); } - f = message.getErrors(); - if (f !== 0) { - writer.writeUint32( + f = message.getMacroAvgRocAuc(); + if (f !== 0.0) { + writer.writeFloat( 3, f ); } - f = message.getProcessing(); - if (f !== 0) { - writer.writeUint32( + f = message.getMacroStdRocAuc(); + if (f !== 0.0) { + writer.writeFloat( 4, f ); } - f = message.getReindexed(); - if (f !== 0) { - writer.writeUint32( + f = message.getMacroAvgF1Score(); + if (f !== 0.0) { + writer.writeFloat( 5, f ); } - f = message.getToReindex(); - if (f !== 0) { - writer.writeUint32( + f = message.getMacroStdF1Score(); + if (f !== 0.0) { + writer.writeFloat( 6, f ); } - f = message.getReindexErrors(); - if (f !== 0) { - writer.writeUint32( + f = message.getMacroAvgPrecision(); + if (f !== 0.0) { + writer.writeFloat( 7, f ); } - f = message.getReindexing(); - if (f !== 0) { - writer.writeUint32( + f = message.getMacroAvgRecall(); + if (f !== 0.0) { + writer.writeFloat( 8, f ); } + f = message.getMeanAvgPrecisionIou50(); + if (f !== 0.0) { + writer.writeFloat( + 10, + f + ); + } + f = message.getMeanAvgPrecisionIouRange(); + if (f !== 0.0) { + writer.writeFloat( + 11, + f + ); + } + f = message.getLopqMetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter + ); + } }; /** - * optional uint32 processed = 1; + * optional float top1_accuracy = 1; * @return {number} */ -proto.clarifai.api.InputCount.prototype.getProcessed = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.MetricsSummary.prototype.getTop1Accuracy = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this + * @return {!proto.clarifai.api.MetricsSummary} returns this */ -proto.clarifai.api.InputCount.prototype.setProcessed = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.MetricsSummary.prototype.setTop1Accuracy = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); }; /** - * optional uint32 to_process = 2; + * optional float top5_accuracy = 2; * @return {number} */ -proto.clarifai.api.InputCount.prototype.getToProcess = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.MetricsSummary.prototype.getTop5Accuracy = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this + * @return {!proto.clarifai.api.MetricsSummary} returns this */ -proto.clarifai.api.InputCount.prototype.setToProcess = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.MetricsSummary.prototype.setTop5Accuracy = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); }; /** - * optional uint32 errors = 3; + * optional float macro_avg_roc_auc = 3; * @return {number} */ -proto.clarifai.api.InputCount.prototype.getErrors = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.MetricsSummary.prototype.getMacroAvgRocAuc = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this + * @return {!proto.clarifai.api.MetricsSummary} returns this */ -proto.clarifai.api.InputCount.prototype.setErrors = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.MetricsSummary.prototype.setMacroAvgRocAuc = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional float macro_std_roc_auc = 4; + * @return {number} + */ +proto.clarifai.api.MetricsSummary.prototype.getMacroStdRocAuc = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.MetricsSummary} returns this + */ +proto.clarifai.api.MetricsSummary.prototype.setMacroStdRocAuc = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); +}; + + +/** + * optional float macro_avg_f1_score = 5; + * @return {number} + */ +proto.clarifai.api.MetricsSummary.prototype.getMacroAvgF1Score = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.MetricsSummary} returns this + */ +proto.clarifai.api.MetricsSummary.prototype.setMacroAvgF1Score = function(value) { + return jspb.Message.setProto3FloatField(this, 5, value); +}; + + +/** + * optional float macro_std_f1_score = 6; + * @return {number} + */ +proto.clarifai.api.MetricsSummary.prototype.getMacroStdF1Score = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.MetricsSummary} returns this + */ +proto.clarifai.api.MetricsSummary.prototype.setMacroStdF1Score = function(value) { + return jspb.Message.setProto3FloatField(this, 6, value); +}; + + +/** + * optional float macro_avg_precision = 7; + * @return {number} + */ +proto.clarifai.api.MetricsSummary.prototype.getMacroAvgPrecision = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.MetricsSummary} returns this + */ +proto.clarifai.api.MetricsSummary.prototype.setMacroAvgPrecision = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); }; /** - * optional uint32 processing = 4; + * optional float macro_avg_recall = 8; * @return {number} */ -proto.clarifai.api.InputCount.prototype.getProcessing = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.MetricsSummary.prototype.getMacroAvgRecall = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this + * @return {!proto.clarifai.api.MetricsSummary} returns this */ -proto.clarifai.api.InputCount.prototype.setProcessing = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.MetricsSummary.prototype.setMacroAvgRecall = function(value) { + return jspb.Message.setProto3FloatField(this, 8, value); }; /** - * optional uint32 reindexed = 5; + * optional float mean_avg_precision_iou_50 = 10; * @return {number} */ -proto.clarifai.api.InputCount.prototype.getReindexed = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.clarifai.api.MetricsSummary.prototype.getMeanAvgPrecisionIou50 = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this + * @return {!proto.clarifai.api.MetricsSummary} returns this */ -proto.clarifai.api.InputCount.prototype.setReindexed = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.clarifai.api.MetricsSummary.prototype.setMeanAvgPrecisionIou50 = function(value) { + return jspb.Message.setProto3FloatField(this, 10, value); }; /** - * optional uint32 to_reindex = 6; + * optional float mean_avg_precision_iou_range = 11; * @return {number} */ -proto.clarifai.api.InputCount.prototype.getToReindex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.clarifai.api.MetricsSummary.prototype.getMeanAvgPrecisionIouRange = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this + * @return {!proto.clarifai.api.MetricsSummary} returns this */ -proto.clarifai.api.InputCount.prototype.setToReindex = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.clarifai.api.MetricsSummary.prototype.setMeanAvgPrecisionIouRange = function(value) { + return jspb.Message.setProto3FloatField(this, 11, value); }; /** - * optional uint32 reindex_errors = 7; - * @return {number} + * repeated LOPQEvalResult lopq_metrics = 9; + * @return {!Array} */ -proto.clarifai.api.InputCount.prototype.getReindexErrors = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.clarifai.api.MetricsSummary.prototype.getLopqMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LOPQEvalResult, 9)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this - */ -proto.clarifai.api.InputCount.prototype.setReindexErrors = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + * @param {!Array} value + * @return {!proto.clarifai.api.MetricsSummary} returns this +*/ +proto.clarifai.api.MetricsSummary.prototype.setLopqMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); }; /** - * optional uint32 reindexing = 8; - * @return {number} + * @param {!proto.clarifai.api.LOPQEvalResult=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.LOPQEvalResult} */ -proto.clarifai.api.InputCount.prototype.getReindexing = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.clarifai.api.MetricsSummary.prototype.addLopqMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.LOPQEvalResult, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.InputCount} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MetricsSummary} returns this */ -proto.clarifai.api.InputCount.prototype.setReindexing = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.clarifai.api.MetricsSummary.prototype.clearLopqMetricsList = function() { + return this.setLopqMetricsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.EvalMetrics.repeatedFields_ = [6,7,8,9,11]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -14358,8 +33521,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DatasetFilter.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DatasetFilter.toObject(opt_includeInstance, this); +proto.clarifai.api.EvalMetrics.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.EvalMetrics.toObject(opt_includeInstance, this); }; @@ -14368,19 +33531,33 @@ proto.clarifai.api.DatasetFilter.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DatasetFilter} msg The msg instance to transform. + * @param {!proto.clarifai.api.EvalMetrics} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DatasetFilter.toObject = function(includeInstance, msg) { +proto.clarifai.api.EvalMetrics.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - userId: jspb.Message.getFieldWithDefault(msg, 4, ""), - appId: jspb.Message.getFieldWithDefault(msg, 5, ""), - datasetId: jspb.Message.getFieldWithDefault(msg, 6, ""), - savedSearch: (f = msg.getSavedSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 15, ""), + appId: jspb.Message.getFieldWithDefault(msg, 16, ""), + id: jspb.Message.getFieldWithDefault(msg, 10, ""), + model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f), + groundTruthDataset: (f = msg.getGroundTruthDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f), + summary: (f = msg.getSummary()) && proto.clarifai.api.MetricsSummary.toObject(includeInstance, f), + confusionMatrix: (f = msg.getConfusionMatrix()) && proto.clarifai.api.ConfusionMatrix.toObject(includeInstance, f), + cooccurrenceMatrix: (f = msg.getCooccurrenceMatrix()) && proto.clarifai.api.CooccurrenceMatrix.toObject(includeInstance, f), + labelCounts: (f = msg.getLabelCounts()) && proto.clarifai.api.LabelDistribution.toObject(includeInstance, f), + binaryMetricsList: jspb.Message.toObjectList(msg.getBinaryMetricsList(), + proto.clarifai.api.BinaryMetrics.toObject, includeInstance), + testSetList: jspb.Message.toObjectList(msg.getTestSetList(), + proto.clarifai.api.EvalTestSetEntry.toObject, includeInstance), + metricsByAreaList: jspb.Message.toObjectList(msg.getMetricsByAreaList(), + proto.clarifai.api.BinaryMetrics.toObject, includeInstance), + metricsByClassList: jspb.Message.toObjectList(msg.getMetricsByClassList(), + proto.clarifai.api.BinaryMetrics.toObject, includeInstance), + trackerMetricsList: jspb.Message.toObjectList(msg.getTrackerMetricsList(), + proto.clarifai.api.TrackerMetrics.toObject, includeInstance), + evalInfo: (f = msg.getEvalInfo()) && proto.clarifai.api.EvalInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -14394,23 +33571,23 @@ proto.clarifai.api.DatasetFilter.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DatasetFilter} + * @return {!proto.clarifai.api.EvalMetrics} */ -proto.clarifai.api.DatasetFilter.deserializeBinary = function(bytes) { +proto.clarifai.api.EvalMetrics.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DatasetFilter; - return proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.EvalMetrics; + return proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DatasetFilter} msg The message object to deserialize into. + * @param {!proto.clarifai.api.EvalMetrics} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DatasetFilter} + * @return {!proto.clarifai.api.EvalMetrics} */ -proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14418,35 +33595,81 @@ proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader = function(msg, rea var field = reader.getFieldNumber(); switch (field) { case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 10: var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; + case 13: + var value = new proto.clarifai.api.Model; + reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); + msg.setModel(value); + break; + case 14: + var value = new proto.clarifai.api.Dataset; + reader.readMessage(value,proto.clarifai.api.Dataset.deserializeBinaryFromReader); + msg.setGroundTruthDataset(value); + break; case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); + var value = new proto.clarifai.api.MetricsSummary; + reader.readMessage(value,proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader); + msg.setSummary(value); break; case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); + var value = new proto.clarifai.api.ConfusionMatrix; + reader.readMessage(value,proto.clarifai.api.ConfusionMatrix.deserializeBinaryFromReader); + msg.setConfusionMatrix(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); + var value = new proto.clarifai.api.CooccurrenceMatrix; + reader.readMessage(value,proto.clarifai.api.CooccurrenceMatrix.deserializeBinaryFromReader); + msg.setCooccurrenceMatrix(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); + var value = new proto.clarifai.api.LabelDistribution; + reader.readMessage(value,proto.clarifai.api.LabelDistribution.deserializeBinaryFromReader); + msg.setLabelCounts(value); break; case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDatasetId(value); + var value = new proto.clarifai.api.BinaryMetrics; + reader.readMessage(value,proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader); + msg.addBinaryMetrics(value); + break; + case 7: + var value = new proto.clarifai.api.EvalTestSetEntry; + reader.readMessage(value,proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader); + msg.addTestSet(value); break; case 8: - var value = new proto.clarifai.api.Search; - reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); - msg.setSavedSearch(value); + var value = new proto.clarifai.api.BinaryMetrics; + reader.readMessage(value,proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader); + msg.addMetricsByArea(value); + break; + case 9: + var value = new proto.clarifai.api.BinaryMetrics; + reader.readMessage(value,proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader); + msg.addMetricsByClass(value); + break; + case 11: + var value = new proto.clarifai.api.TrackerMetrics; + reader.readMessage(value,proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader); + msg.addTrackerMetrics(value); + break; + case 12: + var value = new proto.clarifai.api.EvalInfo; + reader.readMessage(value,proto.clarifai.api.EvalInfo.deserializeBinaryFromReader); + msg.setEvalInfo(value); break; default: reader.skipField(); @@ -14461,9 +33684,9 @@ proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DatasetFilter.prototype.serializeBinary = function() { +proto.clarifai.api.EvalMetrics.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DatasetFilter.serializeBinaryToWriter(this, writer); + proto.clarifai.api.EvalMetrics.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14471,147 +33694,256 @@ proto.clarifai.api.DatasetFilter.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DatasetFilter} message + * @param {!proto.clarifai.api.EvalMetrics} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DatasetFilter.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.EvalMetrics.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } f = message.getId(); if (f.length > 0) { writer.writeString( - 1, + 10, f ); } - f = message.getCreatedAt(); + f = message.getModel(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.clarifai.api.Model.serializeBinaryToWriter + ); + } + f = message.getGroundTruthDataset(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.clarifai.api.Dataset.serializeBinaryToWriter + ); + } + f = message.getSummary(); if (f != null) { writer.writeMessage( 2, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.MetricsSummary.serializeBinaryToWriter ); } - f = message.getModifiedAt(); + f = message.getConfusionMatrix(); if (f != null) { writer.writeMessage( 3, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.ConfusionMatrix.serializeBinaryToWriter ); } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( + f = message.getCooccurrenceMatrix(); + if (f != null) { + writer.writeMessage( 4, - f + f, + proto.clarifai.api.CooccurrenceMatrix.serializeBinaryToWriter ); } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( + f = message.getLabelCounts(); + if (f != null) { + writer.writeMessage( 5, - f + f, + proto.clarifai.api.LabelDistribution.serializeBinaryToWriter ); } - f = message.getDatasetId(); + f = message.getBinaryMetricsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 6, - f + f, + proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter ); } - f = message.getSavedSearch(); + f = message.getTestSetList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter + ); + } + f = message.getMetricsByAreaList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter + ); + } + f = message.getMetricsByClassList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter + ); + } + f = message.getTrackerMetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 11, + f, + proto.clarifai.api.TrackerMetrics.serializeBinaryToWriter + ); + } + f = message.getEvalInfo(); if (f != null) { writer.writeMessage( - 8, + 12, f, - proto.clarifai.api.Search.serializeBinaryToWriter + proto.clarifai.api.EvalInfo.serializeBinaryToWriter ); } }; /** - * optional string id = 1; + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.EvalMetrics.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalMetrics} returns this + */ +proto.clarifai.api.EvalMetrics.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.EvalMetrics.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string user_id = 15; * @return {string} */ -proto.clarifai.api.DatasetFilter.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.EvalMetrics.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.DatasetFilter} returns this + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.EvalMetrics.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); }; /** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} + * optional string app_id = 16; + * @return {string} */ -proto.clarifai.api.DatasetFilter.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +proto.clarifai.api.EvalMetrics.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.DatasetFilter} returns this -*/ -proto.clarifai.api.DatasetFilter.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.EvalMetrics} returns this + */ +proto.clarifai.api.EvalMetrics.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetFilter} returns this + * optional string id = 10; + * @return {string} */ -proto.clarifai.api.DatasetFilter.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.EvalMetrics.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.EvalMetrics.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); }; /** - * optional google.protobuf.Timestamp modified_at = 3; - * @return {?proto.google.protobuf.Timestamp} + * optional Model model = 13; + * @return {?proto.clarifai.api.Model} */ -proto.clarifai.api.DatasetFilter.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +proto.clarifai.api.EvalMetrics.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 13)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.DatasetFilter} returns this + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.EvalMetrics.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetFilter} returns this + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.EvalMetrics.prototype.clearModel = function() { + return this.setModel(undefined); }; @@ -14619,90 +33951,110 @@ proto.clarifai.api.DatasetFilter.prototype.clearModifiedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DatasetFilter.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.EvalMetrics.prototype.hasModel = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * optional string user_id = 4; - * @return {string} + * optional Dataset ground_truth_dataset = 14; + * @return {?proto.clarifai.api.Dataset} */ -proto.clarifai.api.DatasetFilter.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.EvalMetrics.prototype.getGroundTruthDataset = function() { + return /** @type{?proto.clarifai.api.Dataset} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Dataset, 14)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetFilter} returns this + * @param {?proto.clarifai.api.Dataset|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setGroundTruthDataset = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.EvalMetrics.prototype.clearGroundTruthDataset = function() { + return this.setGroundTruthDataset(undefined); }; /** - * optional string app_id = 5; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetFilter.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.EvalMetrics.prototype.hasGroundTruthDataset = function() { + return jspb.Message.getField(this, 14) != null; }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetFilter} returns this + * optional MetricsSummary summary = 2; + * @return {?proto.clarifai.api.MetricsSummary} */ -proto.clarifai.api.DatasetFilter.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.EvalMetrics.prototype.getSummary = function() { + return /** @type{?proto.clarifai.api.MetricsSummary} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.MetricsSummary, 2)); }; /** - * optional string dataset_id = 6; - * @return {string} + * @param {?proto.clarifai.api.MetricsSummary|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setSummary = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.getDatasetId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.clarifai.api.EvalMetrics.prototype.clearSummary = function() { + return this.setSummary(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetFilter} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetFilter.prototype.setDatasetId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.clarifai.api.EvalMetrics.prototype.hasSummary = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional Search saved_search = 8; - * @return {?proto.clarifai.api.Search} + * optional ConfusionMatrix confusion_matrix = 3; + * @return {?proto.clarifai.api.ConfusionMatrix} */ -proto.clarifai.api.DatasetFilter.prototype.getSavedSearch = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 8)); +proto.clarifai.api.EvalMetrics.prototype.getConfusionMatrix = function() { + return /** @type{?proto.clarifai.api.ConfusionMatrix} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConfusionMatrix, 3)); }; /** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.DatasetFilter} returns this + * @param {?proto.clarifai.api.ConfusionMatrix|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.setSavedSearch = function(value) { - return jspb.Message.setWrapperField(this, 8, value); +proto.clarifai.api.EvalMetrics.prototype.setConfusionMatrix = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetFilter} returns this + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetFilter.prototype.clearSavedSearch = function() { - return this.setSavedSearch(undefined); +proto.clarifai.api.EvalMetrics.prototype.clearConfusionMatrix = function() { + return this.setConfusionMatrix(undefined); }; @@ -14710,484 +34062,300 @@ proto.clarifai.api.DatasetFilter.prototype.clearSavedSearch = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DatasetFilter.prototype.hasSavedSearch = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.EvalMetrics.prototype.hasConfusionMatrix = function() { + return jspb.Message.getField(this, 3) != null; }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional CooccurrenceMatrix cooccurrence_matrix = 4; + * @return {?proto.clarifai.api.CooccurrenceMatrix} */ -proto.clarifai.api.DatasetVersion.repeatedFields_ = [14]; +proto.clarifai.api.EvalMetrics.prototype.getCooccurrenceMatrix = function() { + return /** @type{?proto.clarifai.api.CooccurrenceMatrix} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.CooccurrenceMatrix, 4)); +}; + /** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clarifai.api.DatasetVersion.oneofGroups_ = [[7]]; + * @param {?proto.clarifai.api.CooccurrenceMatrix|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setCooccurrenceMatrix = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + /** - * @enum {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.DataConfigCase = { - DATA_CONFIG_NOT_SET: 0, - DATASET_FILTER_CONFIG: 7 +proto.clarifai.api.EvalMetrics.prototype.clearCooccurrenceMatrix = function() { + return this.setCooccurrenceMatrix(undefined); }; + /** - * @return {proto.clarifai.api.DatasetVersion.DataConfigCase} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.getDataConfigCase = function() { - return /** @type {proto.clarifai.api.DatasetVersion.DataConfigCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.DatasetVersion.oneofGroups_[0])); +proto.clarifai.api.EvalMetrics.prototype.hasCooccurrenceMatrix = function() { + return jspb.Message.getField(this, 4) != null; }; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional LabelDistribution label_counts = 5; + * @return {?proto.clarifai.api.LabelDistribution} */ -proto.clarifai.api.DatasetVersion.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DatasetVersion.toObject(opt_includeInstance, this); +proto.clarifai.api.EvalMetrics.prototype.getLabelCounts = function() { + return /** @type{?proto.clarifai.api.LabelDistribution} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.LabelDistribution, 5)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DatasetVersion} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.DatasetVersion.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - appId: jspb.Message.getFieldWithDefault(msg, 4, ""), - userId: jspb.Message.getFieldWithDefault(msg, 5, ""), - datasetId: jspb.Message.getFieldWithDefault(msg, 6, ""), - datasetFilterConfig: (f = msg.getDatasetFilterConfig()) && proto.clarifai.api.DatasetVersionDatasetFilterConfig.toObject(includeInstance, f), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 10, ""), - metrics: (f = msg.getMetrics()) && proto.clarifai.api.DatasetVersionMetrics.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - embedModelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + * @param {?proto.clarifai.api.LabelDistribution|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setLabelCounts = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DatasetVersion} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DatasetVersion; - return proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.EvalMetrics.prototype.clearLabelCounts = function() { + return this.setLabelCounts(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.DatasetVersion} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DatasetVersion} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDatasetId(value); - break; - case 7: - var value = new proto.clarifai.api.DatasetVersionDatasetFilterConfig; - reader.readMessage(value,proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader); - msg.setDatasetFilterConfig(value); - break; - case 8: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 11: - var value = new proto.clarifai.api.DatasetVersionMetrics; - reader.readMessage(value,proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader); - msg.setMetrics(value); - break; - case 12: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 13: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.addEmbedModelVersionIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.EvalMetrics.prototype.hasLabelCounts = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * repeated BinaryMetrics binary_metrics = 6; + * @return {!Array} */ -proto.clarifai.api.DatasetVersion.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DatasetVersion.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.EvalMetrics.prototype.getBinaryMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.BinaryMetrics, 6)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DatasetVersion} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.DatasetVersion.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getDatasetId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getDatasetFilterConfig(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.clarifai.api.DatasetVersionDatasetFilterConfig.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getMetrics(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 12, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter - ); - } - f = message.getEmbedModelVersionIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 14, - f - ); - } + * @param {!Array} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setBinaryMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * optional string id = 1; - * @return {string} + * @param {!proto.clarifai.api.BinaryMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.BinaryMetrics} */ -proto.clarifai.api.DatasetVersion.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.EvalMetrics.prototype.addBinaryMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.BinaryMetrics, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.EvalMetrics.prototype.clearBinaryMetricsList = function() { + return this.setBinaryMetricsList([]); }; /** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} + * repeated EvalTestSetEntry test_set = 7; + * @return {!Array} */ -proto.clarifai.api.DatasetVersion.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +proto.clarifai.api.EvalMetrics.prototype.getTestSetList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EvalTestSetEntry, 7)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.EvalMetrics.prototype.setTestSetList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {!proto.clarifai.api.EvalTestSetEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.EvalTestSetEntry} */ -proto.clarifai.api.DatasetVersion.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.EvalMetrics.prototype.addTestSet = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.EvalTestSetEntry, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.EvalMetrics.prototype.clearTestSetList = function() { + return this.setTestSetList([]); }; /** - * optional google.protobuf.Timestamp modified_at = 3; - * @return {?proto.google.protobuf.Timestamp} + * repeated BinaryMetrics metrics_by_area = 8; + * @return {!Array} */ -proto.clarifai.api.DatasetVersion.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +proto.clarifai.api.EvalMetrics.prototype.getMetricsByAreaList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.BinaryMetrics, 8)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.EvalMetrics.prototype.setMetricsByAreaList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {!proto.clarifai.api.BinaryMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.BinaryMetrics} */ -proto.clarifai.api.DatasetVersion.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.EvalMetrics.prototype.addMetricsByArea = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.BinaryMetrics, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.EvalMetrics.prototype.clearMetricsByAreaList = function() { + return this.setMetricsByAreaList([]); }; /** - * optional string app_id = 4; - * @return {string} + * repeated BinaryMetrics metrics_by_class = 9; + * @return {!Array} */ -proto.clarifai.api.DatasetVersion.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.EvalMetrics.prototype.getMetricsByClassList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.BinaryMetrics, 9)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setMetricsByClassList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); +}; + + +/** + * @param {!proto.clarifai.api.BinaryMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.BinaryMetrics} */ -proto.clarifai.api.DatasetVersion.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.EvalMetrics.prototype.addMetricsByClass = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.BinaryMetrics, opt_index); }; /** - * optional string user_id = 5; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.EvalMetrics.prototype.clearMetricsByClassList = function() { + return this.setMetricsByClassList([]); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * repeated TrackerMetrics tracker_metrics = 11; + * @return {!Array} */ -proto.clarifai.api.DatasetVersion.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.EvalMetrics.prototype.getTrackerMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.TrackerMetrics, 11)); }; /** - * optional string dataset_id = 6; - * @return {string} + * @param {!Array} value + * @return {!proto.clarifai.api.EvalMetrics} returns this +*/ +proto.clarifai.api.EvalMetrics.prototype.setTrackerMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 11, value); +}; + + +/** + * @param {!proto.clarifai.api.TrackerMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.TrackerMetrics} */ -proto.clarifai.api.DatasetVersion.prototype.getDatasetId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.clarifai.api.EvalMetrics.prototype.addTrackerMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.clarifai.api.TrackerMetrics, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.setDatasetId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.clarifai.api.EvalMetrics.prototype.clearTrackerMetricsList = function() { + return this.setTrackerMetricsList([]); }; /** - * optional DatasetVersionDatasetFilterConfig dataset_filter_config = 7; - * @return {?proto.clarifai.api.DatasetVersionDatasetFilterConfig} + * optional EvalInfo eval_info = 12; + * @return {?proto.clarifai.api.EvalInfo} */ -proto.clarifai.api.DatasetVersion.prototype.getDatasetFilterConfig = function() { - return /** @type{?proto.clarifai.api.DatasetVersionDatasetFilterConfig} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionDatasetFilterConfig, 7)); +proto.clarifai.api.EvalMetrics.prototype.getEvalInfo = function() { + return /** @type{?proto.clarifai.api.EvalInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.EvalInfo, 12)); }; /** - * @param {?proto.clarifai.api.DatasetVersionDatasetFilterConfig|undefined} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {?proto.clarifai.api.EvalInfo|undefined} value + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.setDatasetFilterConfig = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.DatasetVersion.oneofGroups_[0], value); +proto.clarifai.api.EvalMetrics.prototype.setEvalInfo = function(value) { + return jspb.Message.setWrapperField(this, 12, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @return {!proto.clarifai.api.EvalMetrics} returns this */ -proto.clarifai.api.DatasetVersion.prototype.clearDatasetFilterConfig = function() { - return this.setDatasetFilterConfig(undefined); +proto.clarifai.api.EvalMetrics.prototype.clearEvalInfo = function() { + return this.setEvalInfo(undefined); }; @@ -15195,211 +34363,318 @@ proto.clarifai.api.DatasetVersion.prototype.clearDatasetFilterConfig = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.hasDatasetFilterConfig = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.EvalMetrics.prototype.hasEvalInfo = function() { + return jspb.Message.getField(this, 12) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional status.Status status = 8; - * @return {?proto.clarifai.api.status.Status} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.DatasetVersion.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 8)); +proto.clarifai.api.FieldsValue.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.FieldsValue.toObject(opt_includeInstance, this); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.DatasetVersion} returns this -*/ -proto.clarifai.api.DatasetVersion.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 8, value); + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.FieldsValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.FieldsValue.toObject = function(includeInstance, msg) { + var f, obj = { + confusionMatrix: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + cooccurrenceMatrix: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + labelCounts: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + binaryMetrics: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + testSet: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + metricsByArea: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + metricsByClass: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.FieldsValue} */ -proto.clarifai.api.DatasetVersion.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.FieldsValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.FieldsValue; + return proto.clarifai.api.FieldsValue.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.FieldsValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.FieldsValue} */ -proto.clarifai.api.DatasetVersion.prototype.hasStatus = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.FieldsValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setConfusionMatrix(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCooccurrenceMatrix(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setLabelCounts(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBinaryMetrics(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTestSet(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setMetricsByArea(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setMetricsByClass(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string description = 10; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.DatasetVersion.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.clarifai.api.FieldsValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.FieldsValue.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.FieldsValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DatasetVersion.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.clarifai.api.FieldsValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getConfusionMatrix(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getCooccurrenceMatrix(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getLabelCounts(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getBinaryMetrics(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getTestSet(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getMetricsByArea(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getMetricsByClass(); + if (f) { + writer.writeBool( + 7, + f + ); + } }; /** - * optional DatasetVersionMetrics metrics = 11; - * @return {?proto.clarifai.api.DatasetVersionMetrics} + * optional bool confusion_matrix = 1; + * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.getMetrics = function() { - return /** @type{?proto.clarifai.api.DatasetVersionMetrics} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersionMetrics, 11)); -}; - - -/** - * @param {?proto.clarifai.api.DatasetVersionMetrics|undefined} value - * @return {!proto.clarifai.api.DatasetVersion} returns this -*/ -proto.clarifai.api.DatasetVersion.prototype.setMetrics = function(value) { - return jspb.Message.setWrapperField(this, 11, value); +proto.clarifai.api.FieldsValue.prototype.getConfusionMatrix = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.FieldsValue} returns this */ -proto.clarifai.api.DatasetVersion.prototype.clearMetrics = function() { - return this.setMetrics(undefined); +proto.clarifai.api.FieldsValue.prototype.setConfusionMatrix = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** - * Returns whether this field is set. + * optional bool cooccurrence_matrix = 2; * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.hasMetrics = function() { - return jspb.Message.getField(this, 11) != null; +proto.clarifai.api.FieldsValue.prototype.getCooccurrenceMatrix = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * optional google.protobuf.Struct metadata = 12; - * @return {?proto.google.protobuf.Struct} + * @param {boolean} value + * @return {!proto.clarifai.api.FieldsValue} returns this */ -proto.clarifai.api.DatasetVersion.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 12)); +proto.clarifai.api.FieldsValue.prototype.setCooccurrenceMatrix = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.DatasetVersion} returns this -*/ -proto.clarifai.api.DatasetVersion.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 12, value); + * optional bool label_counts = 3; + * @return {boolean} + */ +proto.clarifai.api.FieldsValue.prototype.getLabelCounts = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.FieldsValue} returns this */ -proto.clarifai.api.DatasetVersion.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.FieldsValue.prototype.setLabelCounts = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * Returns whether this field is set. + * optional bool binary_metrics = 4; * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 12) != null; +proto.clarifai.api.FieldsValue.prototype.getBinaryMetrics = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * optional Visibility visibility = 13; - * @return {?proto.clarifai.api.Visibility} + * @param {boolean} value + * @return {!proto.clarifai.api.FieldsValue} returns this */ -proto.clarifai.api.DatasetVersion.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 13)); -}; - - -/** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.DatasetVersion} returns this -*/ -proto.clarifai.api.DatasetVersion.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 13, value); +proto.clarifai.api.FieldsValue.prototype.setBinaryMetrics = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * optional bool test_set = 5; + * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.FieldsValue.prototype.getTestSet = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.clarifai.api.FieldsValue} returns this */ -proto.clarifai.api.DatasetVersion.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 13) != null; +proto.clarifai.api.FieldsValue.prototype.setTestSet = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; /** - * repeated string embed_model_version_ids = 14; - * @return {!Array} + * optional bool metrics_by_area = 6; + * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.getEmbedModelVersionIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 14)); +proto.clarifai.api.FieldsValue.prototype.getMetricsByArea = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.FieldsValue} returns this */ -proto.clarifai.api.DatasetVersion.prototype.setEmbedModelVersionIdsList = function(value) { - return jspb.Message.setField(this, 14, value || []); +proto.clarifai.api.FieldsValue.prototype.setMetricsByArea = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DatasetVersion} returns this + * optional bool metrics_by_class = 7; + * @return {boolean} */ -proto.clarifai.api.DatasetVersion.prototype.addEmbedModelVersionIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 14, value, opt_index); +proto.clarifai.api.FieldsValue.prototype.getMetricsByClass = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DatasetVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.FieldsValue} returns this */ -proto.clarifai.api.DatasetVersion.prototype.clearEmbedModelVersionIdsList = function() { - return this.setEmbedModelVersionIdsList([]); +proto.clarifai.api.FieldsValue.prototype.setMetricsByClass = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); }; @@ -15419,8 +34694,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DatasetVersionDatasetFilterConfig.toObject(opt_includeInstance, this); +proto.clarifai.api.Output.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Output.toObject(opt_includeInstance, this); }; @@ -15429,13 +34704,18 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} msg The msg instance to transform. + * @param {!proto.clarifai.api.Output} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.toObject = function(includeInstance, msg) { +proto.clarifai.api.Output.toObject = function(includeInstance, msg) { var f, obj = { - datasetFilter: (f = msg.getDatasetFilter()) && proto.clarifai.api.DatasetFilter.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f), + input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f) }; if (includeInstance) { @@ -15449,23 +34729,23 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} + * @return {!proto.clarifai.api.Output} */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinary = function(bytes) { +proto.clarifai.api.Output.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DatasetVersionDatasetFilterConfig; - return proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Output; + return proto.clarifai.api.Output.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Output} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} + * @return {!proto.clarifai.api.Output} */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Output.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15473,9 +34753,33 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.DatasetFilter; - reader.readMessage(value,proto.clarifai.api.DatasetFilter.deserializeBinaryFromReader); - msg.setDatasetFilter(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 4: + var value = new proto.clarifai.api.Model; + reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); + msg.setModel(value); + break; + case 5: + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setInput(value); + break; + case 6: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); break; default: reader.skipField(); @@ -15490,9 +34794,9 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.serializeBinary = function() { +proto.clarifai.api.Output.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DatasetVersionDatasetFilterConfig.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Output.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15500,48 +34804,105 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} message + * @param {!proto.clarifai.api.Output} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Output.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getDatasetFilter(); + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getStatus(); if (f != null) { writer.writeMessage( - 1, + 2, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModel(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.Model.serializeBinaryToWriter + ); + } + f = message.getInput(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.Input.serializeBinaryToWriter + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 6, f, - proto.clarifai.api.DatasetFilter.serializeBinaryToWriter + proto.clarifai.api.Data.serializeBinaryToWriter ); } }; /** - * optional DatasetFilter dataset_filter = 1; - * @return {?proto.clarifai.api.DatasetFilter} + * optional string id = 1; + * @return {string} + */ +proto.clarifai.api.Output.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Output} returns this + */ +proto.clarifai.api.Output.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional status.Status status = 2; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.getDatasetFilter = function() { - return /** @type{?proto.clarifai.api.DatasetFilter} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetFilter, 1)); +proto.clarifai.api.Output.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2)); }; /** - * @param {?proto.clarifai.api.DatasetFilter|undefined} value - * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.Output} returns this */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.setDatasetFilter = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.Output.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DatasetVersionDatasetFilterConfig} returns this + * @return {!proto.clarifai.api.Output} returns this */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.clearDatasetFilter = function() { - return this.setDatasetFilter(undefined); +proto.clarifai.api.Output.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -15549,198 +34910,156 @@ proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.clearDatasetFilte * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DatasetVersionDatasetFilterConfig.prototype.hasDatasetFilter = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.Output.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * optional google.protobuf.Timestamp created_at = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Output.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Output} returns this +*/ +proto.clarifai.api.Output.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Output} returns this */ -proto.clarifai.api.DatasetVersionMetrics.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DatasetVersionMetrics.toObject(opt_includeInstance, this); +proto.clarifai.api.Output.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DatasetVersionMetrics} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetVersionMetrics.toObject = function(includeInstance, msg) { - var f, obj = { - inputsCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - positiveAnnotationsCount: jspb.Message.getFieldWithDefault(msg, 2, 0), - boundingBoxesCount: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.Output.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 3) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DatasetVersionMetrics} + * optional Model model = 4; + * @return {?proto.clarifai.api.Model} */ -proto.clarifai.api.DatasetVersionMetrics.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DatasetVersionMetrics; - return proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Output.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 4)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.DatasetVersionMetrics} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DatasetVersionMetrics} - */ -proto.clarifai.api.DatasetVersionMetrics.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint64()); - msg.setInputsCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setPositiveAnnotationsCount(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setBoundingBoxesCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.Output} returns this +*/ +proto.clarifai.api.Output.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Output} returns this */ -proto.clarifai.api.DatasetVersionMetrics.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Output.prototype.clearModel = function() { + return this.setModel(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DatasetVersionMetrics} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetVersionMetrics.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInputsCount(); - if (f !== 0) { - writer.writeUint64( - 1, - f - ); - } - f = message.getPositiveAnnotationsCount(); - if (f !== 0) { - writer.writeUint64( - 2, - f - ); - } - f = message.getBoundingBoxesCount(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } +proto.clarifai.api.Output.prototype.hasModel = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional uint64 inputs_count = 1; - * @return {number} + * optional Input input = 5; + * @return {?proto.clarifai.api.Input} */ -proto.clarifai.api.DatasetVersionMetrics.prototype.getInputsCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.Output.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.Output} returns this +*/ +proto.clarifai.api.Output.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Output} returns this */ -proto.clarifai.api.DatasetVersionMetrics.prototype.setInputsCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.Output.prototype.clearInput = function() { + return this.setInput(undefined); }; /** - * optional uint64 positive_annotations_count = 2; - * @return {number} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetVersionMetrics.prototype.getPositiveAnnotationsCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.Output.prototype.hasInput = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * @param {number} value - * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + * optional Data data = 6; + * @return {?proto.clarifai.api.Data} */ -proto.clarifai.api.DatasetVersionMetrics.prototype.setPositiveAnnotationsCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.Output.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 6)); +}; + + +/** + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.Output} returns this +*/ +proto.clarifai.api.Output.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * optional uint64 bounding_boxes_count = 3; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Output} returns this */ -proto.clarifai.api.DatasetVersionMetrics.prototype.getBoundingBoxesCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.Output.prototype.clearData = function() { + return this.setData(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.DatasetVersionMetrics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DatasetVersionMetrics.prototype.setBoundingBoxesCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.Output.prototype.hasData = function() { + return jspb.Message.getField(this, 6) != null; }; @@ -15750,7 +35069,7 @@ proto.clarifai.api.DatasetVersionMetrics.prototype.setBoundingBoxesCount = funct * @private {!Array} * @const */ -proto.clarifai.api.WorkflowResultsSimilarity.repeatedFields_ = [2]; +proto.clarifai.api.ScopeDeps.repeatedFields_ = [2]; @@ -15767,8 +35086,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.WorkflowResultsSimilarity.toObject(opt_includeInstance, this); +proto.clarifai.api.ScopeDeps.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ScopeDeps.toObject(opt_includeInstance, this); }; @@ -15777,15 +35096,14 @@ proto.clarifai.api.WorkflowResultsSimilarity.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The msg instance to transform. + * @param {!proto.clarifai.api.ScopeDeps} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowResultsSimilarity.toObject = function(includeInstance, msg) { +proto.clarifai.api.ScopeDeps.toObject = function(includeInstance, msg) { var f, obj = { - probeInput: (f = msg.getProbeInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), - poolResultsList: jspb.Message.toObjectList(msg.getPoolResultsList(), - proto.clarifai.api.Hit.toObject, includeInstance) + scope: jspb.Message.getFieldWithDefault(msg, 1, ""), + dependingScopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -15799,23 +35117,23 @@ proto.clarifai.api.WorkflowResultsSimilarity.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.WorkflowResultsSimilarity} + * @return {!proto.clarifai.api.ScopeDeps} */ -proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinary = function(bytes) { +proto.clarifai.api.ScopeDeps.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.WorkflowResultsSimilarity; - return proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ScopeDeps; + return proto.clarifai.api.ScopeDeps.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.WorkflowResultsSimilarity} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ScopeDeps} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.WorkflowResultsSimilarity} + * @return {!proto.clarifai.api.ScopeDeps} */ -proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ScopeDeps.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15823,14 +35141,12 @@ proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.Input; - reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); - msg.setProbeInput(value); + var value = /** @type {string} */ (reader.readString()); + msg.setScope(value); break; case 2: - var value = new proto.clarifai.api.Hit; - reader.readMessage(value,proto.clarifai.api.Hit.deserializeBinaryFromReader); - msg.addPoolResults(value); + var value = /** @type {string} */ (reader.readString()); + msg.addDependingScopes(value); break; default: reader.skipField(); @@ -15845,9 +35161,9 @@ proto.clarifai.api.WorkflowResultsSimilarity.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.serializeBinary = function() { +proto.clarifai.api.ScopeDeps.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ScopeDeps.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15855,103 +35171,81 @@ proto.clarifai.api.WorkflowResultsSimilarity.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.WorkflowResultsSimilarity} message + * @param {!proto.clarifai.api.ScopeDeps} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowResultsSimilarity.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ScopeDeps.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getProbeInput(); - if (f != null) { - writer.writeMessage( + f = message.getScope(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto.clarifai.api.Input.serializeBinaryToWriter + f ); } - f = message.getPoolResultsList(); + f = message.getDependingScopesList(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeRepeatedString( 2, - f, - proto.clarifai.api.Hit.serializeBinaryToWriter + f ); } }; /** - * optional Input probe_input = 1; - * @return {?proto.clarifai.api.Input} + * optional string scope = 1; + * @return {string} */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.getProbeInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 1)); -}; - - -/** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this -*/ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.setProbeInput = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.ScopeDeps.prototype.getScope = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this + * @param {string} value + * @return {!proto.clarifai.api.ScopeDeps} returns this */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearProbeInput = function() { - return this.setProbeInput(undefined); +proto.clarifai.api.ScopeDeps.prototype.setScope = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * repeated string depending_scopes = 2; + * @return {!Array} */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.hasProbeInput = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ScopeDeps.prototype.getDependingScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * repeated Hit pool_results = 2; - * @return {!Array} + * @param {!Array} value + * @return {!proto.clarifai.api.ScopeDeps} returns this */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.getPoolResultsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Hit, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this -*/ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.setPoolResultsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.ScopeDeps.prototype.setDependingScopesList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!proto.clarifai.api.Hit=} opt_value + * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.Hit} + * @return {!proto.clarifai.api.ScopeDeps} returns this */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.addPoolResults = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Hit, opt_index); +proto.clarifai.api.ScopeDeps.prototype.addDependingScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.WorkflowResultsSimilarity} returns this + * @return {!proto.clarifai.api.ScopeDeps} returns this */ -proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearPoolResultsList = function() { - return this.setPoolResultsList([]); +proto.clarifai.api.ScopeDeps.prototype.clearDependingScopesList = function() { + return this.setDependingScopesList([]); }; @@ -15961,7 +35255,7 @@ proto.clarifai.api.WorkflowResultsSimilarity.prototype.clearPoolResultsList = fu * @private {!Array} * @const */ -proto.clarifai.api.Key.repeatedFields_ = [3,7,4,9]; +proto.clarifai.api.EndpointDeps.repeatedFields_ = [2]; @@ -15978,8 +35272,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Key.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Key.toObject(opt_includeInstance, this); +proto.clarifai.api.EndpointDeps.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.EndpointDeps.toObject(opt_includeInstance, this); }; @@ -15988,22 +35282,14 @@ proto.clarifai.api.Key.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Key} msg The msg instance to transform. + * @param {!proto.clarifai.api.EndpointDeps} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Key.toObject = function(includeInstance, msg) { +proto.clarifai.api.EndpointDeps.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 8, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - scopesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - endpointsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, - appsList: jspb.Message.toObjectList(msg.getAppsList(), - proto.clarifai.api.App.toObject, includeInstance), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - authorizedIdpIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f + endpoint: jspb.Message.getFieldWithDefault(msg, 1, ""), + dependingScopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -16017,23 +35303,23 @@ proto.clarifai.api.Key.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Key} + * @return {!proto.clarifai.api.EndpointDeps} */ -proto.clarifai.api.Key.deserializeBinary = function(bytes) { +proto.clarifai.api.EndpointDeps.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Key; - return proto.clarifai.api.Key.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.EndpointDeps; + return proto.clarifai.api.EndpointDeps.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Key} msg The message object to deserialize into. + * @param {!proto.clarifai.api.EndpointDeps} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Key} + * @return {!proto.clarifai.api.EndpointDeps} */ -proto.clarifai.api.Key.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.EndpointDeps.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16042,42 +35328,11 @@ proto.clarifai.api.Key.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); + msg.setEndpoint(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addScopes(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addEndpoints(value); - break; - case 4: - var value = new proto.clarifai.api.App; - reader.readMessage(value,proto.clarifai.api.App.deserializeBinaryFromReader); - msg.addApps(value); - break; - case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setExpiresAt(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.addAuthorizedIdpIds(value); + msg.addDependingScopes(value); break; default: reader.skipField(); @@ -16092,9 +35347,9 @@ proto.clarifai.api.Key.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Key.prototype.serializeBinary = function() { +proto.clarifai.api.EndpointDeps.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Key.serializeBinaryToWriter(this, writer); + proto.clarifai.api.EndpointDeps.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16102,366 +35357,85 @@ proto.clarifai.api.Key.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Key} message + * @param {!proto.clarifai.api.EndpointDeps} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Key.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.EndpointDeps.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getEndpoint(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getType(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getScopesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - f - ); - } - f = message.getAppsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.clarifai.api.App.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getExpiresAt(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAuthorizedIdpIdsList(); + f = message.getDependingScopesList(); if (f.length > 0) { writer.writeRepeatedString( - 9, - f - ); - } -}; - - -/** - * optional string id = 1; - * @return {string} - */ -proto.clarifai.api.Key.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string type = 8; - * @return {string} - */ -proto.clarifai.api.Key.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.clarifai.api.Key.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string scopes = 3; - * @return {!Array} - */ -proto.clarifai.api.Key.prototype.getScopesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.setScopesList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.addScopes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.clearScopesList = function() { - return this.setScopesList([]); -}; - - -/** - * repeated string endpoints = 7; - * @return {!Array} - */ -proto.clarifai.api.Key.prototype.getEndpointsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.setEndpointsList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.addEndpoints = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); -}; - - -/** - * repeated App apps = 4; - * @return {!Array} - */ -proto.clarifai.api.Key.prototype.getAppsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.App, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Key} returns this -*/ -proto.clarifai.api.Key.prototype.setAppsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.clarifai.api.App=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.App} - */ -proto.clarifai.api.Key.prototype.addApps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.App, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.clearAppsList = function() { - return this.setAppsList([]); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.clarifai.api.Key.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Key} returns this -*/ -proto.clarifai.api.Key.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Key} returns this - */ -proto.clarifai.api.Key.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.Key.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional google.protobuf.Timestamp expires_at = 6; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.clarifai.api.Key.prototype.getExpiresAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Key} returns this -*/ -proto.clarifai.api.Key.prototype.setExpiresAt = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + 2, + f + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Key} returns this + * optional string endpoint = 1; + * @return {string} */ -proto.clarifai.api.Key.prototype.clearExpiresAt = function() { - return this.setExpiresAt(undefined); +proto.clarifai.api.EndpointDeps.prototype.getEndpoint = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.EndpointDeps} returns this */ -proto.clarifai.api.Key.prototype.hasExpiresAt = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.EndpointDeps.prototype.setEndpoint = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated string authorized_idp_ids = 9; + * repeated string depending_scopes = 2; * @return {!Array} */ -proto.clarifai.api.Key.prototype.getAuthorizedIdpIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +proto.clarifai.api.EndpointDeps.prototype.getDependingScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.Key} returns this + * @return {!proto.clarifai.api.EndpointDeps} returns this */ -proto.clarifai.api.Key.prototype.setAuthorizedIdpIdsList = function(value) { - return jspb.Message.setField(this, 9, value || []); +proto.clarifai.api.EndpointDeps.prototype.setDependingScopesList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.Key} returns this + * @return {!proto.clarifai.api.EndpointDeps} returns this */ -proto.clarifai.api.Key.prototype.addAuthorizedIdpIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +proto.clarifai.api.EndpointDeps.prototype.addDependingScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Key} returns this + * @return {!proto.clarifai.api.EndpointDeps} returns this */ -proto.clarifai.api.Key.prototype.clearAuthorizedIdpIdsList = function() { - return this.setAuthorizedIdpIdsList([]); +proto.clarifai.api.EndpointDeps.prototype.clearDependingScopesList = function() { + return this.setDependingScopesList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.Model.repeatedFields_ = [20,21,25]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -16477,8 +35451,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Model.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Model.toObject(opt_includeInstance, this); +proto.clarifai.api.Hit.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Hit.toObject(opt_includeInstance, this); }; @@ -16487,34 +35461,17 @@ proto.clarifai.api.Model.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Model} msg The msg instance to transform. + * @param {!proto.clarifai.api.Hit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.toObject = function(includeInstance, msg) { +proto.clarifai.api.Hit.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - appId: jspb.Message.getFieldWithDefault(msg, 4, ""), - outputInfo: (f = msg.getOutputInfo()) && proto.clarifai.api.OutputInfo.toObject(includeInstance, f), - modelVersion: (f = msg.getModelVersion()) && proto.clarifai.api.ModelVersion.toObject(includeInstance, f), - displayName: jspb.Message.getFieldWithDefault(msg, 7, ""), - userId: jspb.Message.getFieldWithDefault(msg, 9, ""), - inputInfo: (f = msg.getInputInfo()) && proto.clarifai.api.InputInfo.toObject(includeInstance, f), - trainInfo: (f = msg.getTrainInfo()) && proto.clarifai.api.TrainInfo.toObject(includeInstance, f), - modelTypeId: jspb.Message.getFieldWithDefault(msg, 14, ""), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 16, ""), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - notes: jspb.Message.getFieldWithDefault(msg, 18, ""), - toolkitsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f, - useCasesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, - languagesList: (f = jspb.Message.getRepeatedField(msg, 25)) == null ? undefined : f, - isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), - starCount: jspb.Message.getFieldWithDefault(msg, 23, 0), - importInfo: (f = msg.getImportInfo()) && proto.clarifai.api.ImportInfo.toObject(includeInstance, f) + score: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), + annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 4, ""), + appId: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -16528,23 +35485,23 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Model} + * @return {!proto.clarifai.api.Hit} */ -proto.clarifai.api.Model.deserializeBinary = function(bytes) { +proto.clarifai.api.Hit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Model; - return proto.clarifai.api.Model.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Hit; + return proto.clarifai.api.Hit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Model} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Hit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Model} + * @return {!proto.clarifai.api.Hit} */ -proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Hit.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16552,101 +35509,26 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setScore(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setInput(value); break; case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 19: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); + var value = new proto.clarifai.api.Annotation; + reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); + msg.setAnnotation(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); - break; - case 5: - var value = new proto.clarifai.api.OutputInfo; - reader.readMessage(value,proto.clarifai.api.OutputInfo.deserializeBinaryFromReader); - msg.setOutputInfo(value); - break; - case 6: - var value = new proto.clarifai.api.ModelVersion; - reader.readMessage(value,proto.clarifai.api.ModelVersion.deserializeBinaryFromReader); - msg.setModelVersion(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setDisplayName(value); - break; - case 9: var value = /** @type {string} */ (reader.readString()); msg.setUserId(value); break; - case 12: - var value = new proto.clarifai.api.InputInfo; - reader.readMessage(value,proto.clarifai.api.InputInfo.deserializeBinaryFromReader); - msg.setInputInfo(value); - break; - case 13: - var value = new proto.clarifai.api.TrainInfo; - reader.readMessage(value,proto.clarifai.api.TrainInfo.deserializeBinaryFromReader); - msg.setTrainInfo(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setModelTypeId(value); - break; - case 15: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 17: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.setNotes(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.addToolkits(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.addUseCases(value); - break; - case 25: + case 5: var value = /** @type {string} */ (reader.readString()); - msg.addLanguages(value); - break; - case 22: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsStarred(value); - break; - case 23: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStarCount(value); - break; - case 24: - var value = new proto.clarifai.api.ImportInfo; - reader.readMessage(value,proto.clarifai.api.ImportInfo.deserializeBinaryFromReader); - msg.setImportInfo(value); + msg.setAppId(value); break; default: reader.skipField(); @@ -16661,9 +35543,9 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Model.prototype.serializeBinary = function() { +proto.clarifai.api.Hit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Model.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Hit.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16671,331 +35553,489 @@ proto.clarifai.api.Model.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Model} message + * @param {!proto.clarifai.api.Hit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Hit.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getScore(); + if (f !== 0.0) { + writer.writeFloat( 1, f ); } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 19, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getOutputInfo(); + f = message.getInput(); if (f != null) { writer.writeMessage( - 5, + 2, f, - proto.clarifai.api.OutputInfo.serializeBinaryToWriter + proto.clarifai.api.Input.serializeBinaryToWriter ); } - f = message.getModelVersion(); + f = message.getAnnotation(); if (f != null) { writer.writeMessage( - 6, + 3, f, - proto.clarifai.api.ModelVersion.serializeBinaryToWriter - ); - } - f = message.getDisplayName(); - if (f.length > 0) { - writer.writeString( - 7, - f + proto.clarifai.api.Annotation.serializeBinaryToWriter ); } f = message.getUserId(); if (f.length > 0) { writer.writeString( - 9, - f - ); - } - f = message.getInputInfo(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.clarifai.api.InputInfo.serializeBinaryToWriter - ); - } - f = message.getTrainInfo(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.clarifai.api.TrainInfo.serializeBinaryToWriter - ); - } - f = message.getModelTypeId(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 15, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 16, + 4, f ); } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 17, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getNotes(); + f = message.getAppId(); if (f.length > 0) { writer.writeString( - 18, - f - ); - } - f = message.getToolkitsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 20, - f - ); - } - f = message.getUseCasesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 21, - f - ); - } - f = message.getLanguagesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 25, - f - ); - } - f = message.getIsStarred(); - if (f) { - writer.writeBool( - 22, - f - ); - } - f = message.getStarCount(); - if (f !== 0) { - writer.writeInt32( - 23, + 5, f ); } - f = message.getImportInfo(); - if (f != null) { - writer.writeMessage( - 24, - f, - proto.clarifai.api.ImportInfo.serializeBinaryToWriter - ); - } }; /** - * optional string id = 1; + * optional float score = 1; + * @return {number} + */ +proto.clarifai.api.Hit.prototype.getScore = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Hit} returns this + */ +proto.clarifai.api.Hit.prototype.setScore = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional Input input = 2; + * @return {?proto.clarifai.api.Input} + */ +proto.clarifai.api.Hit.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.Hit} returns this +*/ +proto.clarifai.api.Hit.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Hit} returns this + */ +proto.clarifai.api.Hit.prototype.clearInput = function() { + return this.setInput(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Hit.prototype.hasInput = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Annotation annotation = 3; + * @return {?proto.clarifai.api.Annotation} + */ +proto.clarifai.api.Hit.prototype.getAnnotation = function() { + return /** @type{?proto.clarifai.api.Annotation} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Annotation|undefined} value + * @return {!proto.clarifai.api.Hit} returns this +*/ +proto.clarifai.api.Hit.prototype.setAnnotation = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Hit} returns this + */ +proto.clarifai.api.Hit.prototype.clearAnnotation = function() { + return this.setAnnotation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Hit.prototype.hasAnnotation = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string user_id = 4; * @return {string} */ -proto.clarifai.api.Model.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Hit.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Hit} returns this + */ +proto.clarifai.api.Hit.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string app_id = 5; + * @return {string} + */ +proto.clarifai.api.Hit.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Hit} returns this + */ +proto.clarifai.api.Hit.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.HitCount.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.HitCount.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.HitCount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.HitCount.toObject = function(includeInstance, msg) { + var f, obj = { + estimatedTotal: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.HitCount} */ -proto.clarifai.api.Model.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.HitCount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.HitCount; + return proto.clarifai.api.HitCount.deserializeBinaryFromReader(msg, reader); }; /** - * optional string name = 2; - * @return {string} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.HitCount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.HitCount} */ -proto.clarifai.api.Model.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.HitCount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setEstimatedTotal(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Model.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.HitCount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.HitCount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.HitCount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +proto.clarifai.api.HitCount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEstimatedTotal(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Model} returns this -*/ -proto.clarifai.api.Model.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * optional uint64 estimated_total = 1; + * @return {number} + */ +proto.clarifai.api.HitCount.prototype.getEstimatedTotal = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * @param {number} value + * @return {!proto.clarifai.api.HitCount} returns this */ -proto.clarifai.api.Model.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.HitCount.prototype.setEstimatedTotal = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.Model.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional google.protobuf.Timestamp modified_at = 19; - * @return {?proto.google.protobuf.Timestamp} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Model.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 19)); +proto.clarifai.api.And.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.And.toObject(opt_includeInstance, this); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Model} returns this -*/ -proto.clarifai.api.Model.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 19, value); + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.And} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.And.toObject = function(includeInstance, msg) { + var f, obj = { + input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), + output: (f = msg.getOutput()) && proto.clarifai.api.Output.toObject(includeInstance, f), + negate: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.And} */ -proto.clarifai.api.Model.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.And.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.And; + return proto.clarifai.api.And.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.And} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.And} */ -proto.clarifai.api.Model.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 19) != null; +proto.clarifai.api.And.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setInput(value); + break; + case 2: + var value = new proto.clarifai.api.Output; + reader.readMessage(value,proto.clarifai.api.Output.deserializeBinaryFromReader); + msg.setOutput(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNegate(value); + break; + case 4: + var value = new proto.clarifai.api.Annotation; + reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); + msg.setAnnotation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string app_id = 4; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Model.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.And.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.And.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.And} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.And.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInput(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.Input.serializeBinaryToWriter + ); + } + f = message.getOutput(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Output.serializeBinaryToWriter + ); + } + f = message.getNegate(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getAnnotation(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.Annotation.serializeBinaryToWriter + ); + } }; /** - * optional OutputInfo output_info = 5; - * @return {?proto.clarifai.api.OutputInfo} + * optional Input input = 1; + * @return {?proto.clarifai.api.Input} */ -proto.clarifai.api.Model.prototype.getOutputInfo = function() { - return /** @type{?proto.clarifai.api.OutputInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.OutputInfo, 5)); +proto.clarifai.api.And.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 1)); }; /** - * @param {?proto.clarifai.api.OutputInfo|undefined} value - * @return {!proto.clarifai.api.Model} returns this + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.And} returns this */ -proto.clarifai.api.Model.prototype.setOutputInfo = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.And.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * @return {!proto.clarifai.api.And} returns this */ -proto.clarifai.api.Model.prototype.clearOutputInfo = function() { - return this.setOutputInfo(undefined); +proto.clarifai.api.And.prototype.clearInput = function() { + return this.setInput(undefined); }; @@ -17003,36 +36043,36 @@ proto.clarifai.api.Model.prototype.clearOutputInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Model.prototype.hasOutputInfo = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.And.prototype.hasInput = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional ModelVersion model_version = 6; - * @return {?proto.clarifai.api.ModelVersion} + * optional Output output = 2; + * @return {?proto.clarifai.api.Output} */ -proto.clarifai.api.Model.prototype.getModelVersion = function() { - return /** @type{?proto.clarifai.api.ModelVersion} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ModelVersion, 6)); +proto.clarifai.api.And.prototype.getOutput = function() { + return /** @type{?proto.clarifai.api.Output} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Output, 2)); }; /** - * @param {?proto.clarifai.api.ModelVersion|undefined} value - * @return {!proto.clarifai.api.Model} returns this + * @param {?proto.clarifai.api.Output|undefined} value + * @return {!proto.clarifai.api.And} returns this */ -proto.clarifai.api.Model.prototype.setModelVersion = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.And.prototype.setOutput = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * @return {!proto.clarifai.api.And} returns this */ -proto.clarifai.api.Model.prototype.clearModelVersion = function() { - return this.setModelVersion(undefined); +proto.clarifai.api.And.prototype.clearOutput = function() { + return this.setOutput(undefined); }; @@ -17040,421 +36080,753 @@ proto.clarifai.api.Model.prototype.clearModelVersion = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Model.prototype.hasModelVersion = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.And.prototype.hasOutput = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional string display_name = 7; - * @return {string} + * optional bool negate = 3; + * @return {boolean} */ -proto.clarifai.api.Model.prototype.getDisplayName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.clarifai.api.And.prototype.getNegate = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.And} returns this */ -proto.clarifai.api.Model.prototype.setDisplayName = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.clarifai.api.And.prototype.setNegate = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * optional string user_id = 9; - * @return {string} + * optional Annotation annotation = 4; + * @return {?proto.clarifai.api.Annotation} */ -proto.clarifai.api.Model.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +proto.clarifai.api.And.prototype.getAnnotation = function() { + return /** @type{?proto.clarifai.api.Annotation} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 4)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * @param {?proto.clarifai.api.Annotation|undefined} value + * @return {!proto.clarifai.api.And} returns this +*/ +proto.clarifai.api.And.prototype.setAnnotation = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.And} returns this */ -proto.clarifai.api.Model.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); +proto.clarifai.api.And.prototype.clearAnnotation = function() { + return this.setAnnotation(undefined); }; /** - * optional InputInfo input_info = 12; - * @return {?proto.clarifai.api.InputInfo} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Model.prototype.getInputInfo = function() { - return /** @type{?proto.clarifai.api.InputInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.InputInfo, 12)); +proto.clarifai.api.And.prototype.hasAnnotation = function() { + return jspb.Message.getField(this, 4) != null; }; + /** - * @param {?proto.clarifai.api.InputInfo|undefined} value - * @return {!proto.clarifai.api.Model} returns this -*/ -proto.clarifai.api.Model.prototype.setInputInfo = function(value) { - return jspb.Message.setWrapperField(this, 12, value); + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Query.repeatedFields_ = [1,3,4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Query.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Query.toObject(opt_includeInstance, this); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Query} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.prototype.clearInputInfo = function() { - return this.setInputInfo(undefined); +proto.clarifai.api.Query.toObject = function(includeInstance, msg) { + var f, obj = { + andsList: jspb.Message.toObjectList(msg.getAndsList(), + proto.clarifai.api.And.toObject, includeInstance), + language: jspb.Message.getFieldWithDefault(msg, 2, ""), + filtersList: jspb.Message.toObjectList(msg.getFiltersList(), + proto.clarifai.api.Filter.toObject, includeInstance), + ranksList: jspb.Message.toObjectList(msg.getRanksList(), + proto.clarifai.api.Rank.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Query} */ -proto.clarifai.api.Model.prototype.hasInputInfo = function() { - return jspb.Message.getField(this, 12) != null; +proto.clarifai.api.Query.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Query; + return proto.clarifai.api.Query.deserializeBinaryFromReader(msg, reader); }; /** - * optional TrainInfo train_info = 13; - * @return {?proto.clarifai.api.TrainInfo} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Query} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Query} */ -proto.clarifai.api.Model.prototype.getTrainInfo = function() { - return /** @type{?proto.clarifai.api.TrainInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TrainInfo, 13)); +proto.clarifai.api.Query.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.And; + reader.readMessage(value,proto.clarifai.api.And.deserializeBinaryFromReader); + msg.addAnds(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 3: + var value = new proto.clarifai.api.Filter; + reader.readMessage(value,proto.clarifai.api.Filter.deserializeBinaryFromReader); + msg.addFilters(value); + break; + case 4: + var value = new proto.clarifai.api.Rank; + reader.readMessage(value,proto.clarifai.api.Rank.deserializeBinaryFromReader); + msg.addRanks(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {?proto.clarifai.api.TrainInfo|undefined} value - * @return {!proto.clarifai.api.Model} returns this -*/ -proto.clarifai.api.Model.prototype.setTrainInfo = function(value) { - return jspb.Message.setWrapperField(this, 13, value); + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Query.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Query.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Query} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.prototype.clearTrainInfo = function() { - return this.setTrainInfo(undefined); +proto.clarifai.api.Query.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAndsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.clarifai.api.And.serializeBinaryToWriter + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getFiltersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.clarifai.api.Filter.serializeBinaryToWriter + ); + } + f = message.getRanksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.clarifai.api.Rank.serializeBinaryToWriter + ); + } }; /** - * Returns whether this field is set. - * @return {boolean} + * repeated And ands = 1; + * @return {!Array} */ -proto.clarifai.api.Model.prototype.hasTrainInfo = function() { - return jspb.Message.getField(this, 13) != null; +proto.clarifai.api.Query.prototype.getAndsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.And, 1)); }; /** - * optional string model_type_id = 14; - * @return {string} + * @param {!Array} value + * @return {!proto.clarifai.api.Query} returns this +*/ +proto.clarifai.api.Query.prototype.setAndsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.clarifai.api.And=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.And} */ -proto.clarifai.api.Model.prototype.getModelTypeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +proto.clarifai.api.Query.prototype.addAnds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.And, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Query} returns this */ -proto.clarifai.api.Model.prototype.setModelTypeId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); +proto.clarifai.api.Query.prototype.clearAndsList = function() { + return this.setAndsList([]); }; /** - * optional Visibility visibility = 15; - * @return {?proto.clarifai.api.Visibility} + * optional string language = 2; + * @return {string} */ -proto.clarifai.api.Model.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 15)); +proto.clarifai.api.Query.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.Model} returns this -*/ -proto.clarifai.api.Model.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 15, value); + * @param {string} value + * @return {!proto.clarifai.api.Query} returns this + */ +proto.clarifai.api.Query.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * repeated Filter filters = 3; + * @return {!Array} */ -proto.clarifai.api.Model.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.Query.prototype.getFiltersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Filter, 3)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.Model.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 15) != null; + * @param {!Array} value + * @return {!proto.clarifai.api.Query} returns this +*/ +proto.clarifai.api.Query.prototype.setFiltersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * optional string description = 16; - * @return {string} + * @param {!proto.clarifai.api.Filter=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Filter} */ -proto.clarifai.api.Model.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +proto.clarifai.api.Query.prototype.addFilters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Filter, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Query} returns this */ -proto.clarifai.api.Model.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); +proto.clarifai.api.Query.prototype.clearFiltersList = function() { + return this.setFiltersList([]); }; /** - * optional google.protobuf.Struct metadata = 17; - * @return {?proto.google.protobuf.Struct} + * repeated Rank ranks = 4; + * @return {!Array} */ -proto.clarifai.api.Model.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 17)); +proto.clarifai.api.Query.prototype.getRanksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Rank, 4)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.Model} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.Query} returns this */ -proto.clarifai.api.Model.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 17, value); +proto.clarifai.api.Query.prototype.setRanksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * @param {!proto.clarifai.api.Rank=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Rank} */ -proto.clarifai.api.Model.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.Query.prototype.addRanks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Rank, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Query} returns this */ -proto.clarifai.api.Model.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 17) != null; +proto.clarifai.api.Query.prototype.clearRanksList = function() { + return this.setRanksList([]); }; -/** - * optional string notes = 18; - * @return {string} - */ -proto.clarifai.api.Model.prototype.getNotes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {string} value - * @return {!proto.clarifai.api.Model} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Model.prototype.setNotes = function(value) { - return jspb.Message.setProto3StringField(this, 18, value); +proto.clarifai.api.Search.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Search.toObject(opt_includeInstance, this); }; /** - * repeated string toolkits = 20; - * @return {!Array} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Search} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.prototype.getToolkitsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 20)); +proto.clarifai.api.Search.toObject = function(includeInstance, msg) { + var f, obj = { + query: (f = msg.getQuery()) && proto.clarifai.api.Query.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + applicationId: jspb.Message.getFieldWithDefault(msg, 3, ""), + name: jspb.Message.getFieldWithDefault(msg, 4, ""), + asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + gitHash: jspb.Message.getFieldWithDefault(msg, 6, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + algorithm: jspb.Message.getFieldWithDefault(msg, 9, ""), + save: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + minValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + metric: jspb.Message.getFieldWithDefault(msg, 13, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {!Array} value - * @return {!proto.clarifai.api.Model} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.Model.prototype.setToolkitsList = function(value) { - return jspb.Message.setField(this, 20, value || []); +proto.clarifai.api.Search.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Search; + return proto.clarifai.api.Search.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Model} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Search} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.Model.prototype.addToolkits = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 20, value, opt_index); +proto.clarifai.api.Search.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Query; + reader.readMessage(value,proto.clarifai.api.Query.deserializeBinaryFromReader); + msg.setQuery(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setApplicationId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setAsOf(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setGitHash(value); + break; + case 7: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setAlgorithm(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSave(value); + break; + case 11: + var value = /** @type {number} */ (reader.readFloat()); + msg.setMinValue(value); + break; + case 12: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 13: + var value = /** @type {!proto.clarifai.api.Search.Metric} */ (reader.readEnum()); + msg.setMetric(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Model} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Model.prototype.clearToolkitsList = function() { - return this.setToolkitsList([]); +proto.clarifai.api.Search.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Search.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * repeated string use_cases = 21; - * @return {!Array} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Search} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Model.prototype.getUseCasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); +proto.clarifai.api.Search.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getQuery(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.Query.serializeBinaryToWriter + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getApplicationId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAsOf(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getGitHash(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 7, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAlgorithm(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getSave(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = message.getMinValue(); + if (f !== 0.0) { + writer.writeFloat( + 11, + f + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getMetric(); + if (f !== 0.0) { + writer.writeEnum( + 13, + f + ); + } }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Model} returns this + * @enum {number} */ -proto.clarifai.api.Model.prototype.setUseCasesList = function(value) { - return jspb.Message.setField(this, 21, value || []); +proto.clarifai.api.Search.Metric = { + METRIC_NOT_SET: 0, + EUCLIDEAN_DISTANCE: 1, + COSINE_DISTANCE: 2 }; - /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Model} returns this + * optional Query query = 1; + * @return {?proto.clarifai.api.Query} */ -proto.clarifai.api.Model.prototype.addUseCases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 21, value, opt_index); +proto.clarifai.api.Search.prototype.getQuery = function() { + return /** @type{?proto.clarifai.api.Query} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Query, 1)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Model} returns this - */ -proto.clarifai.api.Model.prototype.clearUseCasesList = function() { - return this.setUseCasesList([]); + * @param {?proto.clarifai.api.Query|undefined} value + * @return {!proto.clarifai.api.Search} returns this +*/ +proto.clarifai.api.Search.prototype.setQuery = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * repeated string languages = 25; - * @return {!Array} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.Model.prototype.getLanguagesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 25)); +proto.clarifai.api.Search.prototype.clearQuery = function() { + return this.setQuery(undefined); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Model} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Model.prototype.setLanguagesList = function(value) { - return jspb.Message.setField(this, 25, value || []); +proto.clarifai.api.Search.prototype.hasQuery = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Model} returns this + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.Model.prototype.addLanguages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 25, value, opt_index); +proto.clarifai.api.Search.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Model} returns this + * @param {string} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.Model.prototype.clearLanguagesList = function() { - return this.setLanguagesList([]); +proto.clarifai.api.Search.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional bool is_starred = 22; - * @return {boolean} + * optional string application_id = 3; + * @return {string} */ -proto.clarifai.api.Model.prototype.getIsStarred = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); +proto.clarifai.api.Search.prototype.getApplicationId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Model} returns this + * @param {string} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.Model.prototype.setIsStarred = function(value) { - return jspb.Message.setProto3BooleanField(this, 22, value); +proto.clarifai.api.Search.prototype.setApplicationId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional int32 star_count = 23; - * @return {number} + * optional string name = 4; + * @return {string} */ -proto.clarifai.api.Model.prototype.getStarCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); +proto.clarifai.api.Search.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Model} returns this + * @param {string} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.Model.prototype.setStarCount = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); +proto.clarifai.api.Search.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional ImportInfo import_info = 24; - * @return {?proto.clarifai.api.ImportInfo} + * optional google.protobuf.Timestamp as_of = 5; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Model.prototype.getImportInfo = function() { - return /** @type{?proto.clarifai.api.ImportInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ImportInfo, 24)); +proto.clarifai.api.Search.prototype.getAsOf = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** - * @param {?proto.clarifai.api.ImportInfo|undefined} value - * @return {!proto.clarifai.api.Model} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.Model.prototype.setImportInfo = function(value) { - return jspb.Message.setWrapperField(this, 24, value); +proto.clarifai.api.Search.prototype.setAsOf = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Model} returns this + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.Model.prototype.clearImportInfo = function() { - return this.setImportInfo(undefined); +proto.clarifai.api.Search.prototype.clearAsOf = function() { + return this.setAsOf(undefined); }; @@ -17462,270 +36834,182 @@ proto.clarifai.api.Model.prototype.clearImportInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Model.prototype.hasImportInfo = function() { - return jspb.Message.getField(this, 24) != null; +proto.clarifai.api.Search.prototype.hasAsOf = function() { + return jspb.Message.getField(this, 5) != null; }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional string git_hash = 6; + * @return {string} */ -proto.clarifai.api.ModelReference.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelReference.toObject(opt_includeInstance, this); +proto.clarifai.api.Search.prototype.getGitHash = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelReference} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - url: jspb.Message.getFieldWithDefault(msg, 3, ""), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.Search.prototype.setGitHash = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelReference} + * optional google.protobuf.Timestamp created_at = 7; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelReference.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelReference; - return proto.clarifai.api.ModelReference.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Search.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ModelReference} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelReference} + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Search} returns this +*/ +proto.clarifai.api.Search.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 5: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.Search.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelReference.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelReference.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Search.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 7) != null; }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelReference} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional google.protobuf.Timestamp modified_at = 8; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelReference.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUrl(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } +proto.clarifai.api.Search.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); }; /** - * optional string id = 1; - * @return {string} + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Search} returns this +*/ +proto.clarifai.api.Search.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Search.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelReference} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelReference.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.Search.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional string model_id = 2; + * optional string algorithm = 9; * @return {string} */ -proto.clarifai.api.ModelReference.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.Search.prototype.getAlgorithm = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ModelReference} returns this + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.Search.prototype.setAlgorithm = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); }; /** - * optional string url = 3; - * @return {string} + * optional bool save = 10; + * @return {boolean} */ -proto.clarifai.api.ModelReference.prototype.getUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.Search.prototype.getSave = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelReference} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.prototype.setUrl = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.Search.prototype.setSave = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); }; /** - * optional string name = 4; - * @return {string} + * optional float min_value = 11; + * @return {number} */ -proto.clarifai.api.ModelReference.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.Search.prototype.getMinValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelReference} returns this + * @param {number} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.Search.prototype.setMinValue = function(value) { + return jspb.Message.setProto3FloatField(this, 11, value); }; /** - * optional google.protobuf.Struct metadata = 5; - * @return {?proto.google.protobuf.Struct} + * optional Visibility visibility = 12; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.ModelReference.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +proto.clarifai.api.Search.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 12)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.ModelReference} returns this + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.Search.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 12, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelReference} returns this + * @return {!proto.clarifai.api.Search} returns this */ -proto.clarifai.api.ModelReference.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.Search.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; @@ -17733,8 +37017,26 @@ proto.clarifai.api.ModelReference.prototype.clearMetadata = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ModelReference.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.Search.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional Metric metric = 13; + * @return {!proto.clarifai.api.Search.Metric} + */ +proto.clarifai.api.Search.prototype.getMetric = function() { + return /** @type {!proto.clarifai.api.Search.Metric} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {!proto.clarifai.api.Search.Metric} value + * @return {!proto.clarifai.api.Search} returns this + */ +proto.clarifai.api.Search.prototype.setMetric = function(value) { + return jspb.Message.setProto3EnumField(this, 13, value); }; @@ -17754,8 +37056,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelVersionInputExample.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelVersionInputExample.toObject(opt_includeInstance, this); +proto.clarifai.api.Filter.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Filter.toObject(opt_includeInstance, this); }; @@ -17764,18 +37066,16 @@ proto.clarifai.api.ModelVersionInputExample.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelVersionInputExample} msg The msg instance to transform. + * @param {!proto.clarifai.api.Filter} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelVersionInputExample.toObject = function(includeInstance, msg) { +proto.clarifai.api.Filter.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - description: jspb.Message.getFieldWithDefault(msg, 6, "") + negate: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f), + input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), + lastUpdatedTimeRange: (f = msg.getLastUpdatedTimeRange()) && proto.clarifai.api.TimeRange.toObject(includeInstance, f) }; if (includeInstance) { @@ -17789,53 +37089,47 @@ proto.clarifai.api.ModelVersionInputExample.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelVersionInputExample} + * @return {!proto.clarifai.api.Filter} */ -proto.clarifai.api.ModelVersionInputExample.deserializeBinary = function(bytes) { +proto.clarifai.api.Filter.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelVersionInputExample; - return proto.clarifai.api.ModelVersionInputExample.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Filter; + return proto.clarifai.api.Filter.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelVersionInputExample} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Filter} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelVersionInputExample} + * @return {!proto.clarifai.api.Filter} */ -proto.clarifai.api.ModelVersionInputExample.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Filter.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setModelVersionId(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNegate(value); break; case 4: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); + var value = new proto.clarifai.api.Annotation; + reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); + msg.setAnnotation(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setInput(value); break; case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + var value = new proto.clarifai.api.TimeRange; + reader.readMessage(value,proto.clarifai.api.TimeRange.deserializeBinaryFromReader); + msg.setLastUpdatedTimeRange(value); break; default: reader.skipField(); @@ -17850,9 +37144,9 @@ proto.clarifai.api.ModelVersionInputExample.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelVersionInputExample.prototype.serializeBinary = function() { +proto.clarifai.api.Filter.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelVersionInputExample.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Filter.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17860,137 +37154,126 @@ proto.clarifai.api.ModelVersionInputExample.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelVersionInputExample} message + * @param {!proto.clarifai.api.Filter} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelVersionInputExample.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Filter.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getModelVersionId(); - if (f.length > 0) { - writer.writeString( + f = message.getNegate(); + if (f) { + writer.writeBool( 3, f ); } - f = message.getData(); + f = message.getAnnotation(); if (f != null) { writer.writeMessage( 4, f, - proto.clarifai.api.Data.serializeBinaryToWriter + proto.clarifai.api.Annotation.serializeBinaryToWriter ); } - f = message.getName(); - if (f.length > 0) { - writer.writeString( + f = message.getInput(); + if (f != null) { + writer.writeMessage( 5, - f + f, + proto.clarifai.api.Input.serializeBinaryToWriter ); } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( + f = message.getLastUpdatedTimeRange(); + if (f != null) { + writer.writeMessage( 6, - f + f, + proto.clarifai.api.TimeRange.serializeBinaryToWriter ); } }; /** - * optional string id = 1; - * @return {string} + * optional bool negate = 3; + * @return {boolean} */ -proto.clarifai.api.ModelVersionInputExample.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Filter.prototype.getNegate = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersionInputExample} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.Filter} returns this */ -proto.clarifai.api.ModelVersionInputExample.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.Filter.prototype.setNegate = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * optional string model_id = 2; - * @return {string} + * optional Annotation annotation = 4; + * @return {?proto.clarifai.api.Annotation} */ -proto.clarifai.api.ModelVersionInputExample.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.Filter.prototype.getAnnotation = function() { + return /** @type{?proto.clarifai.api.Annotation} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 4)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersionInputExample} returns this - */ -proto.clarifai.api.ModelVersionInputExample.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {?proto.clarifai.api.Annotation|undefined} value + * @return {!proto.clarifai.api.Filter} returns this +*/ +proto.clarifai.api.Filter.prototype.setAnnotation = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * optional string model_version_id = 3; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Filter} returns this */ -proto.clarifai.api.ModelVersionInputExample.prototype.getModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.Filter.prototype.clearAnnotation = function() { + return this.setAnnotation(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersionInputExample} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelVersionInputExample.prototype.setModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.Filter.prototype.hasAnnotation = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional Data data = 4; - * @return {?proto.clarifai.api.Data} + * optional Input input = 5; + * @return {?proto.clarifai.api.Input} */ -proto.clarifai.api.ModelVersionInputExample.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 4)); +proto.clarifai.api.Filter.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5)); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.ModelVersionInputExample} returns this + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.Filter} returns this */ -proto.clarifai.api.ModelVersionInputExample.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.Filter.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersionInputExample} returns this + * @return {!proto.clarifai.api.Filter} returns this */ -proto.clarifai.api.ModelVersionInputExample.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.Filter.prototype.clearInput = function() { + return this.setInput(undefined); }; @@ -17998,44 +37281,45 @@ proto.clarifai.api.ModelVersionInputExample.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ModelVersionInputExample.prototype.hasData = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.Filter.prototype.hasInput = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional string name = 5; - * @return {string} + * optional TimeRange last_updated_time_range = 6; + * @return {?proto.clarifai.api.TimeRange} */ -proto.clarifai.api.ModelVersionInputExample.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.Filter.prototype.getLastUpdatedTimeRange = function() { + return /** @type{?proto.clarifai.api.TimeRange} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TimeRange, 6)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersionInputExample} returns this - */ -proto.clarifai.api.ModelVersionInputExample.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); + * @param {?proto.clarifai.api.TimeRange|undefined} value + * @return {!proto.clarifai.api.Filter} returns this +*/ +proto.clarifai.api.Filter.prototype.setLastUpdatedTimeRange = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * optional string description = 6; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Filter} returns this */ -proto.clarifai.api.ModelVersionInputExample.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.clarifai.api.Filter.prototype.clearLastUpdatedTimeRange = function() { + return this.setLastUpdatedTimeRange(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersionInputExample} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelVersionInputExample.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.clarifai.api.Filter.prototype.hasLastUpdatedTimeRange = function() { + return jspb.Message.getField(this, 6) != null; }; @@ -18055,8 +37339,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.OutputInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.OutputInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.TimeRange.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TimeRange.toObject(opt_includeInstance, this); }; @@ -18065,17 +37349,14 @@ proto.clarifai.api.OutputInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.OutputInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.TimeRange} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.OutputInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.TimeRange.toObject = function(includeInstance, msg) { var f, obj = { - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - outputConfig: (f = msg.getOutputConfig()) && proto.clarifai.api.OutputConfig.toObject(includeInstance, f), - message: jspb.Message.getFieldWithDefault(msg, 3, ""), - fieldsMap: (f = msg.getFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -18089,23 +37370,23 @@ proto.clarifai.api.OutputInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.OutputInfo} + * @return {!proto.clarifai.api.TimeRange} */ -proto.clarifai.api.OutputInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.TimeRange.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.OutputInfo; - return proto.clarifai.api.OutputInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TimeRange; + return proto.clarifai.api.TimeRange.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.OutputInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TimeRange} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.OutputInfo} + * @return {!proto.clarifai.api.TimeRange} */ -proto.clarifai.api.OutputInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TimeRange.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18113,28 +37394,14 @@ proto.clarifai.api.OutputInfo.deserializeBinaryFromReader = function(msg, reader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setStartTime(value); break; case 2: - var value = new proto.clarifai.api.OutputConfig; - reader.readMessage(value,proto.clarifai.api.OutputConfig.deserializeBinaryFromReader); - msg.setOutputConfig(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMessage(value); - break; - case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setFieldsMap(value); - break; - case 7: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setParams(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setEndTime(value); break; default: reader.skipField(); @@ -18149,9 +37416,9 @@ proto.clarifai.api.OutputInfo.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.OutputInfo.prototype.serializeBinary = function() { +proto.clarifai.api.TimeRange.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.OutputInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TimeRange.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18159,79 +37426,56 @@ proto.clarifai.api.OutputInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.OutputInfo} message + * @param {!proto.clarifai.api.TimeRange} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.OutputInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TimeRange.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getData(); + f = message.getStartTime(); if (f != null) { writer.writeMessage( 1, f, - proto.clarifai.api.Data.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getOutputConfig(); + f = message.getEndTime(); if (f != null) { writer.writeMessage( 2, f, - proto.clarifai.api.OutputConfig.serializeBinaryToWriter - ); - } - f = message.getMessage(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getFieldsMap(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getParams(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; /** - * optional Data data = 1; - * @return {?proto.clarifai.api.Data} + * optional google.protobuf.Timestamp start_time = 1; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.OutputInfo.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 1)); +proto.clarifai.api.TimeRange.prototype.getStartTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.OutputInfo} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.TimeRange} returns this */ -proto.clarifai.api.OutputInfo.prototype.setData = function(value) { +proto.clarifai.api.TimeRange.prototype.setStartTime = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.OutputInfo} returns this + * @return {!proto.clarifai.api.TimeRange} returns this */ -proto.clarifai.api.OutputInfo.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.TimeRange.prototype.clearStartTime = function() { + return this.setStartTime(undefined); }; @@ -18239,36 +37483,36 @@ proto.clarifai.api.OutputInfo.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.OutputInfo.prototype.hasData = function() { +proto.clarifai.api.TimeRange.prototype.hasStartTime = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional OutputConfig output_config = 2; - * @return {?proto.clarifai.api.OutputConfig} + * optional google.protobuf.Timestamp end_time = 2; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.OutputInfo.prototype.getOutputConfig = function() { - return /** @type{?proto.clarifai.api.OutputConfig} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.OutputConfig, 2)); +proto.clarifai.api.TimeRange.prototype.getEndTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** - * @param {?proto.clarifai.api.OutputConfig|undefined} value - * @return {!proto.clarifai.api.OutputInfo} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.TimeRange} returns this */ -proto.clarifai.api.OutputInfo.prototype.setOutputConfig = function(value) { +proto.clarifai.api.TimeRange.prototype.setEndTime = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.OutputInfo} returns this + * @return {!proto.clarifai.api.TimeRange} returns this */ -proto.clarifai.api.OutputInfo.prototype.clearOutputConfig = function() { - return this.setOutputConfig(undefined); +proto.clarifai.api.TimeRange.prototype.clearEndTime = function() { + return this.setEndTime(undefined); }; @@ -18276,103 +37520,11 @@ proto.clarifai.api.OutputInfo.prototype.clearOutputConfig = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.OutputInfo.prototype.hasOutputConfig = function() { +proto.clarifai.api.TimeRange.prototype.hasEndTime = function() { return jspb.Message.getField(this, 2) != null; }; -/** - * optional string message = 3; - * @return {string} - */ -proto.clarifai.api.OutputInfo.prototype.getMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.OutputInfo} returns this - */ -proto.clarifai.api.OutputInfo.prototype.setMessage = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional google.protobuf.Struct fields_map = 6; - * @return {?proto.google.protobuf.Struct} - */ -proto.clarifai.api.OutputInfo.prototype.getFieldsMap = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.OutputInfo} returns this -*/ -proto.clarifai.api.OutputInfo.prototype.setFieldsMap = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.OutputInfo} returns this - */ -proto.clarifai.api.OutputInfo.prototype.clearFieldsMap = function() { - return this.setFieldsMap(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.OutputInfo.prototype.hasFieldsMap = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * optional google.protobuf.Struct params = 7; - * @return {?proto.google.protobuf.Struct} - */ -proto.clarifai.api.OutputInfo.prototype.getParams = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.OutputInfo} returns this -*/ -proto.clarifai.api.OutputInfo.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.OutputInfo} returns this - */ -proto.clarifai.api.OutputInfo.prototype.clearParams = function() { - return this.setParams(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.OutputInfo.prototype.hasParams = function() { - return jspb.Message.getField(this, 7) != null; -}; - - @@ -18389,8 +37541,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.InputInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.InputInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.Rank.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Rank.toObject(opt_includeInstance, this); }; @@ -18399,14 +37551,14 @@ proto.clarifai.api.InputInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.InputInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.Rank} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.InputInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.Rank.toObject = function(includeInstance, msg) { var f, obj = { - fieldsMap: (f = msg.getFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + negate: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f) }; if (includeInstance) { @@ -18420,38 +37572,37 @@ proto.clarifai.api.InputInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.InputInfo} + * @return {!proto.clarifai.api.Rank} */ -proto.clarifai.api.InputInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.Rank.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.InputInfo; - return proto.clarifai.api.InputInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Rank; + return proto.clarifai.api.Rank.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.InputInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Rank} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.InputInfo} + * @return {!proto.clarifai.api.Rank} */ -proto.clarifai.api.InputInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Rank.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setFieldsMap(value); + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNegate(value); break; - case 2: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setParams(value); + case 4: + var value = new proto.clarifai.api.Annotation; + reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); + msg.setAnnotation(value); break; default: reader.skipField(); @@ -18466,9 +37617,9 @@ proto.clarifai.api.InputInfo.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.InputInfo.prototype.serializeBinary = function() { +proto.clarifai.api.Rank.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.InputInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Rank.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18476,93 +37627,73 @@ proto.clarifai.api.InputInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.InputInfo} message + * @param {!proto.clarifai.api.Rank} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.InputInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Rank.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFieldsMap(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + f = message.getNegate(); + if (f) { + writer.writeBool( + 3, + f ); } - f = message.getParams(); + f = message.getAnnotation(); if (f != null) { writer.writeMessage( - 2, + 4, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + proto.clarifai.api.Annotation.serializeBinaryToWriter ); } }; /** - * optional google.protobuf.Struct fields_map = 1; - * @return {?proto.google.protobuf.Struct} - */ -proto.clarifai.api.InputInfo.prototype.getFieldsMap = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.InputInfo} returns this -*/ -proto.clarifai.api.InputInfo.prototype.setFieldsMap = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.InputInfo} returns this + * optional bool negate = 3; + * @return {boolean} */ -proto.clarifai.api.InputInfo.prototype.clearFieldsMap = function() { - return this.setFieldsMap(undefined); +proto.clarifai.api.Rank.prototype.getNegate = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.clarifai.api.Rank} returns this */ -proto.clarifai.api.InputInfo.prototype.hasFieldsMap = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.Rank.prototype.setNegate = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * optional google.protobuf.Struct params = 2; - * @return {?proto.google.protobuf.Struct} + * optional Annotation annotation = 4; + * @return {?proto.clarifai.api.Annotation} */ -proto.clarifai.api.InputInfo.prototype.getParams = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2)); +proto.clarifai.api.Rank.prototype.getAnnotation = function() { + return /** @type{?proto.clarifai.api.Annotation} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 4)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.InputInfo} returns this + * @param {?proto.clarifai.api.Annotation|undefined} value + * @return {!proto.clarifai.api.Rank} returns this */ -proto.clarifai.api.InputInfo.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.Rank.prototype.setAnnotation = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.InputInfo} returns this + * @return {!proto.clarifai.api.Rank} returns this */ -proto.clarifai.api.InputInfo.prototype.clearParams = function() { - return this.setParams(undefined); +proto.clarifai.api.Rank.prototype.clearAnnotation = function() { + return this.setAnnotation(undefined); }; @@ -18570,8 +37701,8 @@ proto.clarifai.api.InputInfo.prototype.clearParams = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.InputInfo.prototype.hasParams = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.Rank.prototype.hasAnnotation = function() { + return jspb.Message.getField(this, 4) != null; }; @@ -18591,8 +37722,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TrainInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TrainInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.AnnotationSearchMetrics.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AnnotationSearchMetrics.toObject(opt_includeInstance, this); }; @@ -18601,13 +37732,18 @@ proto.clarifai.api.TrainInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TrainInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.AnnotationSearchMetrics} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TrainInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.AnnotationSearchMetrics.toObject = function(includeInstance, msg) { var f, obj = { - params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + groundTruth: (f = msg.getGroundTruth()) && proto.clarifai.api.Search.toObject(includeInstance, f), + searchToEval: (f = msg.getSearchToEval()) && proto.clarifai.api.Search.toObject(includeInstance, f), + metrics: (f = msg.getMetrics()) && proto.clarifai.api.EvalMetrics.toObject(includeInstance, f), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + activeConceptCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f) }; if (includeInstance) { @@ -18621,23 +37757,23 @@ proto.clarifai.api.TrainInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TrainInfo} + * @return {!proto.clarifai.api.AnnotationSearchMetrics} */ -proto.clarifai.api.TrainInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.AnnotationSearchMetrics.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TrainInfo; - return proto.clarifai.api.TrainInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.AnnotationSearchMetrics; + return proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TrainInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.AnnotationSearchMetrics} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TrainInfo} + * @return {!proto.clarifai.api.AnnotationSearchMetrics} */ -proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18645,9 +37781,33 @@ proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setParams(value); + var value = new proto.clarifai.api.Search; + reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); + msg.setGroundTruth(value); + break; + case 2: + var value = new proto.clarifai.api.Search; + reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); + msg.setSearchToEval(value); + break; + case 3: + var value = new proto.clarifai.api.EvalMetrics; + reader.readMessage(value,proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader); + msg.setMetrics(value); + break; + case 4: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setActiveConceptCount(value); + break; + case 6: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); break; default: reader.skipField(); @@ -18662,9 +37822,9 @@ proto.clarifai.api.TrainInfo.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TrainInfo.prototype.serializeBinary = function() { +proto.clarifai.api.AnnotationSearchMetrics.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TrainInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.AnnotationSearchMetrics.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18672,48 +37832,87 @@ proto.clarifai.api.TrainInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TrainInfo} message + * @param {!proto.clarifai.api.AnnotationSearchMetrics} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TrainInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.AnnotationSearchMetrics.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getParams(); + f = message.getGroundTruth(); if (f != null) { writer.writeMessage( 1, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + proto.clarifai.api.Search.serializeBinaryToWriter + ); + } + f = message.getSearchToEval(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Search.serializeBinaryToWriter + ); + } + f = message.getMetrics(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.EvalMetrics.serializeBinaryToWriter + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.Data.serializeBinaryToWriter + ); + } + f = message.getActiveConceptCount(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter ); } }; /** - * optional google.protobuf.Struct params = 1; - * @return {?proto.google.protobuf.Struct} + * optional Search ground_truth = 1; + * @return {?proto.clarifai.api.Search} */ -proto.clarifai.api.TrainInfo.prototype.getParams = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); +proto.clarifai.api.AnnotationSearchMetrics.prototype.getGroundTruth = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 1)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.TrainInfo} returns this + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this */ -proto.clarifai.api.TrainInfo.prototype.setParams = function(value) { +proto.clarifai.api.AnnotationSearchMetrics.prototype.setGroundTruth = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TrainInfo} returns this + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this */ -proto.clarifai.api.TrainInfo.prototype.clearParams = function() { - return this.setParams(undefined); +proto.clarifai.api.AnnotationSearchMetrics.prototype.clearGroundTruth = function() { + return this.setGroundTruth(undefined); }; @@ -18721,150 +37920,165 @@ proto.clarifai.api.TrainInfo.prototype.clearParams = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.TrainInfo.prototype.hasParams = function() { +proto.clarifai.api.AnnotationSearchMetrics.prototype.hasGroundTruth = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * optional Search search_to_eval = 2; + * @return {?proto.clarifai.api.Search} + */ +proto.clarifai.api.AnnotationSearchMetrics.prototype.getSearchToEval = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this +*/ +proto.clarifai.api.AnnotationSearchMetrics.prototype.setSearchToEval = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + */ +proto.clarifai.api.AnnotationSearchMetrics.prototype.clearSearchToEval = function() { + return this.setSearchToEval(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.AnnotationSearchMetrics.prototype.hasSearchToEval = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional EvalMetrics metrics = 3; + * @return {?proto.clarifai.api.EvalMetrics} + */ +proto.clarifai.api.AnnotationSearchMetrics.prototype.getMetrics = function() { + return /** @type{?proto.clarifai.api.EvalMetrics} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.EvalMetrics, 3)); +}; + + +/** + * @param {?proto.clarifai.api.EvalMetrics|undefined} value + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this +*/ +proto.clarifai.api.AnnotationSearchMetrics.prototype.setMetrics = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + */ +proto.clarifai.api.AnnotationSearchMetrics.prototype.clearMetrics = function() { + return this.setMetrics(undefined); +}; + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.AnnotationSearchMetrics.prototype.hasMetrics = function() { + return jspb.Message.getField(this, 3) != null; +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional Data data = 4; + * @return {?proto.clarifai.api.Data} */ -proto.clarifai.api.ImportInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ImportInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.AnnotationSearchMetrics.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 4)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ImportInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.ImportInfo.toObject = function(includeInstance, msg) { - var f, obj = { - params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this +*/ +proto.clarifai.api.AnnotationSearchMetrics.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ImportInfo} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this */ -proto.clarifai.api.ImportInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ImportInfo; - return proto.clarifai.api.ImportInfo.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.AnnotationSearchMetrics.prototype.clearData = function() { + return this.setData(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ImportInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ImportInfo} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ImportInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setParams(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.AnnotationSearchMetrics.prototype.hasData = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional uint32 active_concept_count = 5; + * @return {number} */ -proto.clarifai.api.ImportInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ImportInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.AnnotationSearchMetrics.prototype.getActiveConceptCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ImportInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this */ -proto.clarifai.api.ImportInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getParams(); - if (f != null) { - writer.writeMessage( - 1, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } +proto.clarifai.api.AnnotationSearchMetrics.prototype.setActiveConceptCount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); }; /** - * optional google.protobuf.Struct params = 1; - * @return {?proto.google.protobuf.Struct} + * optional Visibility visibility = 6; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.ImportInfo.prototype.getParams = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); +proto.clarifai.api.AnnotationSearchMetrics.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 6)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.ImportInfo} returns this + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this */ -proto.clarifai.api.ImportInfo.prototype.setParams = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.AnnotationSearchMetrics.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ImportInfo} returns this + * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this */ -proto.clarifai.api.ImportInfo.prototype.clearParams = function() { - return this.setParams(undefined); +proto.clarifai.api.AnnotationSearchMetrics.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; @@ -18872,19 +38086,12 @@ proto.clarifai.api.ImportInfo.prototype.clearParams = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ImportInfo.prototype.hasParams = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.AnnotationSearchMetrics.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 6) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.OutputConfig.repeatedFields_ = [8]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -18900,8 +38107,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.OutputConfig.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.OutputConfig.toObject(opt_includeInstance, this); +proto.clarifai.api.Text.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Text.toObject(opt_includeInstance, this); }; @@ -18910,27 +38117,17 @@ proto.clarifai.api.OutputConfig.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.OutputConfig} msg The msg instance to transform. + * @param {!proto.clarifai.api.Text} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.OutputConfig.toObject = function(includeInstance, msg) { +proto.clarifai.api.Text.toObject = function(includeInstance, msg) { var f, obj = { - conceptsMutuallyExclusive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - closedEnvironment: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - existingModelId: jspb.Message.getFieldWithDefault(msg, 3, ""), - language: jspb.Message.getFieldWithDefault(msg, 4, ""), - hyperParameters: jspb.Message.getFieldWithDefault(msg, 5, ""), - maxConcepts: jspb.Message.getFieldWithDefault(msg, 6, 0), - minValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - selectConceptsList: jspb.Message.toObjectList(msg.getSelectConceptsList(), - proto.clarifai.api.Concept.toObject, includeInstance), - trainingTimeout: jspb.Message.getFieldWithDefault(msg, 9, 0), - sampleMs: jspb.Message.getFieldWithDefault(msg, 10, 0), - hyperParams: (f = msg.getHyperParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - embedModelVersionId: jspb.Message.getFieldWithDefault(msg, 14, ""), - failOnMissingPositiveExamples: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - modelMetadata: (f = msg.getModelMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + raw: jspb.Message.getFieldWithDefault(msg, 1, ""), + url: jspb.Message.getFieldWithDefault(msg, 2, ""), + allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), + textInfo: (f = msg.getTextInfo()) && proto.clarifai.api.TextInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -18944,23 +38141,23 @@ proto.clarifai.api.OutputConfig.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.OutputConfig} + * @return {!proto.clarifai.api.Text} */ -proto.clarifai.api.OutputConfig.deserializeBinary = function(bytes) { +proto.clarifai.api.Text.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.OutputConfig; - return proto.clarifai.api.OutputConfig.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Text; + return proto.clarifai.api.Text.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.OutputConfig} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Text} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.OutputConfig} + * @return {!proto.clarifai.api.Text} */ -proto.clarifai.api.OutputConfig.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Text.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18968,63 +38165,26 @@ proto.clarifai.api.OutputConfig.deserializeBinaryFromReader = function(msg, read var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConceptsMutuallyExclusive(value); + var value = /** @type {string} */ (reader.readString()); + msg.setRaw(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setClosedEnvironment(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setExistingModelId(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowDuplicateUrl(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); + var value = new proto.clarifai.api.HostedURL; + reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); + msg.setHosted(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setHyperParameters(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxConcepts(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMinValue(value); - break; - case 8: - var value = new proto.clarifai.api.Concept; - reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); - msg.addSelectConcepts(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTrainingTimeout(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSampleMs(value); - break; - case 13: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setHyperParams(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setEmbedModelVersionId(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFailOnMissingPositiveExamples(value); - break; - case 17: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setModelMetadata(value); + var value = new proto.clarifai.api.TextInfo; + reader.readMessage(value,proto.clarifai.api.TextInfo.deserializeBinaryFromReader); + msg.setTextInfo(value); break; default: reader.skipField(); @@ -19039,9 +38199,9 @@ proto.clarifai.api.OutputConfig.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.OutputConfig.prototype.serializeBinary = function() { +proto.clarifai.api.Text.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.OutputConfig.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Text.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19049,423 +38209,337 @@ proto.clarifai.api.OutputConfig.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.OutputConfig} message + * @param {!proto.clarifai.api.Text} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.OutputConfig.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Text.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getConceptsMutuallyExclusive(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getClosedEnvironment(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getExistingModelId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLanguage(); + f = message.getRaw(); if (f.length > 0) { writer.writeString( - 4, + 1, f ); } - f = message.getHyperParameters(); + f = message.getUrl(); if (f.length > 0) { writer.writeString( - 5, - f - ); - } - f = message.getMaxConcepts(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } - f = message.getMinValue(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } - f = message.getSelectConceptsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 8, - f, - proto.clarifai.api.Concept.serializeBinaryToWriter - ); - } - f = message.getTrainingTimeout(); - if (f !== 0) { - writer.writeUint32( - 9, + 2, f ); } - f = message.getSampleMs(); - if (f !== 0) { - writer.writeUint32( - 10, + f = message.getAllowDuplicateUrl(); + if (f) { + writer.writeBool( + 3, f ); } - f = message.getHyperParams(); + f = message.getHosted(); if (f != null) { writer.writeMessage( - 13, + 4, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getEmbedModelVersionId(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getFailOnMissingPositiveExamples(); - if (f) { - writer.writeBool( - 15, - f + proto.clarifai.api.HostedURL.serializeBinaryToWriter ); } - f = message.getModelMetadata(); + f = message.getTextInfo(); if (f != null) { writer.writeMessage( - 17, + 5, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + proto.clarifai.api.TextInfo.serializeBinaryToWriter ); } }; /** - * optional bool concepts_mutually_exclusive = 1; - * @return {boolean} - */ -proto.clarifai.api.OutputConfig.prototype.getConceptsMutuallyExclusive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.OutputConfig} returns this - */ -proto.clarifai.api.OutputConfig.prototype.setConceptsMutuallyExclusive = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool closed_environment = 2; - * @return {boolean} - */ -proto.clarifai.api.OutputConfig.prototype.getClosedEnvironment = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.OutputConfig} returns this - */ -proto.clarifai.api.OutputConfig.prototype.setClosedEnvironment = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional string existing_model_id = 3; - * @return {string} - */ -proto.clarifai.api.OutputConfig.prototype.getExistingModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.OutputConfig} returns this - */ -proto.clarifai.api.OutputConfig.prototype.setExistingModelId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string language = 4; + * optional string raw = 1; * @return {string} */ -proto.clarifai.api.OutputConfig.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.Text.prototype.getRaw = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * @return {!proto.clarifai.api.Text} returns this */ -proto.clarifai.api.OutputConfig.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.Text.prototype.setRaw = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string hyper_parameters = 5; + * optional string url = 2; * @return {string} */ -proto.clarifai.api.OutputConfig.prototype.getHyperParameters = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.Text.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.OutputConfig} returns this - */ -proto.clarifai.api.OutputConfig.prototype.setHyperParameters = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint32 max_concepts = 6; - * @return {number} - */ -proto.clarifai.api.OutputConfig.prototype.getMaxConcepts = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * @return {!proto.clarifai.api.Text} returns this */ -proto.clarifai.api.OutputConfig.prototype.setMaxConcepts = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.clarifai.api.Text.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional float min_value = 7; - * @return {number} + * optional bool allow_duplicate_url = 3; + * @return {boolean} */ -proto.clarifai.api.OutputConfig.prototype.getMinValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +proto.clarifai.api.Text.prototype.getAllowDuplicateUrl = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.Text} returns this */ -proto.clarifai.api.OutputConfig.prototype.setMinValue = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); +proto.clarifai.api.Text.prototype.setAllowDuplicateUrl = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * repeated Concept select_concepts = 8; - * @return {!Array} + * optional HostedURL hosted = 4; + * @return {?proto.clarifai.api.HostedURL} */ -proto.clarifai.api.OutputConfig.prototype.getSelectConceptsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 8)); +proto.clarifai.api.Text.prototype.getHosted = function() { + return /** @type{?proto.clarifai.api.HostedURL} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 4)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * @param {?proto.clarifai.api.HostedURL|undefined} value + * @return {!proto.clarifai.api.Text} returns this */ -proto.clarifai.api.OutputConfig.prototype.setSelectConceptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); -}; - - -/** - * @param {!proto.clarifai.api.Concept=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Concept} - */ -proto.clarifai.api.OutputConfig.prototype.addSelectConcepts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.Concept, opt_index); +proto.clarifai.api.Text.prototype.setHosted = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.OutputConfig} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Text} returns this */ -proto.clarifai.api.OutputConfig.prototype.clearSelectConceptsList = function() { - return this.setSelectConceptsList([]); +proto.clarifai.api.Text.prototype.clearHosted = function() { + return this.setHosted(undefined); }; /** - * optional uint32 training_timeout = 9; - * @return {number} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.OutputConfig.prototype.getTrainingTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.clarifai.api.Text.prototype.hasHosted = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * @param {number} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * optional TextInfo text_info = 5; + * @return {?proto.clarifai.api.TextInfo} */ -proto.clarifai.api.OutputConfig.prototype.setTrainingTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.clarifai.api.Text.prototype.getTextInfo = function() { + return /** @type{?proto.clarifai.api.TextInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TextInfo, 5)); }; -/** - * optional uint32 sample_ms = 10; - * @return {number} - */ -proto.clarifai.api.OutputConfig.prototype.getSampleMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +/** + * @param {?proto.clarifai.api.TextInfo|undefined} value + * @return {!proto.clarifai.api.Text} returns this +*/ +proto.clarifai.api.Text.prototype.setTextInfo = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * @param {number} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Text} returns this */ -proto.clarifai.api.OutputConfig.prototype.setSampleMs = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); +proto.clarifai.api.Text.prototype.clearTextInfo = function() { + return this.setTextInfo(undefined); }; /** - * optional google.protobuf.Struct hyper_params = 13; - * @return {?proto.google.protobuf.Struct} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.OutputConfig.prototype.getHyperParams = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 13)); +proto.clarifai.api.Text.prototype.hasTextInfo = function() { + return jspb.Message.getField(this, 5) != null; }; -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.OutputConfig} returns this -*/ -proto.clarifai.api.OutputConfig.prototype.setHyperParams = function(value) { - return jspb.Message.setWrapperField(this, 13, value); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.OutputConfig} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.OutputConfig.prototype.clearHyperParams = function() { - return this.setHyperParams(undefined); +proto.clarifai.api.TextInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TextInfo.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.TextInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.OutputConfig.prototype.hasHyperParams = function() { - return jspb.Message.getField(this, 13) != null; +proto.clarifai.api.TextInfo.toObject = function(includeInstance, msg) { + var f, obj = { + charCount: jspb.Message.getFieldWithDefault(msg, 1, 0), + encoding: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string embed_model_version_id = 14; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.TextInfo} */ -proto.clarifai.api.OutputConfig.prototype.getEmbedModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +proto.clarifai.api.TextInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.TextInfo; + return proto.clarifai.api.TextInfo.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.TextInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.TextInfo} */ -proto.clarifai.api.OutputConfig.prototype.setEmbedModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); +proto.clarifai.api.TextInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCharCount(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setEncoding(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional bool fail_on_missing_positive_examples = 15; - * @return {boolean} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.OutputConfig.prototype.getFailOnMissingPositiveExamples = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); +proto.clarifai.api.TextInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TextInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.OutputConfig} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TextInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.OutputConfig.prototype.setFailOnMissingPositiveExamples = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); +proto.clarifai.api.TextInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCharCount(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getEncoding(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * optional google.protobuf.Struct model_metadata = 17; - * @return {?proto.google.protobuf.Struct} + * optional int32 char_count = 1; + * @return {number} */ -proto.clarifai.api.OutputConfig.prototype.getModelMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 17)); +proto.clarifai.api.TextInfo.prototype.getCharCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.OutputConfig} returns this -*/ -proto.clarifai.api.OutputConfig.prototype.setModelMetadata = function(value) { - return jspb.Message.setWrapperField(this, 17, value); + * @param {number} value + * @return {!proto.clarifai.api.TextInfo} returns this + */ +proto.clarifai.api.TextInfo.prototype.setCharCount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.OutputConfig} returns this + * optional string encoding = 2; + * @return {string} */ -proto.clarifai.api.OutputConfig.prototype.clearModelMetadata = function() { - return this.setModelMetadata(undefined); +proto.clarifai.api.TextInfo.prototype.getEncoding = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.TextInfo} returns this */ -proto.clarifai.api.OutputConfig.prototype.hasModelMetadata = function() { - return jspb.Message.getField(this, 17) != null; +proto.clarifai.api.TextInfo.prototype.setEncoding = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -19475,7 +38549,7 @@ proto.clarifai.api.OutputConfig.prototype.hasModelMetadata = function() { * @private {!Array} * @const */ -proto.clarifai.api.ModelType.repeatedFields_ = [5,6,11]; +proto.clarifai.api.User.repeatedFields_ = [12]; @@ -19492,8 +38566,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelType.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelType.toObject(opt_includeInstance, this); +proto.clarifai.api.User.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.User.toObject(opt_includeInstance, this); }; @@ -19502,26 +38576,34 @@ proto.clarifai.api.ModelType.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelType} msg The msg instance to transform. + * @param {!proto.clarifai.api.User} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelType.toObject = function(includeInstance, msg) { +proto.clarifai.api.User.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - title: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - inputFieldsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - outputFieldsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, - trainable: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - creatable: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(), - proto.clarifai.api.ModelTypeField.toObject, includeInstance), - requiresSequentialFrames: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - evaluable: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - expectedPretrainedInputFields: (f = msg.getExpectedPretrainedInputFields()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - expectedPretrainedOutputFields: (f = msg.getExpectedPretrainedOutputFields()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + primaryEmail: jspb.Message.getFieldWithDefault(msg, 2, ""), + firstName: jspb.Message.getFieldWithDefault(msg, 3, ""), + lastName: jspb.Message.getFieldWithDefault(msg, 4, ""), + companyName: jspb.Message.getFieldWithDefault(msg, 5, ""), + jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""), + jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""), + billType: jspb.Message.getFieldWithDefault(msg, 7, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + dateTosConsent: (f = msg.getDateTosConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + dateMarketingConsent: (f = msg.getDateMarketingConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + datePiiConsent: (f = msg.getDatePiiConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + emailAddressesList: jspb.Message.toObjectList(msg.getEmailAddressesList(), + proto.clarifai.api.EmailAddress.toObject, includeInstance), + twoFactorAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), + teamsCount: jspb.Message.getFieldWithDefault(msg, 16, 0), + isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), + starCount: jspb.Message.getFieldWithDefault(msg, 22, 0), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + userDetail: (f = msg.getUserDetail()) && proto.clarifai.api.UserDetail.toObject(includeInstance, f) }; if (includeInstance) { @@ -19535,23 +38617,23 @@ proto.clarifai.api.ModelType.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelType} + * @return {!proto.clarifai.api.User} */ -proto.clarifai.api.ModelType.deserializeBinary = function(bytes) { +proto.clarifai.api.User.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelType; - return proto.clarifai.api.ModelType.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.User; + return proto.clarifai.api.User.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelType} msg The message object to deserialize into. + * @param {!proto.clarifai.api.User} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelType} + * @return {!proto.clarifai.api.User} */ -proto.clarifai.api.ModelType.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -19564,54 +38646,92 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function(msg, reader) break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setTitle(value); + msg.setPrimaryEmail(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + msg.setFirstName(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setLastName(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.addInputFields(value); + msg.setCompanyName(value); break; - case 6: + case 19: var value = /** @type {string} */ (reader.readString()); - msg.addOutputFields(value); + msg.setJobTitle(value); + break; + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setJobRole(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setBillType(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTrainable(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDateGdprConsent(value); break; case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCreatable(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDateTosConsent(value); break; case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setInternalOnly(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDateMarketingConsent(value); + break; + case 23: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDatePiiConsent(value); break; case 11: - var value = new proto.clarifai.api.ModelTypeField; - reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader); - msg.addModelTypeFields(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); break; case 12: + var value = new proto.clarifai.api.EmailAddress; + reader.readMessage(value,proto.clarifai.api.EmailAddress.deserializeBinaryFromReader); + msg.addEmailAddresses(value); + break; + case 15: var value = /** @type {boolean} */ (reader.readBool()); - msg.setRequiresSequentialFrames(value); + msg.setTwoFactorAuthEnabled(value); break; - case 13: + case 16: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTeamsCount(value); + break; + case 21: var value = /** @type {boolean} */ (reader.readBool()); - msg.setEvaluable(value); + msg.setIsStarred(value); break; - case 14: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setExpectedPretrainedInputFields(value); + case 22: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStarCount(value); break; - case 15: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setExpectedPretrainedOutputFields(value); + case 17: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 18: + var value = new proto.clarifai.api.UserDetail; + reader.readMessage(value,proto.clarifai.api.UserDetail.deserializeBinaryFromReader); + msg.setUserDetail(value); break; default: reader.skipField(); @@ -19626,9 +38746,9 @@ proto.clarifai.api.ModelType.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelType.prototype.serializeBinary = function() { +proto.clarifai.api.User.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelType.serializeBinaryToWriter(this, writer); + proto.clarifai.api.User.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19636,11 +38756,11 @@ proto.clarifai.api.ModelType.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelType} message + * @param {!proto.clarifai.api.User} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelType.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.User.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -19649,377 +38769,364 @@ proto.clarifai.api.ModelType.serializeBinaryToWriter = function(message, writer) f ); } - f = message.getTitle(); + f = message.getPrimaryEmail(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getDescription(); + f = message.getFirstName(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getInputFieldsList(); + f = message.getLastName(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( + 4, + f + ); + } + f = message.getCompanyName(); + if (f.length > 0) { + writer.writeString( 5, f ); } - f = message.getOutputFieldsList(); + f = message.getJobTitle(); if (f.length > 0) { - writer.writeRepeatedString( - 6, + writer.writeString( + 19, f ); } - f = message.getTrainable(); - if (f) { - writer.writeBool( - 8, + f = message.getJobRole(); + if (f.length > 0) { + writer.writeString( + 20, f ); } - f = message.getCreatable(); - if (f) { - writer.writeBool( - 9, + f = message.getBillType(); + if (f.length > 0) { + writer.writeString( + 7, f ); } - f = message.getInternalOnly(); - if (f) { - writer.writeBool( + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDateGdprConsent(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDateTosConsent(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDateMarketingConsent(); + if (f != null) { + writer.writeMessage( 10, - f + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getModelTypeFieldsList(); + f = message.getDatePiiConsent(); + if (f != null) { + writer.writeMessage( + 23, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 11, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getEmailAddressesList(); if (f.length > 0) { writer.writeRepeatedMessage( - 11, + 12, f, - proto.clarifai.api.ModelTypeField.serializeBinaryToWriter + proto.clarifai.api.EmailAddress.serializeBinaryToWriter ); } - f = message.getRequiresSequentialFrames(); + f = message.getTwoFactorAuthEnabled(); if (f) { writer.writeBool( - 12, + 15, + f + ); + } + f = message.getTeamsCount(); + if (f !== 0) { + writer.writeUint32( + 16, f ); } - f = message.getEvaluable(); + f = message.getIsStarred(); if (f) { writer.writeBool( - 13, + 21, f ); } - f = message.getExpectedPretrainedInputFields(); - if (f != null) { - writer.writeMessage( - 14, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + f = message.getStarCount(); + if (f !== 0) { + writer.writeInt32( + 22, + f ); } - f = message.getExpectedPretrainedOutputFields(); + f = message.getVisibility(); if (f != null) { writer.writeMessage( - 15, + 17, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getUserDetail(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.clarifai.api.UserDetail.serializeBinaryToWriter ); } }; /** - * optional string id = 1; - * @return {string} - */ -proto.clarifai.api.ModelType.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ModelType} returns this - */ -proto.clarifai.api.ModelType.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string title = 2; - * @return {string} - */ -proto.clarifai.api.ModelType.prototype.getTitle = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ModelType} returns this - */ -proto.clarifai.api.ModelType.prototype.setTitle = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string description = 3; - * @return {string} - */ -proto.clarifai.api.ModelType.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ModelType} returns this - */ -proto.clarifai.api.ModelType.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string input_fields = 5; - * @return {!Array} - */ -proto.clarifai.api.ModelType.prototype.getInputFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.ModelType} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.setInputFieldsList = function(value) { - return jspb.Message.setField(this, 5, value || []); +proto.clarifai.api.User.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelType} returns this + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.addInputFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +proto.clarifai.api.User.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ModelType} returns this + * optional string primary_email = 2; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.clearInputFieldsList = function() { - return this.setInputFieldsList([]); +proto.clarifai.api.User.prototype.getPrimaryEmail = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * repeated string output_fields = 6; - * @return {!Array} + * @param {string} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.getOutputFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +proto.clarifai.api.User.prototype.setPrimaryEmail = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ModelType} returns this + * optional string first_name = 3; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.setOutputFieldsList = function(value) { - return jspb.Message.setField(this, 6, value || []); +proto.clarifai.api.User.prototype.getFirstName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelType} returns this + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.addOutputFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +proto.clarifai.api.User.prototype.setFirstName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ModelType} returns this + * optional string last_name = 4; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.clearOutputFieldsList = function() { - return this.setOutputFieldsList([]); +proto.clarifai.api.User.prototype.getLastName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * optional bool trainable = 8; - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.getTrainable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +proto.clarifai.api.User.prototype.setLastName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelType} returns this + * optional string company_name = 5; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.setTrainable = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); +proto.clarifai.api.User.prototype.getCompanyName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * optional bool creatable = 9; - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.getCreatable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +proto.clarifai.api.User.prototype.setCompanyName = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelType} returns this + * optional string job_title = 19; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.setCreatable = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); +proto.clarifai.api.User.prototype.getJobTitle = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); }; /** - * optional bool internal_only = 10; - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.getInternalOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +proto.clarifai.api.User.prototype.setJobTitle = function(value) { + return jspb.Message.setProto3StringField(this, 19, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelType} returns this + * optional string job_role = 20; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.setInternalOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); +proto.clarifai.api.User.prototype.getJobRole = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); }; /** - * repeated ModelTypeField model_type_fields = 11; - * @return {!Array} + * @param {string} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.getModelTypeFieldsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.ModelType} returns this -*/ -proto.clarifai.api.ModelType.prototype.setModelTypeFieldsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 11, value); +proto.clarifai.api.User.prototype.setJobRole = function(value) { + return jspb.Message.setProto3StringField(this, 20, value); }; /** - * @param {!proto.clarifai.api.ModelTypeField=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelTypeField} + * optional string bill_type = 7; + * @return {string} */ -proto.clarifai.api.ModelType.prototype.addModelTypeFields = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.clarifai.api.ModelTypeField, opt_index); +proto.clarifai.api.User.prototype.getBillType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ModelType} returns this + * @param {string} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.clearModelTypeFieldsList = function() { - return this.setModelTypeFieldsList([]); +proto.clarifai.api.User.prototype.setBillType = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * optional bool requires_sequential_frames = 12; - * @return {boolean} + * optional google.protobuf.Timestamp created_at = 6; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelType.prototype.getRequiresSequentialFrames = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +proto.clarifai.api.User.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelType} returns this - */ -proto.clarifai.api.ModelType.prototype.setRequiresSequentialFrames = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.User} returns this +*/ +proto.clarifai.api.User.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * optional bool evaluable = 13; - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.getEvaluable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +proto.clarifai.api.User.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelType} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelType.prototype.setEvaluable = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); +proto.clarifai.api.User.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional google.protobuf.Struct expected_pretrained_input_fields = 14; - * @return {?proto.google.protobuf.Struct} + * optional google.protobuf.Timestamp date_gdpr_consent = 8; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelType.prototype.getExpectedPretrainedInputFields = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 14)); +proto.clarifai.api.User.prototype.getDateGdprConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.ModelType} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.setExpectedPretrainedInputFields = function(value) { - return jspb.Message.setWrapperField(this, 14, value); +proto.clarifai.api.User.prototype.setDateGdprConsent = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelType} returns this + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.clearExpectedPretrainedInputFields = function() { - return this.setExpectedPretrainedInputFields(undefined); +proto.clarifai.api.User.prototype.clearDateGdprConsent = function() { + return this.setDateGdprConsent(undefined); }; @@ -20027,36 +39134,36 @@ proto.clarifai.api.ModelType.prototype.clearExpectedPretrainedInputFields = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ModelType.prototype.hasExpectedPretrainedInputFields = function() { - return jspb.Message.getField(this, 14) != null; +proto.clarifai.api.User.prototype.hasDateGdprConsent = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional google.protobuf.Struct expected_pretrained_output_fields = 15; - * @return {?proto.google.protobuf.Struct} + * optional google.protobuf.Timestamp date_tos_consent = 9; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelType.prototype.getExpectedPretrainedOutputFields = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 15)); +proto.clarifai.api.User.prototype.getDateTosConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.ModelType} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.setExpectedPretrainedOutputFields = function(value) { - return jspb.Message.setWrapperField(this, 15, value); +proto.clarifai.api.User.prototype.setDateTosConsent = function(value) { + return jspb.Message.setWrapperField(this, 9, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelType} returns this + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelType.prototype.clearExpectedPretrainedOutputFields = function() { - return this.setExpectedPretrainedOutputFields(undefined); +proto.clarifai.api.User.prototype.clearDateTosConsent = function() { + return this.setDateTosConsent(undefined); }; @@ -20064,461 +39171,294 @@ proto.clarifai.api.ModelType.prototype.clearExpectedPretrainedOutputFields = fun * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ModelType.prototype.hasExpectedPretrainedOutputFields = function() { - return jspb.Message.getField(this, 15) != null; +proto.clarifai.api.User.prototype.hasDateTosConsent = function() { + return jspb.Message.getField(this, 9) != null; }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional google.protobuf.Timestamp date_marketing_consent = 10; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelTypeField.repeatedFields_ = [6]; - +proto.clarifai.api.User.prototype.getDateMarketingConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.ModelTypeField.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelTypeField.toObject(opt_includeInstance, this); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.User} returns this +*/ +proto.clarifai.api.User.prototype.setDateMarketingConsent = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelTypeField} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - fieldType: jspb.Message.getFieldWithDefault(msg, 2, 0), - defaultValue: (f = msg.getDefaultValue()) && google_protobuf_struct_pb.Value.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 4, ""), - placeholder: jspb.Message.getFieldWithDefault(msg, 5, ""), - modelTypeEnumOptionsList: jspb.Message.toObjectList(msg.getModelTypeEnumOptionsList(), - proto.clarifai.api.ModelTypeEnumOption.toObject, includeInstance), - internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - required: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - modelTypeRangeInfo: (f = msg.getModelTypeRangeInfo()) && proto.clarifai.api.ModelTypeRangeInfo.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.User.prototype.clearDateMarketingConsent = function() { + return this.setDateMarketingConsent(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelTypeField} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelTypeField.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelTypeField; - return proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.User.prototype.hasDateMarketingConsent = function() { + return jspb.Message.getField(this, 10) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ModelTypeField} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelTypeField} + * optional google.protobuf.Timestamp date_pii_consent = 23; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} */ (reader.readEnum()); - msg.setFieldType(value); - break; - case 3: - var value = new google_protobuf_struct_pb.Value; - reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); - msg.setDefaultValue(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPlaceholder(value); - break; - case 6: - var value = new proto.clarifai.api.ModelTypeEnumOption; - reader.readMessage(value,proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader); - msg.addModelTypeEnumOptions(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setInternalOnly(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRequired(value); - break; - case 9: - var value = new proto.clarifai.api.ModelTypeRangeInfo; - reader.readMessage(value,proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader); - msg.setModelTypeRangeInfo(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.User.prototype.getDatePiiConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 23)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clarifai.api.ModelTypeField.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelTypeField.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.User} returns this +*/ +proto.clarifai.api.User.prototype.setDatePiiConsent = function(value) { + return jspb.Message.setWrapperField(this, 23, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelTypeField} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFieldType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getDefaultValue(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_struct_pb.Value.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPlaceholder(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getModelTypeEnumOptionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter - ); - } - f = message.getInternalOnly(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getRequired(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getModelTypeRangeInfo(); - if (f != null) { - writer.writeMessage( - 9, - f, - proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter - ); - } +proto.clarifai.api.User.prototype.clearDatePiiConsent = function() { + return this.setDatePiiConsent(undefined); }; /** - * @enum {number} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelTypeField.ModelTypeFieldType = { - INVALID_MODEL_TYPE_FIELD_TYPE: 0, - BOOLEAN: 1, - STRING: 2, - NUMBER: 3, - ARRAY_OF_CONCEPTS: 4, - ARRAY_OF_CONCEPTS_WITH_THRESHOLD: 5, - RANGE: 7, - ENUM: 8, - COLLABORATORS: 9, - JSON: 10, - ARRAY_OF_NUMBERS: 11, - WORKFLOW_EMBED_MODELS: 12, - ARRAY_OF_STRINGS: 13, - RECURSIVE_ENUM: 14 +proto.clarifai.api.User.prototype.hasDatePiiConsent = function() { + return jspb.Message.getField(this, 23) != null; }; + /** - * optional string path = 1; - * @return {string} + * optional google.protobuf.Struct metadata = 11; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.ModelTypeField.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.User.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 11)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelTypeField} returns this - */ -proto.clarifai.api.ModelTypeField.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.User} returns this +*/ +proto.clarifai.api.User.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 11, value); }; /** - * optional ModelTypeFieldType field_type = 2; - * @return {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.getFieldType = function() { - return /** @type {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.User.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; /** - * @param {!proto.clarifai.api.ModelTypeField.ModelTypeFieldType} value - * @return {!proto.clarifai.api.ModelTypeField} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelTypeField.prototype.setFieldType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.clarifai.api.User.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 11) != null; }; /** - * optional google.protobuf.Value default_value = 3; - * @return {?proto.google.protobuf.Value} + * repeated EmailAddress email_addresses = 12; + * @return {!Array} */ -proto.clarifai.api.ModelTypeField.prototype.getDefaultValue = function() { - return /** @type{?proto.google.protobuf.Value} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 3)); +proto.clarifai.api.User.prototype.getEmailAddressesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EmailAddress, 12)); }; /** - * @param {?proto.google.protobuf.Value|undefined} value - * @return {!proto.clarifai.api.ModelTypeField} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.setDefaultValue = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.User.prototype.setEmailAddressesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelTypeField} returns this - */ -proto.clarifai.api.ModelTypeField.prototype.clearDefaultValue = function() { - return this.setDefaultValue(undefined); + * @param {!proto.clarifai.api.EmailAddress=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.EmailAddress} + */ +proto.clarifai.api.User.prototype.addEmailAddresses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.EmailAddress, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.hasDefaultValue = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.User.prototype.clearEmailAddressesList = function() { + return this.setEmailAddressesList([]); }; /** - * optional string description = 4; - * @return {string} + * optional bool two_factor_auth_enabled = 15; + * @return {boolean} */ -proto.clarifai.api.ModelTypeField.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.User.prototype.getTwoFactorAuthEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelTypeField} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.User.prototype.setTwoFactorAuthEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 15, value); }; /** - * optional string placeholder = 5; - * @return {string} + * optional uint32 teams_count = 16; + * @return {number} */ -proto.clarifai.api.ModelTypeField.prototype.getPlaceholder = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.User.prototype.getTeamsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelTypeField} returns this + * @param {number} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.setPlaceholder = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.User.prototype.setTeamsCount = function(value) { + return jspb.Message.setProto3IntField(this, 16, value); }; /** - * repeated ModelTypeEnumOption model_type_enum_options = 6; - * @return {!Array} + * optional bool is_starred = 21; + * @return {boolean} */ -proto.clarifai.api.ModelTypeField.prototype.getModelTypeEnumOptionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeEnumOption, 6)); +proto.clarifai.api.User.prototype.getIsStarred = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ModelTypeField} returns this -*/ -proto.clarifai.api.ModelTypeField.prototype.setModelTypeEnumOptionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); + * @param {boolean} value + * @return {!proto.clarifai.api.User} returns this + */ +proto.clarifai.api.User.prototype.setIsStarred = function(value) { + return jspb.Message.setProto3BooleanField(this, 21, value); }; /** - * @param {!proto.clarifai.api.ModelTypeEnumOption=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelTypeEnumOption} + * optional int32 star_count = 22; + * @return {number} */ -proto.clarifai.api.ModelTypeField.prototype.addModelTypeEnumOptions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.ModelTypeEnumOption, opt_index); +proto.clarifai.api.User.prototype.getStarCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ModelTypeField} returns this + * @param {number} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.clearModelTypeEnumOptionsList = function() { - return this.setModelTypeEnumOptionsList([]); +proto.clarifai.api.User.prototype.setStarCount = function(value) { + return jspb.Message.setProto3IntField(this, 22, value); }; /** - * optional bool internal_only = 7; - * @return {boolean} + * optional Visibility visibility = 17; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.ModelTypeField.prototype.getInternalOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.clarifai.api.User.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 17)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelTypeField} returns this - */ -proto.clarifai.api.ModelTypeField.prototype.setInternalOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.User} returns this +*/ +proto.clarifai.api.User.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 17, value); }; /** - * optional bool required = 8; - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.getRequired = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +proto.clarifai.api.User.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelTypeField} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelTypeField.prototype.setRequired = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); +proto.clarifai.api.User.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * optional ModelTypeRangeInfo model_type_range_info = 9; - * @return {?proto.clarifai.api.ModelTypeRangeInfo} + * optional UserDetail user_detail = 18; + * @return {?proto.clarifai.api.UserDetail} */ -proto.clarifai.api.ModelTypeField.prototype.getModelTypeRangeInfo = function() { - return /** @type{?proto.clarifai.api.ModelTypeRangeInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ModelTypeRangeInfo, 9)); +proto.clarifai.api.User.prototype.getUserDetail = function() { + return /** @type{?proto.clarifai.api.UserDetail} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.UserDetail, 18)); }; /** - * @param {?proto.clarifai.api.ModelTypeRangeInfo|undefined} value - * @return {!proto.clarifai.api.ModelTypeField} returns this + * @param {?proto.clarifai.api.UserDetail|undefined} value + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.setModelTypeRangeInfo = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.clarifai.api.User.prototype.setUserDetail = function(value) { + return jspb.Message.setWrapperField(this, 18, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelTypeField} returns this + * @return {!proto.clarifai.api.User} returns this */ -proto.clarifai.api.ModelTypeField.prototype.clearModelTypeRangeInfo = function() { - return this.setModelTypeRangeInfo(undefined); +proto.clarifai.api.User.prototype.clearUserDetail = function() { + return this.setUserDetail(undefined); }; @@ -20526,12 +39466,19 @@ proto.clarifai.api.ModelTypeField.prototype.clearModelTypeRangeInfo = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ModelTypeField.prototype.hasModelTypeRangeInfo = function() { - return jspb.Message.getField(this, 9) != null; +proto.clarifai.api.User.prototype.hasUserDetail = function() { + return jspb.Message.getField(this, 18) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.UserDetail.repeatedFields_ = [7]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -20547,8 +39494,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelTypeRangeInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.UserDetail.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.UserDetail.toObject(opt_includeInstance, this); }; @@ -20557,15 +39504,25 @@ proto.clarifai.api.ModelTypeRangeInfo.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelTypeRangeInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.UserDetail} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelTypeRangeInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.UserDetail.toObject = function(includeInstance, msg) { var f, obj = { - min: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - max: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - step: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) + primaryEmail: jspb.Message.getFieldWithDefault(msg, 1, ""), + billType: jspb.Message.getFieldWithDefault(msg, 2, ""), + dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + dateTosConsent: (f = msg.getDateTosConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + dateMarketingConsent: (f = msg.getDateMarketingConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + datePiiConsent: (f = msg.getDatePiiConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + emailAddressesList: jspb.Message.toObjectList(msg.getEmailAddressesList(), + proto.clarifai.api.EmailAddress.toObject, includeInstance), + twoFactorAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + teamsCount: jspb.Message.getFieldWithDefault(msg, 10, 0), + country: jspb.Message.getFieldWithDefault(msg, 11, ""), + state: jspb.Message.getFieldWithDefault(msg, 12, "") }; if (includeInstance) { @@ -20579,23 +39536,23 @@ proto.clarifai.api.ModelTypeRangeInfo.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelTypeRangeInfo} + * @return {!proto.clarifai.api.UserDetail} */ -proto.clarifai.api.ModelTypeRangeInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.UserDetail.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelTypeRangeInfo; - return proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.UserDetail; + return proto.clarifai.api.UserDetail.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelTypeRangeInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.UserDetail} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelTypeRangeInfo} + * @return {!proto.clarifai.api.UserDetail} */ -proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.UserDetail.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20603,16 +39560,58 @@ proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMin(value); + var value = /** @type {string} */ (reader.readString()); + msg.setPrimaryEmail(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMax(value); + var value = /** @type {string} */ (reader.readString()); + msg.setBillType(value); break; case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setStep(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDateGdprConsent(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDateTosConsent(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDateMarketingConsent(value); + break; + case 13: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDatePiiConsent(value); + break; + case 6: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 7: + var value = new proto.clarifai.api.EmailAddress; + reader.readMessage(value,proto.clarifai.api.EmailAddress.deserializeBinaryFromReader); + msg.addEmailAddresses(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTwoFactorAuthEnabled(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint32()); + msg.setTeamsCount(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setCountry(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setState(value); break; default: reader.skipField(); @@ -20627,9 +39626,9 @@ proto.clarifai.api.ModelTypeRangeInfo.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.serializeBinary = function() { +proto.clarifai.api.UserDetail.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.UserDetail.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20637,30 +39636,99 @@ proto.clarifai.api.ModelTypeRangeInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelTypeRangeInfo} message + * @param {!proto.clarifai.api.UserDetail} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.UserDetail.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMin(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getPrimaryEmail(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getMax(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getBillType(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getStep(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getDateGdprConsent(); + if (f != null) { + writer.writeMessage( 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDateTosConsent(); + if (f != null) { + writer.writeMessage( + 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDateMarketingConsent(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getDatePiiConsent(); + if (f != null) { + writer.writeMessage( + 13, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getEmailAddressesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + proto.clarifai.api.EmailAddress.serializeBinaryToWriter + ); + } + f = message.getTwoFactorAuthEnabled(); + if (f) { + writer.writeBool( + 9, + f + ); + } + f = message.getTeamsCount(); + if (f !== 0) { + writer.writeUint32( + 10, + f + ); + } + f = message.getCountry(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } + f = message.getState(); + if (f.length > 0) { + writer.writeString( + 12, f ); } @@ -20668,359 +39736,333 @@ proto.clarifai.api.ModelTypeRangeInfo.serializeBinaryToWriter = function(message /** - * optional float min = 1; - * @return {number} + * optional string primary_email = 1; + * @return {string} */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.getMin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +proto.clarifai.api.UserDetail.prototype.getPrimaryEmail = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ModelTypeRangeInfo} returns this + * @param {string} value + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.setMin = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); +proto.clarifai.api.UserDetail.prototype.setPrimaryEmail = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional float max = 2; - * @return {number} + * optional string bill_type = 2; + * @return {string} */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.getMax = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.UserDetail.prototype.getBillType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ModelTypeRangeInfo} returns this + * @param {string} value + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.setMax = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.UserDetail.prototype.setBillType = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional float step = 3; - * @return {number} + * optional google.protobuf.Timestamp date_gdpr_consent = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.getStep = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.clarifai.api.UserDetail.prototype.getDateGdprConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ModelTypeRangeInfo} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.UserDetail} returns this +*/ +proto.clarifai.api.UserDetail.prototype.setDateGdprConsent = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeRangeInfo.prototype.setStep = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); +proto.clarifai.api.UserDetail.prototype.clearDateGdprConsent = function() { + return this.setDateGdprConsent(undefined); }; +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.UserDetail.prototype.hasDateGdprConsent = function() { + return jspb.Message.getField(this, 3) != null; +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional google.protobuf.Timestamp date_tos_consent = 4; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ModelTypeEnumOption.repeatedFields_ = [5,3]; +proto.clarifai.api.UserDetail.prototype.getDateTosConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.UserDetail} returns this +*/ +proto.clarifai.api.UserDetail.prototype.setDateTosConsent = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelTypeEnumOption.toObject(opt_includeInstance, this); +proto.clarifai.api.UserDetail.prototype.clearDateTosConsent = function() { + return this.setDateTosConsent(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelTypeEnumOption} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelTypeEnumOption.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - aliasesList: jspb.Message.toObjectList(msg.getAliasesList(), - proto.clarifai.api.ModelTypeEnumOptionAlias.toObject, includeInstance), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelTypeFieldsList: jspb.Message.toObjectList(msg.getModelTypeFieldsList(), - proto.clarifai.api.ModelTypeField.toObject, includeInstance), - internalOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) - }; +proto.clarifai.api.UserDetail.prototype.hasDateTosConsent = function() { + return jspb.Message.getField(this, 4) != null; +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * optional google.protobuf.Timestamp date_marketing_consent = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.UserDetail.prototype.getDateMarketingConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelTypeEnumOption} + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.UserDetail} returns this +*/ +proto.clarifai.api.UserDetail.prototype.setDateMarketingConsent = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelTypeEnumOption; - return proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.UserDetail.prototype.clearDateMarketingConsent = function() { + return this.setDateMarketingConsent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.UserDetail.prototype.hasDateMarketingConsent = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional google.protobuf.Timestamp date_pii_consent = 13; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.UserDetail.prototype.getDatePiiConsent = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 13)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.UserDetail} returns this +*/ +proto.clarifai.api.UserDetail.prototype.setDatePiiConsent = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ModelTypeEnumOption} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelTypeEnumOption} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 5: - var value = new proto.clarifai.api.ModelTypeEnumOptionAlias; - reader.readMessage(value,proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader); - msg.addAliases(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = new proto.clarifai.api.ModelTypeField; - reader.readMessage(value,proto.clarifai.api.ModelTypeField.deserializeBinaryFromReader); - msg.addModelTypeFields(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setInternalOnly(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.UserDetail.prototype.clearDatePiiConsent = function() { + return this.setDatePiiConsent(undefined); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.UserDetail.prototype.hasDatePiiConsent = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelTypeEnumOption} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional google.protobuf.Struct metadata = 6; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.ModelTypeEnumOption.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAliasesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getModelTypeFieldsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.clarifai.api.ModelTypeField.serializeBinaryToWriter - ); - } - f = message.getInternalOnly(); - if (f) { - writer.writeBool( - 4, - f - ); - } +proto.clarifai.api.UserDetail.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); }; /** - * optional string id = 1; - * @return {string} + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.UserDetail} returns this +*/ +proto.clarifai.api.UserDetail.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.UserDetail.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.UserDetail.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * repeated ModelTypeEnumOptionAlias aliases = 5; - * @return {!Array} + * repeated EmailAddress email_addresses = 7; + * @return {!Array} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.getAliasesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeEnumOptionAlias, 5)); +proto.clarifai.api.UserDetail.prototype.getEmailAddressesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EmailAddress, 7)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.prototype.setAliasesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); +proto.clarifai.api.UserDetail.prototype.setEmailAddressesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); }; /** - * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias=} opt_value + * @param {!proto.clarifai.api.EmailAddress=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} + * @return {!proto.clarifai.api.EmailAddress} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.addAliases = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.ModelTypeEnumOptionAlias, opt_index); +proto.clarifai.api.UserDetail.prototype.addEmailAddresses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.EmailAddress, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.prototype.clearAliasesList = function() { - return this.setAliasesList([]); +proto.clarifai.api.UserDetail.prototype.clearEmailAddressesList = function() { + return this.setEmailAddressesList([]); }; /** - * optional string description = 2; - * @return {string} + * optional bool two_factor_auth_enabled = 9; + * @return {boolean} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.UserDetail.prototype.getTwoFactorAuthEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.UserDetail.prototype.setTwoFactorAuthEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); }; /** - * repeated ModelTypeField model_type_fields = 3; - * @return {!Array} + * optional uint32 teams_count = 10; + * @return {number} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.getModelTypeFieldsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelTypeField, 3)); +proto.clarifai.api.UserDetail.prototype.getTeamsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this -*/ -proto.clarifai.api.ModelTypeEnumOption.prototype.setModelTypeFieldsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); + * @param {number} value + * @return {!proto.clarifai.api.UserDetail} returns this + */ +proto.clarifai.api.UserDetail.prototype.setTeamsCount = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); }; /** - * @param {!proto.clarifai.api.ModelTypeField=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelTypeField} + * optional string country = 11; + * @return {string} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.addModelTypeFields = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelTypeField, opt_index); +proto.clarifai.api.UserDetail.prototype.getCountry = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this + * @param {string} value + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.prototype.clearModelTypeFieldsList = function() { - return this.setModelTypeFieldsList([]); +proto.clarifai.api.UserDetail.prototype.setCountry = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); }; /** - * optional bool internal_only = 4; - * @return {boolean} + * optional string state = 12; + * @return {string} */ -proto.clarifai.api.ModelTypeEnumOption.prototype.getInternalOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.UserDetail.prototype.getState = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ModelTypeEnumOption} returns this + * @param {string} value + * @return {!proto.clarifai.api.UserDetail} returns this */ -proto.clarifai.api.ModelTypeEnumOption.prototype.setInternalOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.UserDetail.prototype.setState = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; @@ -21040,8 +40082,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelTypeEnumOptionAlias.toObject(opt_includeInstance, this); +proto.clarifai.api.EmailAddress.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.EmailAddress.toObject(opt_includeInstance, this); }; @@ -21050,13 +40092,15 @@ proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} msg The msg instance to transform. + * @param {!proto.clarifai.api.EmailAddress} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelTypeEnumOptionAlias.toObject = function(includeInstance, msg) { +proto.clarifai.api.EmailAddress.toObject = function(includeInstance, msg) { var f, obj = { - idInt: jspb.Message.getFieldWithDefault(msg, 1, 0) + email: jspb.Message.getFieldWithDefault(msg, 1, ""), + primary: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + verified: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -21070,23 +40114,23 @@ proto.clarifai.api.ModelTypeEnumOptionAlias.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} + * @return {!proto.clarifai.api.EmailAddress} */ -proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinary = function(bytes) { +proto.clarifai.api.EmailAddress.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelTypeEnumOptionAlias; - return proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.EmailAddress; + return proto.clarifai.api.EmailAddress.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} msg The message object to deserialize into. + * @param {!proto.clarifai.api.EmailAddress} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} + * @return {!proto.clarifai.api.EmailAddress} */ -proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.EmailAddress.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -21094,8 +40138,16 @@ proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setIdInt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setEmail(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setPrimary(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setVerified(value); break; default: reader.skipField(); @@ -21110,9 +40162,9 @@ proto.clarifai.api.ModelTypeEnumOptionAlias.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.serializeBinary = function() { +proto.clarifai.api.EmailAddress.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter(this, writer); + proto.clarifai.api.EmailAddress.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -21120,37 +40172,87 @@ proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelTypeEnumOptionAlias} message + * @param {!proto.clarifai.api.EmailAddress} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelTypeEnumOptionAlias.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.EmailAddress.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getIdInt(); - if (f !== 0) { - writer.writeInt64( + f = message.getEmail(); + if (f.length > 0) { + writer.writeString( 1, f ); } + f = message.getPrimary(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getVerified(); + if (f) { + writer.writeBool( + 3, + f + ); + } }; /** - * optional int64 id_int = 1; - * @return {number} + * optional string email = 1; + * @return {string} */ -proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.getIdInt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.EmailAddress.prototype.getEmail = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ModelTypeEnumOptionAlias} returns this + * @param {string} value + * @return {!proto.clarifai.api.EmailAddress} returns this */ -proto.clarifai.api.ModelTypeEnumOptionAlias.prototype.setIdInt = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.EmailAddress.prototype.setEmail = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool primary = 2; + * @return {boolean} + */ +proto.clarifai.api.EmailAddress.prototype.getPrimary = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.EmailAddress} returns this + */ +proto.clarifai.api.EmailAddress.prototype.setPrimary = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional bool verified = 3; + * @return {boolean} + */ +proto.clarifai.api.EmailAddress.prototype.getVerified = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.EmailAddress} returns this + */ +proto.clarifai.api.EmailAddress.prototype.setVerified = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; @@ -21170,8 +40272,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelQuery.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelQuery.toObject(opt_includeInstance, this); +proto.clarifai.api.Password.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Password.toObject(opt_includeInstance, this); }; @@ -21180,14 +40282,13 @@ proto.clarifai.api.ModelQuery.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelQuery} msg The msg instance to transform. + * @param {!proto.clarifai.api.Password} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelQuery.toObject = function(includeInstance, msg) { +proto.clarifai.api.Password.toObject = function(includeInstance, msg) { var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - modelTypeId: jspb.Message.getFieldWithDefault(msg, 3, "") + plaintext: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -21201,23 +40302,23 @@ proto.clarifai.api.ModelQuery.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelQuery} + * @return {!proto.clarifai.api.Password} */ -proto.clarifai.api.ModelQuery.deserializeBinary = function(bytes) { +proto.clarifai.api.Password.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelQuery; - return proto.clarifai.api.ModelQuery.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Password; + return proto.clarifai.api.Password.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelQuery} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Password} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelQuery} + * @return {!proto.clarifai.api.Password} */ -proto.clarifai.api.ModelQuery.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Password.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -21226,11 +40327,7 @@ proto.clarifai.api.ModelQuery.deserializeBinaryFromReader = function(msg, reader switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setModelTypeId(value); + msg.setPlaintext(value); break; default: reader.skipField(); @@ -21245,9 +40342,9 @@ proto.clarifai.api.ModelQuery.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelQuery.prototype.serializeBinary = function() { +proto.clarifai.api.Password.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelQuery.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Password.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -21255,65 +40352,40 @@ proto.clarifai.api.ModelQuery.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelQuery} message + * @param {!proto.clarifai.api.Password} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelQuery.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Password.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getName(); + f = message.getPlaintext(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getModelTypeId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } }; /** - * optional string name = 1; + * optional string plaintext = 1; * @return {string} */ -proto.clarifai.api.ModelQuery.prototype.getName = function() { +proto.clarifai.api.Password.prototype.getPlaintext = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ModelQuery} returns this + * @return {!proto.clarifai.api.Password} returns this */ -proto.clarifai.api.ModelQuery.prototype.setName = function(value) { +proto.clarifai.api.Password.prototype.setPlaintext = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * optional string model_type_id = 3; - * @return {string} - */ -proto.clarifai.api.ModelQuery.prototype.getModelTypeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ModelQuery} returns this - */ -proto.clarifai.api.ModelQuery.prototype.setModelTypeId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - @@ -21330,8 +40402,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelVersion.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelVersion.toObject(opt_includeInstance, this); +proto.clarifai.api.PasswordViolations.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PasswordViolations.toObject(opt_includeInstance, this); }; @@ -21340,27 +40412,26 @@ proto.clarifai.api.ModelVersion.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelVersion} msg The msg instance to transform. + * @param {!proto.clarifai.api.PasswordViolations} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) { +proto.clarifai.api.PasswordViolations.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - activeConceptCount: jspb.Message.getFieldWithDefault(msg, 4, 0), - metrics: (f = msg.getMetrics()) && proto.clarifai.api.EvalMetrics.toObject(includeInstance, f), - totalInputCount: jspb.Message.getFieldWithDefault(msg, 6, 0), - completedAt: (f = msg.getCompletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - description: jspb.Message.getFieldWithDefault(msg, 11, ""), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - appId: jspb.Message.getFieldWithDefault(msg, 13, ""), - userId: jspb.Message.getFieldWithDefault(msg, 14, ""), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - license: jspb.Message.getFieldWithDefault(msg, 17, ""), - datasetVersion: (f = msg.getDatasetVersion()) && proto.clarifai.api.DatasetVersion.toObject(includeInstance, f) + minimumLength: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + maximumLength: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + upperCaseNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + lowerCaseNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + numericNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + nonAlphanumericNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + passwordReuse: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + excludeNames: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + excludeEmail: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + noConfusingLetters: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + noSimplePasswords: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + noCommonVocabs: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + noOverlapWithOld: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + passwordLifespan: jspb.Message.getBooleanFieldWithDefault(msg, 14, false) }; if (includeInstance) { @@ -21374,23 +40445,23 @@ proto.clarifai.api.ModelVersion.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelVersion} + * @return {!proto.clarifai.api.PasswordViolations} */ -proto.clarifai.api.ModelVersion.deserializeBinary = function(bytes) { +proto.clarifai.api.PasswordViolations.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelVersion; - return proto.clarifai.api.ModelVersion.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PasswordViolations; + return proto.clarifai.api.PasswordViolations.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelVersion} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PasswordViolations} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelVersion} + * @return {!proto.clarifai.api.PasswordViolations} */ -proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PasswordViolations.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -21398,72 +40469,60 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setMinimumLength(value); break; case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setMaximumLength(value); break; case 3: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUpperCaseNeeded(value); break; case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setActiveConceptCount(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setLowerCaseNeeded(value); break; case 5: - var value = new proto.clarifai.api.EvalMetrics; - reader.readMessage(value,proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader); - msg.setMetrics(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNumericNeeded(value); break; case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTotalInputCount(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNonAlphanumericNeeded(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setPasswordReuse(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setExcludeNames(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setExcludeEmail(value); break; case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCompletedAt(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNoConfusingLetters(value); break; case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNoSimplePasswords(value); break; case 12: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNoCommonVocabs(value); break; case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNoOverlapWithOld(value); break; case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 15: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 16: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setLicense(value); - break; - case 18: - var value = new proto.clarifai.api.DatasetVersion; - reader.readMessage(value,proto.clarifai.api.DatasetVersion.deserializeBinaryFromReader); - msg.setDatasetVersion(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setPasswordLifespan(value); break; default: reader.skipField(); @@ -21478,9 +40537,9 @@ proto.clarifai.api.ModelVersion.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelVersion.prototype.serializeBinary = function() { +proto.clarifai.api.PasswordViolations.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelVersion.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PasswordViolations.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -21488,547 +40547,362 @@ proto.clarifai.api.ModelVersion.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelVersion} message + * @param {!proto.clarifai.api.PasswordViolations} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelVersion.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PasswordViolations.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getMinimumLength(); + if (f) { + writer.writeBool( 1, f ); } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( + f = message.getMaximumLength(); + if (f) { + writer.writeBool( 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( + f = message.getUpperCaseNeeded(); + if (f) { + writer.writeBool( 3, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + f ); } - f = message.getActiveConceptCount(); - if (f !== 0) { - writer.writeUint32( + f = message.getLowerCaseNeeded(); + if (f) { + writer.writeBool( 4, f ); } - f = message.getMetrics(); - if (f != null) { - writer.writeMessage( + f = message.getNumericNeeded(); + if (f) { + writer.writeBool( 5, - f, - proto.clarifai.api.EvalMetrics.serializeBinaryToWriter + f ); } - f = message.getTotalInputCount(); - if (f !== 0) { - writer.writeUint32( + f = message.getNonAlphanumericNeeded(); + if (f) { + writer.writeBool( 6, f ); } - f = message.getCompletedAt(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 11, + f = message.getPasswordReuse(); + if (f) { + writer.writeBool( + 7, f ); } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter + f = message.getExcludeNames(); + if (f) { + writer.writeBool( + 8, + f ); } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 13, + f = message.getExcludeEmail(); + if (f) { + writer.writeBool( + 9, f ); } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 14, + f = message.getNoConfusingLetters(); + if (f) { + writer.writeBool( + 10, f ); } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 15, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f = message.getNoSimplePasswords(); + if (f) { + writer.writeBool( + 11, + f ); } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 16, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + f = message.getNoCommonVocabs(); + if (f) { + writer.writeBool( + 12, + f ); } - f = message.getLicense(); - if (f.length > 0) { - writer.writeString( - 17, + f = message.getNoOverlapWithOld(); + if (f) { + writer.writeBool( + 13, f ); } - f = message.getDatasetVersion(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.clarifai.api.DatasetVersion.serializeBinaryToWriter + f = message.getPasswordLifespan(); + if (f) { + writer.writeBool( + 14, + f ); } }; /** - * optional string id = 1; - * @return {string} - */ -proto.clarifai.api.ModelVersion.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersion} returns this - */ -proto.clarifai.api.ModelVersion.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.clarifai.api.ModelVersion.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this - */ -proto.clarifai.api.ModelVersion.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. + * optional bool minimum_length = 1; * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional status.Status status = 3; - * @return {?proto.clarifai.api.status.Status} - */ -proto.clarifai.api.ModelVersion.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 3)); -}; - - -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.PasswordViolations.prototype.getMinimumLength = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PasswordViolations.prototype.setMinimumLength = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** - * Returns whether this field is set. + * optional bool maximum_length = 2; * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.hasStatus = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional uint32 active_concept_count = 4; - * @return {number} - */ -proto.clarifai.api.ModelVersion.prototype.getActiveConceptCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.PasswordViolations.prototype.getMaximumLength = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.setActiveConceptCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.PasswordViolations.prototype.setMaximumLength = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * optional EvalMetrics metrics = 5; - * @return {?proto.clarifai.api.EvalMetrics} + * optional bool upper_case_needed = 3; + * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.getMetrics = function() { - return /** @type{?proto.clarifai.api.EvalMetrics} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.EvalMetrics, 5)); -}; - - -/** - * @param {?proto.clarifai.api.EvalMetrics|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setMetrics = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.PasswordViolations.prototype.getUpperCaseNeeded = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.clearMetrics = function() { - return this.setMetrics(undefined); +proto.clarifai.api.PasswordViolations.prototype.setUpperCaseNeeded = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * Returns whether this field is set. + * optional bool lower_case_needed = 4; * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.hasMetrics = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional uint32 total_input_count = 6; - * @return {number} - */ -proto.clarifai.api.ModelVersion.prototype.getTotalInputCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.clarifai.api.PasswordViolations.prototype.getLowerCaseNeeded = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.setTotalInputCount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.clarifai.api.PasswordViolations.prototype.setLowerCaseNeeded = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** - * optional google.protobuf.Timestamp completed_at = 10; - * @return {?proto.google.protobuf.Timestamp} + * optional bool numeric_needed = 5; + * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.getCompletedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setCompletedAt = function(value) { - return jspb.Message.setWrapperField(this, 10, value); +proto.clarifai.api.PasswordViolations.prototype.getNumericNeeded = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.clearCompletedAt = function() { - return this.setCompletedAt(undefined); +proto.clarifai.api.PasswordViolations.prototype.setNumericNeeded = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; /** - * Returns whether this field is set. + * optional bool non_alphanumeric_needed = 6; * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.hasCompletedAt = function() { - return jspb.Message.getField(this, 10) != null; -}; - - -/** - * optional string description = 11; - * @return {string} - */ -proto.clarifai.api.ModelVersion.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +proto.clarifai.api.PasswordViolations.prototype.getNonAlphanumericNeeded = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); +proto.clarifai.api.PasswordViolations.prototype.setNonAlphanumericNeeded = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); }; /** - * optional Visibility visibility = 12; - * @return {?proto.clarifai.api.Visibility} + * optional bool password_reuse = 7; + * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 12)); -}; - - -/** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 12, value); +proto.clarifai.api.PasswordViolations.prototype.getPasswordReuse = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.PasswordViolations.prototype.setPasswordReuse = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); }; /** - * Returns whether this field is set. + * optional bool exclude_names = 8; * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 12) != null; -}; - - -/** - * optional string app_id = 13; - * @return {string} - */ -proto.clarifai.api.ModelVersion.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +proto.clarifai.api.PasswordViolations.prototype.getExcludeNames = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); +proto.clarifai.api.PasswordViolations.prototype.setExcludeNames = function(value) { + return jspb.Message.setProto3BooleanField(this, 8, value); }; /** - * optional string user_id = 14; - * @return {string} + * optional bool exclude_email = 9; + * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +proto.clarifai.api.PasswordViolations.prototype.getExcludeEmail = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); +proto.clarifai.api.PasswordViolations.prototype.setExcludeEmail = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); }; /** - * optional google.protobuf.Timestamp modified_at = 15; - * @return {?proto.google.protobuf.Timestamp} + * optional bool no_confusing_letters = 10; + * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 15)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 15, value); +proto.clarifai.api.PasswordViolations.prototype.getNoConfusingLetters = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.PasswordViolations.prototype.setNoConfusingLetters = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); }; /** - * Returns whether this field is set. + * optional bool no_simple_passwords = 11; * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 15) != null; -}; - - -/** - * optional google.protobuf.Struct metadata = 16; - * @return {?proto.google.protobuf.Struct} - */ -proto.clarifai.api.ModelVersion.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 16)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 16, value); +proto.clarifai.api.PasswordViolations.prototype.getNoSimplePasswords = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.PasswordViolations.prototype.setNoSimplePasswords = function(value) { + return jspb.Message.setProto3BooleanField(this, 11, value); }; /** - * Returns whether this field is set. + * optional bool no_common_vocabs = 12; * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 16) != null; -}; - - -/** - * optional string license = 17; - * @return {string} - */ -proto.clarifai.api.ModelVersion.prototype.getLicense = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); +proto.clarifai.api.PasswordViolations.prototype.getNoCommonVocabs = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersion} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.setLicense = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); +proto.clarifai.api.PasswordViolations.prototype.setNoCommonVocabs = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); }; /** - * optional DatasetVersion dataset_version = 18; - * @return {?proto.clarifai.api.DatasetVersion} + * optional bool no_overlap_with_old = 13; + * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.getDatasetVersion = function() { - return /** @type{?proto.clarifai.api.DatasetVersion} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.DatasetVersion, 18)); +proto.clarifai.api.PasswordViolations.prototype.getNoOverlapWithOld = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); }; /** - * @param {?proto.clarifai.api.DatasetVersion|undefined} value - * @return {!proto.clarifai.api.ModelVersion} returns this -*/ -proto.clarifai.api.ModelVersion.prototype.setDatasetVersion = function(value) { - return jspb.Message.setWrapperField(this, 18, value); + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this + */ +proto.clarifai.api.PasswordViolations.prototype.setNoOverlapWithOld = function(value) { + return jspb.Message.setProto3BooleanField(this, 13, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ModelVersion} returns this + * optional bool password_lifespan = 14; + * @return {boolean} */ -proto.clarifai.api.ModelVersion.prototype.clearDatasetVersion = function() { - return this.setDatasetVersion(undefined); +proto.clarifai.api.PasswordViolations.prototype.getPasswordLifespan = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.clarifai.api.PasswordViolations} returns this */ -proto.clarifai.api.ModelVersion.prototype.hasDatasetVersion = function() { - return jspb.Message.getField(this, 18) != null; +proto.clarifai.api.PasswordViolations.prototype.setPasswordLifespan = function(value) { + return jspb.Message.setProto3BooleanField(this, 14, value); }; @@ -22048,8 +40922,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PretrainedModelConfig.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PretrainedModelConfig.toObject(opt_includeInstance, this); +proto.clarifai.api.Video.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Video.toObject(opt_includeInstance, this); }; @@ -22058,19 +40932,18 @@ proto.clarifai.api.PretrainedModelConfig.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PretrainedModelConfig} msg The msg instance to transform. + * @param {!proto.clarifai.api.Video} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PretrainedModelConfig.toObject = function(includeInstance, msg) { +proto.clarifai.api.Video.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - type: jspb.Message.getFieldWithDefault(msg, 2, ""), - inputFieldsMap: (f = msg.getInputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - outputFieldsMap: (f = msg.getOutputFieldsMap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - dataProviderParams: jspb.Message.getFieldWithDefault(msg, 5, ""), - modelZipUrl: jspb.Message.getFieldWithDefault(msg, 6, ""), - overwrite: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) + url: jspb.Message.getFieldWithDefault(msg, 1, ""), + base64: msg.getBase64_asB64(), + allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + thumbnailUrl: jspb.Message.getFieldWithDefault(msg, 5, ""), + hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), + videoInfo: (f = msg.getVideoInfo()) && proto.clarifai.api.VideoInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -22084,23 +40957,23 @@ proto.clarifai.api.PretrainedModelConfig.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PretrainedModelConfig} + * @return {!proto.clarifai.api.Video} */ -proto.clarifai.api.PretrainedModelConfig.deserializeBinary = function(bytes) { +proto.clarifai.api.Video.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PretrainedModelConfig; - return proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Video; + return proto.clarifai.api.Video.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PretrainedModelConfig} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Video} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PretrainedModelConfig} + * @return {!proto.clarifai.api.Video} */ -proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Video.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -22109,33 +40982,29 @@ proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function( switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setUrl(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setType(value); - break; - case 3: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setInputFieldsMap(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setBase64(value); break; case 4: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setOutputFieldsMap(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowDuplicateUrl(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setDataProviderParams(value); + msg.setThumbnailUrl(value); break; case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setModelZipUrl(value); + var value = new proto.clarifai.api.HostedURL; + reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); + msg.setHosted(value); break; case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOverwrite(value); + var value = new proto.clarifai.api.VideoInfo; + reader.readMessage(value,proto.clarifai.api.VideoInfo.deserializeBinaryFromReader); + msg.setVideoInfo(value); break; default: reader.skipField(); @@ -22150,9 +41019,9 @@ proto.clarifai.api.PretrainedModelConfig.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PretrainedModelConfig.prototype.serializeBinary = function() { +proto.clarifai.api.Video.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Video.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -22160,387 +41029,226 @@ proto.clarifai.api.PretrainedModelConfig.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PretrainedModelConfig} message + * @param {!proto.clarifai.api.Video} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PretrainedModelConfig.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Video.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getUrl(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getType(); + f = message.getBase64_asU8(); if (f.length > 0) { - writer.writeString( + writer.writeBytes( 2, f ); } - f = message.getInputFieldsMap(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getOutputFieldsMap(); - if (f != null) { - writer.writeMessage( + f = message.getAllowDuplicateUrl(); + if (f) { + writer.writeBool( 4, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + f ); } - f = message.getDataProviderParams(); + f = message.getThumbnailUrl(); if (f.length > 0) { writer.writeString( 5, f ); } - f = message.getModelZipUrl(); - if (f.length > 0) { - writer.writeString( + f = message.getHosted(); + if (f != null) { + writer.writeMessage( 6, - f + f, + proto.clarifai.api.HostedURL.serializeBinaryToWriter ); } - f = message.getOverwrite(); - if (f) { - writer.writeBool( + f = message.getVideoInfo(); + if (f != null) { + writer.writeMessage( 7, - f + f, + proto.clarifai.api.VideoInfo.serializeBinaryToWriter ); } }; /** - * optional string id = 1; + * optional string url = 1; * @return {string} */ -proto.clarifai.api.PretrainedModelConfig.prototype.getId = function() { +proto.clarifai.api.Video.prototype.getUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this + * @return {!proto.clarifai.api.Video} returns this */ -proto.clarifai.api.PretrainedModelConfig.prototype.setId = function(value) { +proto.clarifai.api.Video.prototype.setUrl = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string type = 2; - * @return {string} + * optional bytes base64 = 2; + * @return {!(string|Uint8Array)} */ -proto.clarifai.api.PretrainedModelConfig.prototype.getType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.Video.prototype.getBase64 = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this + * optional bytes base64 = 2; + * This is a type-conversion wrapper around `getBase64()` + * @return {string} */ -proto.clarifai.api.PretrainedModelConfig.prototype.setType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.Video.prototype.getBase64_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBase64())); }; /** - * optional google.protobuf.Struct input_fields_map = 3; - * @return {?proto.google.protobuf.Struct} + * optional bytes base64 = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBase64()` + * @return {!Uint8Array} */ -proto.clarifai.api.PretrainedModelConfig.prototype.getInputFieldsMap = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this -*/ -proto.clarifai.api.PretrainedModelConfig.prototype.setInputFieldsMap = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.Video.prototype.getBase64_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBase64())); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.clarifai.api.Video} returns this */ -proto.clarifai.api.PretrainedModelConfig.prototype.clearInputFieldsMap = function() { - return this.setInputFieldsMap(undefined); +proto.clarifai.api.Video.prototype.setBase64 = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); }; /** - * Returns whether this field is set. + * optional bool allow_duplicate_url = 4; * @return {boolean} */ -proto.clarifai.api.PretrainedModelConfig.prototype.hasInputFieldsMap = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional google.protobuf.Struct output_fields_map = 4; - * @return {?proto.google.protobuf.Struct} - */ -proto.clarifai.api.PretrainedModelConfig.prototype.getOutputFieldsMap = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this -*/ -proto.clarifai.api.PretrainedModelConfig.prototype.setOutputFieldsMap = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this - */ -proto.clarifai.api.PretrainedModelConfig.prototype.clearOutputFieldsMap = function() { - return this.setOutputFieldsMap(undefined); +proto.clarifai.api.Video.prototype.getAllowDuplicateUrl = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.clarifai.api.Video} returns this */ -proto.clarifai.api.PretrainedModelConfig.prototype.hasOutputFieldsMap = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.Video.prototype.setAllowDuplicateUrl = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** - * optional string data_provider_params = 5; + * optional string thumbnail_url = 5; * @return {string} */ -proto.clarifai.api.PretrainedModelConfig.prototype.getDataProviderParams = function() { +proto.clarifai.api.Video.prototype.getThumbnailUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this + * @return {!proto.clarifai.api.Video} returns this */ -proto.clarifai.api.PretrainedModelConfig.prototype.setDataProviderParams = function(value) { +proto.clarifai.api.Video.prototype.setThumbnailUrl = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional string model_zip_url = 6; - * @return {string} - */ -proto.clarifai.api.PretrainedModelConfig.prototype.getModelZipUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this - */ -proto.clarifai.api.PretrainedModelConfig.prototype.setModelZipUrl = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional bool overwrite = 7; - * @return {boolean} - */ -proto.clarifai.api.PretrainedModelConfig.prototype.getOverwrite = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.PretrainedModelConfig} returns this - */ -proto.clarifai.api.PretrainedModelConfig.prototype.setOverwrite = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.TrainStats.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.TrainStats.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TrainStats.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TrainStats} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.TrainStats.toObject = function(includeInstance, msg) { - var f, obj = { - lossCurveList: jspb.Message.toObjectList(msg.getLossCurveList(), - proto.clarifai.api.LossCurveEntry.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TrainStats} + * optional HostedURL hosted = 6; + * @return {?proto.clarifai.api.HostedURL} */ -proto.clarifai.api.TrainStats.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TrainStats; - return proto.clarifai.api.TrainStats.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Video.prototype.getHosted = function() { + return /** @type{?proto.clarifai.api.HostedURL} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 6)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.TrainStats} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TrainStats} - */ -proto.clarifai.api.TrainStats.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clarifai.api.LossCurveEntry; - reader.readMessage(value,proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader); - msg.addLossCurve(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.clarifai.api.HostedURL|undefined} value + * @return {!proto.clarifai.api.Video} returns this +*/ +proto.clarifai.api.Video.prototype.setHosted = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Video} returns this */ -proto.clarifai.api.TrainStats.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TrainStats.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Video.prototype.clearHosted = function() { + return this.setHosted(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TrainStats} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TrainStats.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLossCurveList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter - ); - } +proto.clarifai.api.Video.prototype.hasHosted = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * repeated LossCurveEntry loss_curve = 1; - * @return {!Array} + * optional VideoInfo video_info = 7; + * @return {?proto.clarifai.api.VideoInfo} */ -proto.clarifai.api.TrainStats.prototype.getLossCurveList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LossCurveEntry, 1)); +proto.clarifai.api.Video.prototype.getVideoInfo = function() { + return /** @type{?proto.clarifai.api.VideoInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.VideoInfo, 7)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.TrainStats} returns this + * @param {?proto.clarifai.api.VideoInfo|undefined} value + * @return {!proto.clarifai.api.Video} returns this */ -proto.clarifai.api.TrainStats.prototype.setLossCurveList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.clarifai.api.Video.prototype.setVideoInfo = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** - * @param {!proto.clarifai.api.LossCurveEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.LossCurveEntry} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Video} returns this */ -proto.clarifai.api.TrainStats.prototype.addLossCurve = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.LossCurveEntry, opt_index); +proto.clarifai.api.Video.prototype.clearVideoInfo = function() { + return this.setVideoInfo(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.TrainStats} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TrainStats.prototype.clearLossCurveList = function() { - return this.setLossCurveList([]); +proto.clarifai.api.Video.prototype.hasVideoInfo = function() { + return jspb.Message.getField(this, 7) != null; }; @@ -22560,8 +41268,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.LossCurveEntry.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.LossCurveEntry.toObject(opt_includeInstance, this); +proto.clarifai.api.VideoInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.VideoInfo.toObject(opt_includeInstance, this); }; @@ -22570,15 +41278,19 @@ proto.clarifai.api.LossCurveEntry.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.LossCurveEntry} msg The msg instance to transform. + * @param {!proto.clarifai.api.VideoInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LossCurveEntry.toObject = function(includeInstance, msg) { +proto.clarifai.api.VideoInfo.toObject = function(includeInstance, msg) { var f, obj = { - epoch: jspb.Message.getFieldWithDefault(msg, 1, 0), - globalStep: jspb.Message.getFieldWithDefault(msg, 2, 0), - cost: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) + width: jspb.Message.getFieldWithDefault(msg, 1, 0), + height: jspb.Message.getFieldWithDefault(msg, 2, 0), + fps: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + videoFormat: jspb.Message.getFieldWithDefault(msg, 4, ""), + bitRate: jspb.Message.getFieldWithDefault(msg, 5, 0), + frameCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + durationSeconds: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0) }; if (includeInstance) { @@ -22592,23 +41304,23 @@ proto.clarifai.api.LossCurveEntry.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.LossCurveEntry} + * @return {!proto.clarifai.api.VideoInfo} */ -proto.clarifai.api.LossCurveEntry.deserializeBinary = function(bytes) { +proto.clarifai.api.VideoInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.LossCurveEntry; - return proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.VideoInfo; + return proto.clarifai.api.VideoInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.LossCurveEntry} msg The message object to deserialize into. + * @param {!proto.clarifai.api.VideoInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.LossCurveEntry} + * @return {!proto.clarifai.api.VideoInfo} */ -proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.VideoInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -22616,16 +41328,32 @@ proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader = function(msg, re var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setEpoch(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setWidth(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setGlobalStep(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setHeight(value); break; case 3: var value = /** @type {number} */ (reader.readFloat()); - msg.setCost(value); + msg.setFps(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setVideoFormat(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt32()); + msg.setBitRate(value); + break; + case 6: + var value = /** @type {number} */ (reader.readInt32()); + msg.setFrameCount(value); + break; + case 7: + var value = /** @type {number} */ (reader.readFloat()); + msg.setDurationSeconds(value); break; default: reader.skipField(); @@ -22640,9 +41368,9 @@ proto.clarifai.api.LossCurveEntry.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.LossCurveEntry.prototype.serializeBinary = function() { +proto.clarifai.api.VideoInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter(this, writer); + proto.clarifai.api.VideoInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -22650,30 +41378,58 @@ proto.clarifai.api.LossCurveEntry.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.LossCurveEntry} message + * @param {!proto.clarifai.api.VideoInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.VideoInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getEpoch(); + f = message.getWidth(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getHeight(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getFps(); + if (f !== 0.0) { + writer.writeFloat( + 3, + f + ); + } + f = message.getVideoFormat(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getBitRate(); if (f !== 0) { - writer.writeUint32( - 1, + writer.writeInt32( + 5, f ); } - f = message.getGlobalStep(); + f = message.getFrameCount(); if (f !== 0) { - writer.writeUint32( - 2, + writer.writeInt32( + 6, f ); } - f = message.getCost(); + f = message.getDurationSeconds(); if (f !== 0.0) { writer.writeFloat( - 3, + 7, f ); } @@ -22681,59 +41437,138 @@ proto.clarifai.api.LossCurveEntry.serializeBinaryToWriter = function(message, wr /** - * optional uint32 epoch = 1; + * optional int32 width = 1; * @return {number} */ -proto.clarifai.api.LossCurveEntry.prototype.getEpoch = function() { +proto.clarifai.api.VideoInfo.prototype.getWidth = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.LossCurveEntry} returns this + * @return {!proto.clarifai.api.VideoInfo} returns this */ -proto.clarifai.api.LossCurveEntry.prototype.setEpoch = function(value) { +proto.clarifai.api.VideoInfo.prototype.setWidth = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional uint32 global_step = 2; + * optional int32 height = 2; * @return {number} */ -proto.clarifai.api.LossCurveEntry.prototype.getGlobalStep = function() { +proto.clarifai.api.VideoInfo.prototype.getHeight = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.LossCurveEntry} returns this + * @return {!proto.clarifai.api.VideoInfo} returns this */ -proto.clarifai.api.LossCurveEntry.prototype.setGlobalStep = function(value) { +proto.clarifai.api.VideoInfo.prototype.setHeight = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional float cost = 3; + * optional float fps = 3; * @return {number} */ -proto.clarifai.api.LossCurveEntry.prototype.getCost = function() { +proto.clarifai.api.VideoInfo.prototype.getFps = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.LossCurveEntry} returns this + * @return {!proto.clarifai.api.VideoInfo} returns this */ -proto.clarifai.api.LossCurveEntry.prototype.setCost = function(value) { +proto.clarifai.api.VideoInfo.prototype.setFps = function(value) { return jspb.Message.setProto3FloatField(this, 3, value); }; +/** + * optional string video_format = 4; + * @return {string} + */ +proto.clarifai.api.VideoInfo.prototype.getVideoFormat = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.VideoInfo} returns this + */ +proto.clarifai.api.VideoInfo.prototype.setVideoFormat = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional int32 bit_rate = 5; + * @return {number} + */ +proto.clarifai.api.VideoInfo.prototype.getBitRate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.VideoInfo} returns this + */ +proto.clarifai.api.VideoInfo.prototype.setBitRate = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional int32 frame_count = 6; + * @return {number} + */ +proto.clarifai.api.VideoInfo.prototype.getFrameCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.VideoInfo} returns this + */ +proto.clarifai.api.VideoInfo.prototype.setFrameCount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional float duration_seconds = 7; + * @return {number} + */ +proto.clarifai.api.VideoInfo.prototype.getDurationSeconds = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.VideoInfo} returns this + */ +proto.clarifai.api.VideoInfo.prototype.setDurationSeconds = function(value) { + return jspb.Message.setProto3FloatField(this, 7, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Workflow.repeatedFields_ = [4,14,15]; @@ -22750,8 +41585,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.LabelCount.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.LabelCount.toObject(opt_includeInstance, this); +proto.clarifai.api.Workflow.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Workflow.toObject(opt_includeInstance, this); }; @@ -22760,14 +41595,29 @@ proto.clarifai.api.LabelCount.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.LabelCount} msg The msg instance to transform. + * @param {!proto.clarifai.api.Workflow} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LabelCount.toObject = function(includeInstance, msg) { +proto.clarifai.api.Workflow.toObject = function(includeInstance, msg) { var f, obj = { - conceptName: jspb.Message.getFieldWithDefault(msg, 1, ""), - count: jspb.Message.getFieldWithDefault(msg, 2, 0) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + appId: jspb.Message.getFieldWithDefault(msg, 2, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + nodesList: jspb.Message.toObjectList(msg.getNodesList(), + proto.clarifai.api.WorkflowNode.toObject, includeInstance), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 7, ""), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + version: (f = msg.getVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f), + isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + starCount: jspb.Message.getFieldWithDefault(msg, 11, 0), + description: jspb.Message.getFieldWithDefault(msg, 12, ""), + notes: jspb.Message.getFieldWithDefault(msg, 13, ""), + useCasesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f, + checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, + bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f) }; if (includeInstance) { @@ -22781,23 +41631,23 @@ proto.clarifai.api.LabelCount.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.LabelCount} + * @return {!proto.clarifai.api.Workflow} */ -proto.clarifai.api.LabelCount.deserializeBinary = function(bytes) { +proto.clarifai.api.Workflow.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.LabelCount; - return proto.clarifai.api.LabelCount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Workflow; + return proto.clarifai.api.Workflow.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.LabelCount} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Workflow} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.LabelCount} + * @return {!proto.clarifai.api.Workflow} */ -proto.clarifai.api.LabelCount.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Workflow.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -22806,11 +41656,74 @@ proto.clarifai.api.LabelCount.deserializeBinaryFromReader = function(msg, reader switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setConceptName(value); + msg.setId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCount(value); + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 4: + var value = new proto.clarifai.api.WorkflowNode; + reader.readMessage(value,proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader); + msg.addNodes(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 6: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 9: + var value = new proto.clarifai.api.WorkflowVersion; + reader.readMessage(value,proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader); + msg.setVersion(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsStarred(value); + break; + case 11: + var value = /** @type {number} */ (reader.readInt32()); + msg.setStarCount(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setNotes(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.addUseCases(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.addCheckConsents(value); + break; + case 16: + var value = new proto.clarifai.api.BookmarkOrigin; + reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader); + msg.setBookmarkOrigin(value); break; default: reader.skipField(); @@ -22825,9 +41738,9 @@ proto.clarifai.api.LabelCount.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.LabelCount.prototype.serializeBinary = function() { +proto.clarifai.api.Workflow.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.LabelCount.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Workflow.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -22835,625 +41748,602 @@ proto.clarifai.api.LabelCount.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.LabelCount} message + * @param {!proto.clarifai.api.Workflow} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LabelCount.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Workflow.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getConceptName(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getCount(); - if (f !== 0) { - writer.writeUint32( + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( 2, f ); } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getNodesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto.clarifai.api.WorkflowNode.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getVersion(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter + ); + } + f = message.getIsStarred(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = message.getStarCount(); + if (f !== 0) { + writer.writeInt32( + 11, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 12, + f + ); + } + f = message.getNotes(); + if (f.length > 0) { + writer.writeString( + 13, + f + ); + } + f = message.getUseCasesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 14, + f + ); + } + f = message.getCheckConsentsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 15, + f + ); + } + f = message.getBookmarkOrigin(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter + ); + } }; /** - * optional string concept_name = 1; + * optional string id = 1; * @return {string} */ -proto.clarifai.api.LabelCount.prototype.getConceptName = function() { +proto.clarifai.api.Workflow.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.LabelCount} returns this + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.LabelCount.prototype.setConceptName = function(value) { +proto.clarifai.api.Workflow.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional uint32 count = 2; - * @return {number} + * optional string app_id = 2; + * @return {string} */ -proto.clarifai.api.LabelCount.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.Workflow.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.LabelCount} returns this + * @param {string} value + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.LabelCount.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.Workflow.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional google.protobuf.Timestamp created_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.LabelDistribution.repeatedFields_ = [1]; +proto.clarifai.api.Workflow.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Workflow} returns this +*/ +proto.clarifai.api.Workflow.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Workflow} returns this + */ +proto.clarifai.api.Workflow.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.LabelDistribution.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.LabelDistribution.toObject(opt_includeInstance, this); +proto.clarifai.api.Workflow.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.LabelDistribution} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * repeated WorkflowNode nodes = 4; + * @return {!Array} */ -proto.clarifai.api.LabelDistribution.toObject = function(includeInstance, msg) { - var f, obj = { - positiveLabelCountsList: jspb.Message.toObjectList(msg.getPositiveLabelCountsList(), - proto.clarifai.api.LabelCount.toObject, includeInstance) - }; +proto.clarifai.api.Workflow.prototype.getNodesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowNode, 4)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Workflow} returns this +*/ +proto.clarifai.api.Workflow.prototype.setNodesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.LabelDistribution} + * @param {!proto.clarifai.api.WorkflowNode=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.WorkflowNode} */ -proto.clarifai.api.LabelDistribution.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.LabelDistribution; - return proto.clarifai.api.LabelDistribution.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Workflow.prototype.addNodes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.WorkflowNode, opt_index); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.LabelDistribution} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.LabelDistribution} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.LabelDistribution.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clarifai.api.LabelCount; - reader.readMessage(value,proto.clarifai.api.LabelCount.deserializeBinaryFromReader); - msg.addPositiveLabelCounts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.Workflow.prototype.clearNodesList = function() { + return this.setNodesList([]); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional google.protobuf.Struct metadata = 5; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.LabelDistribution.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.LabelDistribution.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Workflow.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Workflow} returns this +*/ +proto.clarifai.api.Workflow.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Workflow} returns this + */ +proto.clarifai.api.Workflow.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.LabelDistribution} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.LabelDistribution.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPositiveLabelCountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clarifai.api.LabelCount.serializeBinaryToWriter - ); - } +proto.clarifai.api.Workflow.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * repeated LabelCount positive_label_counts = 1; - * @return {!Array} + * optional Visibility visibility = 6; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.LabelDistribution.prototype.getPositiveLabelCountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LabelCount, 1)); +proto.clarifai.api.Workflow.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 6)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.LabelDistribution} returns this + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.LabelDistribution.prototype.setPositiveLabelCountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.clarifai.api.Workflow.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * @param {!proto.clarifai.api.LabelCount=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.LabelCount} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.LabelDistribution.prototype.addPositiveLabelCounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.LabelCount, opt_index); +proto.clarifai.api.Workflow.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.LabelDistribution} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.LabelDistribution.prototype.clearPositiveLabelCountsList = function() { - return this.setPositiveLabelCountsList([]); +proto.clarifai.api.Workflow.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 6) != null; }; +/** + * optional string user_id = 7; + * @return {string} + */ +proto.clarifai.api.Workflow.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.CooccurrenceMatrixEntry.toObject(opt_includeInstance, this); +proto.clarifai.api.Workflow.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.CooccurrenceMatrixEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional google.protobuf.Timestamp modified_at = 8; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.CooccurrenceMatrixEntry.toObject = function(includeInstance, msg) { - var f, obj = { - row: jspb.Message.getFieldWithDefault(msg, 1, ""), - col: jspb.Message.getFieldWithDefault(msg, 2, ""), - count: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; +proto.clarifai.api.Workflow.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Workflow} returns this +*/ +proto.clarifai.api.Workflow.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.CooccurrenceMatrixEntry; - return proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Workflow.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.CooccurrenceMatrixEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setRow(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setCol(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.Workflow.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional WorkflowVersion version = 9; + * @return {?proto.clarifai.api.WorkflowVersion} */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.CooccurrenceMatrixEntry.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Workflow.prototype.getVersion = function() { + return /** @type{?proto.clarifai.api.WorkflowVersion} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowVersion, 9)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.CooccurrenceMatrixEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.CooccurrenceMatrixEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRow(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCol(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCount(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } + * @param {?proto.clarifai.api.WorkflowVersion|undefined} value + * @return {!proto.clarifai.api.Workflow} returns this +*/ +proto.clarifai.api.Workflow.prototype.setVersion = function(value) { + return jspb.Message.setWrapperField(this, 9, value); }; /** - * optional string row = 1; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.getRow = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Workflow.prototype.clearVersion = function() { + return this.setVersion(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.setRow = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.Workflow.prototype.hasVersion = function() { + return jspb.Message.getField(this, 9) != null; }; /** - * optional string col = 2; - * @return {string} + * optional bool is_starred = 10; + * @return {boolean} */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.getCol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.Workflow.prototype.getIsStarred = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.setCol = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.Workflow.prototype.setIsStarred = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); }; /** - * optional uint32 count = 3; + * optional int32 star_count = 11; * @return {number} */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.Workflow.prototype.getStarCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} returns this + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrixEntry.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.Workflow.prototype.setStarCount = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional string description = 12; + * @return {string} */ -proto.clarifai.api.CooccurrenceMatrix.repeatedFields_ = [1,2]; - +proto.clarifai.api.Workflow.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrix.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.CooccurrenceMatrix.toObject(opt_includeInstance, this); +proto.clarifai.api.Workflow.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.CooccurrenceMatrix} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string notes = 13; + * @return {string} */ -proto.clarifai.api.CooccurrenceMatrix.toObject = function(includeInstance, msg) { - var f, obj = { - matrixList: jspb.Message.toObjectList(msg.getMatrixList(), - proto.clarifai.api.CooccurrenceMatrixEntry.toObject, includeInstance), - conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; +proto.clarifai.api.Workflow.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {string} value + * @return {!proto.clarifai.api.Workflow} returns this + */ +proto.clarifai.api.Workflow.prototype.setNotes = function(value) { + return jspb.Message.setProto3StringField(this, 13, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.CooccurrenceMatrix} + * repeated string use_cases = 14; + * @return {!Array} */ -proto.clarifai.api.CooccurrenceMatrix.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.CooccurrenceMatrix; - return proto.clarifai.api.CooccurrenceMatrix.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Workflow.prototype.getUseCasesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 14)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.CooccurrenceMatrix} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.CooccurrenceMatrix} + * @param {!Array} value + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrix.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clarifai.api.CooccurrenceMatrixEntry; - reader.readMessage(value,proto.clarifai.api.CooccurrenceMatrixEntry.deserializeBinaryFromReader); - msg.addMatrix(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addConceptIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.Workflow.prototype.setUseCasesList = function(value) { + return jspb.Message.setField(this, 14, value || []); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrix.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.CooccurrenceMatrix.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Workflow.prototype.addUseCases = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 14, value, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.CooccurrenceMatrix} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrix.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMatrixList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clarifai.api.CooccurrenceMatrixEntry.serializeBinaryToWriter - ); - } - f = message.getConceptIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } +proto.clarifai.api.Workflow.prototype.clearUseCasesList = function() { + return this.setUseCasesList([]); }; /** - * repeated CooccurrenceMatrixEntry matrix = 1; - * @return {!Array} + * repeated string check_consents = 15; + * @return {!Array} */ -proto.clarifai.api.CooccurrenceMatrix.prototype.getMatrixList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.CooccurrenceMatrixEntry, 1)); +proto.clarifai.api.Workflow.prototype.getCheckConsentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 15)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this -*/ -proto.clarifai.api.CooccurrenceMatrix.prototype.setMatrixList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {!Array} value + * @return {!proto.clarifai.api.Workflow} returns this + */ +proto.clarifai.api.Workflow.prototype.setCheckConsentsList = function(value) { + return jspb.Message.setField(this, 15, value || []); }; /** - * @param {!proto.clarifai.api.CooccurrenceMatrixEntry=} opt_value + * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.CooccurrenceMatrixEntry} + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrix.prototype.addMatrix = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.CooccurrenceMatrixEntry, opt_index); +proto.clarifai.api.Workflow.prototype.addCheckConsents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 15, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrix.prototype.clearMatrixList = function() { - return this.setMatrixList([]); +proto.clarifai.api.Workflow.prototype.clearCheckConsentsList = function() { + return this.setCheckConsentsList([]); }; /** - * repeated string concept_ids = 2; - * @return {!Array} + * optional BookmarkOrigin bookmark_origin = 16; + * @return {?proto.clarifai.api.BookmarkOrigin} */ -proto.clarifai.api.CooccurrenceMatrix.prototype.getConceptIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.Workflow.prototype.getBookmarkOrigin = function() { + return /** @type{?proto.clarifai.api.BookmarkOrigin} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 16)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this - */ -proto.clarifai.api.CooccurrenceMatrix.prototype.setConceptIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {?proto.clarifai.api.BookmarkOrigin|undefined} value + * @return {!proto.clarifai.api.Workflow} returns this +*/ +proto.clarifai.api.Workflow.prototype.setBookmarkOrigin = function(value) { + return jspb.Message.setWrapperField(this, 16, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Workflow} returns this */ -proto.clarifai.api.CooccurrenceMatrix.prototype.addConceptIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.Workflow.prototype.clearBookmarkOrigin = function() { + return this.setBookmarkOrigin(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.CooccurrenceMatrix} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.CooccurrenceMatrix.prototype.clearConceptIdsList = function() { - return this.setConceptIdsList([]); +proto.clarifai.api.Workflow.prototype.hasBookmarkOrigin = function() { + return jspb.Message.getField(this, 16) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.WorkflowVersion.repeatedFields_ = [6]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -23469,8 +42359,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConfusionMatrixEntry.toObject(opt_includeInstance, this); +proto.clarifai.api.WorkflowVersion.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.WorkflowVersion.toObject(opt_includeInstance, this); }; @@ -23479,15 +42369,24 @@ proto.clarifai.api.ConfusionMatrixEntry.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConfusionMatrixEntry} msg The msg instance to transform. + * @param {!proto.clarifai.api.WorkflowVersion} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConfusionMatrixEntry.toObject = function(includeInstance, msg) { +proto.clarifai.api.WorkflowVersion.toObject = function(includeInstance, msg) { var f, obj = { - predicted: jspb.Message.getFieldWithDefault(msg, 1, ""), - actual: jspb.Message.getFieldWithDefault(msg, 2, ""), - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + nodesList: jspb.Message.toObjectList(msg.getNodesList(), + proto.clarifai.api.WorkflowNode.toObject, includeInstance), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 8, ""), + userId: jspb.Message.getFieldWithDefault(msg, 9, ""), + description: jspb.Message.getFieldWithDefault(msg, 10, ""), + license: jspb.Message.getFieldWithDefault(msg, 11, "") }; if (includeInstance) { @@ -23501,23 +42400,23 @@ proto.clarifai.api.ConfusionMatrixEntry.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConfusionMatrixEntry} + * @return {!proto.clarifai.api.WorkflowVersion} */ -proto.clarifai.api.ConfusionMatrixEntry.deserializeBinary = function(bytes) { +proto.clarifai.api.WorkflowVersion.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConfusionMatrixEntry; - return proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.WorkflowVersion; + return proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ConfusionMatrixEntry} msg The message object to deserialize into. + * @param {!proto.clarifai.api.WorkflowVersion} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConfusionMatrixEntry} + * @return {!proto.clarifai.api.WorkflowVersion} */ -proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -23526,15 +42425,52 @@ proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader = function(m switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setPredicted(value); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 5: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 6: + var value = new proto.clarifai.api.WorkflowNode; + reader.readMessage(value,proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader); + msg.addNodes(value); + break; + case 7: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); break; - case 2: + case 10: var value = /** @type {string} */ (reader.readString()); - msg.setActual(value); + msg.setDescription(value); break; - case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setValue(value); + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setLicense(value); break; default: reader.skipField(); @@ -23549,9 +42485,9 @@ proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.serializeBinary = function() { +proto.clarifai.api.WorkflowVersion.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter(this, writer); + proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -23559,30 +42495,91 @@ proto.clarifai.api.ConfusionMatrixEntry.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConfusionMatrixEntry} message + * @param {!proto.clarifai.api.WorkflowVersion} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPredicted(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getActual(); + f = message.getWorkflowId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getValue(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( 4, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getNodesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto.clarifai.api.WorkflowNode.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 7, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 9, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getLicense(); + if (f.length > 0) { + writer.writeString( + 11, f ); } @@ -23590,265 +42587,296 @@ proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter = function(messa /** - * optional string predicted = 1; + * optional string id = 1; * @return {string} */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.getPredicted = function() { +proto.clarifai.api.WorkflowVersion.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.setPredicted = function(value) { +proto.clarifai.api.WorkflowVersion.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string actual = 2; + * optional string workflow_id = 2; * @return {string} */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.getActual = function() { +proto.clarifai.api.WorkflowVersion.prototype.getWorkflowId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.setActual = function(value) { +proto.clarifai.api.WorkflowVersion.prototype.setWorkflowId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional float value = 4; - * @return {number} + * optional google.protobuf.Timestamp created_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +proto.clarifai.api.WorkflowVersion.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ConfusionMatrixEntry} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this +*/ +proto.clarifai.api.WorkflowVersion.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrixEntry.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); +proto.clarifai.api.WorkflowVersion.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.WorkflowVersion.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 3) != null; +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional google.protobuf.Timestamp modified_at = 4; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.ConfusionMatrix.repeatedFields_ = [1,2]; +proto.clarifai.api.WorkflowVersion.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this +*/ +proto.clarifai.api.WorkflowVersion.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrix.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ConfusionMatrix.toObject(opt_includeInstance, this); +proto.clarifai.api.WorkflowVersion.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ConfusionMatrix} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ConfusionMatrix.toObject = function(includeInstance, msg) { - var f, obj = { - matrixList: jspb.Message.toObjectList(msg.getMatrixList(), - proto.clarifai.api.ConfusionMatrixEntry.toObject, includeInstance), - conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.WorkflowVersion.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 4) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ConfusionMatrix} + * optional Visibility visibility = 5; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.ConfusionMatrix.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ConfusionMatrix; - return proto.clarifai.api.ConfusionMatrix.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.WorkflowVersion.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 5)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ConfusionMatrix} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ConfusionMatrix} - */ -proto.clarifai.api.ConfusionMatrix.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clarifai.api.ConfusionMatrixEntry; - reader.readMessage(value,proto.clarifai.api.ConfusionMatrixEntry.deserializeBinaryFromReader); - msg.addMatrix(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addConceptIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this +*/ +proto.clarifai.api.WorkflowVersion.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrix.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ConfusionMatrix.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.WorkflowVersion.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ConfusionMatrix} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ConfusionMatrix.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMatrixList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clarifai.api.ConfusionMatrixEntry.serializeBinaryToWriter - ); - } - f = message.getConceptIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } +proto.clarifai.api.WorkflowVersion.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * repeated ConfusionMatrixEntry matrix = 1; - * @return {!Array} + * repeated WorkflowNode nodes = 6; + * @return {!Array} */ -proto.clarifai.api.ConfusionMatrix.prototype.getMatrixList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ConfusionMatrixEntry, 1)); +proto.clarifai.api.WorkflowVersion.prototype.getNodesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowNode, 6)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ConfusionMatrix} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrix.prototype.setMatrixList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.clarifai.api.WorkflowVersion.prototype.setNodesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * @param {!proto.clarifai.api.ConfusionMatrixEntry=} opt_value + * @param {!proto.clarifai.api.WorkflowNode=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ConfusionMatrixEntry} + * @return {!proto.clarifai.api.WorkflowNode} */ -proto.clarifai.api.ConfusionMatrix.prototype.addMatrix = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.ConfusionMatrixEntry, opt_index); +proto.clarifai.api.WorkflowVersion.prototype.addNodes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.WorkflowNode, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ConfusionMatrix} returns this + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrix.prototype.clearMatrixList = function() { - return this.setMatrixList([]); +proto.clarifai.api.WorkflowVersion.prototype.clearNodesList = function() { + return this.setNodesList([]); }; /** - * repeated string concept_ids = 2; - * @return {!Array} + * optional google.protobuf.Struct metadata = 7; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.ConfusionMatrix.prototype.getConceptIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.WorkflowVersion.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ConfusionMatrix} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this +*/ +proto.clarifai.api.WorkflowVersion.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrix.prototype.setConceptIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.WorkflowVersion.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.WorkflowVersion.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional string app_id = 8; + * @return {string} + */ +proto.clarifai.api.WorkflowVersion.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ConfusionMatrix} returns this + * @return {!proto.clarifai.api.WorkflowVersion} returns this */ -proto.clarifai.api.ConfusionMatrix.prototype.addConceptIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.WorkflowVersion.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ConfusionMatrix} returns this + * optional string user_id = 9; + * @return {string} */ -proto.clarifai.api.ConfusionMatrix.prototype.clearConceptIdsList = function() { - return this.setConceptIdsList([]); +proto.clarifai.api.WorkflowVersion.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this + */ +proto.clarifai.api.WorkflowVersion.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); +}; + + +/** + * optional string description = 10; + * @return {string} + */ +proto.clarifai.api.WorkflowVersion.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this + */ +proto.clarifai.api.WorkflowVersion.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); +}; + + +/** + * optional string license = 11; + * @return {string} + */ +proto.clarifai.api.WorkflowVersion.prototype.getLicense = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.WorkflowVersion} returns this + */ +proto.clarifai.api.WorkflowVersion.prototype.setLicense = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); }; @@ -23858,7 +42886,7 @@ proto.clarifai.api.ConfusionMatrix.prototype.clearConceptIdsList = function() { * @private {!Array} * @const */ -proto.clarifai.api.ROC.repeatedFields_ = [1,2,3,4,5]; +proto.clarifai.api.WorkflowNode.repeatedFields_ = [3]; @@ -23875,8 +42903,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ROC.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ROC.toObject(opt_includeInstance, this); +proto.clarifai.api.WorkflowNode.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.WorkflowNode.toObject(opt_includeInstance, this); }; @@ -23885,17 +42913,18 @@ proto.clarifai.api.ROC.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ROC} msg The msg instance to transform. + * @param {!proto.clarifai.api.WorkflowNode} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ROC.toObject = function(includeInstance, msg) { +proto.clarifai.api.WorkflowNode.toObject = function(includeInstance, msg) { var f, obj = { - fprList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f, - tprList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f, - thresholdsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 3)) == null ? undefined : f, - fprPerImageList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 4)) == null ? undefined : f, - fprPerObjectList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 5)) == null ? undefined : f + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f), + nodeInputsList: jspb.Message.toObjectList(msg.getNodeInputsList(), + proto.clarifai.api.NodeInput.toObject, includeInstance), + suppressOutput: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + outputInfoOverride: (f = msg.getOutputInfoOverride()) && proto.clarifai.api.OutputInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -23909,23 +42938,23 @@ proto.clarifai.api.ROC.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ROC} + * @return {!proto.clarifai.api.WorkflowNode} */ -proto.clarifai.api.ROC.deserializeBinary = function(bytes) { +proto.clarifai.api.WorkflowNode.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ROC; - return proto.clarifai.api.ROC.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.WorkflowNode; + return proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ROC} msg The message object to deserialize into. + * @param {!proto.clarifai.api.WorkflowNode} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ROC} + * @return {!proto.clarifai.api.WorkflowNode} */ -proto.clarifai.api.ROC.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -23933,34 +42962,27 @@ proto.clarifai.api.ROC.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addFpr(values[i]); - } + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addTpr(values[i]); - } + var value = new proto.clarifai.api.Model; + reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); + msg.setModel(value); break; case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addThresholds(values[i]); - } + var value = new proto.clarifai.api.NodeInput; + reader.readMessage(value,proto.clarifai.api.NodeInput.deserializeBinaryFromReader); + msg.addNodeInputs(value); break; case 4: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addFprPerImage(values[i]); - } + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuppressOutput(value); break; case 5: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addFprPerObject(values[i]); - } + var value = new proto.clarifai.api.OutputInfo; + reader.readMessage(value,proto.clarifai.api.OutputInfo.deserializeBinaryFromReader); + msg.setOutputInfoOverride(value); break; default: reader.skipField(); @@ -23975,9 +42997,9 @@ proto.clarifai.api.ROC.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ROC.prototype.serializeBinary = function() { +proto.clarifai.api.WorkflowNode.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ROC.serializeBinaryToWriter(this, writer); + proto.clarifai.api.WorkflowNode.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -23985,243 +43007,202 @@ proto.clarifai.api.ROC.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ROC} message + * @param {!proto.clarifai.api.WorkflowNode} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ROC.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.WorkflowNode.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFprList(); + f = message.getId(); if (f.length > 0) { - writer.writePackedFloat( + writer.writeString( 1, f ); } - f = message.getTprList(); - if (f.length > 0) { - writer.writePackedFloat( + f = message.getModel(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto.clarifai.api.Model.serializeBinaryToWriter ); } - f = message.getThresholdsList(); + f = message.getNodeInputsList(); if (f.length > 0) { - writer.writePackedFloat( + writer.writeRepeatedMessage( 3, - f + f, + proto.clarifai.api.NodeInput.serializeBinaryToWriter ); } - f = message.getFprPerImageList(); - if (f.length > 0) { - writer.writePackedFloat( + f = message.getSuppressOutput(); + if (f) { + writer.writeBool( 4, f ); } - f = message.getFprPerObjectList(); - if (f.length > 0) { - writer.writePackedFloat( + f = message.getOutputInfoOverride(); + if (f != null) { + writer.writeMessage( 5, - f + f, + proto.clarifai.api.OutputInfo.serializeBinaryToWriter ); } }; /** - * repeated float fpr = 1; - * @return {!Array} - */ -proto.clarifai.api.ROC.prototype.getFprList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.ROC} returns this - */ -proto.clarifai.api.ROC.prototype.setFprList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ROC} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.ROC.prototype.addFpr = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +proto.clarifai.api.WorkflowNode.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ROC} returns this + * @param {string} value + * @return {!proto.clarifai.api.WorkflowNode} returns this */ -proto.clarifai.api.ROC.prototype.clearFprList = function() { - return this.setFprList([]); +proto.clarifai.api.WorkflowNode.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated float tpr = 2; - * @return {!Array} + * optional Model model = 2; + * @return {?proto.clarifai.api.Model} */ -proto.clarifai.api.ROC.prototype.getTprList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); +proto.clarifai.api.WorkflowNode.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ROC} returns this - */ -proto.clarifai.api.ROC.prototype.setTprList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.WorkflowNode} returns this +*/ +proto.clarifai.api.WorkflowNode.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ROC} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowNode} returns this */ -proto.clarifai.api.ROC.prototype.addTpr = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.WorkflowNode.prototype.clearModel = function() { + return this.setModel(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ROC} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ROC.prototype.clearTprList = function() { - return this.setTprList([]); +proto.clarifai.api.WorkflowNode.prototype.hasModel = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * repeated float thresholds = 3; - * @return {!Array} + * repeated NodeInput node_inputs = 3; + * @return {!Array} */ -proto.clarifai.api.ROC.prototype.getThresholdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 3)); +proto.clarifai.api.WorkflowNode.prototype.getNodeInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.NodeInput, 3)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ROC} returns this - */ -proto.clarifai.api.ROC.prototype.setThresholdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.WorkflowNode} returns this +*/ +proto.clarifai.api.WorkflowNode.prototype.setNodeInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {number} value + * @param {!proto.clarifai.api.NodeInput=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ROC} returns this + * @return {!proto.clarifai.api.NodeInput} */ -proto.clarifai.api.ROC.prototype.addThresholds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.WorkflowNode.prototype.addNodeInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.NodeInput, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ROC} returns this - */ -proto.clarifai.api.ROC.prototype.clearThresholdsList = function() { - return this.setThresholdsList([]); -}; - - -/** - * repeated float fpr_per_image = 4; - * @return {!Array} - */ -proto.clarifai.api.ROC.prototype.getFprPerImageList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.ROC} returns this + * @return {!proto.clarifai.api.WorkflowNode} returns this */ -proto.clarifai.api.ROC.prototype.setFprPerImageList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.WorkflowNode.prototype.clearNodeInputsList = function() { + return this.setNodeInputsList([]); }; /** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ROC} returns this + * optional bool suppress_output = 4; + * @return {boolean} */ -proto.clarifai.api.ROC.prototype.addFprPerImage = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.WorkflowNode.prototype.getSuppressOutput = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ROC} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.WorkflowNode} returns this */ -proto.clarifai.api.ROC.prototype.clearFprPerImageList = function() { - return this.setFprPerImageList([]); +proto.clarifai.api.WorkflowNode.prototype.setSuppressOutput = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** - * repeated float fpr_per_object = 5; - * @return {!Array} + * optional OutputInfo output_info_override = 5; + * @return {?proto.clarifai.api.OutputInfo} */ -proto.clarifai.api.ROC.prototype.getFprPerObjectList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 5)); +proto.clarifai.api.WorkflowNode.prototype.getOutputInfoOverride = function() { + return /** @type{?proto.clarifai.api.OutputInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.OutputInfo, 5)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ROC} returns this - */ -proto.clarifai.api.ROC.prototype.setFprPerObjectList = function(value) { - return jspb.Message.setField(this, 5, value || []); + * @param {?proto.clarifai.api.OutputInfo|undefined} value + * @return {!proto.clarifai.api.WorkflowNode} returns this +*/ +proto.clarifai.api.WorkflowNode.prototype.setOutputInfoOverride = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ROC} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowNode} returns this */ -proto.clarifai.api.ROC.prototype.addFprPerObject = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +proto.clarifai.api.WorkflowNode.prototype.clearOutputInfoOverride = function() { + return this.setOutputInfoOverride(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ROC} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ROC.prototype.clearFprPerObjectList = function() { - return this.setFprPerObjectList([]); +proto.clarifai.api.WorkflowNode.prototype.hasOutputInfoOverride = function() { + return jspb.Message.getField(this, 5) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PrecisionRecallCurve.repeatedFields_ = [1,2,3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -24237,8 +43218,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PrecisionRecallCurve.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PrecisionRecallCurve.toObject(opt_includeInstance, this); +proto.clarifai.api.NodeInput.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.NodeInput.toObject(opt_includeInstance, this); }; @@ -24247,15 +43228,13 @@ proto.clarifai.api.PrecisionRecallCurve.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PrecisionRecallCurve} msg The msg instance to transform. + * @param {!proto.clarifai.api.NodeInput} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PrecisionRecallCurve.toObject = function(includeInstance, msg) { +proto.clarifai.api.NodeInput.toObject = function(includeInstance, msg) { var f, obj = { - recallList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : f, - precisionList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f, - thresholdsList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 3)) == null ? undefined : f + nodeId: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -24269,23 +43248,23 @@ proto.clarifai.api.PrecisionRecallCurve.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PrecisionRecallCurve} + * @return {!proto.clarifai.api.NodeInput} */ -proto.clarifai.api.PrecisionRecallCurve.deserializeBinary = function(bytes) { +proto.clarifai.api.NodeInput.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PrecisionRecallCurve; - return proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.NodeInput; + return proto.clarifai.api.NodeInput.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PrecisionRecallCurve} msg The message object to deserialize into. + * @param {!proto.clarifai.api.NodeInput} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PrecisionRecallCurve} + * @return {!proto.clarifai.api.NodeInput} */ -proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.NodeInput.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24293,22 +43272,8 @@ proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addRecall(values[i]); - } - break; - case 2: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addPrecision(values[i]); - } - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]); - for (var i = 0; i < values.length; i++) { - msg.addThresholds(values[i]); - } + var value = /** @type {string} */ (reader.readString()); + msg.setNodeId(value); break; default: reader.skipField(); @@ -24323,9 +43288,9 @@ proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PrecisionRecallCurve.prototype.serializeBinary = function() { +proto.clarifai.api.NodeInput.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PrecisionRecallCurve.serializeBinaryToWriter(this, writer); + proto.clarifai.api.NodeInput.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24333,147 +43298,47 @@ proto.clarifai.api.PrecisionRecallCurve.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PrecisionRecallCurve} message + * @param {!proto.clarifai.api.NodeInput} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PrecisionRecallCurve.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.NodeInput.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getRecallList(); + f = message.getNodeId(); if (f.length > 0) { - writer.writePackedFloat( + writer.writeString( 1, f ); } - f = message.getPrecisionList(); - if (f.length > 0) { - writer.writePackedFloat( - 2, - f - ); - } - f = message.getThresholdsList(); - if (f.length > 0) { - writer.writePackedFloat( - 3, - f - ); - } -}; - - -/** - * repeated float recall = 1; - * @return {!Array} - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.getRecallList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.setRecallList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.addRecall = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.clearRecallList = function() { - return this.setRecallList([]); -}; - - -/** - * repeated float precision = 2; - * @return {!Array} - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.getPrecisionList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.setPrecisionList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.addPrecision = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.clearPrecisionList = function() { - return this.setPrecisionList([]); }; /** - * repeated float thresholds = 3; - * @return {!Array} + * optional string node_id = 1; + * @return {string} */ -proto.clarifai.api.PrecisionRecallCurve.prototype.getThresholdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedFloatingPointField(this, 3)); +proto.clarifai.api.NodeInput.prototype.getNodeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this + * @param {string} value + * @return {!proto.clarifai.api.NodeInput} returns this */ -proto.clarifai.api.PrecisionRecallCurve.prototype.setThresholdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.NodeInput.prototype.setNodeId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; -/** - * @param {number} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this - */ -proto.clarifai.api.PrecisionRecallCurve.prototype.addThresholds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PrecisionRecallCurve} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.PrecisionRecallCurve.prototype.clearThresholdsList = function() { - return this.setThresholdsList([]); -}; - - +proto.clarifai.api.WorkflowResult.repeatedFields_ = [6]; @@ -24490,8 +43355,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.BinaryMetrics.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.BinaryMetrics.toObject(opt_includeInstance, this); +proto.clarifai.api.WorkflowResult.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.WorkflowResult.toObject(opt_includeInstance, this); }; @@ -24500,25 +43365,20 @@ proto.clarifai.api.BinaryMetrics.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.BinaryMetrics} msg The msg instance to transform. + * @param {!proto.clarifai.api.WorkflowResult} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.BinaryMetrics.toObject = function(includeInstance, msg) { +proto.clarifai.api.WorkflowResult.toObject = function(includeInstance, msg) { var f, obj = { - numPos: jspb.Message.getFieldWithDefault(msg, 1, 0), - numNeg: jspb.Message.getFieldWithDefault(msg, 2, 0), - numTot: jspb.Message.getFieldWithDefault(msg, 3, 0), - rocAuc: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - f1: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f), - rocCurve: (f = msg.getRocCurve()) && proto.clarifai.api.ROC.toObject(includeInstance, f), - precisionRecallCurve: (f = msg.getPrecisionRecallCurve()) && proto.clarifai.api.PrecisionRecallCurve.toObject(includeInstance, f), - avgPrecision: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0), - areaName: jspb.Message.getFieldWithDefault(msg, 10, ""), - areaMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), - areaMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0), - iou: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f), + input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), + outputsList: jspb.Message.toObjectList(msg.getOutputsList(), + proto.clarifai.api.Output.toObject, includeInstance), + suppressOutput: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -24532,23 +43392,23 @@ proto.clarifai.api.BinaryMetrics.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.BinaryMetrics} + * @return {!proto.clarifai.api.WorkflowResult} */ -proto.clarifai.api.BinaryMetrics.deserializeBinary = function(bytes) { +proto.clarifai.api.WorkflowResult.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.BinaryMetrics; - return proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.WorkflowResult; + return proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.BinaryMetrics} msg The message object to deserialize into. + * @param {!proto.clarifai.api.WorkflowResult} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.BinaryMetrics} + * @return {!proto.clarifai.api.WorkflowResult} */ -proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24556,59 +43416,37 @@ proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader = function(msg, rea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNumPos(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNumNeg(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNumTot(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setRocAuc(value); + var value = new proto.clarifai.api.Model; + reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); + msg.setModel(value); break; case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setF1(value); + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.setInput(value); break; case 6: - var value = new proto.clarifai.api.Concept; - reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); - msg.setConcept(value); + var value = new proto.clarifai.api.Output; + reader.readMessage(value,proto.clarifai.api.Output.deserializeBinaryFromReader); + msg.addOutputs(value); break; case 7: - var value = new proto.clarifai.api.ROC; - reader.readMessage(value,proto.clarifai.api.ROC.deserializeBinaryFromReader); - msg.setRocCurve(value); - break; - case 8: - var value = new proto.clarifai.api.PrecisionRecallCurve; - reader.readMessage(value,proto.clarifai.api.PrecisionRecallCurve.deserializeBinaryFromReader); - msg.setPrecisionRecallCurve(value); - break; - case 9: - var value = /** @type {number} */ (reader.readFloat()); - msg.setAvgPrecision(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setAreaName(value); - break; - case 11: - var value = /** @type {number} */ (reader.readDouble()); - msg.setAreaMin(value); - break; - case 12: - var value = /** @type {number} */ (reader.readDouble()); - msg.setAreaMax(value); - break; - case 13: - var value = /** @type {number} */ (reader.readFloat()); - msg.setIou(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSuppressOutput(value); break; default: reader.skipField(); @@ -24623,9 +43461,9 @@ proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.BinaryMetrics.prototype.serializeBinary = function() { +proto.clarifai.api.WorkflowResult.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter(this, writer); + proto.clarifai.api.WorkflowResult.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24633,103 +43471,63 @@ proto.clarifai.api.BinaryMetrics.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.BinaryMetrics} message + * @param {!proto.clarifai.api.WorkflowResult} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.WorkflowResult.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNumPos(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getNumNeg(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getNumTot(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getRocAuc(); - if (f !== 0.0) { - writer.writeFloat( - 4, - f - ); - } - f = message.getF1(); - if (f !== 0.0) { - writer.writeFloat( - 5, + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, f ); } - f = message.getConcept(); + f = message.getStatus(); if (f != null) { writer.writeMessage( - 6, + 2, f, - proto.clarifai.api.Concept.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getRocCurve(); + f = message.getCreatedAt(); if (f != null) { writer.writeMessage( - 7, + 3, f, - proto.clarifai.api.ROC.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getPrecisionRecallCurve(); + f = message.getModel(); if (f != null) { writer.writeMessage( - 8, + 4, f, - proto.clarifai.api.PrecisionRecallCurve.serializeBinaryToWriter + proto.clarifai.api.Model.serializeBinaryToWriter ); } - f = message.getAvgPrecision(); - if (f !== 0.0) { - writer.writeFloat( - 9, - f + f = message.getInput(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.clarifai.api.Input.serializeBinaryToWriter ); } - f = message.getAreaName(); + f = message.getOutputsList(); if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getAreaMin(); - if (f !== 0.0) { - writer.writeDouble( - 11, - f - ); - } - f = message.getAreaMax(); - if (f !== 0.0) { - writer.writeDouble( - 12, - f + writer.writeRepeatedMessage( + 6, + f, + proto.clarifai.api.Output.serializeBinaryToWriter ); } - f = message.getIou(); - if (f !== 0.0) { - writer.writeFloat( - 13, + f = message.getSuppressOutput(); + if (f) { + writer.writeBool( + 7, f ); } @@ -24737,120 +43535,48 @@ proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter = function(message, wri /** - * optional uint32 num_pos = 1; - * @return {number} - */ -proto.clarifai.api.BinaryMetrics.prototype.getNumPos = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this - */ -proto.clarifai.api.BinaryMetrics.prototype.setNumPos = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 num_neg = 2; - * @return {number} - */ -proto.clarifai.api.BinaryMetrics.prototype.getNumNeg = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this - */ -proto.clarifai.api.BinaryMetrics.prototype.setNumNeg = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 num_tot = 3; - * @return {number} - */ -proto.clarifai.api.BinaryMetrics.prototype.getNumTot = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this - */ -proto.clarifai.api.BinaryMetrics.prototype.setNumTot = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional float roc_auc = 4; - * @return {number} - */ -proto.clarifai.api.BinaryMetrics.prototype.getRocAuc = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this - */ -proto.clarifai.api.BinaryMetrics.prototype.setRocAuc = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); -}; - - -/** - * optional float f1 = 5; - * @return {number} + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.BinaryMetrics.prototype.getF1 = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +proto.clarifai.api.WorkflowResult.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @param {string} value + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.setF1 = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); +proto.clarifai.api.WorkflowResult.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional Concept concept = 6; - * @return {?proto.clarifai.api.Concept} + * optional status.Status status = 2; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.BinaryMetrics.prototype.getConcept = function() { - return /** @type{?proto.clarifai.api.Concept} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 6)); +proto.clarifai.api.WorkflowResult.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2)); }; /** - * @param {?proto.clarifai.api.Concept|undefined} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.setConcept = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.WorkflowResult.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.clearConcept = function() { - return this.setConcept(undefined); +proto.clarifai.api.WorkflowResult.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -24858,36 +43584,36 @@ proto.clarifai.api.BinaryMetrics.prototype.clearConcept = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.BinaryMetrics.prototype.hasConcept = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.WorkflowResult.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional ROC roc_curve = 7; - * @return {?proto.clarifai.api.ROC} + * optional google.protobuf.Timestamp created_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.BinaryMetrics.prototype.getRocCurve = function() { - return /** @type{?proto.clarifai.api.ROC} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ROC, 7)); +proto.clarifai.api.WorkflowResult.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * @param {?proto.clarifai.api.ROC|undefined} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.setRocCurve = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.WorkflowResult.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.clearRocCurve = function() { - return this.setRocCurve(undefined); +proto.clarifai.api.WorkflowResult.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -24895,36 +43621,36 @@ proto.clarifai.api.BinaryMetrics.prototype.clearRocCurve = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.BinaryMetrics.prototype.hasRocCurve = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.WorkflowResult.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional PrecisionRecallCurve precision_recall_curve = 8; - * @return {?proto.clarifai.api.PrecisionRecallCurve} + * optional Model model = 4; + * @return {?proto.clarifai.api.Model} */ -proto.clarifai.api.BinaryMetrics.prototype.getPrecisionRecallCurve = function() { - return /** @type{?proto.clarifai.api.PrecisionRecallCurve} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.PrecisionRecallCurve, 8)); +proto.clarifai.api.WorkflowResult.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 4)); }; /** - * @param {?proto.clarifai.api.PrecisionRecallCurve|undefined} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.setPrecisionRecallCurve = function(value) { - return jspb.Message.setWrapperField(this, 8, value); +proto.clarifai.api.WorkflowResult.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.clearPrecisionRecallCurve = function() { - return this.setPrecisionRecallCurve(undefined); +proto.clarifai.api.WorkflowResult.prototype.clearModel = function() { + return this.setModel(undefined); }; @@ -24932,98 +43658,101 @@ proto.clarifai.api.BinaryMetrics.prototype.clearPrecisionRecallCurve = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.BinaryMetrics.prototype.hasPrecisionRecallCurve = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.WorkflowResult.prototype.hasModel = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional float avg_precision = 9; - * @return {number} + * optional Input input = 5; + * @return {?proto.clarifai.api.Input} */ -proto.clarifai.api.BinaryMetrics.prototype.getAvgPrecision = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0)); +proto.clarifai.api.WorkflowResult.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this - */ -proto.clarifai.api.BinaryMetrics.prototype.setAvgPrecision = function(value) { - return jspb.Message.setProto3FloatField(this, 9, value); + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.WorkflowResult} returns this +*/ +proto.clarifai.api.WorkflowResult.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * optional string area_name = 10; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.getAreaName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.clarifai.api.WorkflowResult.prototype.clearInput = function() { + return this.setInput(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.BinaryMetrics.prototype.setAreaName = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.clarifai.api.WorkflowResult.prototype.hasInput = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional double area_min = 11; - * @return {number} + * repeated Output outputs = 6; + * @return {!Array} */ -proto.clarifai.api.BinaryMetrics.prototype.getAreaMin = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)); +proto.clarifai.api.WorkflowResult.prototype.getOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Output, 6)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this - */ -proto.clarifai.api.BinaryMetrics.prototype.setAreaMin = function(value) { - return jspb.Message.setProto3FloatField(this, 11, value); + * @param {!Array} value + * @return {!proto.clarifai.api.WorkflowResult} returns this +*/ +proto.clarifai.api.WorkflowResult.prototype.setOutputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * optional double area_max = 12; - * @return {number} + * @param {!proto.clarifai.api.Output=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Output} */ -proto.clarifai.api.BinaryMetrics.prototype.getAreaMax = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0)); +proto.clarifai.api.WorkflowResult.prototype.addOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.Output, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.setAreaMax = function(value) { - return jspb.Message.setProto3FloatField(this, 12, value); +proto.clarifai.api.WorkflowResult.prototype.clearOutputsList = function() { + return this.setOutputsList([]); }; /** - * optional float iou = 13; - * @return {number} + * optional bool suppress_output = 7; + * @return {boolean} */ -proto.clarifai.api.BinaryMetrics.prototype.getIou = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0)); +proto.clarifai.api.WorkflowResult.prototype.getSuppressOutput = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.BinaryMetrics} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.WorkflowResult} returns this */ -proto.clarifai.api.BinaryMetrics.prototype.setIou = function(value) { - return jspb.Message.setProto3FloatField(this, 13, value); +proto.clarifai.api.WorkflowResult.prototype.setSuppressOutput = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); }; @@ -25043,8 +43772,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TrackerMetrics.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TrackerMetrics.toObject(opt_includeInstance, this); +proto.clarifai.api.WorkflowState.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.WorkflowState.toObject(opt_includeInstance, this); }; @@ -25053,18 +43782,13 @@ proto.clarifai.api.TrackerMetrics.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TrackerMetrics} msg The msg instance to transform. + * @param {!proto.clarifai.api.WorkflowState} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TrackerMetrics.toObject = function(includeInstance, msg) { +proto.clarifai.api.WorkflowState.toObject = function(includeInstance, msg) { var f, obj = { - motMota: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - motNumSwitches: jspb.Message.getFieldWithDefault(msg, 2, 0), - morseFrag: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - avgPrecision: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - aiid: jspb.Message.getFieldWithDefault(msg, 5, ""), - uniqueSwitchRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0) + id: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -25078,23 +43802,23 @@ proto.clarifai.api.TrackerMetrics.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TrackerMetrics} + * @return {!proto.clarifai.api.WorkflowState} */ -proto.clarifai.api.TrackerMetrics.deserializeBinary = function(bytes) { +proto.clarifai.api.WorkflowState.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TrackerMetrics; - return proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.WorkflowState; + return proto.clarifai.api.WorkflowState.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TrackerMetrics} msg The message object to deserialize into. + * @param {!proto.clarifai.api.WorkflowState} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TrackerMetrics} + * @return {!proto.clarifai.api.WorkflowState} */ -proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.WorkflowState.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25102,28 +43826,8 @@ proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader = function(msg, re var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMotMota(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMotNumSwitches(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMorseFrag(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setAvgPrecision(value); - break; - case 5: var value = /** @type {string} */ (reader.readString()); - msg.setAiid(value); - break; - case 6: - var value = /** @type {number} */ (reader.readFloat()); - msg.setUniqueSwitchRate(value); + msg.setId(value); break; default: reader.skipField(); @@ -25138,9 +43842,9 @@ proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TrackerMetrics.prototype.serializeBinary = function() { +proto.clarifai.api.WorkflowState.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TrackerMetrics.serializeBinaryToWriter(this, writer); + proto.clarifai.api.WorkflowState.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25148,162 +43852,37 @@ proto.clarifai.api.TrackerMetrics.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TrackerMetrics} message + * @param {!proto.clarifai.api.WorkflowState} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TrackerMetrics.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.WorkflowState.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMotMota(); - if (f !== 0.0) { - writer.writeFloat( - 1, - f - ); - } - f = message.getMotNumSwitches(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getMorseFrag(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getAvgPrecision(); - if (f !== 0.0) { - writer.writeFloat( - 4, - f - ); - } - f = message.getAiid(); + f = message.getId(); if (f.length > 0) { writer.writeString( - 5, - f - ); - } - f = message.getUniqueSwitchRate(); - if (f !== 0.0) { - writer.writeFloat( - 6, + 1, f ); } }; -/** - * optional float mot_mota = 1; - * @return {number} - */ -proto.clarifai.api.TrackerMetrics.prototype.getMotMota = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.TrackerMetrics} returns this - */ -proto.clarifai.api.TrackerMetrics.prototype.setMotMota = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); -}; - - -/** - * optional int32 mot_num_switches = 2; - * @return {number} - */ -proto.clarifai.api.TrackerMetrics.prototype.getMotNumSwitches = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.TrackerMetrics} returns this - */ -proto.clarifai.api.TrackerMetrics.prototype.setMotNumSwitches = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional float morse_frag = 3; - * @return {number} - */ -proto.clarifai.api.TrackerMetrics.prototype.getMorseFrag = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.TrackerMetrics} returns this - */ -proto.clarifai.api.TrackerMetrics.prototype.setMorseFrag = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; - - -/** - * optional float avg_precision = 4; - * @return {number} - */ -proto.clarifai.api.TrackerMetrics.prototype.getAvgPrecision = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.TrackerMetrics} returns this - */ -proto.clarifai.api.TrackerMetrics.prototype.setAvgPrecision = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); -}; - - -/** - * optional string aiid = 5; - * @return {string} - */ -proto.clarifai.api.TrackerMetrics.prototype.getAiid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.TrackerMetrics} returns this - */ -proto.clarifai.api.TrackerMetrics.prototype.setAiid = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional float unique_switch_rate = 6; - * @return {number} +/** + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.TrackerMetrics.prototype.getUniqueSwitchRate = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +proto.clarifai.api.WorkflowState.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TrackerMetrics} returns this + * @param {string} value + * @return {!proto.clarifai.api.WorkflowState} returns this */ -proto.clarifai.api.TrackerMetrics.prototype.setUniqueSwitchRate = function(value) { - return jspb.Message.setProto3FloatField(this, 6, value); +proto.clarifai.api.WorkflowState.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -25313,7 +43892,7 @@ proto.clarifai.api.TrackerMetrics.prototype.setUniqueSwitchRate = function(value * @private {!Array} * @const */ -proto.clarifai.api.EvalTestSetEntry.repeatedFields_ = [3,4]; +proto.clarifai.api.AppDuplication.repeatedFields_ = [9]; @@ -25330,8 +43909,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.EvalTestSetEntry.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.EvalTestSetEntry.toObject(opt_includeInstance, this); +proto.clarifai.api.AppDuplication.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AppDuplication.toObject(opt_includeInstance, this); }; @@ -25340,20 +43919,22 @@ proto.clarifai.api.EvalTestSetEntry.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.EvalTestSetEntry} msg The msg instance to transform. + * @param {!proto.clarifai.api.AppDuplication} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.EvalTestSetEntry.toObject = function(includeInstance, msg) { +proto.clarifai.api.AppDuplication.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - url: jspb.Message.getFieldWithDefault(msg, 2, ""), - input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), - predictedConceptsList: jspb.Message.toObjectList(msg.getPredictedConceptsList(), - proto.clarifai.api.Concept.toObject, includeInstance), - groundTruthConceptsList: jspb.Message.toObjectList(msg.getGroundTruthConceptsList(), - proto.clarifai.api.Concept.toObject, includeInstance), - annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f) + newAppId: jspb.Message.getFieldWithDefault(msg, 2, ""), + newAppName: jspb.Message.getFieldWithDefault(msg, 3, ""), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + lastModifiedAt: (f = msg.getLastModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + filter: (f = msg.getFilter()) && proto.clarifai.api.AppDuplicationFilters.toObject(includeInstance, f), + existingAppId: jspb.Message.getFieldWithDefault(msg, 8, ""), + progressList: jspb.Message.toObjectList(msg.getProgressList(), + proto.clarifai.api.AppCopyProgress.toObject, includeInstance) }; if (includeInstance) { @@ -25367,23 +43948,23 @@ proto.clarifai.api.EvalTestSetEntry.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.EvalTestSetEntry} + * @return {!proto.clarifai.api.AppDuplication} */ -proto.clarifai.api.EvalTestSetEntry.deserializeBinary = function(bytes) { +proto.clarifai.api.AppDuplication.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.EvalTestSetEntry; - return proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.AppDuplication; + return proto.clarifai.api.AppDuplication.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.EvalTestSetEntry} msg The message object to deserialize into. + * @param {!proto.clarifai.api.AppDuplication} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.EvalTestSetEntry} + * @return {!proto.clarifai.api.AppDuplication} */ -proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25396,27 +43977,40 @@ proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function(msg, break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); - break; - case 6: - var value = new proto.clarifai.api.Input; - reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); - msg.setInput(value); + msg.setNewAppId(value); break; case 3: - var value = new proto.clarifai.api.Concept; - reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); - msg.addPredictedConcepts(value); + var value = /** @type {string} */ (reader.readString()); + msg.setNewAppName(value); break; case 4: - var value = new proto.clarifai.api.Concept; - reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); - msg.addGroundTruthConcepts(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 5: - var value = new proto.clarifai.api.Annotation; - reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); - msg.setAnnotation(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setLastModifiedAt(value); + break; + case 7: + var value = new proto.clarifai.api.AppDuplicationFilters; + reader.readMessage(value,proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader); + msg.setFilter(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setExistingAppId(value); + break; + case 9: + var value = new proto.clarifai.api.AppCopyProgress; + reader.readMessage(value,proto.clarifai.api.AppCopyProgress.deserializeBinaryFromReader); + msg.addProgress(value); break; default: reader.skipField(); @@ -25431,9 +44025,9 @@ proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.EvalTestSetEntry.prototype.serializeBinary = function() { +proto.clarifai.api.AppDuplication.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter(this, writer); + proto.clarifai.api.AppDuplication.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25441,11 +44035,11 @@ proto.clarifai.api.EvalTestSetEntry.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.EvalTestSetEntry} message + * @param {!proto.clarifai.api.AppDuplication} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -25454,43 +44048,65 @@ proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function(message, f ); } - f = message.getUrl(); + f = message.getNewAppId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getInput(); + f = message.getNewAppName(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getStatus(); if (f != null) { writer.writeMessage( - 6, + 4, f, - proto.clarifai.api.Input.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getPredictedConceptsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 5, f, - proto.clarifai.api.Concept.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getGroundTruthConceptsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, + f = message.getLastModifiedAt(); + if (f != null) { + writer.writeMessage( + 6, f, - proto.clarifai.api.Concept.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getAnnotation(); + f = message.getFilter(); if (f != null) { writer.writeMessage( - 5, + 7, f, - proto.clarifai.api.Annotation.serializeBinaryToWriter + proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter + ); + } + f = message.getExistingAppId(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getProgressList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 9, + f, + proto.clarifai.api.AppCopyProgress.serializeBinaryToWriter ); } }; @@ -25500,176 +44116,118 @@ proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter = function(message, * optional string id = 1; * @return {string} */ -proto.clarifai.api.EvalTestSetEntry.prototype.getId = function() { +proto.clarifai.api.AppDuplication.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.EvalTestSetEntry.prototype.setId = function(value) { +proto.clarifai.api.AppDuplication.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string url = 2; + * optional string new_app_id = 2; * @return {string} */ -proto.clarifai.api.EvalTestSetEntry.prototype.getUrl = function() { +proto.clarifai.api.AppDuplication.prototype.getNewAppId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.EvalTestSetEntry.prototype.setUrl = function(value) { +proto.clarifai.api.AppDuplication.prototype.setNewAppId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional Input input = 6; - * @return {?proto.clarifai.api.Input} - */ -proto.clarifai.api.EvalTestSetEntry.prototype.getInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 6)); -}; - - -/** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this -*/ -proto.clarifai.api.EvalTestSetEntry.prototype.setInput = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this - */ -proto.clarifai.api.EvalTestSetEntry.prototype.clearInput = function() { - return this.setInput(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.EvalTestSetEntry.prototype.hasInput = function() { - return jspb.Message.getField(this, 6) != null; -}; - - -/** - * repeated Concept predicted_concepts = 3; - * @return {!Array} - */ -proto.clarifai.api.EvalTestSetEntry.prototype.getPredictedConceptsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this -*/ -proto.clarifai.api.EvalTestSetEntry.prototype.setPredictedConceptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.Concept=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Concept} + * optional string new_app_name = 3; + * @return {string} */ -proto.clarifai.api.EvalTestSetEntry.prototype.addPredictedConcepts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Concept, opt_index); +proto.clarifai.api.AppDuplication.prototype.getNewAppName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + * @param {string} value + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.EvalTestSetEntry.prototype.clearPredictedConceptsList = function() { - return this.setPredictedConceptsList([]); +proto.clarifai.api.AppDuplication.prototype.setNewAppName = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * repeated Concept ground_truth_concepts = 4; - * @return {!Array} + * optional status.Status status = 4; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.EvalTestSetEntry.prototype.getGroundTruthConceptsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 4)); +proto.clarifai.api.AppDuplication.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 4)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.EvalTestSetEntry.prototype.setGroundTruthConceptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); +proto.clarifai.api.AppDuplication.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * @param {!proto.clarifai.api.Concept=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Concept} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.EvalTestSetEntry.prototype.addGroundTruthConcepts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Concept, opt_index); +proto.clarifai.api.AppDuplication.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.EvalTestSetEntry.prototype.clearGroundTruthConceptsList = function() { - return this.setGroundTruthConceptsList([]); +proto.clarifai.api.AppDuplication.prototype.hasStatus = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional Annotation annotation = 5; - * @return {?proto.clarifai.api.Annotation} + * optional google.protobuf.Timestamp created_at = 5; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.EvalTestSetEntry.prototype.getAnnotation = function() { - return /** @type{?proto.clarifai.api.Annotation} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 5)); +proto.clarifai.api.AppDuplication.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** - * @param {?proto.clarifai.api.Annotation|undefined} value - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.EvalTestSetEntry.prototype.setAnnotation = function(value) { +proto.clarifai.api.AppDuplication.prototype.setCreatedAt = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.EvalTestSetEntry} returns this + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.EvalTestSetEntry.prototype.clearAnnotation = function() { - return this.setAnnotation(undefined); +proto.clarifai.api.AppDuplication.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -25677,299 +44235,142 @@ proto.clarifai.api.EvalTestSetEntry.prototype.clearAnnotation = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.EvalTestSetEntry.prototype.hasAnnotation = function() { +proto.clarifai.api.AppDuplication.prototype.hasCreatedAt = function() { return jspb.Message.getField(this, 5) != null; }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.LOPQEvalResult.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.LOPQEvalResult.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.LOPQEvalResult} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.LOPQEvalResult.toObject = function(includeInstance, msg) { - var f, obj = { - k: jspb.Message.getFieldWithDefault(msg, 1, 0), - recallVsBruteForce: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - kendallTauVsBruteForce: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - mostFrequentCodePercent: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - lopqNdcg: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - bruteForceNdcg: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.LOPQEvalResult} - */ -proto.clarifai.api.LOPQEvalResult.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.LOPQEvalResult; - return proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.LOPQEvalResult} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.LOPQEvalResult} - */ -proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setK(value); - break; - case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setRecallVsBruteForce(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setKendallTauVsBruteForce(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMostFrequentCodePercent(value); - break; - case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setLopqNdcg(value); - break; - case 6: - var value = /** @type {number} */ (reader.readFloat()); - msg.setBruteForceNdcg(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional google.protobuf.Timestamp last_modified_at = 6; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.LOPQEvalResult.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.AppDuplication.prototype.getLastModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.LOPQEvalResult} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getK(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getRecallVsBruteForce(); - if (f !== 0.0) { - writer.writeFloat( - 2, - f - ); - } - f = message.getKendallTauVsBruteForce(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getMostFrequentCodePercent(); - if (f !== 0.0) { - writer.writeFloat( - 4, - f - ); - } - f = message.getLopqNdcg(); - if (f !== 0.0) { - writer.writeFloat( - 5, - f - ); - } - f = message.getBruteForceNdcg(); - if (f !== 0.0) { - writer.writeFloat( - 6, - f - ); - } + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.AppDuplication} returns this +*/ +proto.clarifai.api.AppDuplication.prototype.setLastModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * optional int32 k = 1; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.LOPQEvalResult.prototype.getK = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.AppDuplication.prototype.clearLastModifiedAt = function() { + return this.setLastModifiedAt(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.LOPQEvalResult} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.LOPQEvalResult.prototype.setK = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.AppDuplication.prototype.hasLastModifiedAt = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional float recall_vs_brute_force = 2; - * @return {number} + * optional AppDuplicationFilters filter = 7; + * @return {?proto.clarifai.api.AppDuplicationFilters} */ -proto.clarifai.api.LOPQEvalResult.prototype.getRecallVsBruteForce = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.AppDuplication.prototype.getFilter = function() { + return /** @type{?proto.clarifai.api.AppDuplicationFilters} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AppDuplicationFilters, 7)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.LOPQEvalResult} returns this - */ -proto.clarifai.api.LOPQEvalResult.prototype.setRecallVsBruteForce = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); + * @param {?proto.clarifai.api.AppDuplicationFilters|undefined} value + * @return {!proto.clarifai.api.AppDuplication} returns this +*/ +proto.clarifai.api.AppDuplication.prototype.setFilter = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** - * optional float kendall_tau_vs_brute_force = 3; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.LOPQEvalResult.prototype.getKendallTauVsBruteForce = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.clarifai.api.AppDuplication.prototype.clearFilter = function() { + return this.setFilter(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.LOPQEvalResult} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.LOPQEvalResult.prototype.setKendallTauVsBruteForce = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); +proto.clarifai.api.AppDuplication.prototype.hasFilter = function() { + return jspb.Message.getField(this, 7) != null; }; /** - * optional float most_frequent_code_percent = 4; - * @return {number} + * optional string existing_app_id = 8; + * @return {string} */ -proto.clarifai.api.LOPQEvalResult.prototype.getMostFrequentCodePercent = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +proto.clarifai.api.AppDuplication.prototype.getExistingAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.LOPQEvalResult} returns this + * @param {string} value + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.LOPQEvalResult.prototype.setMostFrequentCodePercent = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); +proto.clarifai.api.AppDuplication.prototype.setExistingAppId = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * optional float lopq_ndcg = 5; - * @return {number} + * repeated AppCopyProgress progress = 9; + * @return {!Array} */ -proto.clarifai.api.LOPQEvalResult.prototype.getLopqNdcg = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +proto.clarifai.api.AppDuplication.prototype.getProgressList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.AppCopyProgress, 9)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.LOPQEvalResult} returns this - */ -proto.clarifai.api.LOPQEvalResult.prototype.setLopqNdcg = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); + * @param {!Array} value + * @return {!proto.clarifai.api.AppDuplication} returns this +*/ +proto.clarifai.api.AppDuplication.prototype.setProgressList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 9, value); }; /** - * optional float brute_force_ndcg = 6; - * @return {number} + * @param {!proto.clarifai.api.AppCopyProgress=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.AppCopyProgress} */ -proto.clarifai.api.LOPQEvalResult.prototype.getBruteForceNdcg = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +proto.clarifai.api.AppDuplication.prototype.addProgress = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.AppCopyProgress, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.LOPQEvalResult} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.AppDuplication} returns this */ -proto.clarifai.api.LOPQEvalResult.prototype.setBruteForceNdcg = function(value) { - return jspb.Message.setProto3FloatField(this, 6, value); +proto.clarifai.api.AppDuplication.prototype.clearProgressList = function() { + return this.setProgressList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MetricsSummary.repeatedFields_ = [9]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -25985,8 +44386,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MetricsSummary.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MetricsSummary.toObject(opt_includeInstance, this); +proto.clarifai.api.AppCopyProgress.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AppCopyProgress.toObject(opt_includeInstance, this); }; @@ -25995,24 +44396,14 @@ proto.clarifai.api.MetricsSummary.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MetricsSummary} msg The msg instance to transform. + * @param {!proto.clarifai.api.AppCopyProgress} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MetricsSummary.toObject = function(includeInstance, msg) { +proto.clarifai.api.AppCopyProgress.toObject = function(includeInstance, msg) { var f, obj = { - top1Accuracy: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - top5Accuracy: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - macroAvgRocAuc: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - macroStdRocAuc: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), - macroAvgF1Score: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), - macroStdF1Score: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), - macroAvgPrecision: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0), - macroAvgRecall: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0), - meanAvgPrecisionIou50: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0), - meanAvgPrecisionIouRange: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), - lopqMetricsList: jspb.Message.toObjectList(msg.getLopqMetricsList(), - proto.clarifai.api.LOPQEvalResult.toObject, includeInstance) + field: jspb.Message.getFieldWithDefault(msg, 1, ""), + value: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -26026,23 +44417,23 @@ proto.clarifai.api.MetricsSummary.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MetricsSummary} + * @return {!proto.clarifai.api.AppCopyProgress} */ -proto.clarifai.api.MetricsSummary.deserializeBinary = function(bytes) { +proto.clarifai.api.AppCopyProgress.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MetricsSummary; - return proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.AppCopyProgress; + return proto.clarifai.api.AppCopyProgress.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MetricsSummary} msg The message object to deserialize into. + * @param {!proto.clarifai.api.AppCopyProgress} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MetricsSummary} + * @return {!proto.clarifai.api.AppCopyProgress} */ -proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.AppCopyProgress.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -26050,49 +44441,12 @@ proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader = function(msg, re var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setTop1Accuracy(value); + var value = /** @type {string} */ (reader.readString()); + msg.setField(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setTop5Accuracy(value); - break; - case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMacroAvgRocAuc(value); - break; - case 4: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMacroStdRocAuc(value); - break; - case 5: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMacroAvgF1Score(value); - break; - case 6: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMacroStdF1Score(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMacroAvgPrecision(value); - break; - case 8: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMacroAvgRecall(value); - break; - case 10: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMeanAvgPrecisionIou50(value); - break; - case 11: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMeanAvgPrecisionIouRange(value); - break; - case 9: - var value = new proto.clarifai.api.LOPQEvalResult; - reader.readMessage(value,proto.clarifai.api.LOPQEvalResult.deserializeBinaryFromReader); - msg.addLopqMetrics(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setValue(value); break; default: reader.skipField(); @@ -26107,9 +44461,9 @@ proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MetricsSummary.prototype.serializeBinary = function() { +proto.clarifai.api.AppCopyProgress.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MetricsSummary.serializeBinaryToWriter(this, writer); + proto.clarifai.api.AppCopyProgress.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -26117,319 +44471,316 @@ proto.clarifai.api.MetricsSummary.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MetricsSummary} message + * @param {!proto.clarifai.api.AppCopyProgress} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MetricsSummary.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.AppCopyProgress.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTop1Accuracy(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getField(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getTop5Accuracy(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getValue(); + if (f !== 0) { + writer.writeInt32( 2, f ); } - f = message.getMacroAvgRocAuc(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getMacroStdRocAuc(); - if (f !== 0.0) { - writer.writeFloat( - 4, - f - ); - } - f = message.getMacroAvgF1Score(); - if (f !== 0.0) { - writer.writeFloat( - 5, - f - ); - } - f = message.getMacroStdF1Score(); - if (f !== 0.0) { - writer.writeFloat( - 6, - f - ); - } - f = message.getMacroAvgPrecision(); - if (f !== 0.0) { - writer.writeFloat( - 7, - f - ); - } - f = message.getMacroAvgRecall(); - if (f !== 0.0) { - writer.writeFloat( - 8, - f - ); - } - f = message.getMeanAvgPrecisionIou50(); - if (f !== 0.0) { - writer.writeFloat( - 10, - f - ); - } - f = message.getMeanAvgPrecisionIouRange(); - if (f !== 0.0) { - writer.writeFloat( - 11, - f - ); - } - f = message.getLopqMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 9, - f, - proto.clarifai.api.LOPQEvalResult.serializeBinaryToWriter - ); - } }; /** - * optional float top1_accuracy = 1; - * @return {number} + * optional string field = 1; + * @return {string} */ -proto.clarifai.api.MetricsSummary.prototype.getTop1Accuracy = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +proto.clarifai.api.AppCopyProgress.prototype.getField = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * @param {string} value + * @return {!proto.clarifai.api.AppCopyProgress} returns this */ -proto.clarifai.api.MetricsSummary.prototype.setTop1Accuracy = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); +proto.clarifai.api.AppCopyProgress.prototype.setField = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional float top5_accuracy = 2; + * optional int32 value = 2; * @return {number} */ -proto.clarifai.api.MetricsSummary.prototype.getTop5Accuracy = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.AppCopyProgress.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * @return {!proto.clarifai.api.AppCopyProgress} returns this */ -proto.clarifai.api.MetricsSummary.prototype.setTop5Accuracy = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.AppCopyProgress.prototype.setValue = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * optional float macro_avg_roc_auc = 3; - * @return {number} - */ -proto.clarifai.api.MetricsSummary.prototype.getMacroAvgRocAuc = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); -}; - -/** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this - */ -proto.clarifai.api.MetricsSummary.prototype.setMacroAvgRocAuc = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional float macro_std_roc_auc = 4; - * @return {number} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.MetricsSummary.prototype.getMacroStdRocAuc = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +proto.clarifai.api.AppDuplicationFilters.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AppDuplicationFilters.toObject(opt_includeInstance, this); }; /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AppDuplicationFilters} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MetricsSummary.prototype.setMacroStdRocAuc = function(value) { - return jspb.Message.setProto3FloatField(this, 4, value); -}; - +proto.clarifai.api.AppDuplicationFilters.toObject = function(includeInstance, msg) { + var f, obj = { + copyInputs: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + copyConcepts: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + copyAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + copyModels: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + }; -/** - * optional float macro_avg_f1_score = 5; - * @return {number} - */ -proto.clarifai.api.MetricsSummary.prototype.getMacroAvgF1Score = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AppDuplicationFilters} */ -proto.clarifai.api.MetricsSummary.prototype.setMacroAvgF1Score = function(value) { - return jspb.Message.setProto3FloatField(this, 5, value); +proto.clarifai.api.AppDuplicationFilters.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AppDuplicationFilters; + return proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader(msg, reader); }; /** - * optional float macro_std_f1_score = 6; - * @return {number} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AppDuplicationFilters} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AppDuplicationFilters} */ -proto.clarifai.api.MetricsSummary.prototype.getMacroStdF1Score = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCopyInputs(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCopyConcepts(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCopyAnnotations(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCopyModels(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setCopyWorkflows(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.MetricsSummary.prototype.setMacroStdF1Score = function(value) { - return jspb.Message.setProto3FloatField(this, 6, value); +proto.clarifai.api.AppDuplicationFilters.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional float macro_avg_precision = 7; - * @return {number} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AppDuplicationFilters} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MetricsSummary.prototype.getMacroAvgPrecision = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCopyInputs(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getCopyConcepts(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getCopyAnnotations(); + if (f) { + writer.writeBool( + 3, + f + ); + } + f = message.getCopyModels(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getCopyWorkflows(); + if (f) { + writer.writeBool( + 5, + f + ); + } }; /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * optional bool copy_inputs = 1; + * @return {boolean} */ -proto.clarifai.api.MetricsSummary.prototype.setMacroAvgPrecision = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); +proto.clarifai.api.AppDuplicationFilters.prototype.getCopyInputs = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** - * optional float macro_avg_recall = 8; - * @return {number} + * @param {boolean} value + * @return {!proto.clarifai.api.AppDuplicationFilters} returns this */ -proto.clarifai.api.MetricsSummary.prototype.getMacroAvgRecall = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0)); +proto.clarifai.api.AppDuplicationFilters.prototype.setCopyInputs = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * optional bool copy_concepts = 2; + * @return {boolean} */ -proto.clarifai.api.MetricsSummary.prototype.setMacroAvgRecall = function(value) { - return jspb.Message.setProto3FloatField(this, 8, value); +proto.clarifai.api.AppDuplicationFilters.prototype.getCopyConcepts = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * optional float mean_avg_precision_iou_50 = 10; - * @return {number} + * @param {boolean} value + * @return {!proto.clarifai.api.AppDuplicationFilters} returns this */ -proto.clarifai.api.MetricsSummary.prototype.getMeanAvgPrecisionIou50 = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0)); +proto.clarifai.api.AppDuplicationFilters.prototype.setCopyConcepts = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * optional bool copy_annotations = 3; + * @return {boolean} */ -proto.clarifai.api.MetricsSummary.prototype.setMeanAvgPrecisionIou50 = function(value) { - return jspb.Message.setProto3FloatField(this, 10, value); +proto.clarifai.api.AppDuplicationFilters.prototype.getCopyAnnotations = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * optional float mean_avg_precision_iou_range = 11; - * @return {number} + * @param {boolean} value + * @return {!proto.clarifai.api.AppDuplicationFilters} returns this */ -proto.clarifai.api.MetricsSummary.prototype.getMeanAvgPrecisionIouRange = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)); +proto.clarifai.api.AppDuplicationFilters.prototype.setCopyAnnotations = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; /** - * @param {number} value - * @return {!proto.clarifai.api.MetricsSummary} returns this + * optional bool copy_models = 4; + * @return {boolean} */ -proto.clarifai.api.MetricsSummary.prototype.setMeanAvgPrecisionIouRange = function(value) { - return jspb.Message.setProto3FloatField(this, 11, value); +proto.clarifai.api.AppDuplicationFilters.prototype.getCopyModels = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * repeated LOPQEvalResult lopq_metrics = 9; - * @return {!Array} + * @param {boolean} value + * @return {!proto.clarifai.api.AppDuplicationFilters} returns this */ -proto.clarifai.api.MetricsSummary.prototype.getLopqMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.LOPQEvalResult, 9)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MetricsSummary} returns this -*/ -proto.clarifai.api.MetricsSummary.prototype.setLopqMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); +proto.clarifai.api.AppDuplicationFilters.prototype.setCopyModels = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** - * @param {!proto.clarifai.api.LOPQEvalResult=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.LOPQEvalResult} + * optional bool copy_workflows = 5; + * @return {boolean} */ -proto.clarifai.api.MetricsSummary.prototype.addLopqMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.LOPQEvalResult, opt_index); +proto.clarifai.api.AppDuplicationFilters.prototype.getCopyWorkflows = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MetricsSummary} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.AppDuplicationFilters} returns this */ -proto.clarifai.api.MetricsSummary.prototype.clearLopqMetricsList = function() { - return this.setLopqMetricsList([]); +proto.clarifai.api.AppDuplicationFilters.prototype.setCopyWorkflows = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.EvalMetrics.repeatedFields_ = [6,7,8,9,11]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -26445,8 +44796,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.EvalMetrics.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.EvalMetrics.toObject(opt_includeInstance, this); +proto.clarifai.api.LabelOrder.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.LabelOrder.toObject(opt_includeInstance, this); }; @@ -26455,28 +44806,22 @@ proto.clarifai.api.EvalMetrics.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.EvalMetrics} msg The msg instance to transform. + * @param {!proto.clarifai.api.LabelOrder} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.EvalMetrics.toObject = function(includeInstance, msg) { +proto.clarifai.api.LabelOrder.toObject = function(includeInstance, msg) { var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + name: jspb.Message.getFieldWithDefault(msg, 2, ""), status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 10, ""), - summary: (f = msg.getSummary()) && proto.clarifai.api.MetricsSummary.toObject(includeInstance, f), - confusionMatrix: (f = msg.getConfusionMatrix()) && proto.clarifai.api.ConfusionMatrix.toObject(includeInstance, f), - cooccurrenceMatrix: (f = msg.getCooccurrenceMatrix()) && proto.clarifai.api.CooccurrenceMatrix.toObject(includeInstance, f), - labelCounts: (f = msg.getLabelCounts()) && proto.clarifai.api.LabelDistribution.toObject(includeInstance, f), - binaryMetricsList: jspb.Message.toObjectList(msg.getBinaryMetricsList(), - proto.clarifai.api.BinaryMetrics.toObject, includeInstance), - testSetList: jspb.Message.toObjectList(msg.getTestSetList(), - proto.clarifai.api.EvalTestSetEntry.toObject, includeInstance), - metricsByAreaList: jspb.Message.toObjectList(msg.getMetricsByAreaList(), - proto.clarifai.api.BinaryMetrics.toObject, includeInstance), - metricsByClassList: jspb.Message.toObjectList(msg.getMetricsByClassList(), - proto.clarifai.api.BinaryMetrics.toObject, includeInstance), - trackerMetricsList: jspb.Message.toObjectList(msg.getTrackerMetricsList(), - proto.clarifai.api.TrackerMetrics.toObject, includeInstance) + autoRelease: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + allowEmptyTag: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + desiredFulfillTime: (f = msg.getDesiredFulfillTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + estimateFulfillTime: (f = msg.getEstimateFulfillTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + task: (f = msg.getTask()) && proto.clarifai.api.Task.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -26490,23 +44835,23 @@ proto.clarifai.api.EvalMetrics.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.EvalMetrics} + * @return {!proto.clarifai.api.LabelOrder} */ -proto.clarifai.api.EvalMetrics.deserializeBinary = function(bytes) { +proto.clarifai.api.LabelOrder.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.EvalMetrics; - return proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.LabelOrder; + return proto.clarifai.api.LabelOrder.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.EvalMetrics} msg The message object to deserialize into. + * @param {!proto.clarifai.api.LabelOrder} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.EvalMetrics} + * @return {!proto.clarifai.api.LabelOrder} */ -proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.LabelOrder.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -26514,58 +44859,50 @@ proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 10: var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: - var value = new proto.clarifai.api.MetricsSummary; - reader.readMessage(value,proto.clarifai.api.MetricsSummary.deserializeBinaryFromReader); - msg.setSummary(value); + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); break; case 3: - var value = new proto.clarifai.api.ConfusionMatrix; - reader.readMessage(value,proto.clarifai.api.ConfusionMatrix.deserializeBinaryFromReader); - msg.setConfusionMatrix(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 4: - var value = new proto.clarifai.api.CooccurrenceMatrix; - reader.readMessage(value,proto.clarifai.api.CooccurrenceMatrix.deserializeBinaryFromReader); - msg.setCooccurrenceMatrix(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAutoRelease(value); break; case 5: - var value = new proto.clarifai.api.LabelDistribution; - reader.readMessage(value,proto.clarifai.api.LabelDistribution.deserializeBinaryFromReader); - msg.setLabelCounts(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAllowEmptyTag(value); break; case 6: - var value = new proto.clarifai.api.BinaryMetrics; - reader.readMessage(value,proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader); - msg.addBinaryMetrics(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDesiredFulfillTime(value); break; case 7: - var value = new proto.clarifai.api.EvalTestSetEntry; - reader.readMessage(value,proto.clarifai.api.EvalTestSetEntry.deserializeBinaryFromReader); - msg.addTestSet(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setEstimateFulfillTime(value); break; case 8: - var value = new proto.clarifai.api.BinaryMetrics; - reader.readMessage(value,proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader); - msg.addMetricsByArea(value); + var value = new proto.clarifai.api.Task; + reader.readMessage(value,proto.clarifai.api.Task.deserializeBinaryFromReader); + msg.setTask(value); break; case 9: - var value = new proto.clarifai.api.BinaryMetrics; - reader.readMessage(value,proto.clarifai.api.BinaryMetrics.deserializeBinaryFromReader); - msg.addMetricsByClass(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; - case 11: - var value = new proto.clarifai.api.TrackerMetrics; - reader.readMessage(value,proto.clarifai.api.TrackerMetrics.deserializeBinaryFromReader); - msg.addTrackerMetrics(value); + case 10: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); break; default: reader.skipField(); @@ -26580,9 +44917,9 @@ proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.EvalMetrics.prototype.serializeBinary = function() { +proto.clarifai.api.LabelOrder.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.EvalMetrics.serializeBinaryToWriter(this, writer); + proto.clarifai.api.LabelOrder.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -26590,182 +44927,152 @@ proto.clarifai.api.EvalMetrics.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.EvalMetrics} message + * @param {!proto.clarifai.api.LabelOrder} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.EvalMetrics.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.LabelOrder.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } f = message.getId(); if (f.length > 0) { writer.writeString( - 10, + 1, f ); } - f = message.getSummary(); - if (f != null) { - writer.writeMessage( + f = message.getName(); + if (f.length > 0) { + writer.writeString( 2, - f, - proto.clarifai.api.MetricsSummary.serializeBinaryToWriter + f ); } - f = message.getConfusionMatrix(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 3, f, - proto.clarifai.api.ConfusionMatrix.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getCooccurrenceMatrix(); - if (f != null) { - writer.writeMessage( + f = message.getAutoRelease(); + if (f) { + writer.writeBool( 4, - f, - proto.clarifai.api.CooccurrenceMatrix.serializeBinaryToWriter + f ); } - f = message.getLabelCounts(); - if (f != null) { - writer.writeMessage( + f = message.getAllowEmptyTag(); + if (f) { + writer.writeBool( 5, - f, - proto.clarifai.api.LabelDistribution.serializeBinaryToWriter + f ); } - f = message.getBinaryMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getDesiredFulfillTime(); + if (f != null) { + writer.writeMessage( 6, f, - proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getTestSetList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getEstimateFulfillTime(); + if (f != null) { + writer.writeMessage( 7, f, - proto.clarifai.api.EvalTestSetEntry.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getMetricsByAreaList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getTask(); + if (f != null) { + writer.writeMessage( 8, f, - proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter + proto.clarifai.api.Task.serializeBinaryToWriter ); } - f = message.getMetricsByClassList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( 9, f, - proto.clarifai.api.BinaryMetrics.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getTrackerMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 11, + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 10, f, - proto.clarifai.api.TrackerMetrics.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} - */ -proto.clarifai.api.EvalMetrics.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); -}; - - -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.EvalMetrics} returns this -*/ -proto.clarifai.api.EvalMetrics.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.EvalMetrics.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.LabelOrder.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.LabelOrder.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string id = 10; + * optional string name = 2; * @return {string} */ -proto.clarifai.api.EvalMetrics.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.clarifai.api.LabelOrder.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.clarifai.api.LabelOrder.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional MetricsSummary summary = 2; - * @return {?proto.clarifai.api.MetricsSummary} + * optional status.Status status = 3; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.EvalMetrics.prototype.getSummary = function() { - return /** @type{?proto.clarifai.api.MetricsSummary} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.MetricsSummary, 2)); +proto.clarifai.api.LabelOrder.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 3)); }; /** - * @param {?proto.clarifai.api.MetricsSummary|undefined} value - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.setSummary = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.LabelOrder.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.clearSummary = function() { - return this.setSummary(undefined); +proto.clarifai.api.LabelOrder.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -26773,73 +45080,72 @@ proto.clarifai.api.EvalMetrics.prototype.clearSummary = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.hasSummary = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.LabelOrder.prototype.hasStatus = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional ConfusionMatrix confusion_matrix = 3; - * @return {?proto.clarifai.api.ConfusionMatrix} + * optional bool auto_release = 4; + * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.getConfusionMatrix = function() { - return /** @type{?proto.clarifai.api.ConfusionMatrix} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.ConfusionMatrix, 3)); +proto.clarifai.api.LabelOrder.prototype.getAutoRelease = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * @param {?proto.clarifai.api.ConfusionMatrix|undefined} value - * @return {!proto.clarifai.api.EvalMetrics} returns this -*/ -proto.clarifai.api.EvalMetrics.prototype.setConfusionMatrix = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * @param {boolean} value + * @return {!proto.clarifai.api.LabelOrder} returns this + */ +proto.clarifai.api.LabelOrder.prototype.setAutoRelease = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * optional bool allow_empty_tag = 5; + * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.clearConfusionMatrix = function() { - return this.setConfusionMatrix(undefined); +proto.clarifai.api.LabelOrder.prototype.getAllowEmptyTag = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.hasConfusionMatrix = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.LabelOrder.prototype.setAllowEmptyTag = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; /** - * optional CooccurrenceMatrix cooccurrence_matrix = 4; - * @return {?proto.clarifai.api.CooccurrenceMatrix} + * optional google.protobuf.Timestamp desired_fulfill_time = 6; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.EvalMetrics.prototype.getCooccurrenceMatrix = function() { - return /** @type{?proto.clarifai.api.CooccurrenceMatrix} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.CooccurrenceMatrix, 4)); +proto.clarifai.api.LabelOrder.prototype.getDesiredFulfillTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** - * @param {?proto.clarifai.api.CooccurrenceMatrix|undefined} value - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.setCooccurrenceMatrix = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.LabelOrder.prototype.setDesiredFulfillTime = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.clearCooccurrenceMatrix = function() { - return this.setCooccurrenceMatrix(undefined); +proto.clarifai.api.LabelOrder.prototype.clearDesiredFulfillTime = function() { + return this.setDesiredFulfillTime(undefined); }; @@ -26847,36 +45153,36 @@ proto.clarifai.api.EvalMetrics.prototype.clearCooccurrenceMatrix = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.hasCooccurrenceMatrix = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.LabelOrder.prototype.hasDesiredFulfillTime = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional LabelDistribution label_counts = 5; - * @return {?proto.clarifai.api.LabelDistribution} + * optional google.protobuf.Timestamp estimate_fulfill_time = 7; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.EvalMetrics.prototype.getLabelCounts = function() { - return /** @type{?proto.clarifai.api.LabelDistribution} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.LabelDistribution, 5)); +proto.clarifai.api.LabelOrder.prototype.getEstimateFulfillTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); }; /** - * @param {?proto.clarifai.api.LabelDistribution|undefined} value - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.setLabelCounts = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.LabelOrder.prototype.setEstimateFulfillTime = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.clearLabelCounts = function() { - return this.setLabelCounts(undefined); +proto.clarifai.api.LabelOrder.prototype.clearEstimateFulfillTime = function() { + return this.setEstimateFulfillTime(undefined); }; @@ -26884,202 +45190,130 @@ proto.clarifai.api.EvalMetrics.prototype.clearLabelCounts = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.hasLabelCounts = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * repeated BinaryMetrics binary_metrics = 6; - * @return {!Array} - */ -proto.clarifai.api.EvalMetrics.prototype.getBinaryMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.BinaryMetrics, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.EvalMetrics} returns this -*/ -proto.clarifai.api.EvalMetrics.prototype.setBinaryMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.clarifai.api.BinaryMetrics=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.BinaryMetrics} - */ -proto.clarifai.api.EvalMetrics.prototype.addBinaryMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.BinaryMetrics, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EvalMetrics} returns this - */ -proto.clarifai.api.EvalMetrics.prototype.clearBinaryMetricsList = function() { - return this.setBinaryMetricsList([]); -}; - - -/** - * repeated EvalTestSetEntry test_set = 7; - * @return {!Array} - */ -proto.clarifai.api.EvalMetrics.prototype.getTestSetList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EvalTestSetEntry, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.EvalMetrics} returns this -*/ -proto.clarifai.api.EvalMetrics.prototype.setTestSetList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); -}; - - -/** - * @param {!proto.clarifai.api.EvalTestSetEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.EvalTestSetEntry} - */ -proto.clarifai.api.EvalMetrics.prototype.addTestSet = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.EvalTestSetEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EvalMetrics} returns this - */ -proto.clarifai.api.EvalMetrics.prototype.clearTestSetList = function() { - return this.setTestSetList([]); +proto.clarifai.api.LabelOrder.prototype.hasEstimateFulfillTime = function() { + return jspb.Message.getField(this, 7) != null; }; /** - * repeated BinaryMetrics metrics_by_area = 8; - * @return {!Array} + * optional Task task = 8; + * @return {?proto.clarifai.api.Task} */ -proto.clarifai.api.EvalMetrics.prototype.getMetricsByAreaList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.BinaryMetrics, 8)); +proto.clarifai.api.LabelOrder.prototype.getTask = function() { + return /** @type{?proto.clarifai.api.Task} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Task, 8)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @param {?proto.clarifai.api.Task|undefined} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.setMetricsByAreaList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 8, value); +proto.clarifai.api.LabelOrder.prototype.setTask = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; /** - * @param {!proto.clarifai.api.BinaryMetrics=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.BinaryMetrics} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.addMetricsByArea = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.clarifai.api.BinaryMetrics, opt_index); +proto.clarifai.api.LabelOrder.prototype.clearTask = function() { + return this.setTask(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.clearMetricsByAreaList = function() { - return this.setMetricsByAreaList([]); +proto.clarifai.api.LabelOrder.prototype.hasTask = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * repeated BinaryMetrics metrics_by_class = 9; - * @return {!Array} + * optional google.protobuf.Timestamp created_at = 9; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.EvalMetrics.prototype.getMetricsByClassList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.BinaryMetrics, 9)); +proto.clarifai.api.LabelOrder.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.setMetricsByClassList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 9, value); +proto.clarifai.api.LabelOrder.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 9, value); }; /** - * @param {!proto.clarifai.api.BinaryMetrics=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.BinaryMetrics} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.addMetricsByClass = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.clarifai.api.BinaryMetrics, opt_index); +proto.clarifai.api.LabelOrder.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.clearMetricsByClassList = function() { - return this.setMetricsByClassList([]); +proto.clarifai.api.LabelOrder.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 9) != null; }; /** - * repeated TrackerMetrics tracker_metrics = 11; - * @return {!Array} + * optional google.protobuf.Timestamp modified_at = 10; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.EvalMetrics.prototype.getTrackerMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.TrackerMetrics, 11)); +proto.clarifai.api.LabelOrder.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.EvalMetrics} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.setTrackerMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 11, value); +proto.clarifai.api.LabelOrder.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** - * @param {!proto.clarifai.api.TrackerMetrics=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.TrackerMetrics} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.LabelOrder} returns this */ -proto.clarifai.api.EvalMetrics.prototype.addTrackerMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.clarifai.api.TrackerMetrics, opt_index); +proto.clarifai.api.LabelOrder.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EvalMetrics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.EvalMetrics.prototype.clearTrackerMetricsList = function() { - return this.setTrackerMetricsList([]); +proto.clarifai.api.LabelOrder.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 10) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Task.repeatedFields_ = [7,19]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -27095,8 +45329,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.FieldsValue.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.FieldsValue.toObject(opt_includeInstance, this); +proto.clarifai.api.Task.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Task.toObject(opt_includeInstance, this); }; @@ -27105,19 +45339,33 @@ proto.clarifai.api.FieldsValue.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.FieldsValue} msg The msg instance to transform. + * @param {!proto.clarifai.api.Task} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.FieldsValue.toObject = function(includeInstance, msg) { +proto.clarifai.api.Task.toObject = function(includeInstance, msg) { var f, obj = { - confusionMatrix: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - cooccurrenceMatrix: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - labelCounts: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - binaryMetrics: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - testSet: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - metricsByArea: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - metricsByClass: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + type: jspb.Message.getFieldWithDefault(msg, 4, 0), + description: jspb.Message.getFieldWithDefault(msg, 5, ""), + worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f), + conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f), + sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0), + aiAssistant: (f = msg.getAiAssistant()) && proto.clarifai.api.TaskAIAssistant.toObject(includeInstance, f), + review: (f = msg.getReview()) && proto.clarifai.api.TaskReview.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + name: jspb.Message.getFieldWithDefault(msg, 13, ""), + aiAssistParams: (f = msg.getAiAssistParams()) && proto.clarifai.api.AiAssistParameters.toObject(includeInstance, f), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 16, ""), + userId: jspb.Message.getFieldWithDefault(msg, 17, ""), + labelOrderId: jspb.Message.getFieldWithDefault(msg, 18, ""), + conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), + proto.clarifai.api.TaskConcept.toObject, includeInstance), + deletePreviousAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 20, false) }; if (includeInstance) { @@ -27131,23 +45379,23 @@ proto.clarifai.api.FieldsValue.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.FieldsValue} + * @return {!proto.clarifai.api.Task} */ -proto.clarifai.api.FieldsValue.deserializeBinary = function(bytes) { +proto.clarifai.api.Task.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.FieldsValue; - return proto.clarifai.api.FieldsValue.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Task; + return proto.clarifai.api.Task.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.FieldsValue} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Task} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.FieldsValue} + * @return {!proto.clarifai.api.Task} */ -proto.clarifai.api.FieldsValue.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -27155,32 +45403,94 @@ proto.clarifai.api.FieldsValue.deserializeBinaryFromReader = function(msg, reade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setConfusionMatrix(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCooccurrenceMatrix(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLabelCounts(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); break; case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setBinaryMetrics(value); + var value = /** @type {!proto.clarifai.api.Task.TaskType} */ (reader.readEnum()); + msg.setType(value); break; case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTestSet(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMetricsByArea(value); + var value = new proto.clarifai.api.TaskWorker; + reader.readMessage(value,proto.clarifai.api.TaskWorker.deserializeBinaryFromReader); + msg.setWorker(value); break; case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addConceptIds(value); + break; + case 8: + var value = new proto.clarifai.api.TaskInputSource; + reader.readMessage(value,proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader); + msg.setInputSource(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSampleMs(value); + break; + case 10: + var value = new proto.clarifai.api.TaskAIAssistant; + reader.readMessage(value,proto.clarifai.api.TaskAIAssistant.deserializeBinaryFromReader); + msg.setAiAssistant(value); + break; + case 11: + var value = new proto.clarifai.api.TaskReview; + reader.readMessage(value,proto.clarifai.api.TaskReview.deserializeBinaryFromReader); + msg.setReview(value); + break; + case 12: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 13: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 14: + var value = new proto.clarifai.api.AiAssistParameters; + reader.readMessage(value,proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader); + msg.setAiAssistParams(value); + break; + case 15: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 16: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.setLabelOrderId(value); + break; + case 19: + var value = new proto.clarifai.api.TaskConcept; + reader.readMessage(value,proto.clarifai.api.TaskConcept.deserializeBinaryFromReader); + msg.addConcepts(value); + break; + case 20: var value = /** @type {boolean} */ (reader.readBool()); - msg.setMetricsByClass(value); + msg.setDeletePreviousAnnotations(value); break; default: reader.skipField(); @@ -27195,9 +45505,9 @@ proto.clarifai.api.FieldsValue.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.FieldsValue.prototype.serializeBinary = function() { +proto.clarifai.api.Task.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.FieldsValue.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Task.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -27205,58 +45515,159 @@ proto.clarifai.api.FieldsValue.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.FieldsValue} message + * @param {!proto.clarifai.api.Task} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.FieldsValue.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getConfusionMatrix(); - if (f) { - writer.writeBool( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getCooccurrenceMatrix(); - if (f) { - writer.writeBool( + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( 2, - f + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getLabelCounts(); - if (f) { - writer.writeBool( + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( 3, - f + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getBinaryMetrics(); - if (f) { - writer.writeBool( + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( 4, f ); } - f = message.getTestSet(); - if (f) { - writer.writeBool( + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( 5, f ); } - f = message.getMetricsByArea(); - if (f) { - writer.writeBool( + f = message.getWorker(); + if (f != null) { + writer.writeMessage( 6, + f, + proto.clarifai.api.TaskWorker.serializeBinaryToWriter + ); + } + f = message.getConceptIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, f ); } - f = message.getMetricsByClass(); + f = message.getInputSource(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.clarifai.api.TaskInputSource.serializeBinaryToWriter + ); + } + f = message.getSampleMs(); + if (f !== 0) { + writer.writeUint32( + 9, + f + ); + } + f = message.getAiAssistant(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.clarifai.api.TaskAIAssistant.serializeBinaryToWriter + ); + } + f = message.getReview(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.clarifai.api.TaskReview.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 13, + f + ); + } + f = message.getAiAssistParams(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.clarifai.api.AiAssistParameters.serializeBinaryToWriter + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 16, + f + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 17, + f + ); + } + f = message.getLabelOrderId(); + if (f.length > 0) { + writer.writeString( + 18, + f + ); + } + f = message.getConceptsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 19, + f, + proto.clarifai.api.TaskConcept.serializeBinaryToWriter + ); + } + f = message.getDeletePreviousAnnotations(); if (f) { writer.writeBool( - 7, + 20, f ); } @@ -27264,356 +45675,242 @@ proto.clarifai.api.FieldsValue.serializeBinaryToWriter = function(message, write /** - * optional bool confusion_matrix = 1; - * @return {boolean} - */ -proto.clarifai.api.FieldsValue.prototype.getConfusionMatrix = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.FieldsValue} returns this - */ -proto.clarifai.api.FieldsValue.prototype.setConfusionMatrix = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool cooccurrence_matrix = 2; - * @return {boolean} + * @enum {number} */ -proto.clarifai.api.FieldsValue.prototype.getCooccurrenceMatrix = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.clarifai.api.Task.TaskType = { + TYPE_NOT_SET: 0, + CONCEPTS_CLASSIFICATION: 1, + BOUNDING_BOX_DETECTION: 2, + POLYGON_DETECTION: 3 }; - /** - * @param {boolean} value - * @return {!proto.clarifai.api.FieldsValue} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.FieldsValue.prototype.setCooccurrenceMatrix = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.clarifai.api.Task.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional bool label_counts = 3; - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.FieldsValue.prototype.getLabelCounts = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.Task.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.FieldsValue} returns this + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.FieldsValue.prototype.setLabelCounts = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.Task.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** - * optional bool binary_metrics = 4; - * @return {boolean} - */ -proto.clarifai.api.FieldsValue.prototype.getBinaryMetrics = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Task} returns this +*/ +proto.clarifai.api.Task.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.FieldsValue} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.FieldsValue.prototype.setBinaryMetrics = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.Task.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * optional bool test_set = 5; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.FieldsValue.prototype.getTestSet = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +proto.clarifai.api.Task.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.FieldsValue} returns this + * optional google.protobuf.Timestamp modified_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.FieldsValue.prototype.setTestSet = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.clarifai.api.Task.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * optional bool metrics_by_area = 6; - * @return {boolean} - */ -proto.clarifai.api.FieldsValue.prototype.getMetricsByArea = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Task} returns this +*/ +proto.clarifai.api.Task.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.FieldsValue} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.FieldsValue.prototype.setMetricsByArea = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); +proto.clarifai.api.Task.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * optional bool metrics_by_class = 7; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.FieldsValue.prototype.getMetricsByClass = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.clarifai.api.Task.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.FieldsValue} returns this + * optional TaskType type = 4; + * @return {!proto.clarifai.api.Task.TaskType} */ -proto.clarifai.api.FieldsValue.prototype.setMetricsByClass = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); +proto.clarifai.api.Task.prototype.getType = function() { + return /** @type {!proto.clarifai.api.Task.TaskType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {!proto.clarifai.api.Task.TaskType} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Output.toObject(opt_includeInstance, this); +proto.clarifai.api.Task.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Output} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string description = 5; + * @return {string} */ -proto.clarifai.api.Output.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f), - input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.Task.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Output} + * @param {string} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Output; - return proto.clarifai.api.Output.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Task.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.Output} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Output} + * optional TaskWorker worker = 6; + * @return {?proto.clarifai.api.TaskWorker} */ -proto.clarifai.api.Output.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 4: - var value = new proto.clarifai.api.Model; - reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); - msg.setModel(value); - break; - case 5: - var value = new proto.clarifai.api.Input; - reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); - msg.setInput(value); - break; - case 6: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.Task.prototype.getWorker = function() { + return /** @type{?proto.clarifai.api.TaskWorker} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorker, 6)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {?proto.clarifai.api.TaskWorker|undefined} value + * @return {!proto.clarifai.api.Task} returns this +*/ +proto.clarifai.api.Task.prototype.setWorker = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Output.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Task.prototype.clearWorker = function() { + return this.setWorker(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Output} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Output.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModel(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.clarifai.api.Model.serializeBinaryToWriter - ); - } - f = message.getInput(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.clarifai.api.Input.serializeBinaryToWriter - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.clarifai.api.Data.serializeBinaryToWriter - ); - } +proto.clarifai.api.Task.prototype.hasWorker = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional string id = 1; - * @return {string} + * repeated string concept_ids = 7; + * @return {!Array} */ -proto.clarifai.api.Output.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Task.prototype.getConceptIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.Task} returns this + */ +proto.clarifai.api.Task.prototype.setConceptIdsList = function(value) { + return jspb.Message.setField(this, 7, value || []); }; /** * @param {string} value - * @return {!proto.clarifai.api.Output} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.Task.prototype.addConceptIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); }; /** - * optional status.Status status = 2; - * @return {?proto.clarifai.api.status.Status} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2)); +proto.clarifai.api.Task.prototype.clearConceptIdsList = function() { + return this.setConceptIdsList([]); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.Output} returns this + * optional TaskInputSource input_source = 8; + * @return {?proto.clarifai.api.TaskInputSource} + */ +proto.clarifai.api.Task.prototype.getInputSource = function() { + return /** @type{?proto.clarifai.api.TaskInputSource} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskInputSource, 8)); +}; + + +/** + * @param {?proto.clarifai.api.TaskInputSource|undefined} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.Task.prototype.setInputSource = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Output} returns this + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.Task.prototype.clearInputSource = function() { + return this.setInputSource(undefined); }; @@ -27621,36 +45918,54 @@ proto.clarifai.api.Output.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Output.prototype.hasStatus = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.Task.prototype.hasInputSource = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} + * optional uint32 sample_ms = 9; + * @return {number} */ -proto.clarifai.api.Output.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +proto.clarifai.api.Task.prototype.getSampleMs = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Output} returns this + * @param {number} value + * @return {!proto.clarifai.api.Task} returns this + */ +proto.clarifai.api.Task.prototype.setSampleMs = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional TaskAIAssistant ai_assistant = 10; + * @return {?proto.clarifai.api.TaskAIAssistant} + */ +proto.clarifai.api.Task.prototype.getAiAssistant = function() { + return /** @type{?proto.clarifai.api.TaskAIAssistant} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskAIAssistant, 10)); +}; + + +/** + * @param {?proto.clarifai.api.TaskAIAssistant|undefined} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.Task.prototype.setAiAssistant = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Output} returns this + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.Task.prototype.clearAiAssistant = function() { + return this.setAiAssistant(undefined); }; @@ -27658,36 +45973,36 @@ proto.clarifai.api.Output.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Output.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.Task.prototype.hasAiAssistant = function() { + return jspb.Message.getField(this, 10) != null; }; /** - * optional Model model = 4; - * @return {?proto.clarifai.api.Model} + * optional TaskReview review = 11; + * @return {?proto.clarifai.api.TaskReview} */ -proto.clarifai.api.Output.prototype.getModel = function() { - return /** @type{?proto.clarifai.api.Model} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 4)); +proto.clarifai.api.Task.prototype.getReview = function() { + return /** @type{?proto.clarifai.api.TaskReview} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReview, 11)); }; /** - * @param {?proto.clarifai.api.Model|undefined} value - * @return {!proto.clarifai.api.Output} returns this + * @param {?proto.clarifai.api.TaskReview|undefined} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.setModel = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.Task.prototype.setReview = function(value) { + return jspb.Message.setWrapperField(this, 11, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Output} returns this + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.clearModel = function() { - return this.setModel(undefined); +proto.clarifai.api.Task.prototype.clearReview = function() { + return this.setReview(undefined); }; @@ -27695,36 +46010,36 @@ proto.clarifai.api.Output.prototype.clearModel = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Output.prototype.hasModel = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.Task.prototype.hasReview = function() { + return jspb.Message.getField(this, 11) != null; }; /** - * optional Input input = 5; - * @return {?proto.clarifai.api.Input} + * optional status.Status status = 12; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.Output.prototype.getInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5)); +proto.clarifai.api.Task.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 12)); }; /** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.Output} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.setInput = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.Task.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 12, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Output} returns this + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.clearInput = function() { - return this.setInput(undefined); +proto.clarifai.api.Task.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -27732,36 +46047,54 @@ proto.clarifai.api.Output.prototype.clearInput = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Output.prototype.hasInput = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.Task.prototype.hasStatus = function() { + return jspb.Message.getField(this, 12) != null; }; /** - * optional Data data = 6; - * @return {?proto.clarifai.api.Data} + * optional string name = 13; + * @return {string} */ -proto.clarifai.api.Output.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 6)); +proto.clarifai.api.Task.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.Output} returns this + * @param {string} value + * @return {!proto.clarifai.api.Task} returns this + */ +proto.clarifai.api.Task.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 13, value); +}; + + +/** + * optional AiAssistParameters ai_assist_params = 14; + * @return {?proto.clarifai.api.AiAssistParameters} + */ +proto.clarifai.api.Task.prototype.getAiAssistParams = function() { + return /** @type{?proto.clarifai.api.AiAssistParameters} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AiAssistParameters, 14)); +}; + + +/** + * @param {?proto.clarifai.api.AiAssistParameters|undefined} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.Task.prototype.setAiAssistParams = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Output} returns this + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.Output.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.Task.prototype.clearAiAssistParams = function() { + return this.setAiAssistParams(undefined); }; @@ -27769,194 +46102,155 @@ proto.clarifai.api.Output.prototype.clearData = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Output.prototype.hasData = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.Task.prototype.hasAiAssistParams = function() { + return jspb.Message.getField(this, 14) != null; }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional Visibility visibility = 15; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.ScopeDeps.repeatedFields_ = [2]; +proto.clarifai.api.Task.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 15)); +}; +/** + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.Task} returns this +*/ +proto.clarifai.api.Task.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 15, value); +}; + -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.ScopeDeps.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ScopeDeps.toObject(opt_includeInstance, this); +proto.clarifai.api.Task.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ScopeDeps} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ScopeDeps.toObject = function(includeInstance, msg) { - var f, obj = { - scope: jspb.Message.getFieldWithDefault(msg, 1, ""), - dependingScopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.Task.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 15) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ScopeDeps} + * optional string app_id = 16; + * @return {string} */ -proto.clarifai.api.ScopeDeps.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ScopeDeps; - return proto.clarifai.api.ScopeDeps.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Task.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ScopeDeps} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ScopeDeps} + * @param {string} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.ScopeDeps.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setScope(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addDependingScopes(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.Task.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 16, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional string user_id = 17; + * @return {string} */ -proto.clarifai.api.ScopeDeps.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ScopeDeps.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Task.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ScopeDeps} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.ScopeDeps.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getScope(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDependingScopesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } +proto.clarifai.api.Task.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 17, value); }; /** - * optional string scope = 1; + * optional string label_order_id = 18; * @return {string} */ -proto.clarifai.api.ScopeDeps.prototype.getScope = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Task.prototype.getLabelOrderId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ScopeDeps} returns this + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.ScopeDeps.prototype.setScope = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.Task.prototype.setLabelOrderId = function(value) { + return jspb.Message.setProto3StringField(this, 18, value); }; /** - * repeated string depending_scopes = 2; - * @return {!Array} + * repeated TaskConcept concepts = 19; + * @return {!Array} */ -proto.clarifai.api.ScopeDeps.prototype.getDependingScopesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.Task.prototype.getConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.TaskConcept, 19)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ScopeDeps} returns this - */ -proto.clarifai.api.ScopeDeps.prototype.setDependingScopesList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.Task} returns this +*/ +proto.clarifai.api.Task.prototype.setConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 19, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.TaskConcept=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ScopeDeps} returns this + * @return {!proto.clarifai.api.TaskConcept} */ -proto.clarifai.api.ScopeDeps.prototype.addDependingScopes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.Task.prototype.addConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 19, opt_value, proto.clarifai.api.TaskConcept, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ScopeDeps} returns this + * @return {!proto.clarifai.api.Task} returns this */ -proto.clarifai.api.ScopeDeps.prototype.clearDependingScopesList = function() { - return this.setDependingScopesList([]); +proto.clarifai.api.Task.prototype.clearConceptsList = function() { + return this.setConceptsList([]); +}; + + +/** + * optional bool delete_previous_annotations = 20; + * @return {boolean} + */ +proto.clarifai.api.Task.prototype.getDeletePreviousAnnotations = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.Task} returns this + */ +proto.clarifai.api.Task.prototype.setDeletePreviousAnnotations = function(value) { + return jspb.Message.setProto3BooleanField(this, 20, value); }; @@ -27966,7 +46260,7 @@ proto.clarifai.api.ScopeDeps.prototype.clearDependingScopesList = function() { * @private {!Array} * @const */ -proto.clarifai.api.EndpointDeps.repeatedFields_ = [2]; +proto.clarifai.api.AiAssistParameters.repeatedFields_ = [3]; @@ -27983,8 +46277,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.EndpointDeps.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.EndpointDeps.toObject(opt_includeInstance, this); +proto.clarifai.api.AiAssistParameters.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AiAssistParameters.toObject(opt_includeInstance, this); }; @@ -27993,14 +46287,15 @@ proto.clarifai.api.EndpointDeps.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.EndpointDeps} msg The msg instance to transform. + * @param {!proto.clarifai.api.AiAssistParameters} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.EndpointDeps.toObject = function(includeInstance, msg) { +proto.clarifai.api.AiAssistParameters.toObject = function(includeInstance, msg) { var f, obj = { - endpoint: jspb.Message.getFieldWithDefault(msg, 1, ""), - dependingScopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + minThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + maxThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + conceptRelationIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -28014,23 +46309,23 @@ proto.clarifai.api.EndpointDeps.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.EndpointDeps} + * @return {!proto.clarifai.api.AiAssistParameters} */ -proto.clarifai.api.EndpointDeps.deserializeBinary = function(bytes) { +proto.clarifai.api.AiAssistParameters.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.EndpointDeps; - return proto.clarifai.api.EndpointDeps.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.AiAssistParameters; + return proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.EndpointDeps} msg The message object to deserialize into. + * @param {!proto.clarifai.api.AiAssistParameters} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.EndpointDeps} + * @return {!proto.clarifai.api.AiAssistParameters} */ -proto.clarifai.api.EndpointDeps.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28038,12 +46333,16 @@ proto.clarifai.api.EndpointDeps.deserializeBinaryFromReader = function(msg, read var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEndpoint(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setMinThreshold(value); break; case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setMaxThreshold(value); + break; + case 3: var value = /** @type {string} */ (reader.readString()); - msg.addDependingScopes(value); + msg.addConceptRelationIds(value); break; default: reader.skipField(); @@ -28058,9 +46357,9 @@ proto.clarifai.api.EndpointDeps.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.EndpointDeps.prototype.serializeBinary = function() { +proto.clarifai.api.AiAssistParameters.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.EndpointDeps.serializeBinaryToWriter(this, writer); + proto.clarifai.api.AiAssistParameters.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -28068,23 +46367,30 @@ proto.clarifai.api.EndpointDeps.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.EndpointDeps} message + * @param {!proto.clarifai.api.AiAssistParameters} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.EndpointDeps.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.AiAssistParameters.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getEndpoint(); - if (f.length > 0) { - writer.writeString( + f = message.getMinThreshold(); + if (f !== 0.0) { + writer.writeFloat( 1, f ); } - f = message.getDependingScopesList(); + f = message.getMaxThreshold(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } + f = message.getConceptRelationIdsList(); if (f.length > 0) { writer.writeRepeatedString( - 2, + 3, f ); } @@ -28092,61 +46398,111 @@ proto.clarifai.api.EndpointDeps.serializeBinaryToWriter = function(message, writ /** - * optional string endpoint = 1; - * @return {string} + * optional float min_threshold = 1; + * @return {number} */ -proto.clarifai.api.EndpointDeps.prototype.getEndpoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.AiAssistParameters.prototype.getMinThreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.EndpointDeps} returns this + * @param {number} value + * @return {!proto.clarifai.api.AiAssistParameters} returns this */ -proto.clarifai.api.EndpointDeps.prototype.setEndpoint = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.AiAssistParameters.prototype.setMinThreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); }; /** - * repeated string depending_scopes = 2; + * optional float max_threshold = 2; + * @return {number} + */ +proto.clarifai.api.AiAssistParameters.prototype.getMaxThreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.AiAssistParameters} returns this + */ +proto.clarifai.api.AiAssistParameters.prototype.setMaxThreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); +}; + + +/** + * repeated string concept_relation_ids = 3; * @return {!Array} */ -proto.clarifai.api.EndpointDeps.prototype.getDependingScopesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.AiAssistParameters.prototype.getConceptRelationIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.EndpointDeps} returns this + * @return {!proto.clarifai.api.AiAssistParameters} returns this */ -proto.clarifai.api.EndpointDeps.prototype.setDependingScopesList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.AiAssistParameters.prototype.setConceptRelationIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); }; /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.EndpointDeps} returns this + * @return {!proto.clarifai.api.AiAssistParameters} returns this */ -proto.clarifai.api.EndpointDeps.prototype.addDependingScopes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.AiAssistParameters.prototype.addConceptRelationIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.EndpointDeps} returns this + * @return {!proto.clarifai.api.AiAssistParameters} returns this */ -proto.clarifai.api.EndpointDeps.prototype.clearDependingScopesList = function() { - return this.setDependingScopesList([]); +proto.clarifai.api.AiAssistParameters.prototype.clearConceptRelationIdsList = function() { + return this.setConceptRelationIdsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.TaskWorker.repeatedFields_ = [2,4,5,6]; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.TaskWorker.oneofGroups_ = [[3]]; + +/** + * @enum {number} + */ +proto.clarifai.api.TaskWorker.StrategyInfoCase = { + STRATEGY_INFO_NOT_SET: 0, + PARTITIONED_STRATEGY_INFO: 3 +}; + +/** + * @return {proto.clarifai.api.TaskWorker.StrategyInfoCase} + */ +proto.clarifai.api.TaskWorker.prototype.getStrategyInfoCase = function() { + return /** @type {proto.clarifai.api.TaskWorker.StrategyInfoCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.TaskWorker.oneofGroups_[0])); +}; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -28162,8 +46518,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Hit.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Hit.toObject(opt_includeInstance, this); +proto.clarifai.api.TaskWorker.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskWorker.toObject(opt_includeInstance, this); }; @@ -28172,17 +46528,21 @@ proto.clarifai.api.Hit.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Hit} msg The msg instance to transform. + * @param {!proto.clarifai.api.TaskWorker} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Hit.toObject = function(includeInstance, msg) { +proto.clarifai.api.TaskWorker.toObject = function(includeInstance, msg) { var f, obj = { - score: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), - annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f), - userId: jspb.Message.getFieldWithDefault(msg, 4, ""), - appId: jspb.Message.getFieldWithDefault(msg, 5, "") + strategy: jspb.Message.getFieldWithDefault(msg, 1, 0), + userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + usersList: jspb.Message.toObjectList(msg.getUsersList(), + proto.clarifai.api.User.toObject, includeInstance), + modelsList: jspb.Message.toObjectList(msg.getModelsList(), + proto.clarifai.api.Model.toObject, includeInstance), + workflowsList: jspb.Message.toObjectList(msg.getWorkflowsList(), + proto.clarifai.api.Workflow.toObject, includeInstance), + partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -28196,23 +46556,23 @@ proto.clarifai.api.Hit.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Hit} + * @return {!proto.clarifai.api.TaskWorker} */ -proto.clarifai.api.Hit.deserializeBinary = function(bytes) { +proto.clarifai.api.TaskWorker.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Hit; - return proto.clarifai.api.Hit.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TaskWorker; + return proto.clarifai.api.TaskWorker.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Hit} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TaskWorker} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Hit} + * @return {!proto.clarifai.api.TaskWorker} */ -proto.clarifai.api.Hit.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28220,26 +46580,32 @@ proto.clarifai.api.Hit.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setScore(value); + var value = /** @type {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} */ (reader.readEnum()); + msg.setStrategy(value); break; case 2: - var value = new proto.clarifai.api.Input; - reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); - msg.setInput(value); - break; - case 3: - var value = new proto.clarifai.api.Annotation; - reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); - msg.setAnnotation(value); + var value = /** @type {string} */ (reader.readString()); + msg.addUserIds(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); + var value = new proto.clarifai.api.User; + reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader); + msg.addUsers(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); + var value = new proto.clarifai.api.Model; + reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); + msg.addModels(value); + break; + case 6: + var value = new proto.clarifai.api.Workflow; + reader.readMessage(value,proto.clarifai.api.Workflow.deserializeBinaryFromReader); + msg.addWorkflows(value); + break; + case 3: + var value = new proto.clarifai.api.TaskWorkerPartitionedStrategyInfo; + reader.readMessage(value,proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader); + msg.setPartitionedStrategyInfo(value); break; default: reader.skipField(); @@ -28254,9 +46620,9 @@ proto.clarifai.api.Hit.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Hit.prototype.serializeBinary = function() { +proto.clarifai.api.TaskWorker.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Hit.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TaskWorker.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -28264,177 +46630,273 @@ proto.clarifai.api.Hit.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Hit} message + * @param {!proto.clarifai.api.TaskWorker} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Hit.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getScore(); + f = message.getStrategy(); if (f !== 0.0) { - writer.writeFloat( + writer.writeEnum( 1, f ); } - f = message.getInput(); - if (f != null) { - writer.writeMessage( + f = message.getUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, - f, - proto.clarifai.api.Input.serializeBinaryToWriter + f ); } - f = message.getAnnotation(); - if (f != null) { - writer.writeMessage( - 3, + f = message.getUsersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, f, - proto.clarifai.api.Annotation.serializeBinaryToWriter + proto.clarifai.api.User.serializeBinaryToWriter ); } - f = message.getUserId(); + f = message.getModelsList(); if (f.length > 0) { - writer.writeString( - 4, - f + writer.writeRepeatedMessage( + 5, + f, + proto.clarifai.api.Model.serializeBinaryToWriter ); } - f = message.getAppId(); + f = message.getWorkflowsList(); if (f.length > 0) { - writer.writeString( - 5, - f + writer.writeRepeatedMessage( + 6, + f, + proto.clarifai.api.Workflow.serializeBinaryToWriter + ); + } + f = message.getPartitionedStrategyInfo(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter ); } }; /** - * optional float score = 1; - * @return {number} + * @enum {number} */ -proto.clarifai.api.Hit.prototype.getScore = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +proto.clarifai.api.TaskWorker.TaskWorkerStrategy = { + WORKER_STRATEGY_NOT_SET: 0, + PARTITIONED: 2, + FULL: 3 +}; + +/** + * optional TaskWorkerStrategy strategy = 1; + * @return {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} + */ +proto.clarifai.api.TaskWorker.prototype.getStrategy = function() { + return /** @type {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Hit} returns this + * @param {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} value + * @return {!proto.clarifai.api.TaskWorker} returns this */ -proto.clarifai.api.Hit.prototype.setScore = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); +proto.clarifai.api.TaskWorker.prototype.setStrategy = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; /** - * optional Input input = 2; - * @return {?proto.clarifai.api.Input} + * repeated string user_ids = 2; + * @return {!Array} */ -proto.clarifai.api.Hit.prototype.getInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 2)); +proto.clarifai.api.TaskWorker.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.Hit} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.TaskWorker} returns this + */ +proto.clarifai.api.TaskWorker.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.TaskWorker} returns this + */ +proto.clarifai.api.TaskWorker.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.TaskWorker} returns this + */ +proto.clarifai.api.TaskWorker.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); +}; + + +/** + * repeated User users = 4; + * @return {!Array} + */ +proto.clarifai.api.TaskWorker.prototype.getUsersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.User, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.TaskWorker} returns this */ -proto.clarifai.api.Hit.prototype.setInput = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.TaskWorker.prototype.setUsersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Hit} returns this + * @param {!proto.clarifai.api.User=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.User} */ -proto.clarifai.api.Hit.prototype.clearInput = function() { - return this.setInput(undefined); +proto.clarifai.api.TaskWorker.prototype.addUsers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.User, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.TaskWorker} returns this */ -proto.clarifai.api.Hit.prototype.hasInput = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.TaskWorker.prototype.clearUsersList = function() { + return this.setUsersList([]); }; /** - * optional Annotation annotation = 3; - * @return {?proto.clarifai.api.Annotation} + * repeated Model models = 5; + * @return {!Array} */ -proto.clarifai.api.Hit.prototype.getAnnotation = function() { - return /** @type{?proto.clarifai.api.Annotation} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 3)); +proto.clarifai.api.TaskWorker.prototype.getModelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Model, 5)); }; /** - * @param {?proto.clarifai.api.Annotation|undefined} value - * @return {!proto.clarifai.api.Hit} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.TaskWorker} returns this */ -proto.clarifai.api.Hit.prototype.setAnnotation = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.TaskWorker.prototype.setModelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Hit} returns this + * @param {!proto.clarifai.api.Model=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Model} */ -proto.clarifai.api.Hit.prototype.clearAnnotation = function() { - return this.setAnnotation(undefined); +proto.clarifai.api.TaskWorker.prototype.addModels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Model, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.TaskWorker} returns this */ -proto.clarifai.api.Hit.prototype.hasAnnotation = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.TaskWorker.prototype.clearModelsList = function() { + return this.setModelsList([]); }; /** - * optional string user_id = 4; - * @return {string} + * repeated Workflow workflows = 6; + * @return {!Array} */ -proto.clarifai.api.Hit.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.TaskWorker.prototype.getWorkflowsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Workflow, 6)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Hit} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.TaskWorker} returns this +*/ +proto.clarifai.api.TaskWorker.prototype.setWorkflowsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.clarifai.api.Workflow=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Workflow} */ -proto.clarifai.api.Hit.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.TaskWorker.prototype.addWorkflows = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.Workflow, opt_index); }; /** - * optional string app_id = 5; - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.TaskWorker} returns this */ -proto.clarifai.api.Hit.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.TaskWorker.prototype.clearWorkflowsList = function() { + return this.setWorkflowsList([]); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Hit} returns this + * optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3; + * @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ -proto.clarifai.api.Hit.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function() { + return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3)); +}; + + +/** + * @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value + * @return {!proto.clarifai.api.TaskWorker} returns this +*/ +proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.TaskWorker} returns this + */ +proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function() { + return this.setPartitionedStrategyInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -28454,8 +46916,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.And.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.And.toObject(opt_includeInstance, this); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(opt_includeInstance, this); }; @@ -28464,16 +46926,15 @@ proto.clarifai.api.And.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.And} msg The msg instance to transform. + * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.And.toObject = function(includeInstance, msg) { +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject = function(includeInstance, msg) { var f, obj = { - input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), - output: (f = msg.getOutput()) && proto.clarifai.api.Output.toObject(includeInstance, f), - negate: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f) + type: jspb.Message.getFieldWithDefault(msg, 1, 0), + workersPerInput: jspb.Message.getFieldWithDefault(msg, 2, 0), + weights: (f = msg.getWeights()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -28487,23 +46948,23 @@ proto.clarifai.api.And.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.And} + * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ -proto.clarifai.api.And.deserializeBinary = function(bytes) { +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.And; - return proto.clarifai.api.And.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TaskWorkerPartitionedStrategyInfo; + return proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.And} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.And} + * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ -proto.clarifai.api.And.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28511,204 +46972,142 @@ proto.clarifai.api.And.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.Input; - reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); - msg.setInput(value); + var value = /** @type {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} */ (reader.readEnum()); + msg.setType(value); break; case 2: - var value = new proto.clarifai.api.Output; - reader.readMessage(value,proto.clarifai.api.Output.deserializeBinaryFromReader); - msg.setOutput(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNegate(value); - break; - case 4: - var value = new proto.clarifai.api.Annotation; - reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); - msg.setAnnotation(value); - break; - default: - reader.skipField(); + var value = /** @type {number} */ (reader.readInt32()); + msg.setWorkersPerInput(value); break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clarifai.api.And.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.And.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.And} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.And.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getInput(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clarifai.api.Input.serializeBinaryToWriter - ); - } - f = message.getOutput(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.Output.serializeBinaryToWriter - ); - } - f = message.getNegate(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getAnnotation(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.clarifai.api.Annotation.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Input input = 1; - * @return {?proto.clarifai.api.Input} - */ -proto.clarifai.api.And.prototype.getInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 1)); -}; - - -/** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.And} returns this -*/ -proto.clarifai.api.And.prototype.setInput = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + case 3: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setWeights(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.And} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.And.prototype.clearInput = function() { - return this.setInput(undefined); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.And.prototype.hasInput = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getWorkersPerInput(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getWeights(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } }; /** - * optional Output output = 2; - * @return {?proto.clarifai.api.Output} + * @enum {number} */ -proto.clarifai.api.And.prototype.getOutput = function() { - return /** @type{?proto.clarifai.api.Output} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Output, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Output|undefined} value - * @return {!proto.clarifai.api.And} returns this -*/ -proto.clarifai.api.And.prototype.setOutput = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy = { + PARTITIONED_WORKER_STRATEGY_NOT_SET: 0, + EVENLY: 1, + WEIGHTED: 2 }; - /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.And} returns this + * optional TaskWorkerPartitionedStrategy type = 1; + * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} */ -proto.clarifai.api.And.prototype.clearOutput = function() { - return this.setOutput(undefined); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.getType = function() { + return /** @type {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} value + * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this */ -proto.clarifai.api.And.prototype.hasOutput = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; /** - * optional bool negate = 3; - * @return {boolean} + * optional int32 workers_per_input = 2; + * @return {number} */ -proto.clarifai.api.And.prototype.getNegate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.getWorkersPerInput = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.And} returns this + * @param {number} value + * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this */ -proto.clarifai.api.And.prototype.setNegate = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.setWorkersPerInput = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional Annotation annotation = 4; - * @return {?proto.clarifai.api.Annotation} + * optional google.protobuf.Struct weights = 3; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.And.prototype.getAnnotation = function() { - return /** @type{?proto.clarifai.api.Annotation} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 4)); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.getWeights = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); }; /** - * @param {?proto.clarifai.api.Annotation|undefined} value - * @return {!proto.clarifai.api.And} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this */ -proto.clarifai.api.And.prototype.setAnnotation = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.setWeights = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.And} returns this + * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this */ -proto.clarifai.api.And.prototype.clearAnnotation = function() { - return this.setAnnotation(undefined); +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.clearWeights = function() { + return this.setWeights(undefined); }; @@ -28716,19 +47115,12 @@ proto.clarifai.api.And.prototype.clearAnnotation = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.And.prototype.hasAnnotation = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.hasWeights = function() { + return jspb.Message.getField(this, 3) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.Query.repeatedFields_ = [1,3,4]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -28744,8 +47136,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Query.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Query.toObject(opt_includeInstance, this); +proto.clarifai.api.TaskInputSource.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskInputSource.toObject(opt_includeInstance, this); }; @@ -28754,19 +47146,14 @@ proto.clarifai.api.Query.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Query} msg The msg instance to transform. + * @param {!proto.clarifai.api.TaskInputSource} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Query.toObject = function(includeInstance, msg) { +proto.clarifai.api.TaskInputSource.toObject = function(includeInstance, msg) { var f, obj = { - andsList: jspb.Message.toObjectList(msg.getAndsList(), - proto.clarifai.api.And.toObject, includeInstance), - language: jspb.Message.getFieldWithDefault(msg, 2, ""), - filtersList: jspb.Message.toObjectList(msg.getFiltersList(), - proto.clarifai.api.Filter.toObject, includeInstance), - ranksList: jspb.Message.toObjectList(msg.getRanksList(), - proto.clarifai.api.Rank.toObject, includeInstance) + type: jspb.Message.getFieldWithDefault(msg, 1, 0), + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -28780,23 +47167,23 @@ proto.clarifai.api.Query.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Query} + * @return {!proto.clarifai.api.TaskInputSource} */ -proto.clarifai.api.Query.deserializeBinary = function(bytes) { +proto.clarifai.api.TaskInputSource.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Query; - return proto.clarifai.api.Query.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TaskInputSource; + return proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Query} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TaskInputSource} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Query} + * @return {!proto.clarifai.api.TaskInputSource} */ -proto.clarifai.api.Query.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28804,23 +47191,12 @@ proto.clarifai.api.Query.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.And; - reader.readMessage(value,proto.clarifai.api.And.deserializeBinaryFromReader); - msg.addAnds(value); + var value = /** @type {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} */ (reader.readEnum()); + msg.setType(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 3: - var value = new proto.clarifai.api.Filter; - reader.readMessage(value,proto.clarifai.api.Filter.deserializeBinaryFromReader); - msg.addFilters(value); - break; - case 4: - var value = new proto.clarifai.api.Rank; - reader.readMessage(value,proto.clarifai.api.Rank.deserializeBinaryFromReader); - msg.addRanks(value); + msg.setId(value); break; default: reader.skipField(); @@ -28835,9 +47211,9 @@ proto.clarifai.api.Query.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Query.prototype.serializeBinary = function() { +proto.clarifai.api.TaskInputSource.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Query.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TaskInputSource.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -28845,181 +47221,111 @@ proto.clarifai.api.Query.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Query} message + * @param {!proto.clarifai.api.TaskInputSource} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Query.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TaskInputSource.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAndsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( 1, - f, - proto.clarifai.api.And.serializeBinaryToWriter + f ); } - f = message.getLanguage(); + f = message.getId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getFiltersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.clarifai.api.Filter.serializeBinaryToWriter - ); - } - f = message.getRanksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.clarifai.api.Rank.serializeBinaryToWriter - ); - } }; /** - * repeated And ands = 1; - * @return {!Array} + * @enum {number} */ -proto.clarifai.api.Query.prototype.getAndsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.And, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Query} returns this -*/ -proto.clarifai.api.Query.prototype.setAndsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.clarifai.api.TaskInputSource.TaskInputSourceType = { + INPUT_SOURCE_TYPE_NOT_SET: 0, + ALL_INPUTS: 1, + SAVED_SEARCH: 2, + DATASET: 3 }; - /** - * @param {!proto.clarifai.api.And=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.And} + * optional TaskInputSourceType type = 1; + * @return {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} */ -proto.clarifai.api.Query.prototype.addAnds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.And, opt_index); +proto.clarifai.api.TaskInputSource.prototype.getType = function() { + return /** @type {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Query} returns this + * @param {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} value + * @return {!proto.clarifai.api.TaskInputSource} returns this */ -proto.clarifai.api.Query.prototype.clearAndsList = function() { - return this.setAndsList([]); +proto.clarifai.api.TaskInputSource.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; /** - * optional string language = 2; + * optional string id = 2; * @return {string} */ -proto.clarifai.api.Query.prototype.getLanguage = function() { +proto.clarifai.api.TaskInputSource.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Query} returns this + * @return {!proto.clarifai.api.TaskInputSource} returns this */ -proto.clarifai.api.Query.prototype.setLanguage = function(value) { +proto.clarifai.api.TaskInputSource.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * repeated Filter filters = 3; - * @return {!Array} - */ -proto.clarifai.api.Query.prototype.getFiltersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Filter, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Query} returns this -*/ -proto.clarifai.api.Query.prototype.setFiltersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.Filter=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Filter} - */ -proto.clarifai.api.Query.prototype.addFilters = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Filter, opt_index); -}; - /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Query} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.Query.prototype.clearFiltersList = function() { - return this.setFiltersList([]); -}; - +proto.clarifai.api.TaskReview.repeatedFields_ = [2,5]; /** - * repeated Rank ranks = 4; - * @return {!Array} + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const */ -proto.clarifai.api.Query.prototype.getRanksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Rank, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.Query} returns this -*/ -proto.clarifai.api.Query.prototype.setRanksList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - +proto.clarifai.api.TaskReview.oneofGroups_ = [[3,4]]; /** - * @param {!proto.clarifai.api.Rank=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Rank} + * @enum {number} */ -proto.clarifai.api.Query.prototype.addRanks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Rank, opt_index); +proto.clarifai.api.TaskReview.StrategyInfoCase = { + STRATEGY_INFO_NOT_SET: 0, + MANUAL_STRATEGY_INFO: 3, + CONSENSUS_STRATEGY_INFO: 4 }; - /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Query} returns this + * @return {proto.clarifai.api.TaskReview.StrategyInfoCase} */ -proto.clarifai.api.Query.prototype.clearRanksList = function() { - return this.setRanksList([]); +proto.clarifai.api.TaskReview.prototype.getStrategyInfoCase = function() { + return /** @type {proto.clarifai.api.TaskReview.StrategyInfoCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.TaskReview.oneofGroups_[0])); }; - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -29033,8 +47339,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Search.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Search.toObject(opt_includeInstance, this); +proto.clarifai.api.TaskReview.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskReview.toObject(opt_includeInstance, this); }; @@ -29043,24 +47349,18 @@ proto.clarifai.api.Search.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Search} msg The msg instance to transform. + * @param {!proto.clarifai.api.TaskReview} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Search.toObject = function(includeInstance, msg) { +proto.clarifai.api.TaskReview.toObject = function(includeInstance, msg) { var f, obj = { - query: (f = msg.getQuery()) && proto.clarifai.api.Query.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - applicationId: jspb.Message.getFieldWithDefault(msg, 3, ""), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - gitHash: jspb.Message.getFieldWithDefault(msg, 6, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - algorithm: jspb.Message.getFieldWithDefault(msg, 9, ""), - save: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - minValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f) + strategy: jspb.Message.getFieldWithDefault(msg, 1, 0), + userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + usersList: jspb.Message.toObjectList(msg.getUsersList(), + proto.clarifai.api.User.toObject, includeInstance), + manualStrategyInfo: (f = msg.getManualStrategyInfo()) && proto.clarifai.api.TaskReviewManualStrategyInfo.toObject(includeInstance, f), + consensusStrategyInfo: (f = msg.getConsensusStrategyInfo()) && proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -29074,23 +47374,23 @@ proto.clarifai.api.Search.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Search} + * @return {!proto.clarifai.api.TaskReview} */ -proto.clarifai.api.Search.deserializeBinary = function(bytes) { +proto.clarifai.api.TaskReview.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Search; - return proto.clarifai.api.Search.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TaskReview; + return proto.clarifai.api.TaskReview.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Search} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TaskReview} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Search} + * @return {!proto.clarifai.api.TaskReview} */ -proto.clarifai.api.Search.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TaskReview.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -29098,57 +47398,27 @@ proto.clarifai.api.Search.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.Query; - reader.readMessage(value,proto.clarifai.api.Query.deserializeBinaryFromReader); - msg.setQuery(value); + var value = /** @type {!proto.clarifai.api.TaskReview.TaskReviewStrategy} */ (reader.readEnum()); + msg.setStrategy(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setApplicationId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + msg.addUserIds(value); break; case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setAsOf(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGitHash(value); - break; - case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setAlgorithm(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSave(value); + var value = new proto.clarifai.api.User; + reader.readMessage(value,proto.clarifai.api.User.deserializeBinaryFromReader); + msg.addUsers(value); break; - case 11: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMinValue(value); + case 3: + var value = new proto.clarifai.api.TaskReviewManualStrategyInfo; + reader.readMessage(value,proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader); + msg.setManualStrategyInfo(value); break; - case 12: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); + case 4: + var value = new proto.clarifai.api.TaskReviewConsensusStrategyInfo; + reader.readMessage(value,proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader); + msg.setConsensusStrategyInfo(value); break; default: reader.skipField(); @@ -29163,9 +47433,9 @@ proto.clarifai.api.Search.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Search.prototype.serializeBinary = function() { +proto.clarifai.api.TaskReview.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Search.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TaskReview.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -29173,275 +47443,181 @@ proto.clarifai.api.Search.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Search} message + * @param {!proto.clarifai.api.TaskReview} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Search.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TaskReview.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getQuery(); - if (f != null) { - writer.writeMessage( + f = message.getStrategy(); + if (f !== 0.0) { + writer.writeEnum( 1, - f, - proto.clarifai.api.Query.serializeBinaryToWriter - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getApplicationId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAsOf(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getGitHash(); - if (f.length > 0) { - writer.writeString( - 6, f ); } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getAlgorithm(); + f = message.getUserIdsList(); if (f.length > 0) { - writer.writeString( - 9, + writer.writeRepeatedString( + 2, f ); } - f = message.getSave(); - if (f) { - writer.writeBool( - 10, - f + f = message.getUsersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.clarifai.api.User.serializeBinaryToWriter ); } - f = message.getMinValue(); - if (f !== 0.0) { - writer.writeFloat( - 11, - f + f = message.getManualStrategyInfo(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter ); } - f = message.getVisibility(); + f = message.getConsensusStrategyInfo(); if (f != null) { writer.writeMessage( - 12, + 4, f, - proto.clarifai.api.Visibility.serializeBinaryToWriter + proto.clarifai.api.TaskReviewConsensusStrategyInfo.serializeBinaryToWriter ); } }; /** - * optional Query query = 1; - * @return {?proto.clarifai.api.Query} - */ -proto.clarifai.api.Search.prototype.getQuery = function() { - return /** @type{?proto.clarifai.api.Query} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Query, 1)); -}; - - -/** - * @param {?proto.clarifai.api.Query|undefined} value - * @return {!proto.clarifai.api.Search} returns this -*/ -proto.clarifai.api.Search.prototype.setQuery = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Search} returns this + * @enum {number} */ -proto.clarifai.api.Search.prototype.clearQuery = function() { - return this.setQuery(undefined); +proto.clarifai.api.TaskReview.TaskReviewStrategy = { + TASK_REVIEW_STRATEGY_NOT_SET: 0, + NONE: 1, + MANUAL: 2, + CONSENSUS: 3 }; - /** - * Returns whether this field is set. - * @return {boolean} + * optional TaskReviewStrategy strategy = 1; + * @return {!proto.clarifai.api.TaskReview.TaskReviewStrategy} */ -proto.clarifai.api.Search.prototype.hasQuery = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.TaskReview.prototype.getStrategy = function() { + return /** @type {!proto.clarifai.api.TaskReview.TaskReviewStrategy} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * optional string id = 2; - * @return {string} + * @param {!proto.clarifai.api.TaskReview.TaskReviewStrategy} value + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.TaskReview.prototype.setStrategy = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Search} returns this + * repeated string user_ids = 2; + * @return {!Array} */ -proto.clarifai.api.Search.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.TaskReview.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * optional string application_id = 3; - * @return {string} + * @param {!Array} value + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.getApplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.TaskReview.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value - * @return {!proto.clarifai.api.Search} returns this - */ -proto.clarifai.api.Search.prototype.setApplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string name = 4; - * @return {string} + * @param {number=} opt_index + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.TaskReview.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Search} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.TaskReview.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); }; /** - * optional google.protobuf.Timestamp as_of = 5; - * @return {?proto.google.protobuf.Timestamp} + * repeated User users = 5; + * @return {!Array} */ -proto.clarifai.api.Search.prototype.getAsOf = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +proto.clarifai.api.TaskReview.prototype.getUsersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.User, 5)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Search} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.setAsOf = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Search} returns this - */ -proto.clarifai.api.Search.prototype.clearAsOf = function() { - return this.setAsOf(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.Search.prototype.hasAsOf = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.TaskReview.prototype.setUsersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** - * optional string git_hash = 6; - * @return {string} + * @param {!proto.clarifai.api.User=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.User} */ -proto.clarifai.api.Search.prototype.getGitHash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +proto.clarifai.api.TaskReview.prototype.addUsers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.User, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Search} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.setGitHash = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); +proto.clarifai.api.TaskReview.prototype.clearUsersList = function() { + return this.setUsersList([]); }; /** - * optional google.protobuf.Timestamp created_at = 7; - * @return {?proto.google.protobuf.Timestamp} + * optional TaskReviewManualStrategyInfo manual_strategy_info = 3; + * @return {?proto.clarifai.api.TaskReviewManualStrategyInfo} */ -proto.clarifai.api.Search.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); +proto.clarifai.api.TaskReview.prototype.getManualStrategyInfo = function() { + return /** @type{?proto.clarifai.api.TaskReviewManualStrategyInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewManualStrategyInfo, 3)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Search} returns this + * @param {?proto.clarifai.api.TaskReviewManualStrategyInfo|undefined} value + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.TaskReview.prototype.setManualStrategyInfo = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskReview.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Search} returns this + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.TaskReview.prototype.clearManualStrategyInfo = function() { + return this.setManualStrategyInfo(undefined); }; @@ -29449,36 +47625,36 @@ proto.clarifai.api.Search.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Search.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.TaskReview.prototype.hasManualStrategyInfo = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional google.protobuf.Timestamp modified_at = 8; - * @return {?proto.google.protobuf.Timestamp} + * optional TaskReviewConsensusStrategyInfo consensus_strategy_info = 4; + * @return {?proto.clarifai.api.TaskReviewConsensusStrategyInfo} */ -proto.clarifai.api.Search.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +proto.clarifai.api.TaskReview.prototype.getConsensusStrategyInfo = function() { + return /** @type{?proto.clarifai.api.TaskReviewConsensusStrategyInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewConsensusStrategyInfo, 4)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Search} returns this + * @param {?proto.clarifai.api.TaskReviewConsensusStrategyInfo|undefined} value + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 8, value); +proto.clarifai.api.TaskReview.prototype.setConsensusStrategyInfo = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.TaskReview.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Search} returns this + * @return {!proto.clarifai.api.TaskReview} returns this */ -proto.clarifai.api.Search.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.TaskReview.prototype.clearConsensusStrategyInfo = function() { + return this.setConsensusStrategyInfo(undefined); }; @@ -29486,99 +47662,138 @@ proto.clarifai.api.Search.prototype.clearModifiedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Search.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.TaskReview.prototype.hasConsensusStrategyInfo = function() { + return jspb.Message.getField(this, 4) != null; }; -/** - * optional string algorithm = 9; - * @return {string} - */ -proto.clarifai.api.Search.prototype.getAlgorithm = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - -/** - * @param {string} value - * @return {!proto.clarifai.api.Search} returns this - */ -proto.clarifai.api.Search.prototype.setAlgorithm = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional bool save = 10; - * @return {boolean} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Search.prototype.getSave = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskReviewManualStrategyInfo.toObject(opt_includeInstance, this); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Search} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.TaskReviewManualStrategyInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Search.prototype.setSave = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); +proto.clarifai.api.TaskReviewManualStrategyInfo.toObject = function(includeInstance, msg) { + var f, obj = { + samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional float min_value = 11; - * @return {number} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} */ -proto.clarifai.api.Search.prototype.getMinValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0)); +proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.TaskReviewManualStrategyInfo; + return proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader(msg, reader); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Search} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.TaskReviewManualStrategyInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} */ -proto.clarifai.api.Search.prototype.setMinValue = function(value) { - return jspb.Message.setProto3FloatField(this, 11, value); +proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readFloat()); + msg.setSamplePercentage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional Visibility visibility = 12; - * @return {?proto.clarifai.api.Visibility} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Search.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 12)); +proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.Search} returns this -*/ -proto.clarifai.api.Search.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 12, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TaskReviewManualStrategyInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSamplePercentage(); + if (f !== 0.0) { + writer.writeFloat( + 1, + f + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Search} returns this + * optional float sample_percentage = 1; + * @return {number} */ -proto.clarifai.api.Search.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getSamplePercentage = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} returns this */ -proto.clarifai.api.Search.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 12) != null; +proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setSamplePercentage = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); }; @@ -29598,8 +47813,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Filter.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Filter.toObject(opt_includeInstance, this); +proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject(opt_includeInstance, this); }; @@ -29608,16 +47823,13 @@ proto.clarifai.api.Filter.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Filter} msg The msg instance to transform. + * @param {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Filter.toObject = function(includeInstance, msg) { +proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject = function(includeInstance, msg) { var f, obj = { - negate: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f), - input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), - lastUpdatedTimeRange: (f = msg.getLastUpdatedTimeRange()) && proto.clarifai.api.TimeRange.toObject(includeInstance, f) + approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -29631,47 +47843,32 @@ proto.clarifai.api.Filter.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Filter} + * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} */ -proto.clarifai.api.Filter.deserializeBinary = function(bytes) { +proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Filter; - return proto.clarifai.api.Filter.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TaskReviewConsensusStrategyInfo; + return proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Filter} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Filter} + * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} */ -proto.clarifai.api.Filter.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNegate(value); - break; - case 4: - var value = new proto.clarifai.api.Annotation; - reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); - msg.setAnnotation(value); - break; - case 5: - var value = new proto.clarifai.api.Input; - reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); - msg.setInput(value); - break; - case 6: - var value = new proto.clarifai.api.TimeRange; - reader.readMessage(value,proto.clarifai.api.TimeRange.deserializeBinaryFromReader); - msg.setLastUpdatedTimeRange(value); + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setApprovalThreshold(value); break; default: reader.skipField(); @@ -29686,9 +47883,9 @@ proto.clarifai.api.Filter.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Filter.prototype.serializeBinary = function() { +proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Filter.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TaskReviewConsensusStrategyInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -29696,172 +47893,167 @@ proto.clarifai.api.Filter.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Filter} message + * @param {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Filter.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TaskReviewConsensusStrategyInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNegate(); - if (f) { - writer.writeBool( - 3, + f = message.getApprovalThreshold(); + if (f !== 0) { + writer.writeUint32( + 2, f ); } - f = message.getAnnotation(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.clarifai.api.Annotation.serializeBinaryToWriter - ); - } - f = message.getInput(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.clarifai.api.Input.serializeBinaryToWriter - ); - } - f = message.getLastUpdatedTimeRange(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.clarifai.api.TimeRange.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool negate = 3; - * @return {boolean} - */ -proto.clarifai.api.Filter.prototype.getNegate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Filter} returns this + * optional uint32 approval_threshold = 2; + * @return {number} */ -proto.clarifai.api.Filter.prototype.setNegate = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.getApprovalThreshold = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * optional Annotation annotation = 4; - * @return {?proto.clarifai.api.Annotation} + * @param {number} value + * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} returns this */ -proto.clarifai.api.Filter.prototype.getAnnotation = function() { - return /** @type{?proto.clarifai.api.Annotation} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 4)); +proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.setApprovalThreshold = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * @param {?proto.clarifai.api.Annotation|undefined} value - * @return {!proto.clarifai.api.Filter} returns this -*/ -proto.clarifai.api.Filter.prototype.setAnnotation = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Filter} returns this - */ -proto.clarifai.api.Filter.prototype.clearAnnotation = function() { - return this.setAnnotation(undefined); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Returns whether this field is set. - * @return {boolean} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Filter.prototype.hasAnnotation = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.TaskAIAssistant.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskAIAssistant.toObject(opt_includeInstance, this); }; /** - * optional Input input = 5; - * @return {?proto.clarifai.api.Input} - */ -proto.clarifai.api.Filter.prototype.getInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5)); -}; - + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.TaskAIAssistant} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.TaskAIAssistant.toObject = function(includeInstance, msg) { + var f, obj = { + workflowId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; -/** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.Filter} returns this -*/ -proto.clarifai.api.Filter.prototype.setInput = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Filter} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.TaskAIAssistant} */ -proto.clarifai.api.Filter.prototype.clearInput = function() { - return this.setInput(undefined); +proto.clarifai.api.TaskAIAssistant.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.TaskAIAssistant; + return proto.clarifai.api.TaskAIAssistant.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.TaskAIAssistant} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.TaskAIAssistant} */ -proto.clarifai.api.Filter.prototype.hasInput = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.TaskAIAssistant.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional TimeRange last_updated_time_range = 6; - * @return {?proto.clarifai.api.TimeRange} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Filter.prototype.getLastUpdatedTimeRange = function() { - return /** @type{?proto.clarifai.api.TimeRange} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TimeRange, 6)); +proto.clarifai.api.TaskAIAssistant.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TaskAIAssistant.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.clarifai.api.TimeRange|undefined} value - * @return {!proto.clarifai.api.Filter} returns this -*/ -proto.clarifai.api.Filter.prototype.setLastUpdatedTimeRange = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TaskAIAssistant} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.TaskAIAssistant.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getWorkflowId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Filter} returns this + * optional string workflow_id = 1; + * @return {string} */ -proto.clarifai.api.Filter.prototype.clearLastUpdatedTimeRange = function() { - return this.setLastUpdatedTimeRange(undefined); +proto.clarifai.api.TaskAIAssistant.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.TaskAIAssistant} returns this */ -proto.clarifai.api.Filter.prototype.hasLastUpdatedTimeRange = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.TaskAIAssistant.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -29881,8 +48073,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TimeRange.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TimeRange.toObject(opt_includeInstance, this); +proto.clarifai.api.TaskStatusCountPerUser.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskStatusCountPerUser.toObject(opt_includeInstance, this); }; @@ -29891,14 +48083,18 @@ proto.clarifai.api.TimeRange.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TimeRange} msg The msg instance to transform. + * @param {!proto.clarifai.api.TaskStatusCountPerUser} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TimeRange.toObject = function(includeInstance, msg) { +proto.clarifai.api.TaskStatusCountPerUser.toObject = function(includeInstance, msg) { var f, obj = { - startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + pending: jspb.Message.getFieldWithDefault(msg, 2, 0), + awaitingReview: jspb.Message.getFieldWithDefault(msg, 3, 0), + success: jspb.Message.getFieldWithDefault(msg, 4, 0), + reviewDenied: jspb.Message.getFieldWithDefault(msg, 5, 0), + awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -29912,23 +48108,23 @@ proto.clarifai.api.TimeRange.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TimeRange} + * @return {!proto.clarifai.api.TaskStatusCountPerUser} */ -proto.clarifai.api.TimeRange.deserializeBinary = function(bytes) { +proto.clarifai.api.TaskStatusCountPerUser.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TimeRange; - return proto.clarifai.api.TimeRange.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TaskStatusCountPerUser; + return proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TimeRange} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TaskStatusCountPerUser} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TimeRange} + * @return {!proto.clarifai.api.TaskStatusCountPerUser} */ -proto.clarifai.api.TimeRange.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -29936,14 +48132,28 @@ proto.clarifai.api.TimeRange.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStartTime(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); break; case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEndTime(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPending(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAwaitingReview(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setSuccess(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setReviewDenied(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAwaitingConsensusReview(value); break; default: reader.skipField(); @@ -29958,9 +48168,9 @@ proto.clarifai.api.TimeRange.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TimeRange.prototype.serializeBinary = function() { +proto.clarifai.api.TaskStatusCountPerUser.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TimeRange.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -29968,102 +48178,162 @@ proto.clarifai.api.TimeRange.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TimeRange} message + * @param {!proto.clarifai.api.TaskStatusCountPerUser} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TimeRange.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStartTime(); - if (f != null) { - writer.writeMessage( + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } - f = message.getEndTime(); - if (f != null) { - writer.writeMessage( + f = message.getPending(); + if (f !== 0) { + writer.writeUint32( 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f + ); + } + f = message.getAwaitingReview(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getSuccess(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getReviewDenied(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } + f = message.getAwaitingConsensusReview(); + if (f !== 0) { + writer.writeUint32( + 6, + f ); } }; /** - * optional google.protobuf.Timestamp start_time = 1; - * @return {?proto.google.protobuf.Timestamp} + * optional string user_id = 1; + * @return {string} */ -proto.clarifai.api.TimeRange.prototype.getStartTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); +proto.clarifai.api.TaskStatusCountPerUser.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.TimeRange} returns this -*/ -proto.clarifai.api.TimeRange.prototype.setStartTime = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this + */ +proto.clarifai.api.TaskStatusCountPerUser.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TimeRange} returns this + * optional uint32 pending = 2; + * @return {number} */ -proto.clarifai.api.TimeRange.prototype.clearStartTime = function() { - return this.setStartTime(undefined); +proto.clarifai.api.TaskStatusCountPerUser.prototype.getPending = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this */ -proto.clarifai.api.TimeRange.prototype.hasStartTime = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.TaskStatusCountPerUser.prototype.setPending = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional google.protobuf.Timestamp end_time = 2; - * @return {?proto.google.protobuf.Timestamp} + * optional uint32 awaiting_review = 3; + * @return {number} */ -proto.clarifai.api.TimeRange.prototype.getEndTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +proto.clarifai.api.TaskStatusCountPerUser.prototype.getAwaitingReview = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.TimeRange} returns this -*/ -proto.clarifai.api.TimeRange.prototype.setEndTime = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {number} value + * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this + */ +proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingReview = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TimeRange} returns this + * optional uint32 success = 4; + * @return {number} */ -proto.clarifai.api.TimeRange.prototype.clearEndTime = function() { - return this.setEndTime(undefined); +proto.clarifai.api.TaskStatusCountPerUser.prototype.getSuccess = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this */ -proto.clarifai.api.TimeRange.prototype.hasEndTime = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.TaskStatusCountPerUser.prototype.setSuccess = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint32 review_denied = 5; + * @return {number} + */ +proto.clarifai.api.TaskStatusCountPerUser.prototype.getReviewDenied = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this + */ +proto.clarifai.api.TaskStatusCountPerUser.prototype.setReviewDenied = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint32 awaiting_consensus_review = 6; + * @return {number} + */ +proto.clarifai.api.TaskStatusCountPerUser.prototype.getAwaitingConsensusReview = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this + */ +proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingConsensusReview = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; @@ -30083,8 +48353,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Rank.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Rank.toObject(opt_includeInstance, this); +proto.clarifai.api.ThresholdRange.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ThresholdRange.toObject(opt_includeInstance, this); }; @@ -30093,14 +48363,16 @@ proto.clarifai.api.Rank.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Rank} msg The msg instance to transform. + * @param {!proto.clarifai.api.ThresholdRange} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Rank.toObject = function(includeInstance, msg) { +proto.clarifai.api.ThresholdRange.toObject = function(includeInstance, msg) { var f, obj = { - negate: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - annotation: (f = msg.getAnnotation()) && proto.clarifai.api.Annotation.toObject(includeInstance, f) + isLowerInclusive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + isUpperInclusive: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + lower: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), + upper: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0) }; if (includeInstance) { @@ -30114,37 +48386,44 @@ proto.clarifai.api.Rank.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Rank} + * @return {!proto.clarifai.api.ThresholdRange} */ -proto.clarifai.api.Rank.deserializeBinary = function(bytes) { +proto.clarifai.api.ThresholdRange.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Rank; - return proto.clarifai.api.Rank.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ThresholdRange; + return proto.clarifai.api.ThresholdRange.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Rank} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ThresholdRange} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Rank} + * @return {!proto.clarifai.api.ThresholdRange} */ -proto.clarifai.api.Rank.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ThresholdRange.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 3: + case 1: var value = /** @type {boolean} */ (reader.readBool()); - msg.setNegate(value); + msg.setIsLowerInclusive(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsUpperInclusive(value); + break; + case 3: + var value = /** @type {number} */ (reader.readFloat()); + msg.setLower(value); break; case 4: - var value = new proto.clarifai.api.Annotation; - reader.readMessage(value,proto.clarifai.api.Annotation.deserializeBinaryFromReader); - msg.setAnnotation(value); + var value = /** @type {number} */ (reader.readFloat()); + msg.setUpper(value); break; default: reader.skipField(); @@ -30159,9 +48438,9 @@ proto.clarifai.api.Rank.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Rank.prototype.serializeBinary = function() { +proto.clarifai.api.ThresholdRange.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Rank.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ThresholdRange.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -30169,82 +48448,112 @@ proto.clarifai.api.Rank.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Rank} message + * @param {!proto.clarifai.api.ThresholdRange} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Rank.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ThresholdRange.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNegate(); + f = message.getIsLowerInclusive(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getIsUpperInclusive(); if (f) { writer.writeBool( + 2, + f + ); + } + f = message.getLower(); + if (f !== 0.0) { + writer.writeFloat( 3, f ); } - f = message.getAnnotation(); - if (f != null) { - writer.writeMessage( + f = message.getUpper(); + if (f !== 0.0) { + writer.writeFloat( 4, - f, - proto.clarifai.api.Annotation.serializeBinaryToWriter + f ); } }; /** - * optional bool negate = 3; + * optional bool is_lower_inclusive = 1; * @return {boolean} */ -proto.clarifai.api.Rank.prototype.getNegate = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.ThresholdRange.prototype.getIsLowerInclusive = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value - * @return {!proto.clarifai.api.Rank} returns this + * @return {!proto.clarifai.api.ThresholdRange} returns this */ -proto.clarifai.api.Rank.prototype.setNegate = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.ThresholdRange.prototype.setIsLowerInclusive = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); }; /** - * optional Annotation annotation = 4; - * @return {?proto.clarifai.api.Annotation} + * optional bool is_upper_inclusive = 2; + * @return {boolean} */ -proto.clarifai.api.Rank.prototype.getAnnotation = function() { - return /** @type{?proto.clarifai.api.Annotation} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Annotation, 4)); +proto.clarifai.api.ThresholdRange.prototype.getIsUpperInclusive = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** - * @param {?proto.clarifai.api.Annotation|undefined} value - * @return {!proto.clarifai.api.Rank} returns this -*/ -proto.clarifai.api.Rank.prototype.setAnnotation = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {boolean} value + * @return {!proto.clarifai.api.ThresholdRange} returns this + */ +proto.clarifai.api.ThresholdRange.prototype.setIsUpperInclusive = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Rank} returns this + * optional float lower = 3; + * @return {number} */ -proto.clarifai.api.Rank.prototype.clearAnnotation = function() { - return this.setAnnotation(undefined); +proto.clarifai.api.ThresholdRange.prototype.getLower = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.ThresholdRange} returns this */ -proto.clarifai.api.Rank.prototype.hasAnnotation = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.ThresholdRange.prototype.setLower = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * optional float upper = 4; + * @return {number} + */ +proto.clarifai.api.ThresholdRange.prototype.getUpper = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ThresholdRange} returns this + */ +proto.clarifai.api.ThresholdRange.prototype.setUpper = function(value) { + return jspb.Message.setProto3FloatField(this, 4, value); }; @@ -30264,8 +48573,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.AnnotationSearchMetrics.toObject(opt_includeInstance, this); +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskConceptAutoAnnotationConfig.toObject(opt_includeInstance, this); }; @@ -30274,18 +48583,15 @@ proto.clarifai.api.AnnotationSearchMetrics.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.AnnotationSearchMetrics} msg The msg instance to transform. + * @param {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AnnotationSearchMetrics.toObject = function(includeInstance, msg) { +proto.clarifai.api.TaskConceptAutoAnnotationConfig.toObject = function(includeInstance, msg) { var f, obj = { - groundTruth: (f = msg.getGroundTruth()) && proto.clarifai.api.Search.toObject(includeInstance, f), - searchToEval: (f = msg.getSearchToEval()) && proto.clarifai.api.Search.toObject(includeInstance, f), - metrics: (f = msg.getMetrics()) && proto.clarifai.api.EvalMetrics.toObject(includeInstance, f), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - activeConceptCount: jspb.Message.getFieldWithDefault(msg, 5, 0), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f) + annotationDataTypes: jspb.Message.getFieldWithDefault(msg, 1, 0), + thresholdRange: (f = msg.getThresholdRange()) && proto.clarifai.api.ThresholdRange.toObject(includeInstance, f), + statusCode: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -30299,23 +48605,23 @@ proto.clarifai.api.AnnotationSearchMetrics.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.AnnotationSearchMetrics} + * @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} */ -proto.clarifai.api.AnnotationSearchMetrics.deserializeBinary = function(bytes) { +proto.clarifai.api.TaskConceptAutoAnnotationConfig.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.AnnotationSearchMetrics; - return proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TaskConceptAutoAnnotationConfig; + return proto.clarifai.api.TaskConceptAutoAnnotationConfig.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.AnnotationSearchMetrics} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.AnnotationSearchMetrics} + * @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} */ -proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TaskConceptAutoAnnotationConfig.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -30323,33 +48629,17 @@ proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.Search; - reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); - msg.setGroundTruth(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setAnnotationDataTypes(value); break; case 2: - var value = new proto.clarifai.api.Search; - reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); - msg.setSearchToEval(value); + var value = new proto.clarifai.api.ThresholdRange; + reader.readMessage(value,proto.clarifai.api.ThresholdRange.deserializeBinaryFromReader); + msg.setThresholdRange(value); break; case 3: - var value = new proto.clarifai.api.EvalMetrics; - reader.readMessage(value,proto.clarifai.api.EvalMetrics.deserializeBinaryFromReader); - msg.setMetrics(value); - break; - case 4: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setActiveConceptCount(value); - break; - case 6: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); + var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum()); + msg.setStatusCode(value); break; default: reader.skipField(); @@ -30358,269 +48648,316 @@ proto.clarifai.api.AnnotationSearchMetrics.deserializeBinaryFromReader = functio } return msg; }; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.AnnotationSearchMetrics.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.AnnotationSearchMetrics} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.AnnotationSearchMetrics.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGroundTruth(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clarifai.api.Search.serializeBinaryToWriter - ); - } - f = message.getSearchToEval(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.Search.serializeBinaryToWriter - ); - } - f = message.getMetrics(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.EvalMetrics.serializeBinaryToWriter - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.clarifai.api.Data.serializeBinaryToWriter - ); - } - f = message.getActiveConceptCount(); + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TaskConceptAutoAnnotationConfig.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.TaskConceptAutoAnnotationConfig.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAnnotationDataTypes(); if (f !== 0) { writer.writeUint32( - 5, + 1, f ); } - f = message.getVisibility(); + f = message.getThresholdRange(); if (f != null) { writer.writeMessage( - 6, + 2, f, - proto.clarifai.api.Visibility.serializeBinaryToWriter + proto.clarifai.api.ThresholdRange.serializeBinaryToWriter + ); + } + f = message.getStatusCode(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f ); } }; /** - * optional Search ground_truth = 1; - * @return {?proto.clarifai.api.Search} + * optional uint32 annotation_data_types = 1; + * @return {number} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.getGroundTruth = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 1)); +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.getAnnotationDataTypes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this -*/ -proto.clarifai.api.AnnotationSearchMetrics.prototype.setGroundTruth = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this + */ +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.setAnnotationDataTypes = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + * optional ThresholdRange threshold_range = 2; + * @return {?proto.clarifai.api.ThresholdRange} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.clearGroundTruth = function() { - return this.setGroundTruth(undefined); +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.getThresholdRange = function() { + return /** @type{?proto.clarifai.api.ThresholdRange} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ThresholdRange, 2)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.hasGroundTruth = function() { - return jspb.Message.getField(this, 1) != null; + * @param {?proto.clarifai.api.ThresholdRange|undefined} value + * @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this +*/ +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.setThresholdRange = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional Search search_to_eval = 2; - * @return {?proto.clarifai.api.Search} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.getSearchToEval = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 2)); +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.clearThresholdRange = function() { + return this.setThresholdRange(undefined); }; /** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this -*/ -proto.clarifai.api.AnnotationSearchMetrics.prototype.setSearchToEval = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.hasThresholdRange = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + * optional status.StatusCode status_code = 3; + * @return {!proto.clarifai.api.status.StatusCode} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.clearSearchToEval = function() { - return this.setSearchToEval(undefined); +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.getStatusCode = function() { + return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.clarifai.api.status.StatusCode} value + * @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.hasSearchToEval = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.setStatusCode = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional EvalMetrics metrics = 3; - * @return {?proto.clarifai.api.EvalMetrics} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.getMetrics = function() { - return /** @type{?proto.clarifai.api.EvalMetrics} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.EvalMetrics, 3)); +proto.clarifai.api.TaskConcept.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TaskConcept.toObject(opt_includeInstance, this); }; /** - * @param {?proto.clarifai.api.EvalMetrics|undefined} value - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this -*/ -proto.clarifai.api.AnnotationSearchMetrics.prototype.setMetrics = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.TaskConcept} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.TaskConcept.toObject = function(includeInstance, msg) { + var f, obj = { + concept: (f = msg.getConcept()) && proto.clarifai.api.Concept.toObject(includeInstance, f), + autoAnnotationConfig: (f = msg.getAutoAnnotationConfig()) && proto.clarifai.api.TaskConceptAutoAnnotationConfig.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.TaskConcept} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.clearMetrics = function() { - return this.setMetrics(undefined); +proto.clarifai.api.TaskConcept.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.TaskConcept; + return proto.clarifai.api.TaskConcept.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.TaskConcept} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.TaskConcept} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.hasMetrics = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.TaskConcept.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.setConcept(value); + break; + case 2: + var value = new proto.clarifai.api.TaskConceptAutoAnnotationConfig; + reader.readMessage(value,proto.clarifai.api.TaskConceptAutoAnnotationConfig.deserializeBinaryFromReader); + msg.setAutoAnnotationConfig(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional Data data = 4; - * @return {?proto.clarifai.api.Data} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 4)); +proto.clarifai.api.TaskConcept.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TaskConcept.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this -*/ -proto.clarifai.api.AnnotationSearchMetrics.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TaskConcept} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.TaskConcept.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getConcept(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.Concept.serializeBinaryToWriter + ); + } + f = message.getAutoAnnotationConfig(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.TaskConceptAutoAnnotationConfig.serializeBinaryToWriter + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + * optional Concept concept = 1; + * @return {?proto.clarifai.api.Concept} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.TaskConcept.prototype.getConcept = function() { + return /** @type{?proto.clarifai.api.Concept} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Concept, 1)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.hasData = function() { - return jspb.Message.getField(this, 4) != null; + * @param {?proto.clarifai.api.Concept|undefined} value + * @return {!proto.clarifai.api.TaskConcept} returns this +*/ +proto.clarifai.api.TaskConcept.prototype.setConcept = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional uint32 active_concept_count = 5; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.TaskConcept} returns this */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.getActiveConceptCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.clarifai.api.TaskConcept.prototype.clearConcept = function() { + return this.setConcept(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.setActiveConceptCount = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.clarifai.api.TaskConcept.prototype.hasConcept = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional Visibility visibility = 6; - * @return {?proto.clarifai.api.Visibility} + * optional TaskConceptAutoAnnotationConfig auto_annotation_config = 2; + * @return {?proto.clarifai.api.TaskConceptAutoAnnotationConfig} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 6)); +proto.clarifai.api.TaskConcept.prototype.getAutoAnnotationConfig = function() { + return /** @type{?proto.clarifai.api.TaskConceptAutoAnnotationConfig} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TaskConceptAutoAnnotationConfig, 2)); }; /** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + * @param {?proto.clarifai.api.TaskConceptAutoAnnotationConfig|undefined} value + * @return {!proto.clarifai.api.TaskConcept} returns this */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.TaskConcept.prototype.setAutoAnnotationConfig = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AnnotationSearchMetrics} returns this + * @return {!proto.clarifai.api.TaskConcept} returns this */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.TaskConcept.prototype.clearAutoAnnotationConfig = function() { + return this.setAutoAnnotationConfig(undefined); }; @@ -30628,8 +48965,8 @@ proto.clarifai.api.AnnotationSearchMetrics.prototype.clearVisibility = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.AnnotationSearchMetrics.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.TaskConcept.prototype.hasAutoAnnotationConfig = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -30649,8 +48986,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Text.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Text.toObject(opt_includeInstance, this); +proto.clarifai.api.Collector.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Collector.toObject(opt_includeInstance, this); }; @@ -30659,17 +48996,19 @@ proto.clarifai.api.Text.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Text} msg The msg instance to transform. + * @param {!proto.clarifai.api.Collector} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Text.toObject = function(includeInstance, msg) { +proto.clarifai.api.Collector.toObject = function(includeInstance, msg) { var f, obj = { - raw: jspb.Message.getFieldWithDefault(msg, 1, ""), - url: jspb.Message.getFieldWithDefault(msg, 2, ""), - allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), - textInfo: (f = msg.getTextInfo()) && proto.clarifai.api.TextInfo.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + preQueueWorkflowId: jspb.Message.getFieldWithDefault(msg, 4, ""), + postQueueWorkflowId: jspb.Message.getFieldWithDefault(msg, 5, ""), + collectorSource: (f = msg.getCollectorSource()) && proto.clarifai.api.CollectorSource.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f) }; if (includeInstance) { @@ -30683,23 +49022,23 @@ proto.clarifai.api.Text.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Text} + * @return {!proto.clarifai.api.Collector} */ -proto.clarifai.api.Text.deserializeBinary = function(bytes) { +proto.clarifai.api.Collector.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Text; - return proto.clarifai.api.Text.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Collector; + return proto.clarifai.api.Collector.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Text} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Collector} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Text} + * @return {!proto.clarifai.api.Collector} */ -proto.clarifai.api.Text.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Collector.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -30708,25 +49047,34 @@ proto.clarifai.api.Text.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setRaw(value); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); + msg.setDescription(value); break; case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowDuplicateUrl(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 4: - var value = new proto.clarifai.api.HostedURL; - reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); - msg.setHosted(value); + var value = /** @type {string} */ (reader.readString()); + msg.setPreQueueWorkflowId(value); break; case 5: - var value = new proto.clarifai.api.TextInfo; - reader.readMessage(value,proto.clarifai.api.TextInfo.deserializeBinaryFromReader); - msg.setTextInfo(value); + var value = /** @type {string} */ (reader.readString()); + msg.setPostQueueWorkflowId(value); + break; + case 6: + var value = new proto.clarifai.api.CollectorSource; + reader.readMessage(value,proto.clarifai.api.CollectorSource.deserializeBinaryFromReader); + msg.setCollectorSource(value); + break; + case 7: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; default: reader.skipField(); @@ -30741,9 +49089,9 @@ proto.clarifai.api.Text.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Text.prototype.serializeBinary = function() { +proto.clarifai.api.Collector.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Text.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Collector.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -30751,131 +49099,201 @@ proto.clarifai.api.Text.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Text} message + * @param {!proto.clarifai.api.Collector} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Text.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Collector.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getRaw(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getUrl(); + f = message.getDescription(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getAllowDuplicateUrl(); - if (f) { - writer.writeBool( + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getPreQueueWorkflowId(); + if (f.length > 0) { + writer.writeString( + 4, f ); } - f = message.getHosted(); + f = message.getPostQueueWorkflowId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getCollectorSource(); if (f != null) { writer.writeMessage( - 4, + 6, f, - proto.clarifai.api.HostedURL.serializeBinaryToWriter + proto.clarifai.api.CollectorSource.serializeBinaryToWriter ); } - f = message.getTextInfo(); + f = message.getStatus(); if (f != null) { writer.writeMessage( - 5, + 7, f, - proto.clarifai.api.TextInfo.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } }; /** - * optional string raw = 1; + * optional string id = 1; * @return {string} */ -proto.clarifai.api.Text.prototype.getRaw = function() { +proto.clarifai.api.Collector.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Text} returns this + * @return {!proto.clarifai.api.Collector} returns this */ -proto.clarifai.api.Text.prototype.setRaw = function(value) { +proto.clarifai.api.Collector.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string url = 2; + * optional string description = 2; * @return {string} */ -proto.clarifai.api.Text.prototype.getUrl = function() { +proto.clarifai.api.Collector.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Text} returns this + * @return {!proto.clarifai.api.Collector} returns this */ -proto.clarifai.api.Text.prototype.setUrl = function(value) { +proto.clarifai.api.Collector.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional bool allow_duplicate_url = 3; + * optional google.protobuf.Timestamp created_at = 3; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Collector.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Collector} returns this +*/ +proto.clarifai.api.Collector.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Collector} returns this + */ +proto.clarifai.api.Collector.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Text.prototype.getAllowDuplicateUrl = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.Collector.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Text} returns this + * optional string pre_queue_workflow_id = 4; + * @return {string} */ -proto.clarifai.api.Text.prototype.setAllowDuplicateUrl = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.Collector.prototype.getPreQueueWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * optional HostedURL hosted = 4; - * @return {?proto.clarifai.api.HostedURL} + * @param {string} value + * @return {!proto.clarifai.api.Collector} returns this */ -proto.clarifai.api.Text.prototype.getHosted = function() { - return /** @type{?proto.clarifai.api.HostedURL} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 4)); +proto.clarifai.api.Collector.prototype.setPreQueueWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * @param {?proto.clarifai.api.HostedURL|undefined} value - * @return {!proto.clarifai.api.Text} returns this + * optional string post_queue_workflow_id = 5; + * @return {string} + */ +proto.clarifai.api.Collector.prototype.getPostQueueWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Collector} returns this + */ +proto.clarifai.api.Collector.prototype.setPostQueueWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional CollectorSource collector_source = 6; + * @return {?proto.clarifai.api.CollectorSource} + */ +proto.clarifai.api.Collector.prototype.getCollectorSource = function() { + return /** @type{?proto.clarifai.api.CollectorSource} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.CollectorSource, 6)); +}; + + +/** + * @param {?proto.clarifai.api.CollectorSource|undefined} value + * @return {!proto.clarifai.api.Collector} returns this */ -proto.clarifai.api.Text.prototype.setHosted = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.Collector.prototype.setCollectorSource = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Text} returns this + * @return {!proto.clarifai.api.Collector} returns this */ -proto.clarifai.api.Text.prototype.clearHosted = function() { - return this.setHosted(undefined); +proto.clarifai.api.Collector.prototype.clearCollectorSource = function() { + return this.setCollectorSource(undefined); }; @@ -30883,36 +49301,36 @@ proto.clarifai.api.Text.prototype.clearHosted = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Text.prototype.hasHosted = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.Collector.prototype.hasCollectorSource = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional TextInfo text_info = 5; - * @return {?proto.clarifai.api.TextInfo} + * optional status.Status status = 7; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.Text.prototype.getTextInfo = function() { - return /** @type{?proto.clarifai.api.TextInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TextInfo, 5)); +proto.clarifai.api.Collector.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 7)); }; /** - * @param {?proto.clarifai.api.TextInfo|undefined} value - * @return {!proto.clarifai.api.Text} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.Collector} returns this */ -proto.clarifai.api.Text.prototype.setTextInfo = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.Collector.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Text} returns this + * @return {!proto.clarifai.api.Collector} returns this */ -proto.clarifai.api.Text.prototype.clearTextInfo = function() { - return this.setTextInfo(undefined); +proto.clarifai.api.Collector.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -30920,8 +49338,8 @@ proto.clarifai.api.Text.prototype.clearTextInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Text.prototype.hasTextInfo = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.Collector.prototype.hasStatus = function() { + return jspb.Message.getField(this, 7) != null; }; @@ -30941,8 +49359,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TextInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TextInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.CollectorSource.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.CollectorSource.toObject(opt_includeInstance, this); }; @@ -30951,14 +49369,13 @@ proto.clarifai.api.TextInfo.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TextInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.CollectorSource} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TextInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.CollectorSource.toObject = function(includeInstance, msg) { var f, obj = { - charCount: jspb.Message.getFieldWithDefault(msg, 1, 0), - encoding: jspb.Message.getFieldWithDefault(msg, 2, "") + apiPostModelOutputsCollectorSource: (f = msg.getApiPostModelOutputsCollectorSource()) && proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject(includeInstance, f) }; if (includeInstance) { @@ -30972,36 +49389,33 @@ proto.clarifai.api.TextInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TextInfo} + * @return {!proto.clarifai.api.CollectorSource} */ -proto.clarifai.api.TextInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.CollectorSource.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TextInfo; - return proto.clarifai.api.TextInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.CollectorSource; + return proto.clarifai.api.CollectorSource.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TextInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.CollectorSource} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TextInfo} + * @return {!proto.clarifai.api.CollectorSource} */ -proto.clarifai.api.TextInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.CollectorSource.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setCharCount(value); - break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEncoding(value); + var value = new proto.clarifai.api.APIPostModelOutputsCollectorSource; + reader.readMessage(value,proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReader); + msg.setApiPostModelOutputsCollectorSource(value); break; default: reader.skipField(); @@ -31016,9 +49430,9 @@ proto.clarifai.api.TextInfo.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TextInfo.prototype.serializeBinary = function() { +proto.clarifai.api.CollectorSource.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TextInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.CollectorSource.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -31026,73 +49440,61 @@ proto.clarifai.api.TextInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TextInfo} message + * @param {!proto.clarifai.api.CollectorSource} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TextInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.CollectorSource.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCharCount(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getEncoding(); - if (f.length > 0) { - writer.writeString( + f = message.getApiPostModelOutputsCollectorSource(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter ); } }; /** - * optional int32 char_count = 1; - * @return {number} + * optional APIPostModelOutputsCollectorSource api_post_model_outputs_collector_source = 2; + * @return {?proto.clarifai.api.APIPostModelOutputsCollectorSource} */ -proto.clarifai.api.TextInfo.prototype.getCharCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.CollectorSource.prototype.getApiPostModelOutputsCollectorSource = function() { + return /** @type{?proto.clarifai.api.APIPostModelOutputsCollectorSource} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.APIPostModelOutputsCollectorSource, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TextInfo} returns this - */ -proto.clarifai.api.TextInfo.prototype.setCharCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + * @param {?proto.clarifai.api.APIPostModelOutputsCollectorSource|undefined} value + * @return {!proto.clarifai.api.CollectorSource} returns this +*/ +proto.clarifai.api.CollectorSource.prototype.setApiPostModelOutputsCollectorSource = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional string encoding = 2; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.CollectorSource} returns this */ -proto.clarifai.api.TextInfo.prototype.getEncoding = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.CollectorSource.prototype.clearApiPostModelOutputsCollectorSource = function() { + return this.setApiPostModelOutputsCollectorSource(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.TextInfo} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TextInfo.prototype.setEncoding = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.CollectorSource.prototype.hasApiPostModelOutputsCollectorSource = function() { + return jspb.Message.getField(this, 2) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.User.repeatedFields_ = [12]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -31108,8 +49510,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.User.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.User.toObject(opt_includeInstance, this); +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject(opt_includeInstance, this); }; @@ -31118,34 +49520,17 @@ proto.clarifai.api.User.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.User} msg The msg instance to transform. + * @param {!proto.clarifai.api.APIPostModelOutputsCollectorSource} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.toObject = function(includeInstance, msg) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - primaryEmail: jspb.Message.getFieldWithDefault(msg, 2, ""), - firstName: jspb.Message.getFieldWithDefault(msg, 3, ""), - lastName: jspb.Message.getFieldWithDefault(msg, 4, ""), - companyName: jspb.Message.getFieldWithDefault(msg, 5, ""), - jobTitle: jspb.Message.getFieldWithDefault(msg, 19, ""), - jobRole: jspb.Message.getFieldWithDefault(msg, 20, ""), - billType: jspb.Message.getFieldWithDefault(msg, 7, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - dateTosConsent: (f = msg.getDateTosConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - dateMarketingConsent: (f = msg.getDateMarketingConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - emailAddressesList: jspb.Message.toObjectList(msg.getEmailAddressesList(), - proto.clarifai.api.EmailAddress.toObject, includeInstance), - isOrgAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - twoFactorAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - teamsCount: jspb.Message.getFieldWithDefault(msg, 16, 0), - isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), - starCount: jspb.Message.getFieldWithDefault(msg, 22, 0), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - userDetail: (f = msg.getUserDetail()) && proto.clarifai.api.UserDetail.toObject(includeInstance, f) + modelUserId: jspb.Message.getFieldWithDefault(msg, 1, ""), + modelAppId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""), + postInputsKeyId: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -31159,23 +49544,23 @@ proto.clarifai.api.User.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.User} + * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} */ -proto.clarifai.api.User.deserializeBinary = function(bytes) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.User; - return proto.clarifai.api.User.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.APIPostModelOutputsCollectorSource; + return proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.User} msg The message object to deserialize into. + * @param {!proto.clarifai.api.APIPostModelOutputsCollectorSource} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.User} + * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} */ -proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -31184,95 +49569,23 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setModelUserId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setPrimaryEmail(value); + msg.setModelAppId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setFirstName(value); + msg.setModelId(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setLastName(value); + msg.setModelVersionId(value); break; case 5: var value = /** @type {string} */ (reader.readString()); - msg.setCompanyName(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.setJobTitle(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setJobRole(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setBillType(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDateGdprConsent(value); - break; - case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDateTosConsent(value); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDateMarketingConsent(value); - break; - case 11: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 12: - var value = new proto.clarifai.api.EmailAddress; - reader.readMessage(value,proto.clarifai.api.EmailAddress.deserializeBinaryFromReader); - msg.addEmailAddresses(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsOrgAdmin(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTwoFactorAuthEnabled(value); - break; - case 16: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTeamsCount(value); - break; - case 21: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsStarred(value); - break; - case 22: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStarCount(value); - break; - case 17: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); - break; - case 18: - var value = new proto.clarifai.api.UserDetail; - reader.readMessage(value,proto.clarifai.api.UserDetail.deserializeBinaryFromReader); - msg.setUserDetail(value); + msg.setPostInputsKeyId(value); break; default: reader.skipField(); @@ -31287,9 +49600,9 @@ proto.clarifai.api.User.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.User.prototype.serializeBinary = function() { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.User.serializeBinaryToWriter(this, writer); + proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -31297,339 +49610,310 @@ proto.clarifai.api.User.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.User} message + * @param {!proto.clarifai.api.APIPostModelOutputsCollectorSource} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getModelUserId(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getPrimaryEmail(); + f = message.getModelAppId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getFirstName(); + f = message.getModelId(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getLastName(); + f = message.getModelVersionId(); if (f.length > 0) { writer.writeString( 4, f ); } - f = message.getCompanyName(); + f = message.getPostInputsKeyId(); if (f.length > 0) { writer.writeString( 5, f ); } - f = message.getJobTitle(); - if (f.length > 0) { - writer.writeString( - 19, - f - ); - } - f = message.getJobRole(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getBillType(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDateGdprConsent(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDateTosConsent(); - if (f != null) { - writer.writeMessage( - 9, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getDateMarketingConsent(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 11, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getEmailAddressesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 12, - f, - proto.clarifai.api.EmailAddress.serializeBinaryToWriter - ); - } - f = message.getIsOrgAdmin(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getTwoFactorAuthEnabled(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getTeamsCount(); - if (f !== 0) { - writer.writeUint32( - 16, - f - ); - } - f = message.getIsStarred(); - if (f) { - writer.writeBool( - 21, - f - ); - } - f = message.getStarCount(); - if (f !== 0) { - writer.writeInt32( - 22, - f - ); - } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 17, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter - ); - } - f = message.getUserDetail(); - if (f != null) { - writer.writeMessage( - 18, - f, - proto.clarifai.api.UserDetail.serializeBinaryToWriter - ); - } }; /** - * optional string id = 1; + * optional string model_user_id = 1; * @return {string} */ -proto.clarifai.api.User.prototype.getId = function() { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelUserId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this */ -proto.clarifai.api.User.prototype.setId = function(value) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelUserId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string primary_email = 2; + * optional string model_app_id = 2; * @return {string} */ -proto.clarifai.api.User.prototype.getPrimaryEmail = function() { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelAppId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this */ -proto.clarifai.api.User.prototype.setPrimaryEmail = function(value) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelAppId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string first_name = 3; + * optional string model_id = 3; * @return {string} */ -proto.clarifai.api.User.prototype.getFirstName = function() { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this */ -proto.clarifai.api.User.prototype.setFirstName = function(value) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelId = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string last_name = 4; + * optional string model_version_id = 4; * @return {string} */ -proto.clarifai.api.User.prototype.getLastName = function() { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelVersionId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this */ -proto.clarifai.api.User.prototype.setLastName = function(value) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelVersionId = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional string company_name = 5; + * optional string post_inputs_key_id = 5; * @return {string} */ -proto.clarifai.api.User.prototype.getCompanyName = function() { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getPostInputsKeyId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this */ -proto.clarifai.api.User.prototype.setCompanyName = function(value) { +proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setPostInputsKeyId = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; + /** - * optional string job_title = 19; - * @return {string} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.User.prototype.getJobTitle = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "")); +proto.clarifai.api.StatValue.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.StatValue.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.StatValue.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.StatValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.prototype.setJobTitle = function(value) { - return jspb.Message.setProto3StringField(this, 19, value); +proto.clarifai.api.StatValue.toObject = function(includeInstance, msg) { + var f, obj = { + time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string job_role = 20; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.StatValue} */ -proto.clarifai.api.User.prototype.getJobRole = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); +proto.clarifai.api.StatValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.StatValue; + return proto.clarifai.api.StatValue.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.StatValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.StatValue} */ -proto.clarifai.api.User.prototype.setJobRole = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); +proto.clarifai.api.StatValue.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTime(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setValue(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string bill_type = 7; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.User.prototype.getBillType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.clarifai.api.StatValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.StatValue.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.clarifai.api.User} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.StatValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.prototype.setBillType = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); +proto.clarifai.api.StatValue.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTime(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getValue(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } }; /** - * optional google.protobuf.Timestamp created_at = 6; + * optional google.protobuf.Timestamp time = 1; * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.User.prototype.getCreatedAt = function() { +proto.clarifai.api.StatValue.prototype.getTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.User} returns this + * @return {!proto.clarifai.api.StatValue} returns this */ -proto.clarifai.api.User.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.StatValue.prototype.setTime = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.User} returns this + * @return {!proto.clarifai.api.StatValue} returns this */ -proto.clarifai.api.User.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.StatValue.prototype.clearTime = function() { + return this.setTime(undefined); }; @@ -31637,358 +49921,541 @@ proto.clarifai.api.User.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.User.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.StatValue.prototype.hasTime = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional google.protobuf.Timestamp date_gdpr_consent = 8; - * @return {?proto.google.protobuf.Timestamp} + * optional float value = 2; + * @return {number} */ -proto.clarifai.api.User.prototype.getDateGdprConsent = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +proto.clarifai.api.StatValue.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.User} returns this -*/ -proto.clarifai.api.User.prototype.setDateGdprConsent = function(value) { - return jspb.Message.setWrapperField(this, 8, value); + * @param {number} value + * @return {!proto.clarifai.api.StatValue} returns this + */ +proto.clarifai.api.StatValue.prototype.setValue = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.User} returns this + * repeated string tags = 3; + * @return {!Array} */ -proto.clarifai.api.User.prototype.clearDateGdprConsent = function() { - return this.setDateGdprConsent(undefined); +proto.clarifai.api.StatValue.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!Array} value + * @return {!proto.clarifai.api.StatValue} returns this */ -proto.clarifai.api.User.prototype.hasDateGdprConsent = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.StatValue.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 3, value || []); }; /** - * optional google.protobuf.Timestamp date_tos_consent = 9; - * @return {?proto.google.protobuf.Timestamp} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.StatValue} returns this */ -proto.clarifai.api.User.prototype.getDateTosConsent = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); +proto.clarifai.api.StatValue.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.User} returns this -*/ -proto.clarifai.api.User.prototype.setDateTosConsent = function(value) { - return jspb.Message.setWrapperField(this, 9, value); + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.StatValue} returns this + */ +proto.clarifai.api.StatValue.prototype.clearTagsList = function() { + return this.setTagsList([]); }; + /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.User} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.User.prototype.clearDateTosConsent = function() { - return this.setDateTosConsent(undefined); +proto.clarifai.api.StatValueAggregateResult.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.StatValueAggregateResult.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.StatValueAggregateResult.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.StatValueAggregateResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.prototype.hasDateTosConsent = function() { - return jspb.Message.getField(this, 9) != null; +proto.clarifai.api.StatValueAggregateResult.toObject = function(includeInstance, msg) { + var f, obj = { + statValueAggregatesList: jspb.Message.toObjectList(msg.getStatValueAggregatesList(), + proto.clarifai.api.StatValueAggregate.toObject, includeInstance), + statValueAggregateQuery: (f = msg.getStatValueAggregateQuery()) && proto.clarifai.api.StatValueAggregateQuery.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional google.protobuf.Timestamp date_marketing_consent = 10; - * @return {?proto.google.protobuf.Timestamp} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.StatValueAggregateResult} */ -proto.clarifai.api.User.prototype.getDateMarketingConsent = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); +proto.clarifai.api.StatValueAggregateResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.StatValueAggregateResult; + return proto.clarifai.api.StatValueAggregateResult.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.User} returns this -*/ -proto.clarifai.api.User.prototype.setDateMarketingConsent = function(value) { - return jspb.Message.setWrapperField(this, 10, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.StatValueAggregateResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.StatValueAggregateResult} + */ +proto.clarifai.api.StatValueAggregateResult.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.StatValueAggregate; + reader.readMessage(value,proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader); + msg.addStatValueAggregates(value); + break; + case 2: + var value = new proto.clarifai.api.StatValueAggregateQuery; + reader.readMessage(value,proto.clarifai.api.StatValueAggregateQuery.deserializeBinaryFromReader); + msg.setStatValueAggregateQuery(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.User} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.User.prototype.clearDateMarketingConsent = function() { - return this.setDateMarketingConsent(undefined); +proto.clarifai.api.StatValueAggregateResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.StatValueAggregateResult.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.StatValueAggregateResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.prototype.hasDateMarketingConsent = function() { - return jspb.Message.getField(this, 10) != null; +proto.clarifai.api.StatValueAggregateResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatValueAggregatesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.clarifai.api.StatValueAggregate.serializeBinaryToWriter + ); + } + f = message.getStatValueAggregateQuery(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.StatValueAggregateQuery.serializeBinaryToWriter + ); + } }; /** - * optional google.protobuf.Struct metadata = 11; - * @return {?proto.google.protobuf.Struct} + * repeated StatValueAggregate stat_value_aggregates = 1; + * @return {!Array} */ -proto.clarifai.api.User.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 11)); +proto.clarifai.api.StatValueAggregateResult.prototype.getStatValueAggregatesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.StatValueAggregate, 1)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.User} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.StatValueAggregateResult} returns this */ -proto.clarifai.api.User.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 11, value); +proto.clarifai.api.StatValueAggregateResult.prototype.setStatValueAggregatesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.User} returns this + * @param {!proto.clarifai.api.StatValueAggregate=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.StatValueAggregate} */ -proto.clarifai.api.User.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.StatValueAggregateResult.prototype.addStatValueAggregates = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.StatValueAggregate, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.StatValueAggregateResult} returns this */ -proto.clarifai.api.User.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 11) != null; +proto.clarifai.api.StatValueAggregateResult.prototype.clearStatValueAggregatesList = function() { + return this.setStatValueAggregatesList([]); }; /** - * repeated EmailAddress email_addresses = 12; - * @return {!Array} + * optional StatValueAggregateQuery stat_value_aggregate_query = 2; + * @return {?proto.clarifai.api.StatValueAggregateQuery} */ -proto.clarifai.api.User.prototype.getEmailAddressesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EmailAddress, 12)); +proto.clarifai.api.StatValueAggregateResult.prototype.getStatValueAggregateQuery = function() { + return /** @type{?proto.clarifai.api.StatValueAggregateQuery} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.StatValueAggregateQuery, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.User} returns this + * @param {?proto.clarifai.api.StatValueAggregateQuery|undefined} value + * @return {!proto.clarifai.api.StatValueAggregateResult} returns this */ -proto.clarifai.api.User.prototype.setEmailAddressesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 12, value); +proto.clarifai.api.StatValueAggregateResult.prototype.setStatValueAggregateQuery = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.EmailAddress=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.EmailAddress} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.StatValueAggregateResult} returns this */ -proto.clarifai.api.User.prototype.addEmailAddresses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.clarifai.api.EmailAddress, opt_index); +proto.clarifai.api.StatValueAggregateResult.prototype.clearStatValueAggregateQuery = function() { + return this.setStatValueAggregateQuery(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.User} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.User.prototype.clearEmailAddressesList = function() { - return this.setEmailAddressesList([]); +proto.clarifai.api.StatValueAggregateResult.prototype.hasStatValueAggregateQuery = function() { + return jspb.Message.getField(this, 2) != null; }; + /** - * optional bool is_org_admin = 14; - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.User.prototype.getIsOrgAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); -}; +proto.clarifai.api.StatValueAggregate.repeatedFields_ = [4]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {boolean} value - * @return {!proto.clarifai.api.User} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.User.prototype.setIsOrgAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); +proto.clarifai.api.StatValueAggregate.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.StatValueAggregate.toObject(opt_includeInstance, this); }; /** - * optional bool two_factor_auth_enabled = 15; - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.StatValueAggregate} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.prototype.getTwoFactorAuthEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); +proto.clarifai.api.StatValueAggregate.toObject = function(includeInstance, msg) { + var f, obj = { + time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + aggregateValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), + count: jspb.Message.getFieldWithDefault(msg, 3, 0), + tagsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {boolean} value - * @return {!proto.clarifai.api.User} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.StatValueAggregate} */ -proto.clarifai.api.User.prototype.setTwoFactorAuthEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); +proto.clarifai.api.StatValueAggregate.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.StatValueAggregate; + return proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader(msg, reader); }; /** - * optional uint32 teams_count = 16; - * @return {number} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.StatValueAggregate} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.StatValueAggregate} */ -proto.clarifai.api.User.prototype.getTeamsCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setTime(value); + break; + case 2: + var value = /** @type {number} */ (reader.readFloat()); + msg.setAggregateValue(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCount(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addTags(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {number} value - * @return {!proto.clarifai.api.User} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.User.prototype.setTeamsCount = function(value) { - return jspb.Message.setProto3IntField(this, 16, value); +proto.clarifai.api.StatValueAggregate.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.StatValueAggregate.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional bool is_starred = 21; - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.StatValueAggregate} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.User.prototype.getIsStarred = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false)); +proto.clarifai.api.StatValueAggregate.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTime(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getAggregateValue(); + if (f !== 0.0) { + writer.writeFloat( + 2, + f + ); + } + f = message.getCount(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getTagsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.User} returns this + * optional google.protobuf.Timestamp time = 1; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.User.prototype.setIsStarred = function(value) { - return jspb.Message.setProto3BooleanField(this, 21, value); +proto.clarifai.api.StatValueAggregate.prototype.getTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); }; /** - * optional int32 star_count = 22; - * @return {number} - */ -proto.clarifai.api.User.prototype.getStarCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.StatValueAggregate} returns this +*/ +proto.clarifai.api.StatValueAggregate.prototype.setTime = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * @param {number} value - * @return {!proto.clarifai.api.User} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.StatValueAggregate} returns this */ -proto.clarifai.api.User.prototype.setStarCount = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); +proto.clarifai.api.StatValueAggregate.prototype.clearTime = function() { + return this.setTime(undefined); }; /** - * optional Visibility visibility = 17; - * @return {?proto.clarifai.api.Visibility} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.User.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 17)); +proto.clarifai.api.StatValueAggregate.prototype.hasTime = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.User} returns this -*/ -proto.clarifai.api.User.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 17, value); + * optional float aggregate_value = 2; + * @return {number} + */ +proto.clarifai.api.StatValueAggregate.prototype.getAggregateValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.User} returns this + * @param {number} value + * @return {!proto.clarifai.api.StatValueAggregate} returns this */ -proto.clarifai.api.User.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.StatValueAggregate.prototype.setAggregateValue = function(value) { + return jspb.Message.setProto3FloatField(this, 2, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional uint64 count = 3; + * @return {number} */ -proto.clarifai.api.User.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 17) != null; +proto.clarifai.api.StatValueAggregate.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * optional UserDetail user_detail = 18; - * @return {?proto.clarifai.api.UserDetail} + * @param {number} value + * @return {!proto.clarifai.api.StatValueAggregate} returns this */ -proto.clarifai.api.User.prototype.getUserDetail = function() { - return /** @type{?proto.clarifai.api.UserDetail} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.UserDetail, 18)); +proto.clarifai.api.StatValueAggregate.prototype.setCount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * @param {?proto.clarifai.api.UserDetail|undefined} value - * @return {!proto.clarifai.api.User} returns this -*/ -proto.clarifai.api.User.prototype.setUserDetail = function(value) { - return jspb.Message.setWrapperField(this, 18, value); + * repeated string tags = 4; + * @return {!Array} + */ +proto.clarifai.api.StatValueAggregate.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.StatValueAggregate} returns this + */ +proto.clarifai.api.StatValueAggregate.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 4, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.User} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.StatValueAggregate} returns this */ -proto.clarifai.api.User.prototype.clearUserDetail = function() { - return this.setUserDetail(undefined); +proto.clarifai.api.StatValueAggregate.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.StatValueAggregate} returns this */ -proto.clarifai.api.User.prototype.hasUserDetail = function() { - return jspb.Message.getField(this, 18) != null; +proto.clarifai.api.StatValueAggregate.prototype.clearTagsList = function() { + return this.setTagsList([]); }; @@ -31998,7 +50465,7 @@ proto.clarifai.api.User.prototype.hasUserDetail = function() { * @private {!Array} * @const */ -proto.clarifai.api.UserDetail.repeatedFields_ = [7]; +proto.clarifai.api.StatValueAggregateQuery.repeatedFields_ = [1,2]; @@ -32015,8 +50482,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.UserDetail.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.UserDetail.toObject(opt_includeInstance, this); +proto.clarifai.api.StatValueAggregateQuery.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.StatValueAggregateQuery.toObject(opt_includeInstance, this); }; @@ -32025,25 +50492,18 @@ proto.clarifai.api.UserDetail.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.UserDetail} msg The msg instance to transform. + * @param {!proto.clarifai.api.StatValueAggregateQuery} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.UserDetail.toObject = function(includeInstance, msg) { +proto.clarifai.api.StatValueAggregateQuery.toObject = function(includeInstance, msg) { var f, obj = { - primaryEmail: jspb.Message.getFieldWithDefault(msg, 1, ""), - billType: jspb.Message.getFieldWithDefault(msg, 2, ""), - dateGdprConsent: (f = msg.getDateGdprConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - dateTosConsent: (f = msg.getDateTosConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - dateMarketingConsent: (f = msg.getDateMarketingConsent()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - emailAddressesList: jspb.Message.toObjectList(msg.getEmailAddressesList(), - proto.clarifai.api.EmailAddress.toObject, includeInstance), - isOrgAdmin: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - twoFactorAuthEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - teamsCount: jspb.Message.getFieldWithDefault(msg, 10, 0), - country: jspb.Message.getFieldWithDefault(msg, 11, ""), - state: jspb.Message.getFieldWithDefault(msg, 12, "") + tagsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + tagGroupsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + statValueAggType: jspb.Message.getFieldWithDefault(msg, 3, 0), + statTimeAggType: jspb.Message.getFieldWithDefault(msg, 4, 0), + startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -32057,23 +50517,23 @@ proto.clarifai.api.UserDetail.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.UserDetail} + * @return {!proto.clarifai.api.StatValueAggregateQuery} */ -proto.clarifai.api.UserDetail.deserializeBinary = function(bytes) { +proto.clarifai.api.StatValueAggregateQuery.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.UserDetail; - return proto.clarifai.api.UserDetail.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.StatValueAggregateQuery; + return proto.clarifai.api.StatValueAggregateQuery.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.UserDetail} msg The message object to deserialize into. + * @param {!proto.clarifai.api.StatValueAggregateQuery} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.UserDetail} + * @return {!proto.clarifai.api.StatValueAggregateQuery} */ -proto.clarifai.api.UserDetail.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.StatValueAggregateQuery.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -32082,56 +50542,29 @@ proto.clarifai.api.UserDetail.deserializeBinaryFromReader = function(msg, reader switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setPrimaryEmail(value); + msg.addTags(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setBillType(value); + msg.addTagGroups(value); break; case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDateGdprConsent(value); + var value = /** @type {!proto.clarifai.api.StatValueAggType} */ (reader.readEnum()); + msg.setStatValueAggType(value); break; case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDateTosConsent(value); + var value = /** @type {!proto.clarifai.api.StatTimeAggType} */ (reader.readEnum()); + msg.setStatTimeAggType(value); break; case 5: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDateMarketingConsent(value); + msg.setStartTime(value); break; case 6: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 7: - var value = new proto.clarifai.api.EmailAddress; - reader.readMessage(value,proto.clarifai.api.EmailAddress.deserializeBinaryFromReader); - msg.addEmailAddresses(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsOrgAdmin(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTwoFactorAuthEnabled(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setTeamsCount(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setCountry(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setEndTime(value); break; default: reader.skipField(); @@ -32146,9 +50579,9 @@ proto.clarifai.api.UserDetail.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.UserDetail.prototype.serializeBinary = function() { +proto.clarifai.api.StatValueAggregateQuery.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.UserDetail.serializeBinaryToWriter(this, writer); + proto.clarifai.api.StatValueAggregateQuery.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -32156,43 +50589,41 @@ proto.clarifai.api.UserDetail.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.UserDetail} message + * @param {!proto.clarifai.api.StatValueAggregateQuery} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.UserDetail.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.StatValueAggregateQuery.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPrimaryEmail(); + f = message.getTagsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 1, f ); } - f = message.getBillType(); + f = message.getTagGroupsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 2, f ); } - f = message.getDateGdprConsent(); - if (f != null) { - writer.writeMessage( + f = message.getStatValueAggType(); + if (f !== 0.0) { + writer.writeEnum( 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } - f = message.getDateTosConsent(); - if (f != null) { - writer.writeMessage( + f = message.getStatTimeAggType(); + if (f !== 0.0) { + writer.writeEnum( 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } - f = message.getDateMarketingConsent(); + f = message.getStartTime(); if (f != null) { writer.writeMessage( 5, @@ -32200,175 +50631,132 @@ proto.clarifai.api.UserDetail.serializeBinaryToWriter = function(message, writer google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getMetadata(); + f = message.getEndTime(); if (f != null) { writer.writeMessage( 6, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getEmailAddressesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 7, - f, - proto.clarifai.api.EmailAddress.serializeBinaryToWriter - ); - } - f = message.getIsOrgAdmin(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getTwoFactorAuthEnabled(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getTeamsCount(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getCountry(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 12, - f + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; /** - * optional string primary_email = 1; - * @return {string} + * repeated string tags = 1; + * @return {!Array} */ -proto.clarifai.api.UserDetail.prototype.getPrimaryEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.StatValueAggregateQuery.prototype.getTagsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.UserDetail} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.setPrimaryEmail = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.StatValueAggregateQuery.prototype.setTagsList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; /** - * optional string bill_type = 2; - * @return {string} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.getBillType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.StatValueAggregateQuery.prototype.addTags = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.UserDetail} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.setBillType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.StatValueAggregateQuery.prototype.clearTagsList = function() { + return this.setTagsList([]); }; /** - * optional google.protobuf.Timestamp date_gdpr_consent = 3; - * @return {?proto.google.protobuf.Timestamp} + * repeated string tag_groups = 2; + * @return {!Array} */ -proto.clarifai.api.UserDetail.prototype.getDateGdprConsent = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +proto.clarifai.api.StatValueAggregateQuery.prototype.getTagGroupsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.UserDetail} returns this -*/ -proto.clarifai.api.UserDetail.prototype.setDateGdprConsent = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * @param {!Array} value + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + */ +proto.clarifai.api.StatValueAggregateQuery.prototype.setTagGroupsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.UserDetail} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.clearDateGdprConsent = function() { - return this.setDateGdprConsent(undefined); +proto.clarifai.api.StatValueAggregateQuery.prototype.addTagGroups = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.hasDateGdprConsent = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.StatValueAggregateQuery.prototype.clearTagGroupsList = function() { + return this.setTagGroupsList([]); }; /** - * optional google.protobuf.Timestamp date_tos_consent = 4; - * @return {?proto.google.protobuf.Timestamp} + * optional StatValueAggType stat_value_agg_type = 3; + * @return {!proto.clarifai.api.StatValueAggType} */ -proto.clarifai.api.UserDetail.prototype.getDateTosConsent = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +proto.clarifai.api.StatValueAggregateQuery.prototype.getStatValueAggType = function() { + return /** @type {!proto.clarifai.api.StatValueAggType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.UserDetail} returns this -*/ -proto.clarifai.api.UserDetail.prototype.setDateTosConsent = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {!proto.clarifai.api.StatValueAggType} value + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + */ +proto.clarifai.api.StatValueAggregateQuery.prototype.setStatValueAggType = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.UserDetail} returns this + * optional StatTimeAggType stat_time_agg_type = 4; + * @return {!proto.clarifai.api.StatTimeAggType} */ -proto.clarifai.api.UserDetail.prototype.clearDateTosConsent = function() { - return this.setDateTosConsent(undefined); +proto.clarifai.api.StatValueAggregateQuery.prototype.getStatTimeAggType = function() { + return /** @type {!proto.clarifai.api.StatTimeAggType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.clarifai.api.StatTimeAggType} value + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.hasDateTosConsent = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.StatValueAggregateQuery.prototype.setStatTimeAggType = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); }; /** - * optional google.protobuf.Timestamp date_marketing_consent = 5; + * optional google.protobuf.Timestamp start_time = 5; * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.UserDetail.prototype.getDateMarketingConsent = function() { +proto.clarifai.api.StatValueAggregateQuery.prototype.getStartTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; @@ -32376,19 +50764,19 @@ proto.clarifai.api.UserDetail.prototype.getDateMarketingConsent = function() { /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.UserDetail} returns this + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.setDateMarketingConsent = function(value) { +proto.clarifai.api.StatValueAggregateQuery.prototype.setStartTime = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.UserDetail} returns this + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.clearDateMarketingConsent = function() { - return this.setDateMarketingConsent(undefined); +proto.clarifai.api.StatValueAggregateQuery.prototype.clearStartTime = function() { + return this.setStartTime(undefined); }; @@ -32396,36 +50784,36 @@ proto.clarifai.api.UserDetail.prototype.clearDateMarketingConsent = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.UserDetail.prototype.hasDateMarketingConsent = function() { +proto.clarifai.api.StatValueAggregateQuery.prototype.hasStartTime = function() { return jspb.Message.getField(this, 5) != null; }; /** - * optional google.protobuf.Struct metadata = 6; - * @return {?proto.google.protobuf.Struct} + * optional google.protobuf.Timestamp end_time = 6; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.UserDetail.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); +proto.clarifai.api.StatValueAggregateQuery.prototype.getEndTime = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.UserDetail} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.setMetadata = function(value) { +proto.clarifai.api.StatValueAggregateQuery.prototype.setEndTime = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.UserDetail} returns this + * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this */ -proto.clarifai.api.UserDetail.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.StatValueAggregateQuery.prototype.clearEndTime = function() { + return this.setEndTime(undefined); }; @@ -32433,326 +50821,372 @@ proto.clarifai.api.UserDetail.prototype.clearMetadata = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.UserDetail.prototype.hasMetadata = function() { +proto.clarifai.api.StatValueAggregateQuery.prototype.hasEndTime = function() { return jspb.Message.getField(this, 6) != null; }; -/** - * repeated EmailAddress email_addresses = 7; - * @return {!Array} - */ -proto.clarifai.api.UserDetail.prototype.getEmailAddressesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.EmailAddress, 7)); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {!Array} value - * @return {!proto.clarifai.api.UserDetail} returns this -*/ -proto.clarifai.api.UserDetail.prototype.setEmailAddressesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetInputsSearchAddJob.toObject(opt_includeInstance, this); }; /** - * @param {!proto.clarifai.api.EmailAddress=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.EmailAddress} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetInputsSearchAddJob} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.UserDetail.prototype.addEmailAddresses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.clarifai.api.EmailAddress, opt_index); +proto.clarifai.api.DatasetInputsSearchAddJob.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 5, ""), + search: (f = msg.getSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.UserDetail} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} */ -proto.clarifai.api.UserDetail.prototype.clearEmailAddressesList = function() { - return this.setEmailAddressesList([]); +proto.clarifai.api.DatasetInputsSearchAddJob.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetInputsSearchAddJob; + return proto.clarifai.api.DatasetInputsSearchAddJob.deserializeBinaryFromReader(msg, reader); }; /** - * optional bool is_org_admin = 8; - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetInputsSearchAddJob} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} */ -proto.clarifai.api.UserDetail.prototype.getIsOrgAdmin = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +proto.clarifai.api.DatasetInputsSearchAddJob.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 3: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 4: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 6: + var value = new proto.clarifai.api.Search; + reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.UserDetail} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.UserDetail.prototype.setIsOrgAdmin = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetInputsSearchAddJob.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional bool two_factor_auth_enabled = 9; - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetInputsSearchAddJob} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.UserDetail.prototype.getTwoFactorAuthEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +proto.clarifai.api.DatasetInputsSearchAddJob.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.clarifai.api.Search.serializeBinaryToWriter + ); + } }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.UserDetail} returns this + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.UserDetail.prototype.setTwoFactorAuthEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional uint32 teams_count = 10; - * @return {number} + * @param {string} value + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this */ -proto.clarifai.api.UserDetail.prototype.getTeamsCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {number} value - * @return {!proto.clarifai.api.UserDetail} returns this + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.UserDetail.prototype.setTeamsCount = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** - * optional string country = 11; - * @return {string} - */ -proto.clarifai.api.UserDetail.prototype.getCountry = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this +*/ +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.UserDetail} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this */ -proto.clarifai.api.UserDetail.prototype.setCountry = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * optional string state = 12; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.UserDetail.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * @param {string} value - * @return {!proto.clarifai.api.UserDetail} returns this + * optional google.protobuf.Timestamp modified_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.UserDetail.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this +*/ +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this */ -proto.clarifai.api.EmailAddress.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.EmailAddress.toObject(opt_includeInstance, this); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.EmailAddress} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.EmailAddress.toObject = function(includeInstance, msg) { - var f, obj = { - email: jspb.Message.getFieldWithDefault(msg, 1, ""), - primary: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - verified: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 3) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.EmailAddress} + * optional status.Status status = 4; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.EmailAddress.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.EmailAddress; - return proto.clarifai.api.EmailAddress.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 4)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.EmailAddress} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.EmailAddress} - */ -proto.clarifai.api.EmailAddress.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEmail(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPrimary(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setVerified(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this +*/ +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this */ -proto.clarifai.api.EmailAddress.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.EmailAddress.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.EmailAddress} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.EmailAddress.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEmail(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPrimary(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getVerified(); - if (f) { - writer.writeBool( - 3, - f - ); - } +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasStatus = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional string email = 1; + * optional string dataset_id = 5; * @return {string} */ -proto.clarifai.api.EmailAddress.prototype.getEmail = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.EmailAddress} returns this + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this */ -proto.clarifai.api.EmailAddress.prototype.setEmail = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; /** - * optional bool primary = 2; - * @return {boolean} + * optional Search search = 6; + * @return {?proto.clarifai.api.Search} */ -proto.clarifai.api.EmailAddress.prototype.getPrimary = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.getSearch = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 6)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.EmailAddress} returns this - */ -proto.clarifai.api.EmailAddress.prototype.setPrimary = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this +*/ +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * optional bool verified = 3; - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetInputsSearchAddJob} returns this */ -proto.clarifai.api.EmailAddress.prototype.getVerified = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.clearSearch = function() { + return this.setSearch(undefined); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.EmailAddress} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.EmailAddress.prototype.setVerified = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.DatasetInputsSearchAddJob.prototype.hasSearch = function() { + return jspb.Message.getField(this, 6) != null; }; @@ -32772,8 +51206,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Password.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Password.toObject(opt_includeInstance, this); +proto.clarifai.api.PCAProjectionComparator.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PCAProjectionComparator.toObject(opt_includeInstance, this); }; @@ -32782,13 +51216,14 @@ proto.clarifai.api.Password.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Password} msg The msg instance to transform. + * @param {!proto.clarifai.api.PCAProjectionComparator} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Password.toObject = function(includeInstance, msg) { +proto.clarifai.api.PCAProjectionComparator.toObject = function(includeInstance, msg) { var f, obj = { - plaintext: jspb.Message.getFieldWithDefault(msg, 1, "") + distanceThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -32802,23 +51237,23 @@ proto.clarifai.api.Password.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Password} + * @return {!proto.clarifai.api.PCAProjectionComparator} */ -proto.clarifai.api.Password.deserializeBinary = function(bytes) { +proto.clarifai.api.PCAProjectionComparator.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Password; - return proto.clarifai.api.Password.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PCAProjectionComparator; + return proto.clarifai.api.PCAProjectionComparator.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Password} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PCAProjectionComparator} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Password} + * @return {!proto.clarifai.api.PCAProjectionComparator} */ -proto.clarifai.api.Password.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PCAProjectionComparator.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -32826,8 +51261,12 @@ proto.clarifai.api.Password.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {number} */ (reader.readFloat()); + msg.setDistanceThreshold(value); + break; + case 2: var value = /** @type {string} */ (reader.readString()); - msg.setPlaintext(value); + msg.setModelVersionId(value); break; default: reader.skipField(); @@ -32842,9 +51281,9 @@ proto.clarifai.api.Password.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Password.prototype.serializeBinary = function() { +proto.clarifai.api.PCAProjectionComparator.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Password.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PCAProjectionComparator.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -32852,16 +51291,23 @@ proto.clarifai.api.Password.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Password} message + * @param {!proto.clarifai.api.PCAProjectionComparator} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Password.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PCAProjectionComparator.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPlaintext(); + f = message.getDistanceThreshold(); + if (f !== 0.0) { + writer.writeFloat( + 1, + f + ); + } + f = message.getModelVersionId(); if (f.length > 0) { writer.writeString( - 1, + 2, f ); } @@ -32869,24 +51315,49 @@ proto.clarifai.api.Password.serializeBinaryToWriter = function(message, writer) /** - * optional string plaintext = 1; + * optional float distance_threshold = 1; + * @return {number} + */ +proto.clarifai.api.PCAProjectionComparator.prototype.getDistanceThreshold = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.PCAProjectionComparator} returns this + */ +proto.clarifai.api.PCAProjectionComparator.prototype.setDistanceThreshold = function(value) { + return jspb.Message.setProto3FloatField(this, 1, value); +}; + + +/** + * optional string model_version_id = 2; * @return {string} */ -proto.clarifai.api.Password.prototype.getPlaintext = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.PCAProjectionComparator.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Password} returns this + * @return {!proto.clarifai.api.PCAProjectionComparator} returns this */ -proto.clarifai.api.Password.prototype.setPlaintext = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.PCAProjectionComparator.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DuplicateAnnotationsResults.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -32902,8 +51373,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PasswordViolations.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PasswordViolations.toObject(opt_includeInstance, this); +proto.clarifai.api.DuplicateAnnotationsResults.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DuplicateAnnotationsResults.toObject(opt_includeInstance, this); }; @@ -32912,26 +51383,14 @@ proto.clarifai.api.PasswordViolations.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PasswordViolations} msg The msg instance to transform. + * @param {!proto.clarifai.api.DuplicateAnnotationsResults} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PasswordViolations.toObject = function(includeInstance, msg) { +proto.clarifai.api.DuplicateAnnotationsResults.toObject = function(includeInstance, msg) { var f, obj = { - minimumLength: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - maximumLength: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - upperCaseNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - lowerCaseNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - numericNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - nonAlphanumericNeeded: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - passwordReuse: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - excludeNames: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - excludeEmail: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - noConfusingLetters: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - noSimplePasswords: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - noCommonVocabs: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - noOverlapWithOld: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - passwordLifespan: jspb.Message.getBooleanFieldWithDefault(msg, 14, false) + duplicateCfidList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + uniqueCount: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -32945,23 +51404,23 @@ proto.clarifai.api.PasswordViolations.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PasswordViolations} + * @return {!proto.clarifai.api.DuplicateAnnotationsResults} */ -proto.clarifai.api.PasswordViolations.deserializeBinary = function(bytes) { +proto.clarifai.api.DuplicateAnnotationsResults.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PasswordViolations; - return proto.clarifai.api.PasswordViolations.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DuplicateAnnotationsResults; + return proto.clarifai.api.DuplicateAnnotationsResults.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PasswordViolations} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DuplicateAnnotationsResults} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PasswordViolations} + * @return {!proto.clarifai.api.DuplicateAnnotationsResults} */ -proto.clarifai.api.PasswordViolations.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DuplicateAnnotationsResults.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -32969,60 +51428,12 @@ proto.clarifai.api.PasswordViolations.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMinimumLength(value); + var value = /** @type {string} */ (reader.readString()); + msg.addDuplicateCfid(value); break; case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setMaximumLength(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUpperCaseNeeded(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLowerCaseNeeded(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNumericNeeded(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNonAlphanumericNeeded(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPasswordReuse(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExcludeNames(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExcludeEmail(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNoConfusingLetters(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNoSimplePasswords(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNoCommonVocabs(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNoOverlapWithOld(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPasswordLifespan(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setUniqueCount(value); break; default: reader.skipField(); @@ -33037,9 +51448,9 @@ proto.clarifai.api.PasswordViolations.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PasswordViolations.prototype.serializeBinary = function() { +proto.clarifai.api.DuplicateAnnotationsResults.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PasswordViolations.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DuplicateAnnotationsResults.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -33047,362 +51458,441 @@ proto.clarifai.api.PasswordViolations.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PasswordViolations} message + * @param {!proto.clarifai.api.DuplicateAnnotationsResults} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PasswordViolations.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DuplicateAnnotationsResults.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMinimumLength(); - if (f) { - writer.writeBool( + f = message.getDuplicateCfidList(); + if (f.length > 0) { + writer.writeRepeatedString( 1, f ); } - f = message.getMaximumLength(); - if (f) { - writer.writeBool( + f = message.getUniqueCount(); + if (f !== 0) { + writer.writeInt32( 2, f ); } - f = message.getUpperCaseNeeded(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getLowerCaseNeeded(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getNumericNeeded(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getNonAlphanumericNeeded(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getPasswordReuse(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getExcludeNames(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getExcludeEmail(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getNoConfusingLetters(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getNoSimplePasswords(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getNoCommonVocabs(); - if (f) { - writer.writeBool( - 12, - f - ); - } - f = message.getNoOverlapWithOld(); - if (f) { - writer.writeBool( - 13, - f - ); - } - f = message.getPasswordLifespan(); - if (f) { - writer.writeBool( - 14, - f - ); - } }; /** - * optional bool minimum_length = 1; - * @return {boolean} + * repeated string duplicate_cfid = 1; + * @return {!Array} */ -proto.clarifai.api.PasswordViolations.prototype.getMinimumLength = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +proto.clarifai.api.DuplicateAnnotationsResults.prototype.getDuplicateCfidList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.DuplicateAnnotationsResults} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setMinimumLength = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); +proto.clarifai.api.DuplicateAnnotationsResults.prototype.setDuplicateCfidList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; /** - * optional bool maximum_length = 2; - * @return {boolean} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DuplicateAnnotationsResults} returns this */ -proto.clarifai.api.PasswordViolations.prototype.getMaximumLength = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.clarifai.api.DuplicateAnnotationsResults.prototype.addDuplicateCfid = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DuplicateAnnotationsResults} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setMaximumLength = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.clarifai.api.DuplicateAnnotationsResults.prototype.clearDuplicateCfidList = function() { + return this.setDuplicateCfidList([]); }; /** - * optional bool upper_case_needed = 3; - * @return {boolean} + * optional int32 unique_count = 2; + * @return {number} */ -proto.clarifai.api.PasswordViolations.prototype.getUpperCaseNeeded = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.DuplicateAnnotationsResults.prototype.getUniqueCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @param {number} value + * @return {!proto.clarifai.api.DuplicateAnnotationsResults} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setUpperCaseNeeded = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.DuplicateAnnotationsResults.prototype.setUniqueCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional bool lower_case_needed = 4; - * @return {boolean} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.PasswordViolations.prototype.getLowerCaseNeeded = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.Visibility.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Visibility.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Visibility} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Visibility.toObject = function(includeInstance, msg) { + var f, obj = { + gettable: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Visibility} */ -proto.clarifai.api.PasswordViolations.prototype.setLowerCaseNeeded = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.Visibility.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Visibility; + return proto.clarifai.api.Visibility.deserializeBinaryFromReader(msg, reader); }; /** - * optional bool numeric_needed = 5; - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Visibility} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Visibility} */ -proto.clarifai.api.PasswordViolations.prototype.getNumericNeeded = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +proto.clarifai.api.Visibility.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.clarifai.api.Visibility.Gettable} */ (reader.readEnum()); + msg.setGettable(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.PasswordViolations.prototype.setNumericNeeded = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.clarifai.api.Visibility.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Visibility.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional bool non_alphanumeric_needed = 6; - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Visibility} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PasswordViolations.prototype.getNonAlphanumericNeeded = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +proto.clarifai.api.Visibility.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGettable(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @enum {number} */ -proto.clarifai.api.PasswordViolations.prototype.setNonAlphanumericNeeded = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); +proto.clarifai.api.Visibility.Gettable = { + UNKNOWN_VISIBILITY: 0, + PRIVATE: 10, + ORG: 30, + PUBLIC: 50 }; - /** - * optional bool password_reuse = 7; - * @return {boolean} + * optional Gettable gettable = 1; + * @return {!proto.clarifai.api.Visibility.Gettable} */ -proto.clarifai.api.PasswordViolations.prototype.getPasswordReuse = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.clarifai.api.Visibility.prototype.getGettable = function() { + return /** @type {!proto.clarifai.api.Visibility.Gettable} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @param {!proto.clarifai.api.Visibility.Gettable} value + * @return {!proto.clarifai.api.Visibility} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setPasswordReuse = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); +proto.clarifai.api.Visibility.prototype.setGettable = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional bool exclude_names = 8; - * @return {boolean} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.PasswordViolations.prototype.getExcludeNames = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +proto.clarifai.api.TrendingMetric.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TrendingMetric.toObject(opt_includeInstance, this); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.TrendingMetric} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PasswordViolations.prototype.setExcludeNames = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); +proto.clarifai.api.TrendingMetric.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + appId: jspb.Message.getFieldWithDefault(msg, 2, ""), + objectId: jspb.Message.getFieldWithDefault(msg, 3, ""), + viewCount: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional bool exclude_email = 9; - * @return {boolean} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.TrendingMetric} */ -proto.clarifai.api.PasswordViolations.prototype.getExcludeEmail = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +proto.clarifai.api.TrendingMetric.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.TrendingMetric; + return proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader(msg, reader); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.TrendingMetric} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.TrendingMetric} */ -proto.clarifai.api.PasswordViolations.prototype.setExcludeEmail = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); +proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setObjectId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setViewCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional bool no_confusing_letters = 10; - * @return {boolean} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.PasswordViolations.prototype.getNoConfusingLetters = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +proto.clarifai.api.TrendingMetric.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TrendingMetric.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TrendingMetric} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PasswordViolations.prototype.setNoConfusingLetters = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); +proto.clarifai.api.TrendingMetric.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getObjectId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getViewCount(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } }; /** - * optional bool no_simple_passwords = 11; - * @return {boolean} + * optional string user_id = 1; + * @return {string} */ -proto.clarifai.api.PasswordViolations.prototype.getNoSimplePasswords = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +proto.clarifai.api.TrendingMetric.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @param {string} value + * @return {!proto.clarifai.api.TrendingMetric} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setNoSimplePasswords = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); +proto.clarifai.api.TrendingMetric.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bool no_common_vocabs = 12; - * @return {boolean} + * optional string app_id = 2; + * @return {string} */ -proto.clarifai.api.PasswordViolations.prototype.getNoCommonVocabs = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +proto.clarifai.api.TrendingMetric.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @param {string} value + * @return {!proto.clarifai.api.TrendingMetric} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setNoCommonVocabs = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); +proto.clarifai.api.TrendingMetric.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional bool no_overlap_with_old = 13; - * @return {boolean} + * optional string object_id = 3; + * @return {string} */ -proto.clarifai.api.PasswordViolations.prototype.getNoOverlapWithOld = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +proto.clarifai.api.TrendingMetric.prototype.getObjectId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @param {string} value + * @return {!proto.clarifai.api.TrendingMetric} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setNoOverlapWithOld = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); +proto.clarifai.api.TrendingMetric.prototype.setObjectId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional bool password_lifespan = 14; - * @return {boolean} + * optional uint64 view_count = 4; + * @return {number} */ -proto.clarifai.api.PasswordViolations.prototype.getPasswordLifespan = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); +proto.clarifai.api.TrendingMetric.prototype.getViewCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PasswordViolations} returns this + * @param {number} value + * @return {!proto.clarifai.api.TrendingMetric} returns this */ -proto.clarifai.api.PasswordViolations.prototype.setPasswordLifespan = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); +proto.clarifai.api.TrendingMetric.prototype.setViewCount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -33422,8 +51912,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Video.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Video.toObject(opt_includeInstance, this); +proto.clarifai.api.FullTag.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.FullTag.toObject(opt_includeInstance, this); }; @@ -33432,18 +51922,14 @@ proto.clarifai.api.Video.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Video} msg The msg instance to transform. + * @param {!proto.clarifai.api.FullTag} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Video.toObject = function(includeInstance, msg) { +proto.clarifai.api.FullTag.toObject = function(includeInstance, msg) { var f, obj = { - url: jspb.Message.getFieldWithDefault(msg, 1, ""), - base64: msg.getBase64_asB64(), - allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - thumbnailUrl: jspb.Message.getFieldWithDefault(msg, 5, ""), - hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f), - videoInfo: (f = msg.getVideoInfo()) && proto.clarifai.api.VideoInfo.toObject(includeInstance, f) + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -33457,23 +51943,23 @@ proto.clarifai.api.Video.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Video} + * @return {!proto.clarifai.api.FullTag} */ -proto.clarifai.api.Video.deserializeBinary = function(bytes) { +proto.clarifai.api.FullTag.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Video; - return proto.clarifai.api.Video.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.FullTag; + return proto.clarifai.api.FullTag.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Video} msg The message object to deserialize into. + * @param {!proto.clarifai.api.FullTag} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Video} + * @return {!proto.clarifai.api.FullTag} */ -proto.clarifai.api.Video.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.FullTag.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -33482,29 +51968,11 @@ proto.clarifai.api.Video.deserializeBinaryFromReader = function(msg, reader) { switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); + msg.setName(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBase64(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowDuplicateUrl(value); - break; - case 5: var value = /** @type {string} */ (reader.readString()); - msg.setThumbnailUrl(value); - break; - case 6: - var value = new proto.clarifai.api.HostedURL; - reader.readMessage(value,proto.clarifai.api.HostedURL.deserializeBinaryFromReader); - msg.setHosted(value); - break; - case 7: - var value = new proto.clarifai.api.VideoInfo; - reader.readMessage(value,proto.clarifai.api.VideoInfo.deserializeBinaryFromReader); - msg.setVideoInfo(value); + msg.setId(value); break; default: reader.skipField(); @@ -33519,9 +51987,9 @@ proto.clarifai.api.Video.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Video.prototype.serializeBinary = function() { +proto.clarifai.api.FullTag.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Video.serializeBinaryToWriter(this, writer); + proto.clarifai.api.FullTag.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -33529,180 +51997,248 @@ proto.clarifai.api.Video.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Video} message + * @param {!proto.clarifai.api.FullTag} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Video.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.FullTag.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUrl(); + f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getBase64_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getAllowDuplicateUrl(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getThumbnailUrl(); + f = message.getId(); if (f.length > 0) { writer.writeString( - 5, + 2, f ); } - f = message.getHosted(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.clarifai.api.HostedURL.serializeBinaryToWriter - ); - } - f = message.getVideoInfo(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.clarifai.api.VideoInfo.serializeBinaryToWriter - ); - } }; /** - * optional string url = 1; + * optional string name = 1; * @return {string} */ -proto.clarifai.api.Video.prototype.getUrl = function() { +proto.clarifai.api.FullTag.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Video} returns this + * @return {!proto.clarifai.api.FullTag} returns this */ -proto.clarifai.api.Video.prototype.setUrl = function(value) { +proto.clarifai.api.FullTag.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional bytes base64 = 2; - * @return {!(string|Uint8Array)} + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.Video.prototype.getBase64 = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.FullTag.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * optional bytes base64 = 2; - * This is a type-conversion wrapper around `getBase64()` - * @return {string} + * @param {string} value + * @return {!proto.clarifai.api.FullTag} returns this */ -proto.clarifai.api.Video.prototype.getBase64_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBase64())); +proto.clarifai.api.FullTag.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional bytes base64 = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBase64()` - * @return {!Uint8Array} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Video.prototype.getBase64_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBase64())); +proto.clarifai.api.TimeSegment.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TimeSegment.toObject(opt_includeInstance, this); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.clarifai.api.Video} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.TimeSegment} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Video.prototype.setBase64 = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); +proto.clarifai.api.TimeSegment.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), + timeInfo: (f = msg.getTimeInfo()) && proto.clarifai.api.TimeInfo.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional bool allow_duplicate_url = 4; - * @return {boolean} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.TimeSegment} */ -proto.clarifai.api.Video.prototype.getAllowDuplicateUrl = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.TimeSegment.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.TimeSegment; + return proto.clarifai.api.TimeSegment.deserializeBinaryFromReader(msg, reader); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.Video} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.TimeSegment} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.TimeSegment} + */ +proto.clarifai.api.TimeSegment.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = new proto.clarifai.api.Data; + reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 3: + var value = new proto.clarifai.api.TimeInfo; + reader.readMessage(value,proto.clarifai.api.TimeInfo.deserializeBinaryFromReader); + msg.setTimeInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.TimeSegment.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.TimeSegment.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.TimeSegment} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Video.prototype.setAllowDuplicateUrl = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.TimeSegment.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getData(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.clarifai.api.Data.serializeBinaryToWriter + ); + } + f = message.getTimeInfo(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.TimeInfo.serializeBinaryToWriter + ); + } }; /** - * optional string thumbnail_url = 5; + * optional string id = 1; * @return {string} */ -proto.clarifai.api.Video.prototype.getThumbnailUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.TimeSegment.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Video} returns this + * @return {!proto.clarifai.api.TimeSegment} returns this */ -proto.clarifai.api.Video.prototype.setThumbnailUrl = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.TimeSegment.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional HostedURL hosted = 6; - * @return {?proto.clarifai.api.HostedURL} + * optional Data data = 2; + * @return {?proto.clarifai.api.Data} */ -proto.clarifai.api.Video.prototype.getHosted = function() { - return /** @type{?proto.clarifai.api.HostedURL} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.HostedURL, 6)); +proto.clarifai.api.TimeSegment.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); }; /** - * @param {?proto.clarifai.api.HostedURL|undefined} value - * @return {!proto.clarifai.api.Video} returns this + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.TimeSegment} returns this */ -proto.clarifai.api.Video.prototype.setHosted = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.TimeSegment.prototype.setData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Video} returns this + * @return {!proto.clarifai.api.TimeSegment} returns this */ -proto.clarifai.api.Video.prototype.clearHosted = function() { - return this.setHosted(undefined); +proto.clarifai.api.TimeSegment.prototype.clearData = function() { + return this.setData(undefined); }; @@ -33710,36 +52246,36 @@ proto.clarifai.api.Video.prototype.clearHosted = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Video.prototype.hasHosted = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.TimeSegment.prototype.hasData = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional VideoInfo video_info = 7; - * @return {?proto.clarifai.api.VideoInfo} + * optional TimeInfo time_info = 3; + * @return {?proto.clarifai.api.TimeInfo} */ -proto.clarifai.api.Video.prototype.getVideoInfo = function() { - return /** @type{?proto.clarifai.api.VideoInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.VideoInfo, 7)); +proto.clarifai.api.TimeSegment.prototype.getTimeInfo = function() { + return /** @type{?proto.clarifai.api.TimeInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.TimeInfo, 3)); }; /** - * @param {?proto.clarifai.api.VideoInfo|undefined} value - * @return {!proto.clarifai.api.Video} returns this + * @param {?proto.clarifai.api.TimeInfo|undefined} value + * @return {!proto.clarifai.api.TimeSegment} returns this */ -proto.clarifai.api.Video.prototype.setVideoInfo = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.TimeSegment.prototype.setTimeInfo = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Video} returns this + * @return {!proto.clarifai.api.TimeSegment} returns this */ -proto.clarifai.api.Video.prototype.clearVideoInfo = function() { - return this.setVideoInfo(undefined); +proto.clarifai.api.TimeSegment.prototype.clearTimeInfo = function() { + return this.setTimeInfo(undefined); }; @@ -33747,8 +52283,8 @@ proto.clarifai.api.Video.prototype.clearVideoInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Video.prototype.hasVideoInfo = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.TimeSegment.prototype.hasTimeInfo = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -33768,8 +52304,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.VideoInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.VideoInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.TimeInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.TimeInfo.toObject(opt_includeInstance, this); }; @@ -33778,19 +52314,15 @@ proto.clarifai.api.VideoInfo.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.VideoInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.TimeInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.VideoInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.TimeInfo.toObject = function(includeInstance, msg) { var f, obj = { - width: jspb.Message.getFieldWithDefault(msg, 1, 0), - height: jspb.Message.getFieldWithDefault(msg, 2, 0), - fps: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), - videoFormat: jspb.Message.getFieldWithDefault(msg, 4, ""), - bitRate: jspb.Message.getFieldWithDefault(msg, 5, 0), - frameCount: jspb.Message.getFieldWithDefault(msg, 6, 0), - durationSeconds: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0) + numFrames: jspb.Message.getFieldWithDefault(msg, 1, 0), + beginTime: jspb.Message.getFieldWithDefault(msg, 2, 0), + endTime: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -33804,23 +52336,23 @@ proto.clarifai.api.VideoInfo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.VideoInfo} + * @return {!proto.clarifai.api.TimeInfo} */ -proto.clarifai.api.VideoInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.TimeInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.VideoInfo; - return proto.clarifai.api.VideoInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.TimeInfo; + return proto.clarifai.api.TimeInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.VideoInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.TimeInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.VideoInfo} + * @return {!proto.clarifai.api.TimeInfo} */ -proto.clarifai.api.VideoInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.TimeInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -33828,32 +52360,16 @@ proto.clarifai.api.VideoInfo.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setWidth(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setNumFrames(value); break; case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setHeight(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setBeginTime(value); break; case 3: - var value = /** @type {number} */ (reader.readFloat()); - msg.setFps(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setVideoFormat(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setBitRate(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt32()); - msg.setFrameCount(value); - break; - case 7: - var value = /** @type {number} */ (reader.readFloat()); - msg.setDurationSeconds(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setEndTime(value); break; default: reader.skipField(); @@ -33868,9 +52384,9 @@ proto.clarifai.api.VideoInfo.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.VideoInfo.prototype.serializeBinary = function() { +proto.clarifai.api.TimeInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.VideoInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.TimeInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -33878,58 +52394,30 @@ proto.clarifai.api.VideoInfo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.VideoInfo} message + * @param {!proto.clarifai.api.TimeInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.VideoInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.TimeInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getWidth(); + f = message.getNumFrames(); if (f !== 0) { - writer.writeInt32( + writer.writeUint32( 1, f ); } - f = message.getHeight(); + f = message.getBeginTime(); if (f !== 0) { - writer.writeInt32( + writer.writeUint32( 2, f ); } - f = message.getFps(); - if (f !== 0.0) { - writer.writeFloat( - 3, - f - ); - } - f = message.getVideoFormat(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getBitRate(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getFrameCount(); + f = message.getEndTime(); if (f !== 0) { - writer.writeInt32( - 6, - f - ); - } - f = message.getDurationSeconds(); - if (f !== 0.0) { - writer.writeFloat( - 7, + writer.writeUint32( + 3, f ); } @@ -33937,138 +52425,319 @@ proto.clarifai.api.VideoInfo.serializeBinaryToWriter = function(message, writer) /** - * optional int32 width = 1; + * optional uint32 num_frames = 1; * @return {number} */ -proto.clarifai.api.VideoInfo.prototype.getWidth = function() { +proto.clarifai.api.TimeInfo.prototype.getNumFrames = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.VideoInfo} returns this + * @return {!proto.clarifai.api.TimeInfo} returns this */ -proto.clarifai.api.VideoInfo.prototype.setWidth = function(value) { +proto.clarifai.api.TimeInfo.prototype.setNumFrames = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional int32 height = 2; + * optional uint32 begin_time = 2; * @return {number} */ -proto.clarifai.api.VideoInfo.prototype.getHeight = function() { +proto.clarifai.api.TimeInfo.prototype.getBeginTime = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.VideoInfo} returns this + * @return {!proto.clarifai.api.TimeInfo} returns this */ -proto.clarifai.api.VideoInfo.prototype.setHeight = function(value) { +proto.clarifai.api.TimeInfo.prototype.setBeginTime = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional float fps = 3; + * optional uint32 end_time = 3; * @return {number} */ -proto.clarifai.api.VideoInfo.prototype.getFps = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +proto.clarifai.api.TimeInfo.prototype.getEndTime = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.VideoInfo} returns this + * @return {!proto.clarifai.api.TimeInfo} returns this */ -proto.clarifai.api.VideoInfo.prototype.setFps = function(value) { - return jspb.Message.setProto3FloatField(this, 3, value); +proto.clarifai.api.TimeInfo.prototype.setEndTime = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string video_format = 4; + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DatasetStar.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetStar.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DatasetStar} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetStar.toObject = function(includeInstance, msg) { + var f, obj = { + datasetId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DatasetStar} + */ +proto.clarifai.api.DatasetStar.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DatasetStar; + return proto.clarifai.api.DatasetStar.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DatasetStar} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DatasetStar} + */ +proto.clarifai.api.DatasetStar.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DatasetStar.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DatasetStar.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DatasetStar} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DatasetStar.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string dataset_id = 1; * @return {string} */ -proto.clarifai.api.VideoInfo.prototype.getVideoFormat = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.DatasetStar.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.VideoInfo} returns this + * @return {!proto.clarifai.api.DatasetStar} returns this */ -proto.clarifai.api.VideoInfo.prototype.setVideoFormat = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.DatasetStar.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional int32 bit_rate = 5; - * @return {number} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.VideoInfo.prototype.getBitRate = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.clarifai.api.ModuleStar.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModuleStar.toObject(opt_includeInstance, this); }; /** - * @param {number} value - * @return {!proto.clarifai.api.VideoInfo} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ModuleStar} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.VideoInfo.prototype.setBitRate = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); +proto.clarifai.api.ModuleStar.toObject = function(includeInstance, msg) { + var f, obj = { + moduleId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional int32 frame_count = 6; - * @return {number} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ModuleStar} */ -proto.clarifai.api.VideoInfo.prototype.getFrameCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.clarifai.api.ModuleStar.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ModuleStar; + return proto.clarifai.api.ModuleStar.deserializeBinaryFromReader(msg, reader); }; /** - * @param {number} value - * @return {!proto.clarifai.api.VideoInfo} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ModuleStar} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ModuleStar} */ -proto.clarifai.api.VideoInfo.prototype.setFrameCount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.clarifai.api.ModuleStar.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setModuleId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional float duration_seconds = 7; - * @return {number} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.VideoInfo.prototype.getDurationSeconds = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0)); +proto.clarifai.api.ModuleStar.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ModuleStar.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {number} value - * @return {!proto.clarifai.api.VideoInfo} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ModuleStar} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.VideoInfo.prototype.setDurationSeconds = function(value) { - return jspb.Message.setProto3FloatField(this, 7, value); +proto.clarifai.api.ModuleStar.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getModuleId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } }; +/** + * optional string module_id = 1; + * @return {string} + */ +proto.clarifai.api.ModuleStar.prototype.getModuleId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.clarifai.api.ModuleStar} returns this */ -proto.clarifai.api.Workflow.repeatedFields_ = [4,14]; +proto.clarifai.api.ModuleStar.prototype.setModuleId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + @@ -34085,8 +52754,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Workflow.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Workflow.toObject(opt_includeInstance, this); +proto.clarifai.api.Module.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Module.toObject(opt_includeInstance, this); }; @@ -34095,27 +52764,24 @@ proto.clarifai.api.Workflow.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Workflow} msg The msg instance to transform. + * @param {!proto.clarifai.api.Module} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Workflow.toObject = function(includeInstance, msg) { +proto.clarifai.api.Module.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - appId: jspb.Message.getFieldWithDefault(msg, 2, ""), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - nodesList: jspb.Message.toObjectList(msg.getNodesList(), - proto.clarifai.api.WorkflowNode.toObject, includeInstance), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - userId: jspb.Message.getFieldWithDefault(msg, 7, ""), modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - version: (f = msg.getVersion()) && proto.clarifai.api.WorkflowVersion.toObject(includeInstance, f), - isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - starCount: jspb.Message.getFieldWithDefault(msg, 11, 0), - description: jspb.Message.getFieldWithDefault(msg, 12, ""), - notes: jspb.Message.getFieldWithDefault(msg, 13, ""), - useCasesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 9, ""), + appId: jspb.Message.getFieldWithDefault(msg, 10, ""), + moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f), + isStarred: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + starCount: jspb.Message.getFieldWithDefault(msg, 13, 0), + bookmarkOrigin: (f = msg.getBookmarkOrigin()) && proto.clarifai.api.BookmarkOrigin.toObject(includeInstance, f) }; if (includeInstance) { @@ -34129,23 +52795,23 @@ proto.clarifai.api.Workflow.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Workflow} + * @return {!proto.clarifai.api.Module} */ -proto.clarifai.api.Workflow.deserializeBinary = function(bytes) { +proto.clarifai.api.Module.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Workflow; - return proto.clarifai.api.Workflow.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Module; + return proto.clarifai.api.Module.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Workflow} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Module} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Workflow} + * @return {!proto.clarifai.api.Module} */ -proto.clarifai.api.Workflow.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Module.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -34156,63 +52822,55 @@ proto.clarifai.api.Workflow.deserializeBinaryFromReader = function(msg, reader) var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; - case 2: + case 3: var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); + msg.setDescription(value); break; - case 3: + case 4: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setCreatedAt(value); break; - case 4: - var value = new proto.clarifai.api.WorkflowNode; - reader.readMessage(value,proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader); - msg.addNodes(value); - break; case 5: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); break; - case 6: + case 7: var value = new proto.clarifai.api.Visibility; reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); msg.setVisibility(value); break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; case 8: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); break; case 9: - var value = new proto.clarifai.api.WorkflowVersion; - reader.readMessage(value,proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader); - msg.setVersion(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); break; case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsStarred(value); + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); break; case 11: - var value = /** @type {number} */ (reader.readInt32()); - msg.setStarCount(value); + var value = new proto.clarifai.api.ModuleVersion; + reader.readMessage(value,proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader); + msg.setModuleVersion(value); break; case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsStarred(value); break; case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setNotes(value); + var value = /** @type {number} */ (reader.readInt32()); + msg.setStarCount(value); break; case 14: - var value = /** @type {string} */ (reader.readString()); - msg.addUseCases(value); + var value = new proto.clarifai.api.BookmarkOrigin; + reader.readMessage(value,proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader); + msg.setBookmarkOrigin(value); break; default: reader.skipField(); @@ -34227,9 +52885,9 @@ proto.clarifai.api.Workflow.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Workflow.prototype.serializeBinary = function() { +proto.clarifai.api.Module.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Workflow.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Module.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -34237,11 +52895,11 @@ proto.clarifai.api.Workflow.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Workflow} message + * @param {!proto.clarifai.api.Module} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Workflow.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Module.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -34250,101 +52908,87 @@ proto.clarifai.api.Workflow.serializeBinaryToWriter = function(message, writer) f ); } - f = message.getAppId(); + f = message.getDescription(); if (f.length > 0) { writer.writeString( - 2, + 3, f ); } f = message.getCreatedAt(); if (f != null) { writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getNodesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( 4, f, - proto.clarifai.api.WorkflowNode.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getMetadata(); + f = message.getModifiedAt(); if (f != null) { writer.writeMessage( 5, f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getVisibility(); if (f != null) { writer.writeMessage( - 6, + 7, f, proto.clarifai.api.Visibility.serializeBinaryToWriter ); } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } f = message.getUserId(); if (f.length > 0) { writer.writeString( - 7, + 9, f ); } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 8, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 10, + f ); } - f = message.getVersion(); + f = message.getModuleVersion(); if (f != null) { writer.writeMessage( - 9, + 11, f, - proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter + proto.clarifai.api.ModuleVersion.serializeBinaryToWriter ); } f = message.getIsStarred(); if (f) { writer.writeBool( - 10, + 12, f ); } f = message.getStarCount(); if (f !== 0) { writer.writeInt32( - 11, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getNotes(); - if (f.length > 0) { - writer.writeString( 13, f ); } - f = message.getUseCasesList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getBookmarkOrigin(); + if (f != null) { + writer.writeMessage( 14, - f + f, + proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter ); } }; @@ -34354,62 +52998,62 @@ proto.clarifai.api.Workflow.serializeBinaryToWriter = function(message, writer) * optional string id = 1; * @return {string} */ -proto.clarifai.api.Workflow.prototype.getId = function() { +proto.clarifai.api.Module.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setId = function(value) { +proto.clarifai.api.Module.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string app_id = 2; + * optional string description = 3; * @return {string} */ -proto.clarifai.api.Workflow.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.Module.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.Module.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional google.protobuf.Timestamp created_at = 3; + * optional google.protobuf.Timestamp created_at = 4; * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Workflow.prototype.getCreatedAt = function() { +proto.clarifai.api.Module.prototype.getCreatedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.Module.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.clearCreatedAt = function() { +proto.clarifai.api.Module.prototype.clearCreatedAt = function() { return this.setCreatedAt(undefined); }; @@ -34418,74 +53062,73 @@ proto.clarifai.api.Workflow.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Workflow.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.Module.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * repeated WorkflowNode nodes = 4; - * @return {!Array} + * optional google.protobuf.Timestamp modified_at = 5; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Workflow.prototype.getNodesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowNode, 4)); +proto.clarifai.api.Module.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Workflow} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setNodesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); +proto.clarifai.api.Module.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * @param {!proto.clarifai.api.WorkflowNode=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.WorkflowNode} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.addNodes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.WorkflowNode, opt_index); +proto.clarifai.api.Module.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Workflow} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Workflow.prototype.clearNodesList = function() { - return this.setNodesList([]); +proto.clarifai.api.Module.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional google.protobuf.Struct metadata = 5; - * @return {?proto.google.protobuf.Struct} + * optional Visibility visibility = 7; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.Workflow.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); +proto.clarifai.api.Module.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 7)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.Workflow} returns this + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.Module.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.Module.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; @@ -34493,36 +53136,36 @@ proto.clarifai.api.Workflow.prototype.clearMetadata = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Workflow.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.Module.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 7) != null; }; /** - * optional Visibility visibility = 6; - * @return {?proto.clarifai.api.Visibility} + * optional google.protobuf.Struct metadata = 8; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Workflow.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 6)); +proto.clarifai.api.Module.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8)); }; /** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.Workflow} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.Module.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.Module.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; @@ -34530,91 +53173,72 @@ proto.clarifai.api.Workflow.prototype.clearVisibility = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Workflow.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.Module.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional string user_id = 7; + * optional string user_id = 9; * @return {string} */ -proto.clarifai.api.Workflow.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +proto.clarifai.api.Module.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional google.protobuf.Timestamp modified_at = 8; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.clarifai.api.Workflow.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Workflow} returns this -*/ -proto.clarifai.api.Workflow.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 8, value); +proto.clarifai.api.Module.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Workflow} returns this + * optional string app_id = 10; + * @return {string} */ -proto.clarifai.api.Workflow.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.Module.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.Module.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); }; /** - * optional WorkflowVersion version = 9; - * @return {?proto.clarifai.api.WorkflowVersion} + * optional ModuleVersion module_version = 11; + * @return {?proto.clarifai.api.ModuleVersion} */ -proto.clarifai.api.Workflow.prototype.getVersion = function() { - return /** @type{?proto.clarifai.api.WorkflowVersion} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.WorkflowVersion, 9)); +proto.clarifai.api.Module.prototype.getModuleVersion = function() { + return /** @type{?proto.clarifai.api.ModuleVersion} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ModuleVersion, 11)); }; /** - * @param {?proto.clarifai.api.WorkflowVersion|undefined} value - * @return {!proto.clarifai.api.Workflow} returns this + * @param {?proto.clarifai.api.ModuleVersion|undefined} value + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setVersion = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.clarifai.api.Module.prototype.setModuleVersion = function(value) { + return jspb.Message.setWrapperField(this, 11, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.clearVersion = function() { - return this.setVersion(undefined); +proto.clarifai.api.Module.prototype.clearModuleVersion = function() { + return this.setModuleVersion(undefined); }; @@ -34622,127 +53246,350 @@ proto.clarifai.api.Workflow.prototype.clearVersion = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Workflow.prototype.hasVersion = function() { - return jspb.Message.getField(this, 9) != null; +proto.clarifai.api.Module.prototype.hasModuleVersion = function() { + return jspb.Message.getField(this, 11) != null; }; /** - * optional bool is_starred = 10; + * optional bool is_starred = 12; * @return {boolean} */ -proto.clarifai.api.Workflow.prototype.getIsStarred = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +proto.clarifai.api.Module.prototype.getIsStarred = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); }; /** * @param {boolean} value - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setIsStarred = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); +proto.clarifai.api.Module.prototype.setIsStarred = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); }; /** - * optional int32 star_count = 11; + * optional int32 star_count = 13; * @return {number} */ -proto.clarifai.api.Workflow.prototype.getStarCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +proto.clarifai.api.Module.prototype.getStarCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.Workflow} returns this + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.setStarCount = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); +proto.clarifai.api.Module.prototype.setStarCount = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); }; /** - * optional string description = 12; - * @return {string} + * optional BookmarkOrigin bookmark_origin = 14; + * @return {?proto.clarifai.api.BookmarkOrigin} */ -proto.clarifai.api.Workflow.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +proto.clarifai.api.Module.prototype.getBookmarkOrigin = function() { + return /** @type{?proto.clarifai.api.BookmarkOrigin} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.BookmarkOrigin, 14)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Workflow} returns this - */ -proto.clarifai.api.Workflow.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); + * @param {?proto.clarifai.api.BookmarkOrigin|undefined} value + * @return {!proto.clarifai.api.Module} returns this +*/ +proto.clarifai.api.Module.prototype.setBookmarkOrigin = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * optional string notes = 13; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Module} returns this */ -proto.clarifai.api.Workflow.prototype.getNotes = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +proto.clarifai.api.Module.prototype.clearBookmarkOrigin = function() { + return this.setBookmarkOrigin(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Workflow} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Workflow.prototype.setNotes = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); +proto.clarifai.api.Module.prototype.hasBookmarkOrigin = function() { + return jspb.Message.getField(this, 14) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * repeated string use_cases = 14; - * @return {!Array} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Workflow.prototype.getUseCasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 14)); +proto.clarifai.api.ModuleVersion.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModuleVersion.toObject(opt_includeInstance, this); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Workflow} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ModuleVersion} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Workflow.prototype.setUseCasesList = function(value) { - return jspb.Message.setField(this, 14, value || []); +proto.clarifai.api.ModuleVersion.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""), + appId: jspb.Message.getFieldWithDefault(msg, 3, ""), + userId: jspb.Message.getFieldWithDefault(msg, 4, ""), + description: jspb.Message.getFieldWithDefault(msg, 6, ""), + notes: jspb.Message.getFieldWithDefault(msg, 7, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + gitCommitUrl: jspb.Message.getFieldWithDefault(msg, 10, ""), + moduleNav: (f = msg.getModuleNav()) && proto.clarifai.api.ModuleVersion.ModuleNav.toObject(includeInstance, f), + approved: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Workflow} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ModuleVersion} */ -proto.clarifai.api.Workflow.prototype.addUseCases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 14, value, opt_index); +proto.clarifai.api.ModuleVersion.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ModuleVersion; + return proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader(msg, reader); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Workflow} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ModuleVersion} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ModuleVersion} */ -proto.clarifai.api.Workflow.prototype.clearUseCasesList = function() { - return this.setUseCasesList([]); +proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModuleId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setNotes(value); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 9: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.setGitCommitUrl(value); + break; + case 11: + var value = new proto.clarifai.api.ModuleVersion.ModuleNav; + reader.readMessage(value,proto.clarifai.api.ModuleVersion.ModuleNav.deserializeBinaryFromReader); + msg.setModuleNav(value); + break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setApproved(value); + break; + case 13: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 14: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ModuleVersion.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ModuleVersion.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ModuleVersion} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowVersion.repeatedFields_ = [6]; +proto.clarifai.api.ModuleVersion.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getModuleId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getNotes(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getGitCommitUrl(); + if (f.length > 0) { + writer.writeString( + 10, + f + ); + } + f = message.getModuleNav(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.clarifai.api.ModuleVersion.ModuleNav.serializeBinaryToWriter + ); + } + f = message.getApproved(); + if (f) { + writer.writeBool( + 12, + f + ); + } + f = message.getVisibility(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.clarifai.api.Visibility.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 14, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } +}; + + @@ -34759,8 +53606,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.WorkflowVersion.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.WorkflowVersion.toObject(opt_includeInstance, this); +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModuleVersion.ModuleSubNav.toObject(opt_includeInstance, this); }; @@ -34769,24 +53616,15 @@ proto.clarifai.api.WorkflowVersion.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.WorkflowVersion} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModuleVersion.ModuleSubNav} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowVersion.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModuleVersion.ModuleSubNav.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - nodesList: jspb.Message.toObjectList(msg.getNodesList(), - proto.clarifai.api.WorkflowNode.toObject, includeInstance), - metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - appId: jspb.Message.getFieldWithDefault(msg, 8, ""), - userId: jspb.Message.getFieldWithDefault(msg, 9, ""), - description: jspb.Message.getFieldWithDefault(msg, 10, ""), - license: jspb.Message.getFieldWithDefault(msg, 11, "") + title: jspb.Message.getFieldWithDefault(msg, 1, ""), + queryKey: jspb.Message.getFieldWithDefault(msg, 2, ""), + queryValue: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -34800,23 +53638,23 @@ proto.clarifai.api.WorkflowVersion.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.WorkflowVersion} + * @return {!proto.clarifai.api.ModuleVersion.ModuleSubNav} */ -proto.clarifai.api.WorkflowVersion.deserializeBinary = function(bytes) { +proto.clarifai.api.ModuleVersion.ModuleSubNav.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.WorkflowVersion; - return proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModuleVersion.ModuleSubNav; + return proto.clarifai.api.ModuleVersion.ModuleSubNav.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.WorkflowVersion} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModuleVersion.ModuleSubNav} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.WorkflowVersion} + * @return {!proto.clarifai.api.ModuleVersion.ModuleSubNav} */ -proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModuleVersion.ModuleSubNav.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -34825,52 +53663,15 @@ proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader = function(msg, r switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setTitle(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); + msg.setQueryKey(value); break; case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 4: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 5: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); - break; - case 6: - var value = new proto.clarifai.api.WorkflowNode; - reader.readMessage(value,proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader); - msg.addNodes(value); - break; - case 7: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 11: var value = /** @type {string} */ (reader.readString()); - msg.setLicense(value); + msg.setQueryValue(value); break; default: reader.skipField(); @@ -34885,9 +53686,9 @@ proto.clarifai.api.WorkflowVersion.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.WorkflowVersion.prototype.serializeBinary = function() { +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModuleVersion.ModuleSubNav.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -34895,91 +53696,30 @@ proto.clarifai.api.WorkflowVersion.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.WorkflowVersion} message + * @param {!proto.clarifai.api.ModuleVersion.ModuleSubNav} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModuleVersion.ModuleSubNav.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); + f = message.getTitle(); if (f.length > 0) { writer.writeString( 1, f ); } - f = message.getWorkflowId(); + f = message.getQueryKey(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 4, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getVisibility(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.clarifai.api.Visibility.serializeBinaryToWriter - ); - } - f = message.getNodesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.clarifai.api.WorkflowNode.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 7, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getLicense(); + f = message.getQueryValue(); if (f.length > 0) { writer.writeString( - 11, + 3, f ); } @@ -34987,502 +53727,419 @@ proto.clarifai.api.WorkflowVersion.serializeBinaryToWriter = function(message, w /** - * optional string id = 1; + * optional string title = 1; * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.getId = function() { +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.getTitle = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @return {!proto.clarifai.api.ModuleVersion.ModuleSubNav} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.setId = function(value) { +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.setTitle = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string workflow_id = 2; + * optional string query_key = 2; * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.getWorkflowId = function() { +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.getQueryKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @return {!proto.clarifai.api.ModuleVersion.ModuleSubNav} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.setWorkflowId = function(value) { +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.setQueryKey = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} + * optional string query_value = 3; + * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this -*/ -proto.clarifai.api.WorkflowVersion.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.getQueryValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @param {string} value + * @return {!proto.clarifai.api.ModuleVersion.ModuleSubNav} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.ModuleVersion.ModuleSubNav.prototype.setQueryValue = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.WorkflowVersion.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; -}; - /** - * optional google.protobuf.Timestamp modified_at = 4; - * @return {?proto.google.protobuf.Timestamp} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.WorkflowVersion.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this -*/ -proto.clarifai.api.WorkflowVersion.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - +proto.clarifai.api.ModuleVersion.ModuleNav.repeatedFields_ = [2]; -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowVersion} returns this - */ -proto.clarifai.api.WorkflowVersion.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Returns whether this field is set. - * @return {boolean} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.WorkflowVersion.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModuleVersion.ModuleNav.toObject(opt_includeInstance, this); }; /** - * optional Visibility visibility = 5; - * @return {?proto.clarifai.api.Visibility} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ModuleVersion.ModuleNav} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowVersion.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 5)); -}; - +proto.clarifai.api.ModuleVersion.ModuleNav.toObject = function(includeInstance, msg) { + var f, obj = { + title: jspb.Message.getFieldWithDefault(msg, 1, ""), + moduleSubNavsList: jspb.Message.toObjectList(msg.getModuleSubNavsList(), + proto.clarifai.api.ModuleVersion.ModuleSubNav.toObject, includeInstance) + }; -/** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this -*/ -proto.clarifai.api.WorkflowVersion.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ModuleVersion.ModuleNav} */ -proto.clarifai.api.WorkflowVersion.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.ModuleVersion.ModuleNav.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ModuleVersion.ModuleNav; + return proto.clarifai.api.ModuleVersion.ModuleNav.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ModuleVersion.ModuleNav} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ModuleVersion.ModuleNav} */ -proto.clarifai.api.WorkflowVersion.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.ModuleVersion.ModuleNav.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setTitle(value); + break; + case 2: + var value = new proto.clarifai.api.ModuleVersion.ModuleSubNav; + reader.readMessage(value,proto.clarifai.api.ModuleVersion.ModuleSubNav.deserializeBinaryFromReader); + msg.addModuleSubNavs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * repeated WorkflowNode nodes = 6; - * @return {!Array} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.WorkflowVersion.prototype.getNodesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowNode, 6)); +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ModuleVersion.ModuleNav.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this -*/ -proto.clarifai.api.WorkflowVersion.prototype.setNodesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ModuleVersion.ModuleNav} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ModuleVersion.ModuleNav.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTitle(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getModuleSubNavsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.clarifai.api.ModuleVersion.ModuleSubNav.serializeBinaryToWriter + ); + } }; /** - * @param {!proto.clarifai.api.WorkflowNode=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.WorkflowNode} + * optional string title = 1; + * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.addNodes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.WorkflowNode, opt_index); +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.getTitle = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @param {string} value + * @return {!proto.clarifai.api.ModuleVersion.ModuleNav} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.clearNodesList = function() { - return this.setNodesList([]); +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.setTitle = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional google.protobuf.Struct metadata = 7; - * @return {?proto.google.protobuf.Struct} + * repeated ModuleSubNav module_sub_navs = 2; + * @return {!Array} */ -proto.clarifai.api.WorkflowVersion.prototype.getMetadata = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 7)); +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.getModuleSubNavsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModuleVersion.ModuleSubNav, 2)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.ModuleVersion.ModuleNav} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.setModuleSubNavsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @param {!proto.clarifai.api.ModuleVersion.ModuleSubNav=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModuleVersion.ModuleSubNav} */ -proto.clarifai.api.WorkflowVersion.prototype.clearMetadata = function() { - return this.setMetadata(undefined); +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.addModuleSubNavs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModuleVersion.ModuleSubNav, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ModuleVersion.ModuleNav} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.ModuleVersion.ModuleNav.prototype.clearModuleSubNavsList = function() { + return this.setModuleSubNavsList([]); }; /** - * optional string app_id = 8; + * optional string id = 1; * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.clarifai.api.ModuleVersion.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.clarifai.api.ModuleVersion.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string user_id = 9; + * optional string module_id = 2; * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); +proto.clarifai.api.ModuleVersion.prototype.getModuleId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); +proto.clarifai.api.ModuleVersion.prototype.setModuleId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string description = 10; + * optional string app_id = 3; * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); +proto.clarifai.api.ModuleVersion.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); +proto.clarifai.api.ModuleVersion.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string license = 11; + * optional string user_id = 4; * @return {string} */ -proto.clarifai.api.WorkflowVersion.prototype.getLicense = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +proto.clarifai.api.ModuleVersion.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowVersion} returns this + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowVersion.prototype.setLicense = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); +proto.clarifai.api.ModuleVersion.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.WorkflowNode.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional string description = 6; + * @return {string} */ -proto.clarifai.api.WorkflowNode.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.WorkflowNode.toObject(opt_includeInstance, this); +proto.clarifai.api.ModuleVersion.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.WorkflowNode} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowNode.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f), - nodeInputsList: jspb.Message.toObjectList(msg.getNodeInputsList(), - proto.clarifai.api.NodeInput.toObject, includeInstance), - suppressOutput: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.ModuleVersion.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.WorkflowNode} + * optional string notes = 7; + * @return {string} */ -proto.clarifai.api.WorkflowNode.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.WorkflowNode; - return proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ModuleVersion.prototype.getNotes = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.WorkflowNode} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.WorkflowNode} + * @param {string} value + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowNode.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new proto.clarifai.api.Model; - reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); - msg.setModel(value); - break; - case 3: - var value = new proto.clarifai.api.NodeInput; - reader.readMessage(value,proto.clarifai.api.NodeInput.deserializeBinaryFromReader); - msg.addNodeInputs(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuppressOutput(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ModuleVersion.prototype.setNotes = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional google.protobuf.Timestamp created_at = 8; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.WorkflowNode.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.WorkflowNode.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ModuleVersion.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.WorkflowNode} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.WorkflowNode.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModel(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.Model.serializeBinaryToWriter - ); - } - f = message.getNodeInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.clarifai.api.NodeInput.serializeBinaryToWriter - ); - } - f = message.getSuppressOutput(); - if (f) { - writer.writeBool( - 4, - f - ); - } + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.ModuleVersion} returns this +*/ +proto.clarifai.api.ModuleVersion.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; /** - * optional string id = 1; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowNode.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ModuleVersion.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.WorkflowNode} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.WorkflowNode.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModuleVersion.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional Model model = 2; - * @return {?proto.clarifai.api.Model} + * optional google.protobuf.Timestamp modified_at = 9; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.WorkflowNode.prototype.getModel = function() { - return /** @type{?proto.clarifai.api.Model} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 2)); +proto.clarifai.api.ModuleVersion.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); }; /** - * @param {?proto.clarifai.api.Model|undefined} value - * @return {!proto.clarifai.api.WorkflowNode} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowNode.prototype.setModel = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.ModuleVersion.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 9, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowNode} returns this + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowNode.prototype.clearModel = function() { - return this.setModel(undefined); +proto.clarifai.api.ModuleVersion.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; @@ -35490,204 +54147,158 @@ proto.clarifai.api.WorkflowNode.prototype.clearModel = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.WorkflowNode.prototype.hasModel = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.ModuleVersion.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 9) != null; }; /** - * repeated NodeInput node_inputs = 3; - * @return {!Array} + * optional string git_commit_url = 10; + * @return {string} */ -proto.clarifai.api.WorkflowNode.prototype.getNodeInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.NodeInput, 3)); +proto.clarifai.api.ModuleVersion.prototype.getGitCommitUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.WorkflowNode} returns this -*/ -proto.clarifai.api.WorkflowNode.prototype.setNodeInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); + * @param {string} value + * @return {!proto.clarifai.api.ModuleVersion} returns this + */ +proto.clarifai.api.ModuleVersion.prototype.setGitCommitUrl = function(value) { + return jspb.Message.setProto3StringField(this, 10, value); }; /** - * @param {!proto.clarifai.api.NodeInput=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.NodeInput} + * optional ModuleNav module_nav = 11; + * @return {?proto.clarifai.api.ModuleVersion.ModuleNav} */ -proto.clarifai.api.WorkflowNode.prototype.addNodeInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.NodeInput, opt_index); +proto.clarifai.api.ModuleVersion.prototype.getModuleNav = function() { + return /** @type{?proto.clarifai.api.ModuleVersion.ModuleNav} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ModuleVersion.ModuleNav, 11)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.WorkflowNode} returns this - */ -proto.clarifai.api.WorkflowNode.prototype.clearNodeInputsList = function() { - return this.setNodeInputsList([]); + * @param {?proto.clarifai.api.ModuleVersion.ModuleNav|undefined} value + * @return {!proto.clarifai.api.ModuleVersion} returns this +*/ +proto.clarifai.api.ModuleVersion.prototype.setModuleNav = function(value) { + return jspb.Message.setWrapperField(this, 11, value); }; /** - * optional bool suppress_output = 4; - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.WorkflowNode.prototype.getSuppressOutput = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.ModuleVersion.prototype.clearModuleNav = function() { + return this.setModuleNav(undefined); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.WorkflowNode} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.WorkflowNode.prototype.setSuppressOutput = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.ModuleVersion.prototype.hasModuleNav = function() { + return jspb.Message.getField(this, 11) != null; }; +/** + * optional bool approved = 12; + * @return {boolean} + */ +proto.clarifai.api.ModuleVersion.prototype.getApproved = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {boolean} value + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.NodeInput.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.NodeInput.toObject(opt_includeInstance, this); +proto.clarifai.api.ModuleVersion.prototype.setApproved = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.NodeInput} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional Visibility visibility = 13; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.NodeInput.toObject = function(includeInstance, msg) { - var f, obj = { - nodeId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.ModuleVersion.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 13)); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.NodeInput} - */ -proto.clarifai.api.NodeInput.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.NodeInput; - return proto.clarifai.api.NodeInput.deserializeBinaryFromReader(msg, reader); + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.ModuleVersion} returns this +*/ +proto.clarifai.api.ModuleVersion.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 13, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.NodeInput} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.NodeInput} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.NodeInput.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setNodeId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ModuleVersion.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.NodeInput.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.NodeInput.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ModuleVersion.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 13) != null; }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.NodeInput} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional google.protobuf.Struct metadata = 14; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.NodeInput.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNodeId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.clarifai.api.ModuleVersion.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 14)); }; /** - * optional string node_id = 1; - * @return {string} - */ -proto.clarifai.api.NodeInput.prototype.getNodeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.ModuleVersion} returns this +*/ +proto.clarifai.api.ModuleVersion.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 14, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.NodeInput} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ModuleVersion} returns this */ -proto.clarifai.api.NodeInput.prototype.setNodeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ModuleVersion.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.WorkflowResult.repeatedFields_ = [6]; +proto.clarifai.api.ModuleVersion.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 14) != null; +}; + + @@ -35704,8 +54315,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.WorkflowResult.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.WorkflowResult.toObject(opt_includeInstance, this); +proto.clarifai.api.InstalledModuleVersion.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InstalledModuleVersion.toObject(opt_includeInstance, this); }; @@ -35714,20 +54325,21 @@ proto.clarifai.api.WorkflowResult.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.WorkflowResult} msg The msg instance to transform. + * @param {!proto.clarifai.api.InstalledModuleVersion} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowResult.toObject = function(includeInstance, msg) { +proto.clarifai.api.InstalledModuleVersion.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + moduleVersion: (f = msg.getModuleVersion()) && proto.clarifai.api.ModuleVersion.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 3, ""), + userId: jspb.Message.getFieldWithDefault(msg, 4, ""), createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - model: (f = msg.getModel()) && proto.clarifai.api.Model.toObject(includeInstance, f), - input: (f = msg.getInput()) && proto.clarifai.api.Input.toObject(includeInstance, f), - outputsList: jspb.Message.toObjectList(msg.getOutputsList(), - proto.clarifai.api.Output.toObject, includeInstance), - suppressOutput: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + deployUrl: jspb.Message.getFieldWithDefault(msg, 7, ""), + visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), + keyId: jspb.Message.getFieldWithDefault(msg, 9, "") }; if (includeInstance) { @@ -35741,23 +54353,23 @@ proto.clarifai.api.WorkflowResult.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.WorkflowResult} + * @return {!proto.clarifai.api.InstalledModuleVersion} */ -proto.clarifai.api.WorkflowResult.deserializeBinary = function(bytes) { +proto.clarifai.api.InstalledModuleVersion.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.WorkflowResult; - return proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InstalledModuleVersion; + return proto.clarifai.api.InstalledModuleVersion.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.WorkflowResult} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InstalledModuleVersion} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.WorkflowResult} + * @return {!proto.clarifai.api.InstalledModuleVersion} */ -proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InstalledModuleVersion.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -35769,33 +54381,40 @@ proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader = function(msg, re msg.setId(value); break; case 2: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto.clarifai.api.ModuleVersion; + reader.readMessage(value,proto.clarifai.api.ModuleVersion.deserializeBinaryFromReader); + msg.setModuleVersion(value); break; case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); break; case 4: - var value = new proto.clarifai.api.Model; - reader.readMessage(value,proto.clarifai.api.Model.deserializeBinaryFromReader); - msg.setModel(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); break; case 5: - var value = new proto.clarifai.api.Input; - reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); - msg.setInput(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 6: - var value = new proto.clarifai.api.Output; - reader.readMessage(value,proto.clarifai.api.Output.deserializeBinaryFromReader); - msg.addOutputs(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); break; case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuppressOutput(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDeployUrl(value); + break; + case 8: + var value = new proto.clarifai.api.Visibility; + reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); + msg.setVisibility(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyId(value); break; default: reader.skipField(); @@ -35810,9 +54429,9 @@ proto.clarifai.api.WorkflowResult.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.WorkflowResult.prototype.serializeBinary = function() { +proto.clarifai.api.InstalledModuleVersion.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.WorkflowResult.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InstalledModuleVersion.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -35820,11 +54439,11 @@ proto.clarifai.api.WorkflowResult.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.WorkflowResult} message + * @param {!proto.clarifai.api.InstalledModuleVersion} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.WorkflowResult.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InstalledModuleVersion.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -35833,50 +54452,63 @@ proto.clarifai.api.WorkflowResult.serializeBinaryToWriter = function(message, wr f ); } - f = message.getStatus(); + f = message.getModuleVersion(); if (f != null) { writer.writeMessage( 2, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto.clarifai.api.ModuleVersion.serializeBinaryToWriter + ); + } + f = message.getAppId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 4, + f ); } f = message.getCreatedAt(); if (f != null) { writer.writeMessage( - 3, + 5, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getModel(); + f = message.getModifiedAt(); if (f != null) { writer.writeMessage( - 4, + 6, f, - proto.clarifai.api.Model.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getInput(); + f = message.getDeployUrl(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getVisibility(); if (f != null) { writer.writeMessage( - 5, + 8, f, - proto.clarifai.api.Input.serializeBinaryToWriter + proto.clarifai.api.Visibility.serializeBinaryToWriter ); } - f = message.getOutputsList(); + f = message.getKeyId(); if (f.length > 0) { - writer.writeRepeatedMessage( - 6, - f, - proto.clarifai.api.Output.serializeBinaryToWriter - ); - } - f = message.getSuppressOutput(); - if (f) { - writer.writeBool( - 7, + writer.writeString( + 9, f ); } @@ -35887,45 +54519,45 @@ proto.clarifai.api.WorkflowResult.serializeBinaryToWriter = function(message, wr * optional string id = 1; * @return {string} */ -proto.clarifai.api.WorkflowResult.prototype.getId = function() { +proto.clarifai.api.InstalledModuleVersion.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowResult} returns this + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.setId = function(value) { +proto.clarifai.api.InstalledModuleVersion.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional status.Status status = 2; - * @return {?proto.clarifai.api.status.Status} + * optional ModuleVersion module_version = 2; + * @return {?proto.clarifai.api.ModuleVersion} */ -proto.clarifai.api.WorkflowResult.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2)); +proto.clarifai.api.InstalledModuleVersion.prototype.getModuleVersion = function() { + return /** @type{?proto.clarifai.api.ModuleVersion} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ModuleVersion, 2)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.WorkflowResult} returns this + * @param {?proto.clarifai.api.ModuleVersion|undefined} value + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.setStatus = function(value) { +proto.clarifai.api.InstalledModuleVersion.prototype.setModuleVersion = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowResult} returns this + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.InstalledModuleVersion.prototype.clearModuleVersion = function() { + return this.setModuleVersion(undefined); }; @@ -35933,110 +54565,72 @@ proto.clarifai.api.WorkflowResult.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.WorkflowResult.prototype.hasStatus = function() { +proto.clarifai.api.InstalledModuleVersion.prototype.hasModuleVersion = function() { return jspb.Message.getField(this, 2) != null; }; /** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.clarifai.api.WorkflowResult.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.WorkflowResult} returns this -*/ -proto.clarifai.api.WorkflowResult.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowResult} returns this - */ -proto.clarifai.api.WorkflowResult.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * optional string app_id = 3; + * @return {string} */ -proto.clarifai.api.WorkflowResult.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.InstalledModuleVersion.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * optional Model model = 4; - * @return {?proto.clarifai.api.Model} + * @param {string} value + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.getModel = function() { - return /** @type{?proto.clarifai.api.Model} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Model, 4)); -}; - - -/** - * @param {?proto.clarifai.api.Model|undefined} value - * @return {!proto.clarifai.api.WorkflowResult} returns this -*/ -proto.clarifai.api.WorkflowResult.prototype.setModel = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.InstalledModuleVersion.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowResult} returns this + * optional string user_id = 4; + * @return {string} */ -proto.clarifai.api.WorkflowResult.prototype.clearModel = function() { - return this.setModel(undefined); +proto.clarifai.api.InstalledModuleVersion.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.hasModel = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.InstalledModuleVersion.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional Input input = 5; - * @return {?proto.clarifai.api.Input} + * optional google.protobuf.Timestamp created_at = 5; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.WorkflowResult.prototype.getInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Input, 5)); +proto.clarifai.api.InstalledModuleVersion.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.WorkflowResult} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.setInput = function(value) { +proto.clarifai.api.InstalledModuleVersion.prototype.setCreatedAt = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.WorkflowResult} returns this + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.clearInput = function() { - return this.setInput(undefined); +proto.clarifai.api.InstalledModuleVersion.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -36044,198 +54638,149 @@ proto.clarifai.api.WorkflowResult.prototype.clearInput = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.WorkflowResult.prototype.hasInput = function() { +proto.clarifai.api.InstalledModuleVersion.prototype.hasCreatedAt = function() { return jspb.Message.getField(this, 5) != null; }; /** - * repeated Output outputs = 6; - * @return {!Array} + * optional google.protobuf.Timestamp modified_at = 6; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.WorkflowResult.prototype.getOutputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Output, 6)); +proto.clarifai.api.InstalledModuleVersion.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.WorkflowResult} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.setOutputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); -}; - - -/** - * @param {!proto.clarifai.api.Output=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Output} - */ -proto.clarifai.api.WorkflowResult.prototype.addOutputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.Output, opt_index); +proto.clarifai.api.InstalledModuleVersion.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.WorkflowResult} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowResult.prototype.clearOutputsList = function() { - return this.setOutputsList([]); +proto.clarifai.api.InstalledModuleVersion.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * optional bool suppress_output = 7; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.WorkflowResult.prototype.getSuppressOutput = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.WorkflowResult} returns this - */ -proto.clarifai.api.WorkflowResult.prototype.setSuppressOutput = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.WorkflowState.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.WorkflowState.toObject(opt_includeInstance, this); +proto.clarifai.api.InstalledModuleVersion.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.WorkflowState} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string deploy_url = 7; + * @return {string} */ -proto.clarifai.api.WorkflowState.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.InstalledModuleVersion.prototype.getDeployUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.WorkflowState} + * @param {string} value + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowState.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.WorkflowState; - return proto.clarifai.api.WorkflowState.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.InstalledModuleVersion.prototype.setDeployUrl = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.WorkflowState} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.WorkflowState} + * optional Visibility visibility = 8; + * @return {?proto.clarifai.api.Visibility} */ -proto.clarifai.api.WorkflowState.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.InstalledModuleVersion.prototype.getVisibility = function() { + return /** @type{?proto.clarifai.api.Visibility} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {?proto.clarifai.api.Visibility|undefined} value + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this +*/ +proto.clarifai.api.InstalledModuleVersion.prototype.setVisibility = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowState.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.WorkflowState.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.InstalledModuleVersion.prototype.clearVisibility = function() { + return this.setVisibility(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.WorkflowState} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.WorkflowState.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.clarifai.api.InstalledModuleVersion.prototype.hasVisibility = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional string id = 1; + * optional string key_id = 9; * @return {string} */ -proto.clarifai.api.WorkflowState.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.InstalledModuleVersion.prototype.getKeyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.WorkflowState} returns this + * @return {!proto.clarifai.api.InstalledModuleVersion} returns this */ -proto.clarifai.api.WorkflowState.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.InstalledModuleVersion.prototype.setKeyId = function(value) { + return jspb.Message.setProto3StringField(this, 9, value); }; +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.BulkOperation.oneofGroups_ = [[2,10,11]]; + +/** + * @enum {number} + */ +proto.clarifai.api.BulkOperation.InputSourceCase = { + INPUT_SOURCE_NOT_SET: 0, + INPUT_IDS: 2, + SEARCH: 10, + DATASET: 11 +}; + +/** + * @return {proto.clarifai.api.BulkOperation.InputSourceCase} + */ +proto.clarifai.api.BulkOperation.prototype.getInputSourceCase = function() { + return /** @type {proto.clarifai.api.BulkOperation.InputSourceCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.BulkOperation.oneofGroups_[0])); +}; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -36251,8 +54796,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.AppDuplication.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.AppDuplication.toObject(opt_includeInstance, this); +proto.clarifai.api.BulkOperation.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.BulkOperation.toObject(opt_includeInstance, this); }; @@ -36261,19 +54806,23 @@ proto.clarifai.api.AppDuplication.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.AppDuplication} msg The msg instance to transform. + * @param {!proto.clarifai.api.BulkOperation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AppDuplication.toObject = function(includeInstance, msg) { +proto.clarifai.api.BulkOperation.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - newAppId: jspb.Message.getFieldWithDefault(msg, 2, ""), - newAppName: jspb.Message.getFieldWithDefault(msg, 3, ""), + inputIds: (f = msg.getInputIds()) && proto.clarifai.api.InputIDs.toObject(includeInstance, f), + search: (f = msg.getSearch()) && proto.clarifai.api.Search.toObject(includeInstance, f), + dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f), + operation: (f = msg.getOperation()) && proto.clarifai.api.Operation.toObject(includeInstance, f), + appId: jspb.Message.getFieldWithDefault(msg, 4, ""), status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + progress: (f = msg.getProgress()) && proto.clarifai.api.Progress.toObject(includeInstance, f), + createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""), createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - lastModifiedAt: (f = msg.getLastModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - filter: (f = msg.getFilter()) && proto.clarifai.api.AppDuplicationFilters.toObject(includeInstance, f) + lastModifiedAt: (f = msg.getLastModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -36287,23 +54836,23 @@ proto.clarifai.api.AppDuplication.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.AppDuplication} + * @return {!proto.clarifai.api.BulkOperation} */ -proto.clarifai.api.AppDuplication.deserializeBinary = function(bytes) { +proto.clarifai.api.BulkOperation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.AppDuplication; - return proto.clarifai.api.AppDuplication.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.BulkOperation; + return proto.clarifai.api.BulkOperation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.AppDuplication} msg The message object to deserialize into. + * @param {!proto.clarifai.api.BulkOperation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.AppDuplication} + * @return {!proto.clarifai.api.BulkOperation} */ -proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.BulkOperation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -36315,33 +54864,53 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setNewAppId(value); + var value = new proto.clarifai.api.InputIDs; + reader.readMessage(value,proto.clarifai.api.InputIDs.deserializeBinaryFromReader); + msg.setInputIds(value); + break; + case 10: + var value = new proto.clarifai.api.Search; + reader.readMessage(value,proto.clarifai.api.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + case 11: + var value = new proto.clarifai.api.Dataset; + reader.readMessage(value,proto.clarifai.api.Dataset.deserializeBinaryFromReader); + msg.setDataset(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setNewAppName(value); + var value = new proto.clarifai.api.Operation; + reader.readMessage(value,proto.clarifai.api.Operation.deserializeBinaryFromReader); + msg.setOperation(value); break; case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 5: var value = new proto_clarifai_api_status_status_pb.Status; reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); msg.setStatus(value); break; - case 5: + case 6: + var value = new proto.clarifai.api.Progress; + reader.readMessage(value,proto.clarifai.api.Progress.deserializeBinaryFromReader); + msg.setProgress(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setCreatedBy(value); + break; + case 8: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setCreatedAt(value); break; - case 6: + case 9: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setLastModifiedAt(value); break; - case 7: - var value = new proto.clarifai.api.AppDuplicationFilters; - reader.readMessage(value,proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader); - msg.setFilter(value); - break; default: reader.skipField(); break; @@ -36355,9 +54924,9 @@ proto.clarifai.api.AppDuplication.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.AppDuplication.prototype.serializeBinary = function() { +proto.clarifai.api.BulkOperation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.AppDuplication.serializeBinaryToWriter(this, writer); + proto.clarifai.api.BulkOperation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -36365,11 +54934,11 @@ proto.clarifai.api.AppDuplication.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.AppDuplication} message + * @param {!proto.clarifai.api.BulkOperation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.BulkOperation.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -36378,50 +54947,82 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr f ); } - f = message.getNewAppId(); - if (f.length > 0) { - writer.writeString( + f = message.getInputIds(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto.clarifai.api.InputIDs.serializeBinaryToWriter ); } - f = message.getNewAppName(); + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.clarifai.api.Search.serializeBinaryToWriter + ); + } + f = message.getDataset(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.clarifai.api.Dataset.serializeBinaryToWriter + ); + } + f = message.getOperation(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Operation.serializeBinaryToWriter + ); + } + f = message.getAppId(); if (f.length > 0) { writer.writeString( - 3, + 4, f ); } f = message.getStatus(); if (f != null) { writer.writeMessage( - 4, + 5, f, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getCreatedAt(); + f = message.getProgress(); if (f != null) { writer.writeMessage( - 5, + 6, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.Progress.serializeBinaryToWriter ); } - f = message.getLastModifiedAt(); + f = message.getCreatedBy(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getCreatedAt(); if (f != null) { writer.writeMessage( - 6, + 8, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getFilter(); + f = message.getLastModifiedAt(); if (f != null) { writer.writeMessage( - 7, + 9, f, - proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } }; @@ -36431,80 +55032,210 @@ proto.clarifai.api.AppDuplication.serializeBinaryToWriter = function(message, wr * optional string id = 1; * @return {string} */ -proto.clarifai.api.AppDuplication.prototype.getId = function() { +proto.clarifai.api.BulkOperation.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.setId = function(value) { +proto.clarifai.api.BulkOperation.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional string new_app_id = 2; - * @return {string} + * optional InputIDs input_ids = 2; + * @return {?proto.clarifai.api.InputIDs} */ -proto.clarifai.api.AppDuplication.prototype.getNewAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.BulkOperation.prototype.getInputIds = function() { + return /** @type{?proto.clarifai.api.InputIDs} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.InputIDs, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.AppDuplication} returns this + * @param {?proto.clarifai.api.InputIDs|undefined} value + * @return {!proto.clarifai.api.BulkOperation} returns this +*/ +proto.clarifai.api.BulkOperation.prototype.setInputIds = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.BulkOperation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.setNewAppId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.BulkOperation.prototype.clearInputIds = function() { + return this.setInputIds(undefined); }; /** - * optional string new_app_name = 3; + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.BulkOperation.prototype.hasInputIds = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Search search = 10; + * @return {?proto.clarifai.api.Search} + */ +proto.clarifai.api.BulkOperation.prototype.getSearch = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Search, 10)); +}; + + +/** + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.BulkOperation} returns this +*/ +proto.clarifai.api.BulkOperation.prototype.setSearch = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.clarifai.api.BulkOperation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.BulkOperation} returns this + */ +proto.clarifai.api.BulkOperation.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.BulkOperation.prototype.hasSearch = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional Dataset dataset = 11; + * @return {?proto.clarifai.api.Dataset} + */ +proto.clarifai.api.BulkOperation.prototype.getDataset = function() { + return /** @type{?proto.clarifai.api.Dataset} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Dataset, 11)); +}; + + +/** + * @param {?proto.clarifai.api.Dataset|undefined} value + * @return {!proto.clarifai.api.BulkOperation} returns this +*/ +proto.clarifai.api.BulkOperation.prototype.setDataset = function(value) { + return jspb.Message.setOneofWrapperField(this, 11, proto.clarifai.api.BulkOperation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.BulkOperation} returns this + */ +proto.clarifai.api.BulkOperation.prototype.clearDataset = function() { + return this.setDataset(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.BulkOperation.prototype.hasDataset = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional Operation operation = 3; + * @return {?proto.clarifai.api.Operation} + */ +proto.clarifai.api.BulkOperation.prototype.getOperation = function() { + return /** @type{?proto.clarifai.api.Operation} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Operation, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Operation|undefined} value + * @return {!proto.clarifai.api.BulkOperation} returns this +*/ +proto.clarifai.api.BulkOperation.prototype.setOperation = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.BulkOperation} returns this + */ +proto.clarifai.api.BulkOperation.prototype.clearOperation = function() { + return this.setOperation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.BulkOperation.prototype.hasOperation = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string app_id = 4; * @return {string} */ -proto.clarifai.api.AppDuplication.prototype.getNewAppName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.BulkOperation.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.setNewAppName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.BulkOperation.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * optional status.Status status = 4; + * optional status.Status status = 5; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.AppDuplication.prototype.getStatus = function() { +proto.clarifai.api.BulkOperation.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 4)); + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5)); }; /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.BulkOperation.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.clearStatus = function() { +proto.clarifai.api.BulkOperation.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -36513,36 +55244,36 @@ proto.clarifai.api.AppDuplication.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.AppDuplication.prototype.hasStatus = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.BulkOperation.prototype.hasStatus = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional google.protobuf.Timestamp created_at = 5; - * @return {?proto.google.protobuf.Timestamp} + * optional Progress progress = 6; + * @return {?proto.clarifai.api.Progress} */ -proto.clarifai.api.AppDuplication.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +proto.clarifai.api.BulkOperation.prototype.getProgress = function() { + return /** @type{?proto.clarifai.api.Progress} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Progress, 6)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.AppDuplication} returns this + * @param {?proto.clarifai.api.Progress|undefined} value + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.BulkOperation.prototype.setProgress = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.BulkOperation.prototype.clearProgress = function() { + return this.setProgress(undefined); }; @@ -36550,36 +55281,54 @@ proto.clarifai.api.AppDuplication.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.AppDuplication.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.BulkOperation.prototype.hasProgress = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional google.protobuf.Timestamp last_modified_at = 6; + * optional string created_by = 7; + * @return {string} + */ +proto.clarifai.api.BulkOperation.prototype.getCreatedBy = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.BulkOperation} returns this + */ +proto.clarifai.api.BulkOperation.prototype.setCreatedBy = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 8; * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.AppDuplication.prototype.getLastModifiedAt = function() { +proto.clarifai.api.BulkOperation.prototype.getCreatedAt = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.setLastModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.BulkOperation.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.clearLastModifiedAt = function() { - return this.setLastModifiedAt(undefined); +proto.clarifai.api.BulkOperation.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -36587,36 +55336,36 @@ proto.clarifai.api.AppDuplication.prototype.clearLastModifiedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.AppDuplication.prototype.hasLastModifiedAt = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.BulkOperation.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional AppDuplicationFilters filter = 7; - * @return {?proto.clarifai.api.AppDuplicationFilters} + * optional google.protobuf.Timestamp last_modified_at = 9; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.AppDuplication.prototype.getFilter = function() { - return /** @type{?proto.clarifai.api.AppDuplicationFilters} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.AppDuplicationFilters, 7)); +proto.clarifai.api.BulkOperation.prototype.getLastModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); }; /** - * @param {?proto.clarifai.api.AppDuplicationFilters|undefined} value - * @return {!proto.clarifai.api.AppDuplication} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.setFilter = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.BulkOperation.prototype.setLastModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 9, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.AppDuplication} returns this + * @return {!proto.clarifai.api.BulkOperation} returns this */ -proto.clarifai.api.AppDuplication.prototype.clearFilter = function() { - return this.setFilter(undefined); +proto.clarifai.api.BulkOperation.prototype.clearLastModifiedAt = function() { + return this.setLastModifiedAt(undefined); }; @@ -36624,12 +55373,19 @@ proto.clarifai.api.AppDuplication.prototype.clearFilter = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.AppDuplication.prototype.hasFilter = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.BulkOperation.prototype.hasLastModifiedAt = function() { + return jspb.Message.getField(this, 9) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.InputIDs.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -36645,8 +55401,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.AppDuplicationFilters.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.AppDuplicationFilters.toObject(opt_includeInstance, this); +proto.clarifai.api.InputIDs.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputIDs.toObject(opt_includeInstance, this); }; @@ -36655,17 +55411,13 @@ proto.clarifai.api.AppDuplicationFilters.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.AppDuplicationFilters} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputIDs} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AppDuplicationFilters.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputIDs.toObject = function(includeInstance, msg) { var f, obj = { - copyInputs: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - copyConcepts: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - copyAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - copyModels: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - copyWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + inputIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f }; if (includeInstance) { @@ -36679,23 +55431,23 @@ proto.clarifai.api.AppDuplicationFilters.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.AppDuplicationFilters} + * @return {!proto.clarifai.api.InputIDs} */ -proto.clarifai.api.AppDuplicationFilters.deserializeBinary = function(bytes) { +proto.clarifai.api.InputIDs.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.AppDuplicationFilters; - return proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputIDs; + return proto.clarifai.api.InputIDs.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.AppDuplicationFilters} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputIDs} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.AppDuplicationFilters} + * @return {!proto.clarifai.api.InputIDs} */ -proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputIDs.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -36703,24 +55455,8 @@ proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCopyInputs(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCopyConcepts(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCopyAnnotations(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCopyModels(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCopyWorkflows(value); + var value = /** @type {string} */ (reader.readString()); + msg.addInputIds(value); break; default: reader.skipField(); @@ -36735,9 +55471,9 @@ proto.clarifai.api.AppDuplicationFilters.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.AppDuplicationFilters.prototype.serializeBinary = function() { +proto.clarifai.api.InputIDs.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputIDs.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -36745,143 +55481,255 @@ proto.clarifai.api.AppDuplicationFilters.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.AppDuplicationFilters} message + * @param {!proto.clarifai.api.InputIDs} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AppDuplicationFilters.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InputIDs.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCopyInputs(); - if (f) { - writer.writeBool( + f = message.getInputIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 1, f ); } - f = message.getCopyConcepts(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getCopyAnnotations(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getCopyModels(); - if (f) { - writer.writeBool( - 4, - f - ); +}; + + +/** + * repeated string input_ids = 1; + * @return {!Array} + */ +proto.clarifai.api.InputIDs.prototype.getInputIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.InputIDs} returns this + */ +proto.clarifai.api.InputIDs.prototype.setInputIdsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.InputIDs} returns this + */ +proto.clarifai.api.InputIDs.prototype.addInputIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.InputIDs} returns this + */ +proto.clarifai.api.InputIDs.prototype.clearInputIdsList = function() { + return this.setInputIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Progress.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Progress.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Progress} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Progress.toObject = function(includeInstance, msg) { + var f, obj = { + processed: jspb.Message.getFieldWithDefault(msg, 1, 0), + lastProcessedId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; } - f = message.getCopyWorkflows(); - if (f) { - writer.writeBool( - 5, - f - ); + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Progress} + */ +proto.clarifai.api.Progress.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Progress; + return proto.clarifai.api.Progress.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Progress} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Progress} + */ +proto.clarifai.api.Progress.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setProcessed(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLastProcessedId(value); + break; + default: + reader.skipField(); + break; + } } + return msg; }; /** - * optional bool copy_inputs = 1; - * @return {boolean} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.AppDuplicationFilters.prototype.getCopyInputs = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +proto.clarifai.api.Progress.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Progress.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.AppDuplicationFilters} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.Progress} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AppDuplicationFilters.prototype.setCopyInputs = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); +proto.clarifai.api.Progress.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProcessed(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getLastProcessedId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * optional bool copy_concepts = 2; - * @return {boolean} + * optional uint32 processed = 1; + * @return {number} */ -proto.clarifai.api.AppDuplicationFilters.prototype.getCopyConcepts = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.clarifai.api.Progress.prototype.getProcessed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.AppDuplicationFilters} returns this + * @param {number} value + * @return {!proto.clarifai.api.Progress} returns this */ -proto.clarifai.api.AppDuplicationFilters.prototype.setCopyConcepts = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.clarifai.api.Progress.prototype.setProcessed = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * optional bool copy_annotations = 3; - * @return {boolean} + * optional string last_processed_id = 2; + * @return {string} */ -proto.clarifai.api.AppDuplicationFilters.prototype.getCopyAnnotations = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.Progress.prototype.getLastProcessedId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.AppDuplicationFilters} returns this + * @param {string} value + * @return {!proto.clarifai.api.Progress} returns this */ -proto.clarifai.api.AppDuplicationFilters.prototype.setCopyAnnotations = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.Progress.prototype.setLastProcessedId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional bool copy_models = 4; - * @return {boolean} - */ -proto.clarifai.api.AppDuplicationFilters.prototype.getCopyModels = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - /** - * @param {boolean} value - * @return {!proto.clarifai.api.AppDuplicationFilters} returns this + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const */ -proto.clarifai.api.AppDuplicationFilters.prototype.setCopyModels = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - +proto.clarifai.api.Operation.oneofGroups_ = [[1,2,3,4,5,6,7,8,9]]; /** - * optional bool copy_workflows = 5; - * @return {boolean} + * @enum {number} */ -proto.clarifai.api.AppDuplicationFilters.prototype.getCopyWorkflows = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +proto.clarifai.api.Operation.OperationCase = { + OPERATION_NOT_SET: 0, + ADD_CONCEPTS: 1, + DELETE_CONCEPTS: 2, + ADD_METADATA: 3, + DELETE_METADATA: 4, + OVERWRITE_GEO: 5, + DELETE_GEO: 6, + DELETE_FROM_DATASET: 7, + ADD_TO_DATASET: 8, + SPLIT_INTO_DATASETS: 9 }; - /** - * @param {boolean} value - * @return {!proto.clarifai.api.AppDuplicationFilters} returns this + * @return {proto.clarifai.api.Operation.OperationCase} */ -proto.clarifai.api.AppDuplicationFilters.prototype.setCopyWorkflows = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.clarifai.api.Operation.prototype.getOperationCase = function() { + return /** @type {proto.clarifai.api.Operation.OperationCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.Operation.oneofGroups_[0])); }; - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -36895,8 +55743,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.LabelOrder.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.LabelOrder.toObject(opt_includeInstance, this); +proto.clarifai.api.Operation.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Operation.toObject(opt_includeInstance, this); }; @@ -36905,22 +55753,21 @@ proto.clarifai.api.LabelOrder.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.LabelOrder} msg The msg instance to transform. + * @param {!proto.clarifai.api.Operation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LabelOrder.toObject = function(includeInstance, msg) { +proto.clarifai.api.Operation.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - autoRelease: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - allowEmptyTag: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - desiredFulfillTime: (f = msg.getDesiredFulfillTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - estimateFulfillTime: (f = msg.getEstimateFulfillTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - task: (f = msg.getTask()) && proto.clarifai.api.Task.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + addConcepts: (f = msg.getAddConcepts()) && proto.clarifai.api.AddConcepts.toObject(includeInstance, f), + deleteConcepts: (f = msg.getDeleteConcepts()) && proto.clarifai.api.DeleteConcepts.toObject(includeInstance, f), + addMetadata: (f = msg.getAddMetadata()) && proto.clarifai.api.AddMetadata.toObject(includeInstance, f), + deleteMetadata: (f = msg.getDeleteMetadata()) && proto.clarifai.api.DeleteMetadata.toObject(includeInstance, f), + overwriteGeo: (f = msg.getOverwriteGeo()) && proto.clarifai.api.OverwriteGeo.toObject(includeInstance, f), + deleteGeo: (f = msg.getDeleteGeo()) && proto.clarifai.api.DeleteGeo.toObject(includeInstance, f), + deleteFromDataset: (f = msg.getDeleteFromDataset()) && proto.clarifai.api.DeleteFromDataset.toObject(includeInstance, f), + addToDataset: (f = msg.getAddToDataset()) && proto.clarifai.api.AddToDataset.toObject(includeInstance, f), + splitIntoDatasets: (f = msg.getSplitIntoDatasets()) && proto.clarifai.api.SplitIntoDatasets.toObject(includeInstance, f) }; if (includeInstance) { @@ -36934,23 +55781,23 @@ proto.clarifai.api.LabelOrder.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.LabelOrder} + * @return {!proto.clarifai.api.Operation} */ -proto.clarifai.api.LabelOrder.deserializeBinary = function(bytes) { +proto.clarifai.api.Operation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.LabelOrder; - return proto.clarifai.api.LabelOrder.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Operation; + return proto.clarifai.api.Operation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.LabelOrder} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Operation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.LabelOrder} + * @return {!proto.clarifai.api.Operation} */ -proto.clarifai.api.LabelOrder.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Operation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -36958,50 +55805,49 @@ proto.clarifai.api.LabelOrder.deserializeBinaryFromReader = function(msg, reader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new proto.clarifai.api.AddConcepts; + reader.readMessage(value,proto.clarifai.api.AddConcepts.deserializeBinaryFromReader); + msg.setAddConcepts(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = new proto.clarifai.api.DeleteConcepts; + reader.readMessage(value,proto.clarifai.api.DeleteConcepts.deserializeBinaryFromReader); + msg.setDeleteConcepts(value); break; case 3: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto.clarifai.api.AddMetadata; + reader.readMessage(value,proto.clarifai.api.AddMetadata.deserializeBinaryFromReader); + msg.setAddMetadata(value); break; case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAutoRelease(value); + var value = new proto.clarifai.api.DeleteMetadata; + reader.readMessage(value,proto.clarifai.api.DeleteMetadata.deserializeBinaryFromReader); + msg.setDeleteMetadata(value); break; case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAllowEmptyTag(value); + var value = new proto.clarifai.api.OverwriteGeo; + reader.readMessage(value,proto.clarifai.api.OverwriteGeo.deserializeBinaryFromReader); + msg.setOverwriteGeo(value); break; case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setDesiredFulfillTime(value); + var value = new proto.clarifai.api.DeleteGeo; + reader.readMessage(value,proto.clarifai.api.DeleteGeo.deserializeBinaryFromReader); + msg.setDeleteGeo(value); break; case 7: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEstimateFulfillTime(value); + var value = new proto.clarifai.api.DeleteFromDataset; + reader.readMessage(value,proto.clarifai.api.DeleteFromDataset.deserializeBinaryFromReader); + msg.setDeleteFromDataset(value); break; case 8: - var value = new proto.clarifai.api.Task; - reader.readMessage(value,proto.clarifai.api.Task.deserializeBinaryFromReader); - msg.setTask(value); + var value = new proto.clarifai.api.AddToDataset; + reader.readMessage(value,proto.clarifai.api.AddToDataset.deserializeBinaryFromReader); + msg.setAddToDataset(value); break; case 9: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 10: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); + var value = new proto.clarifai.api.SplitIntoDatasets; + reader.readMessage(value,proto.clarifai.api.SplitIntoDatasets.deserializeBinaryFromReader); + msg.setSplitIntoDatasets(value); break; default: reader.skipField(); @@ -37016,9 +55862,9 @@ proto.clarifai.api.LabelOrder.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.LabelOrder.prototype.serializeBinary = function() { +proto.clarifai.api.Operation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.LabelOrder.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Operation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -37026,152 +55872,186 @@ proto.clarifai.api.LabelOrder.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.LabelOrder} message + * @param {!proto.clarifai.api.Operation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LabelOrder.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Operation.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getAddConcepts(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.clarifai.api.AddConcepts.serializeBinaryToWriter ); } - f = message.getName(); - if (f.length > 0) { - writer.writeString( + f = message.getDeleteConcepts(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto.clarifai.api.DeleteConcepts.serializeBinaryToWriter ); } - f = message.getStatus(); + f = message.getAddMetadata(); if (f != null) { writer.writeMessage( 3, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto.clarifai.api.AddMetadata.serializeBinaryToWriter ); } - f = message.getAutoRelease(); - if (f) { - writer.writeBool( + f = message.getDeleteMetadata(); + if (f != null) { + writer.writeMessage( 4, - f + f, + proto.clarifai.api.DeleteMetadata.serializeBinaryToWriter ); } - f = message.getAllowEmptyTag(); - if (f) { - writer.writeBool( + f = message.getOverwriteGeo(); + if (f != null) { + writer.writeMessage( 5, - f + f, + proto.clarifai.api.OverwriteGeo.serializeBinaryToWriter ); } - f = message.getDesiredFulfillTime(); + f = message.getDeleteGeo(); if (f != null) { writer.writeMessage( 6, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.DeleteGeo.serializeBinaryToWriter ); } - f = message.getEstimateFulfillTime(); + f = message.getDeleteFromDataset(); if (f != null) { writer.writeMessage( 7, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.DeleteFromDataset.serializeBinaryToWriter ); } - f = message.getTask(); + f = message.getAddToDataset(); if (f != null) { writer.writeMessage( 8, f, - proto.clarifai.api.Task.serializeBinaryToWriter + proto.clarifai.api.AddToDataset.serializeBinaryToWriter ); } - f = message.getCreatedAt(); + f = message.getSplitIntoDatasets(); if (f != null) { writer.writeMessage( 9, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 10, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.SplitIntoDatasets.serializeBinaryToWriter ); } }; /** - * optional string id = 1; - * @return {string} + * optional AddConcepts add_concepts = 1; + * @return {?proto.clarifai.api.AddConcepts} */ -proto.clarifai.api.LabelOrder.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.Operation.prototype.getAddConcepts = function() { + return /** @type{?proto.clarifai.api.AddConcepts} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AddConcepts, 1)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.LabelOrder} returns this + * @param {?proto.clarifai.api.AddConcepts|undefined} value + * @return {!proto.clarifai.api.Operation} returns this +*/ +proto.clarifai.api.Operation.prototype.setAddConcepts = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.Operation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Operation} returns this */ -proto.clarifai.api.LabelOrder.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.Operation.prototype.clearAddConcepts = function() { + return this.setAddConcepts(undefined); }; /** - * optional string name = 2; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.LabelOrder.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.Operation.prototype.hasAddConcepts = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {string} value - * @return {!proto.clarifai.api.LabelOrder} returns this + * optional DeleteConcepts delete_concepts = 2; + * @return {?proto.clarifai.api.DeleteConcepts} */ -proto.clarifai.api.LabelOrder.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.Operation.prototype.getDeleteConcepts = function() { + return /** @type{?proto.clarifai.api.DeleteConcepts} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DeleteConcepts, 2)); }; /** - * optional status.Status status = 3; - * @return {?proto.clarifai.api.status.Status} + * @param {?proto.clarifai.api.DeleteConcepts|undefined} value + * @return {!proto.clarifai.api.Operation} returns this +*/ +proto.clarifai.api.Operation.prototype.setDeleteConcepts = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.clarifai.api.Operation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Operation} returns this */ -proto.clarifai.api.LabelOrder.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 3)); +proto.clarifai.api.Operation.prototype.clearDeleteConcepts = function() { + return this.setDeleteConcepts(undefined); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.LabelOrder} returns this + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Operation.prototype.hasDeleteConcepts = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional AddMetadata add_metadata = 3; + * @return {?proto.clarifai.api.AddMetadata} + */ +proto.clarifai.api.Operation.prototype.getAddMetadata = function() { + return /** @type{?proto.clarifai.api.AddMetadata} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AddMetadata, 3)); +}; + + +/** + * @param {?proto.clarifai.api.AddMetadata|undefined} value + * @return {!proto.clarifai.api.Operation} returns this */ -proto.clarifai.api.LabelOrder.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.Operation.prototype.setAddMetadata = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.Operation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.LabelOrder} returns this + * @return {!proto.clarifai.api.Operation} returns this */ -proto.clarifai.api.LabelOrder.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.Operation.prototype.clearAddMetadata = function() { + return this.setAddMetadata(undefined); }; @@ -37179,240 +56059,603 @@ proto.clarifai.api.LabelOrder.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.LabelOrder.prototype.hasStatus = function() { +proto.clarifai.api.Operation.prototype.hasAddMetadata = function() { return jspb.Message.getField(this, 3) != null; }; /** - * optional bool auto_release = 4; + * optional DeleteMetadata delete_metadata = 4; + * @return {?proto.clarifai.api.DeleteMetadata} + */ +proto.clarifai.api.Operation.prototype.getDeleteMetadata = function() { + return /** @type{?proto.clarifai.api.DeleteMetadata} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DeleteMetadata, 4)); +}; + + +/** + * @param {?proto.clarifai.api.DeleteMetadata|undefined} value + * @return {!proto.clarifai.api.Operation} returns this +*/ +proto.clarifai.api.Operation.prototype.setDeleteMetadata = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.Operation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Operation} returns this + */ +proto.clarifai.api.Operation.prototype.clearDeleteMetadata = function() { + return this.setDeleteMetadata(undefined); +}; + + +/** + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.LabelOrder.prototype.getAutoRelease = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.Operation.prototype.hasDeleteMetadata = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.LabelOrder} returns this + * optional OverwriteGeo overwrite_geo = 5; + * @return {?proto.clarifai.api.OverwriteGeo} */ -proto.clarifai.api.LabelOrder.prototype.setAutoRelease = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.Operation.prototype.getOverwriteGeo = function() { + return /** @type{?proto.clarifai.api.OverwriteGeo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.OverwriteGeo, 5)); }; /** - * optional bool allow_empty_tag = 5; + * @param {?proto.clarifai.api.OverwriteGeo|undefined} value + * @return {!proto.clarifai.api.Operation} returns this +*/ +proto.clarifai.api.Operation.prototype.setOverwriteGeo = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.clarifai.api.Operation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Operation} returns this + */ +proto.clarifai.api.Operation.prototype.clearOverwriteGeo = function() { + return this.setOverwriteGeo(undefined); +}; + + +/** + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.LabelOrder.prototype.getAllowEmptyTag = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +proto.clarifai.api.Operation.prototype.hasOverwriteGeo = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.LabelOrder} returns this + * optional DeleteGeo delete_geo = 6; + * @return {?proto.clarifai.api.DeleteGeo} */ -proto.clarifai.api.LabelOrder.prototype.setAllowEmptyTag = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.clarifai.api.Operation.prototype.getDeleteGeo = function() { + return /** @type{?proto.clarifai.api.DeleteGeo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DeleteGeo, 6)); }; /** - * optional google.protobuf.Timestamp desired_fulfill_time = 6; - * @return {?proto.google.protobuf.Timestamp} + * @param {?proto.clarifai.api.DeleteGeo|undefined} value + * @return {!proto.clarifai.api.Operation} returns this +*/ +proto.clarifai.api.Operation.prototype.setDeleteGeo = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.clarifai.api.Operation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Operation} returns this */ -proto.clarifai.api.LabelOrder.prototype.getDesiredFulfillTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +proto.clarifai.api.Operation.prototype.clearDeleteGeo = function() { + return this.setDeleteGeo(undefined); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.LabelOrder} returns this + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Operation.prototype.hasDeleteGeo = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional DeleteFromDataset delete_from_dataset = 7; + * @return {?proto.clarifai.api.DeleteFromDataset} + */ +proto.clarifai.api.Operation.prototype.getDeleteFromDataset = function() { + return /** @type{?proto.clarifai.api.DeleteFromDataset} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DeleteFromDataset, 7)); +}; + + +/** + * @param {?proto.clarifai.api.DeleteFromDataset|undefined} value + * @return {!proto.clarifai.api.Operation} returns this */ -proto.clarifai.api.LabelOrder.prototype.setDesiredFulfillTime = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.Operation.prototype.setDeleteFromDataset = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.clarifai.api.Operation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.LabelOrder} returns this + * @return {!proto.clarifai.api.Operation} returns this */ -proto.clarifai.api.LabelOrder.prototype.clearDesiredFulfillTime = function() { - return this.setDesiredFulfillTime(undefined); +proto.clarifai.api.Operation.prototype.clearDeleteFromDataset = function() { + return this.setDeleteFromDataset(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Operation.prototype.hasDeleteFromDataset = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional AddToDataset add_to_dataset = 8; + * @return {?proto.clarifai.api.AddToDataset} + */ +proto.clarifai.api.Operation.prototype.getAddToDataset = function() { + return /** @type{?proto.clarifai.api.AddToDataset} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AddToDataset, 8)); +}; + + +/** + * @param {?proto.clarifai.api.AddToDataset|undefined} value + * @return {!proto.clarifai.api.Operation} returns this +*/ +proto.clarifai.api.Operation.prototype.setAddToDataset = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.clarifai.api.Operation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Operation} returns this + */ +proto.clarifai.api.Operation.prototype.clearAddToDataset = function() { + return this.setAddToDataset(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Operation.prototype.hasAddToDataset = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional SplitIntoDatasets split_into_datasets = 9; + * @return {?proto.clarifai.api.SplitIntoDatasets} + */ +proto.clarifai.api.Operation.prototype.getSplitIntoDatasets = function() { + return /** @type{?proto.clarifai.api.SplitIntoDatasets} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.SplitIntoDatasets, 9)); +}; + + +/** + * @param {?proto.clarifai.api.SplitIntoDatasets|undefined} value + * @return {!proto.clarifai.api.Operation} returns this +*/ +proto.clarifai.api.Operation.prototype.setSplitIntoDatasets = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.clarifai.api.Operation.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Operation} returns this + */ +proto.clarifai.api.Operation.prototype.clearSplitIntoDatasets = function() { + return this.setSplitIntoDatasets(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Operation.prototype.hasSplitIntoDatasets = function() { + return jspb.Message.getField(this, 9) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.AddConcepts.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.AddConcepts.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AddConcepts.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AddConcepts} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AddConcepts.toObject = function(includeInstance, msg) { + var f, obj = { + conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), + proto.clarifai.api.Concept.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AddConcepts} + */ +proto.clarifai.api.AddConcepts.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AddConcepts; + return proto.clarifai.api.AddConcepts.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AddConcepts} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AddConcepts} + */ +proto.clarifai.api.AddConcepts.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.addConcepts(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.AddConcepts.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AddConcepts.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AddConcepts} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AddConcepts.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getConceptsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.clarifai.api.Concept.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Concept concepts = 1; + * @return {!Array} + */ +proto.clarifai.api.AddConcepts.prototype.getConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.AddConcepts} returns this +*/ +proto.clarifai.api.AddConcepts.prototype.setConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.clarifai.api.Concept=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Concept} + */ +proto.clarifai.api.AddConcepts.prototype.addConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Concept, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.AddConcepts} returns this */ -proto.clarifai.api.LabelOrder.prototype.hasDesiredFulfillTime = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.AddConcepts.prototype.clearConceptsList = function() { + return this.setConceptsList([]); }; + /** - * optional google.protobuf.Timestamp estimate_fulfill_time = 7; - * @return {?proto.google.protobuf.Timestamp} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.LabelOrder.prototype.getEstimateFulfillTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7)); -}; +proto.clarifai.api.DeleteConcepts.repeatedFields_ = [1,2]; -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.LabelOrder} returns this -*/ -proto.clarifai.api.LabelOrder.prototype.setEstimateFulfillTime = function(value) { - return jspb.Message.setWrapperField(this, 7, value); -}; - +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.LabelOrder} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.LabelOrder.prototype.clearEstimateFulfillTime = function() { - return this.setEstimateFulfillTime(undefined); +proto.clarifai.api.DeleteConcepts.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteConcepts.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteConcepts} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LabelOrder.prototype.hasEstimateFulfillTime = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.DeleteConcepts.toObject = function(includeInstance, msg) { + var f, obj = { + conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), + proto.clarifai.api.Concept.toObject, includeInstance), + userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional Task task = 8; - * @return {?proto.clarifai.api.Task} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteConcepts} */ -proto.clarifai.api.LabelOrder.prototype.getTask = function() { - return /** @type{?proto.clarifai.api.Task} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Task, 8)); +proto.clarifai.api.DeleteConcepts.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteConcepts; + return proto.clarifai.api.DeleteConcepts.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.clarifai.api.Task|undefined} value - * @return {!proto.clarifai.api.LabelOrder} returns this -*/ -proto.clarifai.api.LabelOrder.prototype.setTask = function(value) { - return jspb.Message.setWrapperField(this, 8, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteConcepts} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteConcepts} + */ +proto.clarifai.api.DeleteConcepts.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Concept; + reader.readMessage(value,proto.clarifai.api.Concept.deserializeBinaryFromReader); + msg.addConcepts(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addUserIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.LabelOrder} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.LabelOrder.prototype.clearTask = function() { - return this.setTask(undefined); +proto.clarifai.api.DeleteConcepts.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteConcepts.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteConcepts} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.LabelOrder.prototype.hasTask = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.DeleteConcepts.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getConceptsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.clarifai.api.Concept.serializeBinaryToWriter + ); + } + f = message.getUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } }; /** - * optional google.protobuf.Timestamp created_at = 9; - * @return {?proto.google.protobuf.Timestamp} + * repeated Concept concepts = 1; + * @return {!Array} */ -proto.clarifai.api.LabelOrder.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); +proto.clarifai.api.DeleteConcepts.prototype.getConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Concept, 1)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.LabelOrder} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteConcepts} returns this */ -proto.clarifai.api.LabelOrder.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.clarifai.api.DeleteConcepts.prototype.setConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.LabelOrder} returns this + * @param {!proto.clarifai.api.Concept=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Concept} */ -proto.clarifai.api.LabelOrder.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.DeleteConcepts.prototype.addConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Concept, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteConcepts} returns this */ -proto.clarifai.api.LabelOrder.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 9) != null; +proto.clarifai.api.DeleteConcepts.prototype.clearConceptsList = function() { + return this.setConceptsList([]); }; /** - * optional google.protobuf.Timestamp modified_at = 10; - * @return {?proto.google.protobuf.Timestamp} + * repeated string user_ids = 2; + * @return {!Array} */ -proto.clarifai.api.LabelOrder.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10)); +proto.clarifai.api.DeleteConcepts.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.LabelOrder} returns this -*/ -proto.clarifai.api.LabelOrder.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 10, value); + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteConcepts} returns this + */ +proto.clarifai.api.DeleteConcepts.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.LabelOrder} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteConcepts} returns this */ -proto.clarifai.api.LabelOrder.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.DeleteConcepts.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteConcepts} returns this */ -proto.clarifai.api.LabelOrder.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 10) != null; +proto.clarifai.api.DeleteConcepts.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.Task.repeatedFields_ = [7]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -37428,8 +56671,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Task.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Task.toObject(opt_includeInstance, this); +proto.clarifai.api.AddMetadata.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AddMetadata.toObject(opt_includeInstance, this); }; @@ -37438,29 +56681,13 @@ proto.clarifai.api.Task.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Task} msg The msg instance to transform. + * @param {!proto.clarifai.api.AddMetadata} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.toObject = function(includeInstance, msg) { +proto.clarifai.api.AddMetadata.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - type: jspb.Message.getFieldWithDefault(msg, 4, 0), - description: jspb.Message.getFieldWithDefault(msg, 5, ""), - worker: (f = msg.getWorker()) && proto.clarifai.api.TaskWorker.toObject(includeInstance, f), - conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, - inputSource: (f = msg.getInputSource()) && proto.clarifai.api.TaskInputSource.toObject(includeInstance, f), - sampleMs: jspb.Message.getFieldWithDefault(msg, 9, 0), - aiAssistant: (f = msg.getAiAssistant()) && proto.clarifai.api.TaskAIAssistant.toObject(includeInstance, f), - review: (f = msg.getReview()) && proto.clarifai.api.TaskReview.toObject(includeInstance, f), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 13, ""), - aiAssistParams: (f = msg.getAiAssistParams()) && proto.clarifai.api.AiAssistParameters.toObject(includeInstance, f), - visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f), - appId: jspb.Message.getFieldWithDefault(msg, 16, ""), - userId: jspb.Message.getFieldWithDefault(msg, 17, "") + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -37474,23 +56701,23 @@ proto.clarifai.api.Task.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Task} + * @return {!proto.clarifai.api.AddMetadata} */ -proto.clarifai.api.Task.deserializeBinary = function(bytes) { +proto.clarifai.api.AddMetadata.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Task; - return proto.clarifai.api.Task.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.AddMetadata; + return proto.clarifai.api.AddMetadata.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Task} msg The message object to deserialize into. + * @param {!proto.clarifai.api.AddMetadata} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Task} + * @return {!proto.clarifai.api.AddMetadata} */ -proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.AddMetadata.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -37498,81 +56725,9 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setModifiedAt(value); - break; - case 4: - var value = /** @type {!proto.clarifai.api.Task.TaskType} */ (reader.readEnum()); - msg.setType(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 6: - var value = new proto.clarifai.api.TaskWorker; - reader.readMessage(value,proto.clarifai.api.TaskWorker.deserializeBinaryFromReader); - msg.setWorker(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addConceptIds(value); - break; - case 8: - var value = new proto.clarifai.api.TaskInputSource; - reader.readMessage(value,proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader); - msg.setInputSource(value); - break; - case 9: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSampleMs(value); - break; - case 10: - var value = new proto.clarifai.api.TaskAIAssistant; - reader.readMessage(value,proto.clarifai.api.TaskAIAssistant.deserializeBinaryFromReader); - msg.setAiAssistant(value); - break; - case 11: - var value = new proto.clarifai.api.TaskReview; - reader.readMessage(value,proto.clarifai.api.TaskReview.deserializeBinaryFromReader); - msg.setReview(value); - break; - case 12: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 14: - var value = new proto.clarifai.api.AiAssistParameters; - reader.readMessage(value,proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader); - msg.setAiAssistParams(value); - break; - case 15: - var value = new proto.clarifai.api.Visibility; - reader.readMessage(value,proto.clarifai.api.Visibility.deserializeBinaryFromReader); - msg.setVisibility(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); break; default: reader.skipField(); @@ -37587,9 +56742,9 @@ proto.clarifai.api.Task.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Task.prototype.serializeBinary = function() { +proto.clarifai.api.AddMetadata.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Task.serializeBinaryToWriter(this, writer); + proto.clarifai.api.AddMetadata.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -37597,196 +56752,199 @@ proto.clarifai.api.Task.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Task} message + * @param {!proto.clarifai.api.AddMetadata} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.AddMetadata.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 2, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getModifiedAt(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getWorker(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.clarifai.api.TaskWorker.serializeBinaryToWriter - ); - } - f = message.getConceptIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - f - ); - } - f = message.getInputSource(); - if (f != null) { - writer.writeMessage( - 8, - f, - proto.clarifai.api.TaskInputSource.serializeBinaryToWriter - ); - } - f = message.getSampleMs(); - if (f !== 0) { - writer.writeUint32( - 9, - f - ); - } - f = message.getAiAssistant(); - if (f != null) { - writer.writeMessage( - 10, - f, - proto.clarifai.api.TaskAIAssistant.serializeBinaryToWriter - ); - } - f = message.getReview(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.clarifai.api.TaskReview.serializeBinaryToWriter - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getAiAssistParams(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.clarifai.api.AiAssistParameters.serializeBinaryToWriter - ); - } - f = message.getVisibility(); + f = message.getMetadata(); if (f != null) { writer.writeMessage( - 15, + 1, f, - proto.clarifai.api.Visibility.serializeBinaryToWriter + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } - f = message.getAppId(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); +}; + + +/** + * optional google.protobuf.Struct metadata = 1; + * @return {?proto.google.protobuf.Struct} + */ +proto.clarifai.api.AddMetadata.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.AddMetadata} returns this +*/ +proto.clarifai.api.AddMetadata.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.AddMetadata} returns this + */ +proto.clarifai.api.AddMetadata.prototype.clearMetadata = function() { + return this.setMetadata(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.AddMetadata.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteMetadata.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteMetadata.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteMetadata} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteMetadata.toObject = function(includeInstance, msg) { + var f, obj = { + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; } - f = message.getUserId(); - if (f.length > 0) { - writer.writeString( - 17, - f - ); + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteMetadata} + */ +proto.clarifai.api.DeleteMetadata.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteMetadata; + return proto.clarifai.api.DeleteMetadata.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteMetadata} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteMetadata} + */ +proto.clarifai.api.DeleteMetadata.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + default: + reader.skipField(); + break; + } } + return msg; }; /** - * @enum {number} - */ -proto.clarifai.api.Task.TaskType = { - TYPE_NOT_SET: 0, - CONCEPTS_CLASSIFICATION: 1, - BOUNDING_BOX_DETECTION: 2, - POLYGON_DETECTION: 3 -}; - -/** - * optional string id = 1; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Task.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.DeleteMetadata.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteMetadata.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Task} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteMetadata} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.DeleteMetadata.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } }; /** - * optional google.protobuf.Timestamp created_at = 2; - * @return {?proto.google.protobuf.Timestamp} + * optional google.protobuf.Struct metadata = 1; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.Task.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); +proto.clarifai.api.DeleteMetadata.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Task} returns this + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.DeleteMetadata} returns this */ -proto.clarifai.api.Task.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.DeleteMetadata.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * @return {!proto.clarifai.api.DeleteMetadata} returns this */ -proto.clarifai.api.Task.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.DeleteMetadata.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; @@ -37794,109 +56952,150 @@ proto.clarifai.api.Task.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Task.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.DeleteMetadata.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1) != null; }; -/** - * optional google.protobuf.Timestamp modified_at = 3; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.clarifai.api.Task.prototype.getModifiedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); -}; - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Task} returns this -*/ -proto.clarifai.api.Task.prototype.setModifiedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Task.prototype.clearModifiedAt = function() { - return this.setModifiedAt(undefined); +proto.clarifai.api.OverwriteGeo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.OverwriteGeo.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.OverwriteGeo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.hasModifiedAt = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.OverwriteGeo.toObject = function(includeInstance, msg) { + var f, obj = { + geo: (f = msg.getGeo()) && proto.clarifai.api.Geo.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional TaskType type = 4; - * @return {!proto.clarifai.api.Task.TaskType} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.OverwriteGeo} */ -proto.clarifai.api.Task.prototype.getType = function() { - return /** @type {!proto.clarifai.api.Task.TaskType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.OverwriteGeo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.OverwriteGeo; + return proto.clarifai.api.OverwriteGeo.deserializeBinaryFromReader(msg, reader); }; /** - * @param {!proto.clarifai.api.Task.TaskType} value - * @return {!proto.clarifai.api.Task} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.OverwriteGeo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.OverwriteGeo} */ -proto.clarifai.api.Task.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); +proto.clarifai.api.OverwriteGeo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.Geo; + reader.readMessage(value,proto.clarifai.api.Geo.deserializeBinaryFromReader); + msg.setGeo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string description = 5; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Task.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.OverwriteGeo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.OverwriteGeo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Task} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.OverwriteGeo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.OverwriteGeo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGeo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.clarifai.api.Geo.serializeBinaryToWriter + ); + } }; /** - * optional TaskWorker worker = 6; - * @return {?proto.clarifai.api.TaskWorker} + * optional Geo geo = 1; + * @return {?proto.clarifai.api.Geo} */ -proto.clarifai.api.Task.prototype.getWorker = function() { - return /** @type{?proto.clarifai.api.TaskWorker} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorker, 6)); +proto.clarifai.api.OverwriteGeo.prototype.getGeo = function() { + return /** @type{?proto.clarifai.api.Geo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Geo, 1)); }; /** - * @param {?proto.clarifai.api.TaskWorker|undefined} value - * @return {!proto.clarifai.api.Task} returns this + * @param {?proto.clarifai.api.Geo|undefined} value + * @return {!proto.clarifai.api.OverwriteGeo} returns this */ -proto.clarifai.api.Task.prototype.setWorker = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.OverwriteGeo.prototype.setGeo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * @return {!proto.clarifai.api.OverwriteGeo} returns this */ -proto.clarifai.api.Task.prototype.clearWorker = function() { - return this.setWorker(undefined); +proto.clarifai.api.OverwriteGeo.prototype.clearGeo = function() { + return this.setGeo(undefined); }; @@ -37904,349 +57103,595 @@ proto.clarifai.api.Task.prototype.clearWorker = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Task.prototype.hasWorker = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.OverwriteGeo.prototype.hasGeo = function() { + return jspb.Message.getField(this, 1) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * repeated string concept_ids = 7; - * @return {!Array} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Task.prototype.getConceptIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +proto.clarifai.api.DeleteGeo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteGeo.toObject(opt_includeInstance, this); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.Task} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteGeo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.setConceptIdsList = function(value) { - return jspb.Message.setField(this, 7, value || []); +proto.clarifai.api.DeleteGeo.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Task} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteGeo} */ -proto.clarifai.api.Task.prototype.addConceptIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +proto.clarifai.api.DeleteGeo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteGeo; + return proto.clarifai.api.DeleteGeo.deserializeBinaryFromReader(msg, reader); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.Task} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteGeo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteGeo} */ -proto.clarifai.api.Task.prototype.clearConceptIdsList = function() { - return this.setConceptIdsList([]); +proto.clarifai.api.DeleteGeo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional TaskInputSource input_source = 8; - * @return {?proto.clarifai.api.TaskInputSource} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Task.prototype.getInputSource = function() { - return /** @type{?proto.clarifai.api.TaskInputSource} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TaskInputSource, 8)); +proto.clarifai.api.DeleteGeo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteGeo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.clarifai.api.TaskInputSource|undefined} value - * @return {!proto.clarifai.api.Task} returns this -*/ -proto.clarifai.api.Task.prototype.setInputSource = function(value) { - return jspb.Message.setWrapperField(this, 8, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteGeo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteGeo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Task.prototype.clearInputSource = function() { - return this.setInputSource(undefined); +proto.clarifai.api.AddToDataset.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AddToDataset.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AddToDataset} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.hasInputSource = function() { - return jspb.Message.getField(this, 8) != null; +proto.clarifai.api.AddToDataset.toObject = function(includeInstance, msg) { + var f, obj = { + datasetId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional uint32 sample_ms = 9; - * @return {number} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AddToDataset} */ -proto.clarifai.api.Task.prototype.getSampleMs = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +proto.clarifai.api.AddToDataset.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AddToDataset; + return proto.clarifai.api.AddToDataset.deserializeBinaryFromReader(msg, reader); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Task} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AddToDataset} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AddToDataset} */ -proto.clarifai.api.Task.prototype.setSampleMs = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.clarifai.api.AddToDataset.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional TaskAIAssistant ai_assistant = 10; - * @return {?proto.clarifai.api.TaskAIAssistant} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Task.prototype.getAiAssistant = function() { - return /** @type{?proto.clarifai.api.TaskAIAssistant} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TaskAIAssistant, 10)); +proto.clarifai.api.AddToDataset.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AddToDataset.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.clarifai.api.TaskAIAssistant|undefined} value - * @return {!proto.clarifai.api.Task} returns this -*/ -proto.clarifai.api.Task.prototype.setAiAssistant = function(value) { - return jspb.Message.setWrapperField(this, 10, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AddToDataset} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.AddToDataset.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * optional string dataset_id = 1; + * @return {string} */ -proto.clarifai.api.Task.prototype.clearAiAssistant = function() { - return this.setAiAssistant(undefined); +proto.clarifai.api.AddToDataset.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.AddToDataset} returns this */ -proto.clarifai.api.Task.prototype.hasAiAssistant = function() { - return jspb.Message.getField(this, 10) != null; +proto.clarifai.api.AddToDataset.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteFromDataset.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteFromDataset.toObject(opt_includeInstance, this); }; /** - * optional TaskReview review = 11; - * @return {?proto.clarifai.api.TaskReview} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteFromDataset} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.getReview = function() { - return /** @type{?proto.clarifai.api.TaskReview} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReview, 11)); +proto.clarifai.api.DeleteFromDataset.toObject = function(includeInstance, msg) { + var f, obj = { + datasetId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {?proto.clarifai.api.TaskReview|undefined} value - * @return {!proto.clarifai.api.Task} returns this -*/ -proto.clarifai.api.Task.prototype.setReview = function(value) { - return jspb.Message.setWrapperField(this, 11, value); + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteFromDataset} + */ +proto.clarifai.api.DeleteFromDataset.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteFromDataset; + return proto.clarifai.api.DeleteFromDataset.deserializeBinaryFromReader(msg, reader); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteFromDataset} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteFromDataset} */ -proto.clarifai.api.Task.prototype.clearReview = function() { - return this.setReview(undefined); +proto.clarifai.api.DeleteFromDataset.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.Task.prototype.hasReview = function() { - return jspb.Message.getField(this, 11) != null; +proto.clarifai.api.DeleteFromDataset.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteFromDataset.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional status.Status status = 12; - * @return {?proto.clarifai.api.status.Status} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteFromDataset} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 12)); +proto.clarifai.api.DeleteFromDataset.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.Task} returns this -*/ -proto.clarifai.api.Task.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 12, value); + * optional string dataset_id = 1; + * @return {string} + */ +proto.clarifai.api.DeleteFromDataset.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * @param {string} value + * @return {!proto.clarifai.api.DeleteFromDataset} returns this */ -proto.clarifai.api.Task.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteFromDataset.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; + /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.SplitIntoDatasets.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.Task.prototype.hasStatus = function() { - return jspb.Message.getField(this, 12) != null; +proto.clarifai.api.SplitIntoDatasets.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SplitIntoDatasets.toObject(opt_includeInstance, this); }; /** - * optional string name = 13; - * @return {string} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SplitIntoDatasets} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); +proto.clarifai.api.SplitIntoDatasets.toObject = function(includeInstance, msg) { + var f, obj = { + datasetSplitsList: jspb.Message.toObjectList(msg.getDatasetSplitsList(), + proto.clarifai.api.DatasetSplit.toObject, includeInstance), + method: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {string} value - * @return {!proto.clarifai.api.Task} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SplitIntoDatasets} */ -proto.clarifai.api.Task.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); +proto.clarifai.api.SplitIntoDatasets.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SplitIntoDatasets; + return proto.clarifai.api.SplitIntoDatasets.deserializeBinaryFromReader(msg, reader); }; /** - * optional AiAssistParameters ai_assist_params = 14; - * @return {?proto.clarifai.api.AiAssistParameters} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SplitIntoDatasets} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SplitIntoDatasets} */ -proto.clarifai.api.Task.prototype.getAiAssistParams = function() { - return /** @type{?proto.clarifai.api.AiAssistParameters} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.AiAssistParameters, 14)); +proto.clarifai.api.SplitIntoDatasets.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.clarifai.api.DatasetSplit; + reader.readMessage(value,proto.clarifai.api.DatasetSplit.deserializeBinaryFromReader); + msg.addDatasetSplits(value); + break; + case 2: + var value = /** @type {!proto.clarifai.api.SplitIntoDatasets.DatasetSplitMethod} */ (reader.readEnum()); + msg.setMethod(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {?proto.clarifai.api.AiAssistParameters|undefined} value - * @return {!proto.clarifai.api.Task} returns this -*/ -proto.clarifai.api.Task.prototype.setAiAssistParams = function(value) { - return jspb.Message.setWrapperField(this, 14, value); + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SplitIntoDatasets.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SplitIntoDatasets.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SplitIntoDatasets} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Task.prototype.clearAiAssistParams = function() { - return this.setAiAssistParams(undefined); +proto.clarifai.api.SplitIntoDatasets.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDatasetSplitsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.clarifai.api.DatasetSplit.serializeBinaryToWriter + ); + } + f = message.getMethod(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } }; /** - * Returns whether this field is set. - * @return {boolean} + * @enum {number} */ -proto.clarifai.api.Task.prototype.hasAiAssistParams = function() { - return jspb.Message.getField(this, 14) != null; +proto.clarifai.api.SplitIntoDatasets.DatasetSplitMethod = { + NOT_SET: 0, + RANDOM_PERCENTAGE_SPLIT: 1 }; - /** - * optional Visibility visibility = 15; - * @return {?proto.clarifai.api.Visibility} + * repeated DatasetSplit dataset_splits = 1; + * @return {!Array} */ -proto.clarifai.api.Task.prototype.getVisibility = function() { - return /** @type{?proto.clarifai.api.Visibility} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 15)); +proto.clarifai.api.SplitIntoDatasets.prototype.getDatasetSplitsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.DatasetSplit, 1)); }; /** - * @param {?proto.clarifai.api.Visibility|undefined} value - * @return {!proto.clarifai.api.Task} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.SplitIntoDatasets} returns this */ -proto.clarifai.api.Task.prototype.setVisibility = function(value) { - return jspb.Message.setWrapperField(this, 15, value); +proto.clarifai.api.SplitIntoDatasets.prototype.setDatasetSplitsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Task} returns this + * @param {!proto.clarifai.api.DatasetSplit=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetSplit} */ -proto.clarifai.api.Task.prototype.clearVisibility = function() { - return this.setVisibility(undefined); +proto.clarifai.api.SplitIntoDatasets.prototype.addDatasetSplits = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.DatasetSplit, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.SplitIntoDatasets} returns this */ -proto.clarifai.api.Task.prototype.hasVisibility = function() { - return jspb.Message.getField(this, 15) != null; +proto.clarifai.api.SplitIntoDatasets.prototype.clearDatasetSplitsList = function() { + return this.setDatasetSplitsList([]); }; /** - * optional string app_id = 16; - * @return {string} + * optional DatasetSplitMethod method = 2; + * @return {!proto.clarifai.api.SplitIntoDatasets.DatasetSplitMethod} */ -proto.clarifai.api.Task.prototype.getAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); +proto.clarifai.api.SplitIntoDatasets.prototype.getMethod = function() { + return /** @type {!proto.clarifai.api.SplitIntoDatasets.DatasetSplitMethod} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.Task} returns this + * @param {!proto.clarifai.api.SplitIntoDatasets.DatasetSplitMethod} value + * @return {!proto.clarifai.api.SplitIntoDatasets} returns this */ -proto.clarifai.api.Task.prototype.setAppId = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); +proto.clarifai.api.SplitIntoDatasets.prototype.setMethod = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); }; + /** - * optional string user_id = 17; - * @return {string} + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const */ -proto.clarifai.api.Task.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); -}; - +proto.clarifai.api.DatasetSplit.oneofGroups_ = [[2]]; /** - * @param {string} value - * @return {!proto.clarifai.api.Task} returns this + * @enum {number} */ -proto.clarifai.api.Task.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 17, value); +proto.clarifai.api.DatasetSplit.MethodInfoCase = { + METHOD_INFO_NOT_SET: 0, + PERCENTAGE: 2 }; - - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @return {proto.clarifai.api.DatasetSplit.MethodInfoCase} */ -proto.clarifai.api.AiAssistParameters.repeatedFields_ = [3]; +proto.clarifai.api.DatasetSplit.prototype.getMethodInfoCase = function() { + return /** @type {proto.clarifai.api.DatasetSplit.MethodInfoCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.DatasetSplit.oneofGroups_[0])); +}; @@ -38263,8 +57708,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.AiAssistParameters.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.AiAssistParameters.toObject(opt_includeInstance, this); +proto.clarifai.api.DatasetSplit.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DatasetSplit.toObject(opt_includeInstance, this); }; @@ -38273,15 +57718,14 @@ proto.clarifai.api.AiAssistParameters.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.AiAssistParameters} msg The msg instance to transform. + * @param {!proto.clarifai.api.DatasetSplit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AiAssistParameters.toObject = function(includeInstance, msg) { +proto.clarifai.api.DatasetSplit.toObject = function(includeInstance, msg) { var f, obj = { - minThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0), - maxThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - conceptRelationIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + dataset: (f = msg.getDataset()) && proto.clarifai.api.Dataset.toObject(includeInstance, f), + percentage: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -38295,23 +57739,23 @@ proto.clarifai.api.AiAssistParameters.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.AiAssistParameters} + * @return {!proto.clarifai.api.DatasetSplit} */ -proto.clarifai.api.AiAssistParameters.deserializeBinary = function(bytes) { +proto.clarifai.api.DatasetSplit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.AiAssistParameters; - return proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DatasetSplit; + return proto.clarifai.api.DatasetSplit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.AiAssistParameters} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DatasetSplit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.AiAssistParameters} + * @return {!proto.clarifai.api.DatasetSplit} */ -proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DatasetSplit.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -38319,16 +57763,13 @@ proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMinThreshold(value); + var value = new proto.clarifai.api.Dataset; + reader.readMessage(value,proto.clarifai.api.Dataset.deserializeBinaryFromReader); + msg.setDataset(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setMaxThreshold(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addConceptRelationIds(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPercentage(value); break; default: reader.skipField(); @@ -38343,9 +57784,9 @@ proto.clarifai.api.AiAssistParameters.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.AiAssistParameters.prototype.serializeBinary = function() { +proto.clarifai.api.DatasetSplit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.AiAssistParameters.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DatasetSplit.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -38353,106 +57794,100 @@ proto.clarifai.api.AiAssistParameters.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.AiAssistParameters} message + * @param {!proto.clarifai.api.DatasetSplit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.AiAssistParameters.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DatasetSplit.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMinThreshold(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getDataset(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.clarifai.api.Dataset.serializeBinaryToWriter ); } - f = message.getMaxThreshold(); - if (f !== 0.0) { - writer.writeFloat( + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint32( 2, f ); } - f = message.getConceptRelationIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } }; /** - * optional float min_threshold = 1; - * @return {number} + * optional Dataset dataset = 1; + * @return {?proto.clarifai.api.Dataset} */ -proto.clarifai.api.AiAssistParameters.prototype.getMinThreshold = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +proto.clarifai.api.DatasetSplit.prototype.getDataset = function() { + return /** @type{?proto.clarifai.api.Dataset} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Dataset, 1)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.AiAssistParameters} returns this - */ -proto.clarifai.api.AiAssistParameters.prototype.setMinThreshold = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); + * @param {?proto.clarifai.api.Dataset|undefined} value + * @return {!proto.clarifai.api.DatasetSplit} returns this +*/ +proto.clarifai.api.DatasetSplit.prototype.setDataset = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional float max_threshold = 2; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DatasetSplit} returns this */ -proto.clarifai.api.AiAssistParameters.prototype.getMaxThreshold = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.DatasetSplit.prototype.clearDataset = function() { + return this.setDataset(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.AiAssistParameters} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.AiAssistParameters.prototype.setMaxThreshold = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.DatasetSplit.prototype.hasDataset = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * repeated string concept_relation_ids = 3; - * @return {!Array} + * optional uint32 percentage = 2; + * @return {number} */ -proto.clarifai.api.AiAssistParameters.prototype.getConceptRelationIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.DatasetSplit.prototype.getPercentage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.AiAssistParameters} returns this + * @param {number} value + * @return {!proto.clarifai.api.DatasetSplit} returns this */ -proto.clarifai.api.AiAssistParameters.prototype.setConceptRelationIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.DatasetSplit.prototype.setPercentage = function(value) { + return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DatasetSplit.oneofGroups_[0], value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.AiAssistParameters} returns this + * Clears the field making it undefined. + * @return {!proto.clarifai.api.DatasetSplit} returns this */ -proto.clarifai.api.AiAssistParameters.prototype.addConceptRelationIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.DatasetSplit.prototype.clearPercentage = function() { + return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DatasetSplit.oneofGroups_[0], undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.AiAssistParameters} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.AiAssistParameters.prototype.clearConceptRelationIdsList = function() { - return this.setConceptRelationIdsList([]); +proto.clarifai.api.DatasetSplit.prototype.hasPercentage = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -38462,32 +57897,7 @@ proto.clarifai.api.AiAssistParameters.prototype.clearConceptRelationIdsList = fu * @private {!Array} * @const */ -proto.clarifai.api.TaskWorker.repeatedFields_ = [2]; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clarifai.api.TaskWorker.oneofGroups_ = [[3]]; - -/** - * @enum {number} - */ -proto.clarifai.api.TaskWorker.StrategyInfoCase = { - STRATEGY_INFO_NOT_SET: 0, - PARTITIONED_STRATEGY_INFO: 3 -}; - -/** - * @return {proto.clarifai.api.TaskWorker.StrategyInfoCase} - */ -proto.clarifai.api.TaskWorker.prototype.getStrategyInfoCase = function() { - return /** @type {proto.clarifai.api.TaskWorker.StrategyInfoCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.TaskWorker.oneofGroups_[0])); -}; +proto.clarifai.api.InputsAddJob.repeatedFields_ = [10,11]; @@ -38504,8 +57914,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TaskWorker.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskWorker.toObject(opt_includeInstance, this); +proto.clarifai.api.InputsAddJob.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputsAddJob.toObject(opt_includeInstance, this); }; @@ -38514,15 +57924,23 @@ proto.clarifai.api.TaskWorker.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskWorker} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputsAddJob} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskWorker.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputsAddJob.toObject = function(includeInstance, msg) { var f, obj = { - strategy: jspb.Message.getFieldWithDefault(msg, 1, 0), - userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - partitionedStrategyInfo: (f = msg.getPartitionedStrategyInfo()) && proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + callBackUrl: jspb.Message.getFieldWithDefault(msg, 3, ""), + appPat: jspb.Message.getFieldWithDefault(msg, 4, ""), + progress: (f = msg.getProgress()) && proto.clarifai.api.InputsAddJobProgress.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + extractionJobsList: jspb.Message.toObjectList(msg.getExtractionJobsList(), + proto.clarifai.api.InputsExtractionJob.toObject, includeInstance), + uploadsList: jspb.Message.toObjectList(msg.getUploadsList(), + proto.clarifai.api.Upload.toObject, includeInstance), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f) }; if (includeInstance) { @@ -38536,23 +57954,23 @@ proto.clarifai.api.TaskWorker.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskWorker} + * @return {!proto.clarifai.api.InputsAddJob} */ -proto.clarifai.api.TaskWorker.deserializeBinary = function(bytes) { +proto.clarifai.api.InputsAddJob.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskWorker; - return proto.clarifai.api.TaskWorker.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputsAddJob; + return proto.clarifai.api.InputsAddJob.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TaskWorker} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputsAddJob} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskWorker} + * @return {!proto.clarifai.api.InputsAddJob} */ -proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputsAddJob.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -38560,17 +57978,46 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} */ (reader.readEnum()); - msg.setStrategy(value); - break; - case 2: var value = /** @type {string} */ (reader.readString()); - msg.addUserIds(value); + msg.setId(value); break; case 3: - var value = new proto.clarifai.api.TaskWorkerPartitionedStrategyInfo; - reader.readMessage(value,proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader); - msg.setPartitionedStrategyInfo(value); + var value = /** @type {string} */ (reader.readString()); + msg.setCallBackUrl(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAppPat(value); + break; + case 7: + var value = new proto.clarifai.api.InputsAddJobProgress; + reader.readMessage(value,proto.clarifai.api.InputsAddJobProgress.deserializeBinaryFromReader); + msg.setProgress(value); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 9: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 10: + var value = new proto.clarifai.api.InputsExtractionJob; + reader.readMessage(value,proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader); + msg.addExtractionJobs(value); + break; + case 11: + var value = new proto.clarifai.api.Upload; + reader.readMessage(value,proto.clarifai.api.Upload.deserializeBinaryFromReader); + msg.addUploads(value); + break; + case 12: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; default: reader.skipField(); @@ -38585,9 +58032,9 @@ proto.clarifai.api.TaskWorker.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TaskWorker.prototype.serializeBinary = function() { +proto.clarifai.api.InputsAddJob.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskWorker.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputsAddJob.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -38595,126 +58042,200 @@ proto.clarifai.api.TaskWorker.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskWorker} message + * @param {!proto.clarifai.api.InputsAddJob} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InputsAddJob.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStrategy(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getUserIdsList(); + f = message.getCallBackUrl(); if (f.length > 0) { - writer.writeRepeatedString( - 2, + writer.writeString( + 3, f ); } - f = message.getPartitionedStrategyInfo(); + f = message.getAppPat(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getProgress(); if (f != null) { writer.writeMessage( - 3, + 7, f, - proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter + proto.clarifai.api.InputsAddJobProgress.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getModifiedAt(); + if (f != null) { + writer.writeMessage( + 9, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getExtractionJobsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 10, + f, + proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter + ); + } + f = message.getUploadsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 11, + f, + proto.clarifai.api.Upload.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } }; /** - * @enum {number} + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.TaskWorker.TaskWorkerStrategy = { - WORKER_STRATEGY_NOT_SET: 0, - PARTITIONED: 2, - FULL: 3 +proto.clarifai.api.InputsAddJob.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; + /** - * optional TaskWorkerStrategy strategy = 1; - * @return {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} + * @param {string} value + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorker.prototype.getStrategy = function() { - return /** @type {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.InputsAddJob.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {!proto.clarifai.api.TaskWorker.TaskWorkerStrategy} value - * @return {!proto.clarifai.api.TaskWorker} returns this + * optional string call_back_url = 3; + * @return {string} */ -proto.clarifai.api.TaskWorker.prototype.setStrategy = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.clarifai.api.InputsAddJob.prototype.getCallBackUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * repeated string user_ids = 2; - * @return {!Array} + * @param {string} value + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorker.prototype.getUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.InputsAddJob.prototype.setCallBackUrl = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.TaskWorker} returns this + * optional string app_pat = 4; + * @return {string} */ -proto.clarifai.api.TaskWorker.prototype.setUserIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.InputsAddJob.prototype.getAppPat = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.TaskWorker} returns this + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorker.prototype.addUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.InputsAddJob.prototype.setAppPat = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.TaskWorker} returns this + * optional InputsAddJobProgress progress = 7; + * @return {?proto.clarifai.api.InputsAddJobProgress} */ -proto.clarifai.api.TaskWorker.prototype.clearUserIdsList = function() { - return this.setUserIdsList([]); +proto.clarifai.api.InputsAddJob.prototype.getProgress = function() { + return /** @type{?proto.clarifai.api.InputsAddJobProgress} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.InputsAddJobProgress, 7)); }; /** - * optional TaskWorkerPartitionedStrategyInfo partitioned_strategy_info = 3; - * @return {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} + * @param {?proto.clarifai.api.InputsAddJobProgress|undefined} value + * @return {!proto.clarifai.api.InputsAddJob} returns this +*/ +proto.clarifai.api.InputsAddJob.prototype.setProgress = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorker.prototype.getPartitionedStrategyInfo = function() { - return /** @type{?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TaskWorkerPartitionedStrategyInfo, 3)); +proto.clarifai.api.InputsAddJob.prototype.clearProgress = function() { + return this.setProgress(undefined); }; /** - * @param {?proto.clarifai.api.TaskWorkerPartitionedStrategyInfo|undefined} value - * @return {!proto.clarifai.api.TaskWorker} returns this + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.InputsAddJob.prototype.hasProgress = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional google.protobuf.Timestamp created_at = 8; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.InputsAddJob.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorker.prototype.setPartitionedStrategyInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskWorker.oneofGroups_[0], value); +proto.clarifai.api.InputsAddJob.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TaskWorker} returns this + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function() { - return this.setPartitionedStrategyInfo(undefined); +proto.clarifai.api.InputsAddJob.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -38722,219 +58243,149 @@ proto.clarifai.api.TaskWorker.prototype.clearPartitionedStrategyInfo = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.TaskWorker.prototype.hasPartitionedStrategyInfo = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.InputsAddJob.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 8) != null; }; +/** + * optional google.protobuf.Timestamp modified_at = 9; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.InputsAddJob.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9)); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject(opt_includeInstance, this); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.InputsAddJob} returns this +*/ +proto.clarifai.api.InputsAddJob.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 9, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, 0), - workersPerInput: jspb.Message.getFieldWithDefault(msg, 2, 0), - weights: (f = msg.getWeights()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.InputsAddJob.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskWorkerPartitionedStrategyInfo; - return proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.InputsAddJob.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 9) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} + * repeated InputsExtractionJob extraction_jobs = 10; + * @return {!Array} */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} */ (reader.readEnum()); - msg.setType(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setWorkersPerInput(value); - break; - case 3: - var value = new google_protobuf_struct_pb.Struct; - reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); - msg.setWeights(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.InputsAddJob.prototype.getExtractionJobsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.InputsExtractionJob, 10)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + * @param {!Array} value + * @return {!proto.clarifai.api.InputsAddJob} returns this +*/ +proto.clarifai.api.InputsAddJob.prototype.setExtractionJobsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 10, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!proto.clarifai.api.InputsExtractionJob=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.InputsExtractionJob} */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getWorkersPerInput(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getWeights(); - if (f != null) { - writer.writeMessage( - 3, - f, - google_protobuf_struct_pb.Struct.serializeBinaryToWriter - ); - } +proto.clarifai.api.InputsAddJob.prototype.addExtractionJobs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.clarifai.api.InputsExtractionJob, opt_index); }; /** - * @enum {number} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy = { - PARTITIONED_WORKER_STRATEGY_NOT_SET: 0, - EVENLY: 1, - WEIGHTED: 2 +proto.clarifai.api.InputsAddJob.prototype.clearExtractionJobsList = function() { + return this.setExtractionJobsList([]); }; + /** - * optional TaskWorkerPartitionedStrategy type = 1; - * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} + * repeated Upload uploads = 11; + * @return {!Array} */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.getType = function() { - return /** @type {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.InputsAddJob.prototype.getUploadsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Upload, 11)); }; /** - * @param {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.TaskWorkerPartitionedStrategy} value - * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this - */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); + * @param {!Array} value + * @return {!proto.clarifai.api.InputsAddJob} returns this +*/ +proto.clarifai.api.InputsAddJob.prototype.setUploadsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 11, value); }; /** - * optional int32 workers_per_input = 2; - * @return {number} + * @param {!proto.clarifai.api.Upload=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Upload} */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.getWorkersPerInput = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.InputsAddJob.prototype.addUploads = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.clarifai.api.Upload, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.setWorkersPerInput = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.InputsAddJob.prototype.clearUploadsList = function() { + return this.setUploadsList([]); }; /** - * optional google.protobuf.Struct weights = 3; - * @return {?proto.google.protobuf.Struct} + * optional status.Status status = 12; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.getWeights = function() { - return /** @type{?proto.google.protobuf.Struct} */ ( - jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3)); +proto.clarifai.api.InputsAddJob.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 12)); }; /** - * @param {?proto.google.protobuf.Struct|undefined} value - * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.setWeights = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.InputsAddJob.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 12, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TaskWorkerPartitionedStrategyInfo} returns this + * @return {!proto.clarifai.api.InputsAddJob} returns this */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.clearWeights = function() { - return this.setWeights(undefined); +proto.clarifai.api.InputsAddJob.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -38942,8 +58393,8 @@ proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.clearWeights = fu * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.TaskWorkerPartitionedStrategyInfo.prototype.hasWeights = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.InputsAddJob.prototype.hasStatus = function() { + return jspb.Message.getField(this, 12) != null; }; @@ -38963,8 +58414,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TaskInputSource.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskInputSource.toObject(opt_includeInstance, this); +proto.clarifai.api.InputsAddJobProgress.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputsAddJobProgress.toObject(opt_includeInstance, this); }; @@ -38973,14 +58424,16 @@ proto.clarifai.api.TaskInputSource.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskInputSource} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputsAddJobProgress} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskInputSource.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputsAddJobProgress.toObject = function(includeInstance, msg) { var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, 0), - id: jspb.Message.getFieldWithDefault(msg, 2, "") + pendingCount: jspb.Message.getFieldWithDefault(msg, 1, 0), + inProgressCount: jspb.Message.getFieldWithDefault(msg, 2, 0), + successCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + failedCount: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -38994,23 +58447,23 @@ proto.clarifai.api.TaskInputSource.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskInputSource} + * @return {!proto.clarifai.api.InputsAddJobProgress} */ -proto.clarifai.api.TaskInputSource.deserializeBinary = function(bytes) { +proto.clarifai.api.InputsAddJobProgress.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskInputSource; - return proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputsAddJobProgress; + return proto.clarifai.api.InputsAddJobProgress.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TaskInputSource} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputsAddJobProgress} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskInputSource} + * @return {!proto.clarifai.api.InputsAddJobProgress} */ -proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputsAddJobProgress.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -39018,12 +58471,20 @@ proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} */ (reader.readEnum()); - msg.setType(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setPendingCount(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setInProgressCount(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSuccessCount(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFailedCount(value); break; default: reader.skipField(); @@ -39038,9 +58499,9 @@ proto.clarifai.api.TaskInputSource.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TaskInputSource.prototype.serializeBinary = function() { +proto.clarifai.api.InputsAddJobProgress.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskInputSource.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputsAddJobProgress.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -39048,110 +58509,118 @@ proto.clarifai.api.TaskInputSource.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskInputSource} message + * @param {!proto.clarifai.api.InputsAddJobProgress} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskInputSource.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InputsAddJobProgress.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getPendingCount(); + if (f !== 0) { + writer.writeUint64( 1, f ); } - f = message.getId(); - if (f.length > 0) { - writer.writeString( + f = message.getInProgressCount(); + if (f !== 0) { + writer.writeUint64( 2, f ); } + f = message.getSuccessCount(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getFailedCount(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } }; /** - * @enum {number} + * optional uint64 pending_count = 1; + * @return {number} */ -proto.clarifai.api.TaskInputSource.TaskInputSourceType = { - INPUT_SOURCE_TYPE_NOT_SET: 0, - ALL_INPUTS: 1, - SAVED_SEARCH: 2 +proto.clarifai.api.InputsAddJobProgress.prototype.getPendingCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; + /** - * optional TaskInputSourceType type = 1; - * @return {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} + * @param {number} value + * @return {!proto.clarifai.api.InputsAddJobProgress} returns this */ -proto.clarifai.api.TaskInputSource.prototype.getType = function() { - return /** @type {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.InputsAddJobProgress.prototype.setPendingCount = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * @param {!proto.clarifai.api.TaskInputSource.TaskInputSourceType} value - * @return {!proto.clarifai.api.TaskInputSource} returns this + * optional uint64 in_progress_count = 2; + * @return {number} */ -proto.clarifai.api.TaskInputSource.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.clarifai.api.InputsAddJobProgress.prototype.getInProgressCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * optional string id = 2; - * @return {string} + * @param {number} value + * @return {!proto.clarifai.api.InputsAddJobProgress} returns this */ -proto.clarifai.api.TaskInputSource.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.InputsAddJobProgress.prototype.setInProgressCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.TaskInputSource} returns this + * optional uint64 success_count = 3; + * @return {number} */ -proto.clarifai.api.TaskInputSource.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.InputsAddJobProgress.prototype.getSuccessCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {number} value + * @return {!proto.clarifai.api.InputsAddJobProgress} returns this */ -proto.clarifai.api.TaskReview.repeatedFields_ = [2]; +proto.clarifai.api.InputsAddJobProgress.prototype.setSuccessCount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clarifai.api.TaskReview.oneofGroups_ = [[3,4]]; /** - * @enum {number} + * optional uint64 failed_count = 4; + * @return {number} */ -proto.clarifai.api.TaskReview.StrategyInfoCase = { - STRATEGY_INFO_NOT_SET: 0, - MANUAL_STRATEGY_INFO: 3, - CONSENSUS_STRATEGY_INFO: 4 +proto.clarifai.api.InputsAddJobProgress.prototype.getFailedCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; + /** - * @return {proto.clarifai.api.TaskReview.StrategyInfoCase} + * @param {number} value + * @return {!proto.clarifai.api.InputsAddJobProgress} returns this */ -proto.clarifai.api.TaskReview.prototype.getStrategyInfoCase = function() { - return /** @type {proto.clarifai.api.TaskReview.StrategyInfoCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.TaskReview.oneofGroups_[0])); +proto.clarifai.api.InputsAddJobProgress.prototype.setFailedCount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -39165,8 +58634,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TaskReview.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskReview.toObject(opt_includeInstance, this); +proto.clarifai.api.Upload.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Upload.toObject(opt_includeInstance, this); }; @@ -39175,16 +58644,20 @@ proto.clarifai.api.TaskReview.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskReview} msg The msg instance to transform. + * @param {!proto.clarifai.api.Upload} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskReview.toObject = function(includeInstance, msg) { +proto.clarifai.api.Upload.toObject = function(includeInstance, msg) { var f, obj = { - strategy: jspb.Message.getFieldWithDefault(msg, 1, 0), - userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - manualStrategyInfo: (f = msg.getManualStrategyInfo()) && proto.clarifai.api.TaskReviewManualStrategyInfo.toObject(includeInstance, f), - consensusStrategyInfo: (f = msg.getConsensusStrategyInfo()) && proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + contentName: jspb.Message.getFieldWithDefault(msg, 8, ""), + contentLength: jspb.Message.getFieldWithDefault(msg, 6, 0), + contentUrl: jspb.Message.getFieldWithDefault(msg, 7, "") }; if (includeInstance) { @@ -39198,23 +58671,23 @@ proto.clarifai.api.TaskReview.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskReview} + * @return {!proto.clarifai.api.Upload} */ -proto.clarifai.api.TaskReview.deserializeBinary = function(bytes) { +proto.clarifai.api.Upload.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskReview; - return proto.clarifai.api.TaskReview.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Upload; + return proto.clarifai.api.Upload.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TaskReview} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Upload} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskReview} + * @return {!proto.clarifai.api.Upload} */ -proto.clarifai.api.TaskReview.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Upload.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -39222,22 +58695,40 @@ proto.clarifai.api.TaskReview.deserializeBinaryFromReader = function(msg, reader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!proto.clarifai.api.TaskReview.TaskReviewStrategy} */ (reader.readEnum()); - msg.setStrategy(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addUserIds(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 3: - var value = new proto.clarifai.api.TaskReviewManualStrategyInfo; - reader.readMessage(value,proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader); - msg.setManualStrategyInfo(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); break; case 4: - var value = new proto.clarifai.api.TaskReviewConsensusStrategyInfo; - reader.readMessage(value,proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader); - msg.setConsensusStrategyInfo(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setExpiresAt(value); + break; + case 5: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setContentName(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setContentLength(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setContentUrl(value); break; default: reader.skipField(); @@ -39252,9 +58743,9 @@ proto.clarifai.api.TaskReview.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TaskReview.prototype.serializeBinary = function() { +proto.clarifai.api.Upload.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskReview.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Upload.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -39262,135 +58753,155 @@ proto.clarifai.api.TaskReview.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskReview} message + * @param {!proto.clarifai.api.Upload} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskReview.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Upload.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStrategy(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, f ); } - f = message.getUserIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( 2, - f + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getManualStrategyInfo(); + f = message.getModifiedAt(); if (f != null) { writer.writeMessage( 3, f, - proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getConsensusStrategyInfo(); + f = message.getExpiresAt(); if (f != null) { writer.writeMessage( 4, f, - proto.clarifai.api.TaskReviewConsensusStrategyInfo.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getContentName(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getContentLength(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getContentUrl(); + if (f.length > 0) { + writer.writeString( + 7, + f ); } }; /** - * @enum {number} - */ -proto.clarifai.api.TaskReview.TaskReviewStrategy = { - TASK_REVIEW_STRATEGY_NOT_SET: 0, - NONE: 1, - MANUAL: 2, - CONSENSUS: 3 -}; - -/** - * optional TaskReviewStrategy strategy = 1; - * @return {!proto.clarifai.api.TaskReview.TaskReviewStrategy} + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.TaskReview.prototype.getStrategy = function() { - return /** @type {!proto.clarifai.api.TaskReview.TaskReviewStrategy} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.Upload.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!proto.clarifai.api.TaskReview.TaskReviewStrategy} value - * @return {!proto.clarifai.api.TaskReview} returns this + * @param {string} value + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReview.prototype.setStrategy = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.clarifai.api.Upload.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated string user_ids = 2; - * @return {!Array} + * optional google.protobuf.Timestamp created_at = 2; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.TaskReview.prototype.getUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.Upload.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.TaskReview} returns this - */ -proto.clarifai.api.TaskReview.prototype.setUserIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Upload} returns this +*/ +proto.clarifai.api.Upload.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.TaskReview} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReview.prototype.addUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.Upload.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.TaskReview} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TaskReview.prototype.clearUserIdsList = function() { - return this.setUserIdsList([]); +proto.clarifai.api.Upload.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional TaskReviewManualStrategyInfo manual_strategy_info = 3; - * @return {?proto.clarifai.api.TaskReviewManualStrategyInfo} + * optional google.protobuf.Timestamp modified_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.TaskReview.prototype.getManualStrategyInfo = function() { - return /** @type{?proto.clarifai.api.TaskReviewManualStrategyInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewManualStrategyInfo, 3)); +proto.clarifai.api.Upload.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * @param {?proto.clarifai.api.TaskReviewManualStrategyInfo|undefined} value - * @return {!proto.clarifai.api.TaskReview} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReview.prototype.setManualStrategyInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.clarifai.api.TaskReview.oneofGroups_[0], value); +proto.clarifai.api.Upload.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TaskReview} returns this + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReview.prototype.clearManualStrategyInfo = function() { - return this.setManualStrategyInfo(undefined); +proto.clarifai.api.Upload.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; @@ -39398,36 +58909,36 @@ proto.clarifai.api.TaskReview.prototype.clearManualStrategyInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.TaskReview.prototype.hasManualStrategyInfo = function() { +proto.clarifai.api.Upload.prototype.hasModifiedAt = function() { return jspb.Message.getField(this, 3) != null; }; /** - * optional TaskReviewConsensusStrategyInfo consensus_strategy_info = 4; - * @return {?proto.clarifai.api.TaskReviewConsensusStrategyInfo} + * optional google.protobuf.Timestamp expires_at = 4; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.TaskReview.prototype.getConsensusStrategyInfo = function() { - return /** @type{?proto.clarifai.api.TaskReviewConsensusStrategyInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TaskReviewConsensusStrategyInfo, 4)); +proto.clarifai.api.Upload.prototype.getExpiresAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); }; /** - * @param {?proto.clarifai.api.TaskReviewConsensusStrategyInfo|undefined} value - * @return {!proto.clarifai.api.TaskReview} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReview.prototype.setConsensusStrategyInfo = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.TaskReview.oneofGroups_[0], value); +proto.clarifai.api.Upload.prototype.setExpiresAt = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TaskReview} returns this + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReview.prototype.clearConsensusStrategyInfo = function() { - return this.setConsensusStrategyInfo(undefined); +proto.clarifai.api.Upload.prototype.clearExpiresAt = function() { + return this.setExpiresAt(undefined); }; @@ -39435,138 +58946,99 @@ proto.clarifai.api.TaskReview.prototype.clearConsensusStrategyInfo = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.TaskReview.prototype.hasConsensusStrategyInfo = function() { +proto.clarifai.api.Upload.prototype.hasExpiresAt = function() { return jspb.Message.getField(this, 4) != null; }; +/** + * optional status.Status status = 5; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.Upload.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5)); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskReviewManualStrategyInfo.toObject(opt_includeInstance, this); + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.Upload} returns this +*/ +proto.clarifai.api.Upload.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskReviewManualStrategyInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReviewManualStrategyInfo.toObject = function(includeInstance, msg) { - var f, obj = { - samplePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.Upload.prototype.clearStatus = function() { + return this.setStatus(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskReviewManualStrategyInfo; - return proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Upload.prototype.hasStatus = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.TaskReviewManualStrategyInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} + * optional string content_name = 8; + * @return {string} */ -proto.clarifai.api.TaskReviewManualStrategyInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readFloat()); - msg.setSamplePercentage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.Upload.prototype.getContentName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.Upload} returns this + */ +proto.clarifai.api.Upload.prototype.setContentName = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional uint64 content_length = 6; + * @return {number} */ -proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Upload.prototype.getContentLength = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskReviewManualStrategyInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReviewManualStrategyInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSamplePercentage(); - if (f !== 0.0) { - writer.writeFloat( - 1, - f - ); - } +proto.clarifai.api.Upload.prototype.setContentLength = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; /** - * optional float sample_percentage = 1; - * @return {number} + * optional string content_url = 7; + * @return {string} */ -proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.getSamplePercentage = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); +proto.clarifai.api.Upload.prototype.getContentUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TaskReviewManualStrategyInfo} returns this + * @param {string} value + * @return {!proto.clarifai.api.Upload} returns this */ -proto.clarifai.api.TaskReviewManualStrategyInfo.prototype.setSamplePercentage = function(value) { - return jspb.Message.setProto3FloatField(this, 1, value); +proto.clarifai.api.Upload.prototype.setContentUrl = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; @@ -39586,8 +59058,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.UploadContentPart.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.UploadContentPart.toObject(opt_includeInstance, this); }; @@ -39596,13 +59068,15 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} msg The msg instance to transform. + * @param {!proto.clarifai.api.UploadContentPart} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject = function(includeInstance, msg) { +proto.clarifai.api.UploadContentPart.toObject = function(includeInstance, msg) { var f, obj = { - approvalThreshold: jspb.Message.getFieldWithDefault(msg, 2, 0) + rangeStart: jspb.Message.getFieldWithDefault(msg, 1, 0), + partNumber: jspb.Message.getFieldWithDefault(msg, 2, 0), + data: msg.getData_asB64() }; if (includeInstance) { @@ -39616,32 +59090,40 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} + * @return {!proto.clarifai.api.UploadContentPart} */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinary = function(bytes) { +proto.clarifai.api.UploadContentPart.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskReviewConsensusStrategyInfo; - return proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.UploadContentPart; + return proto.clarifai.api.UploadContentPart.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} msg The message object to deserialize into. + * @param {!proto.clarifai.api.UploadContentPart} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} + * @return {!proto.clarifai.api.UploadContentPart} */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.UploadContentPart.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRangeStart(value); + break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setApprovalThreshold(value); + var value = /** @type {number} */ (reader.readInt64()); + msg.setPartNumber(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setData(value); break; default: reader.skipField(); @@ -39656,9 +59138,9 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.serializeBinary = function() { +proto.clarifai.api.UploadContentPart.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskReviewConsensusStrategyInfo.serializeBinaryToWriter(this, writer); + proto.clarifai.api.UploadContentPart.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -39666,170 +59148,121 @@ proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} message + * @param {!proto.clarifai.api.UploadContentPart} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.UploadContentPart.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getApprovalThreshold(); + f = message.getRangeStart(); if (f !== 0) { - writer.writeUint32( + writer.writeUint64( + 1, + f + ); + } + f = message.getPartNumber(); + if (f !== 0) { + writer.writeInt64( 2, f ); } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } }; /** - * optional uint32 approval_threshold = 2; + * optional uint64 range_start = 1; * @return {number} */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.getApprovalThreshold = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.UploadContentPart.prototype.getRangeStart = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.TaskReviewConsensusStrategyInfo} returns this + * @return {!proto.clarifai.api.UploadContentPart} returns this */ -proto.clarifai.api.TaskReviewConsensusStrategyInfo.prototype.setApprovalThreshold = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.UploadContentPart.prototype.setRangeStart = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * optional int64 part_number = 2; + * @return {number} */ -proto.clarifai.api.TaskAIAssistant.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskAIAssistant.toObject(opt_includeInstance, this); +proto.clarifai.api.UploadContentPart.prototype.getPartNumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskAIAssistant} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.clarifai.api.UploadContentPart} returns this */ -proto.clarifai.api.TaskAIAssistant.toObject = function(includeInstance, msg) { - var f, obj = { - workflowId: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.UploadContentPart.prototype.setPartNumber = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskAIAssistant} + * optional bytes data = 3; + * @return {!(string|Uint8Array)} */ -proto.clarifai.api.TaskAIAssistant.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskAIAssistant; - return proto.clarifai.api.TaskAIAssistant.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.UploadContentPart.prototype.getData = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.TaskAIAssistant} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskAIAssistant} + * optional bytes data = 3; + * This is a type-conversion wrapper around `getData()` + * @return {string} */ -proto.clarifai.api.TaskAIAssistant.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.UploadContentPart.prototype.getData_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getData())); }; /** - * Serializes the message to binary data (in protobuf wire format). + * optional bytes data = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getData()` * @return {!Uint8Array} */ -proto.clarifai.api.TaskAIAssistant.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskAIAssistant.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.UploadContentPart.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskAIAssistant} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!(string|Uint8Array)} value + * @return {!proto.clarifai.api.UploadContentPart} returns this */ -proto.clarifai.api.TaskAIAssistant.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWorkflowId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.clarifai.api.UploadContentPart.prototype.setData = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); }; -/** - * optional string workflow_id = 1; - * @return {string} - */ -proto.clarifai.api.TaskAIAssistant.prototype.getWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - /** - * @param {string} value - * @return {!proto.clarifai.api.TaskAIAssistant} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.TaskAIAssistant.prototype.setWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - +proto.clarifai.api.CustomCodeOperatorRequest.repeatedFields_ = [1]; @@ -39846,8 +59279,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TaskStatusCountPerUser.toObject(opt_includeInstance, this); +proto.clarifai.api.CustomCodeOperatorRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.CustomCodeOperatorRequest.toObject(opt_includeInstance, this); }; @@ -39856,18 +59289,15 @@ proto.clarifai.api.TaskStatusCountPerUser.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TaskStatusCountPerUser} msg The msg instance to transform. + * @param {!proto.clarifai.api.CustomCodeOperatorRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskStatusCountPerUser.toObject = function(includeInstance, msg) { +proto.clarifai.api.CustomCodeOperatorRequest.toObject = function(includeInstance, msg) { var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), - pending: jspb.Message.getFieldWithDefault(msg, 2, 0), - awaitingReview: jspb.Message.getFieldWithDefault(msg, 3, 0), - success: jspb.Message.getFieldWithDefault(msg, 4, 0), - reviewDenied: jspb.Message.getFieldWithDefault(msg, 5, 0), - awaitingConsensusReview: jspb.Message.getFieldWithDefault(msg, 6, 0) + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto.clarifai.api.Input.toObject, includeInstance), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -39881,23 +59311,23 @@ proto.clarifai.api.TaskStatusCountPerUser.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TaskStatusCountPerUser} + * @return {!proto.clarifai.api.CustomCodeOperatorRequest} */ -proto.clarifai.api.TaskStatusCountPerUser.deserializeBinary = function(bytes) { +proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TaskStatusCountPerUser; - return proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.CustomCodeOperatorRequest; + return proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TaskStatusCountPerUser} msg The message object to deserialize into. + * @param {!proto.clarifai.api.CustomCodeOperatorRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TaskStatusCountPerUser} + * @return {!proto.clarifai.api.CustomCodeOperatorRequest} */ -proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.CustomCodeOperatorRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -39905,28 +59335,14 @@ proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPending(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAwaitingReview(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSuccess(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setReviewDenied(value); + var value = new proto.clarifai.api.Input; + reader.readMessage(value,proto.clarifai.api.Input.deserializeBinaryFromReader); + msg.addInputs(value); break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAwaitingConsensusReview(value); + case 1002: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); break; default: reader.skipField(); @@ -39941,9 +59357,9 @@ proto.clarifai.api.TaskStatusCountPerUser.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.serializeBinary = function() { +proto.clarifai.api.CustomCodeOperatorRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter(this, writer); + proto.clarifai.api.CustomCodeOperatorRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -39951,162 +59367,103 @@ proto.clarifai.api.TaskStatusCountPerUser.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TaskStatusCountPerUser} message + * @param {!proto.clarifai.api.CustomCodeOperatorRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TaskStatusCountPerUser.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.CustomCodeOperatorRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserId(); + f = message.getInputsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 1, - f - ); - } - f = message.getPending(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getAwaitingReview(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getSuccess(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getReviewDenied(); - if (f !== 0) { - writer.writeUint32( - 5, - f + f, + proto.clarifai.api.Input.serializeBinaryToWriter ); } - f = message.getAwaitingConsensusReview(); - if (f !== 0) { - writer.writeUint32( - 6, - f + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 1002, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } }; /** - * optional string user_id = 1; - * @return {string} - */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.getUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this - */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.setUserId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 pending = 2; - * @return {number} - */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.getPending = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this - */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.setPending = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 awaiting_review = 3; - * @return {number} + * repeated Input inputs = 1; + * @return {!Array} */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.getAwaitingReview = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.CustomCodeOperatorRequest.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.Input, 1)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this - */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingReview = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + * @param {!Array} value + * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this +*/ +proto.clarifai.api.CustomCodeOperatorRequest.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * optional uint32 success = 4; - * @return {number} + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.getSuccess = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.CustomCodeOperatorRequest.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.Input, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.setSuccess = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.CustomCodeOperatorRequest.prototype.clearInputsList = function() { + return this.setInputsList([]); }; /** - * optional uint32 review_denied = 5; - * @return {number} + * optional google.protobuf.Struct metadata = 1002; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.getReviewDenied = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +proto.clarifai.api.CustomCodeOperatorRequest.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1002)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this - */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.setReviewDenied = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this +*/ +proto.clarifai.api.CustomCodeOperatorRequest.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 1002, value); }; /** - * optional uint32 awaiting_consensus_review = 6; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.CustomCodeOperatorRequest} returns this */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.getAwaitingConsensusReview = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +proto.clarifai.api.CustomCodeOperatorRequest.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TaskStatusCountPerUser} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TaskStatusCountPerUser.prototype.setAwaitingConsensusReview = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); +proto.clarifai.api.CustomCodeOperatorRequest.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 1002) != null; }; @@ -40126,8 +59483,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Collector.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Collector.toObject(opt_includeInstance, this); +proto.clarifai.api.InputsExtractionJob.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputsExtractionJob.toObject(opt_includeInstance, this); }; @@ -40136,19 +59493,19 @@ proto.clarifai.api.Collector.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Collector} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputsExtractionJob} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Collector.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputsExtractionJob.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + url: jspb.Message.getFieldWithDefault(msg, 3, ""), + progress: (f = msg.getProgress()) && proto.clarifai.api.InputsExtractionJobProgress.toObject(includeInstance, f), createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - preQueueWorkflowId: jspb.Message.getFieldWithDefault(msg, 4, ""), - postQueueWorkflowId: jspb.Message.getFieldWithDefault(msg, 5, ""), - collectorSource: (f = msg.getCollectorSource()) && proto.clarifai.api.CollectorSource.toObject(includeInstance, f), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f) + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 7, 0) }; if (includeInstance) { @@ -40162,23 +59519,23 @@ proto.clarifai.api.Collector.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Collector} + * @return {!proto.clarifai.api.InputsExtractionJob} */ -proto.clarifai.api.Collector.deserializeBinary = function(bytes) { +proto.clarifai.api.InputsExtractionJob.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Collector; - return proto.clarifai.api.Collector.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputsExtractionJob; + return proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Collector} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputsExtractionJob} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Collector} + * @return {!proto.clarifai.api.InputsExtractionJob} */ -proto.clarifai.api.Collector.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputsExtractionJob.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -40186,35 +59543,36 @@ proto.clarifai.api.Collector.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); + msg.setId(value); break; case 3: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setCreatedAt(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPreQueueWorkflowId(value); + var value = new proto.clarifai.api.InputsExtractionJobProgress; + reader.readMessage(value,proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader); + msg.setProgress(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPostQueueWorkflowId(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); break; case 6: - var value = new proto.clarifai.api.CollectorSource; - reader.readMessage(value,proto.clarifai.api.CollectorSource.deserializeBinaryFromReader); - msg.setCollectorSource(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); break; case 7: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum()); + msg.setInputIdConflictResolution(value); break; default: reader.skipField(); @@ -40229,9 +59587,9 @@ proto.clarifai.api.Collector.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Collector.prototype.serializeBinary = function() { +proto.clarifai.api.InputsExtractionJob.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Collector.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -40239,128 +59597,93 @@ proto.clarifai.api.Collector.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Collector} message + * @param {!proto.clarifai.api.InputsExtractionJob} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Collector.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InputsExtractionJob.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } f = message.getId(); if (f.length > 0) { writer.writeString( - 1, + 2, f ); } - f = message.getDescription(); + f = message.getUrl(); if (f.length > 0) { writer.writeString( - 2, + 3, f ); } - f = message.getCreatedAt(); + f = message.getProgress(); if (f != null) { writer.writeMessage( - 3, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getPreQueueWorkflowId(); - if (f.length > 0) { - writer.writeString( 4, - f + f, + proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter ); } - f = message.getPostQueueWorkflowId(); - if (f.length > 0) { - writer.writeString( + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( 5, - f + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getCollectorSource(); + f = message.getModifiedAt(); if (f != null) { writer.writeMessage( 6, f, - proto.clarifai.api.CollectorSource.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( + f = message.getInputIdConflictResolution(); + if (f !== 0.0) { + writer.writeEnum( 7, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + f ); } }; /** - * optional string id = 1; - * @return {string} - */ -proto.clarifai.api.Collector.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Collector} returns this - */ -proto.clarifai.api.Collector.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string description = 2; - * @return {string} - */ -proto.clarifai.api.Collector.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.Collector} returns this - */ -proto.clarifai.api.Collector.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional google.protobuf.Timestamp created_at = 3; - * @return {?proto.google.protobuf.Timestamp} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.Collector.prototype.getCreatedAt = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); +proto.clarifai.api.InputsExtractionJob.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.Collector} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.InputsExtractionJob.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collector} returns this + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.clarifai.api.InputsExtractionJob.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -40368,72 +59691,72 @@ proto.clarifai.api.Collector.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Collector.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.InputsExtractionJob.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional string pre_queue_workflow_id = 4; + * optional string id = 2; * @return {string} */ -proto.clarifai.api.Collector.prototype.getPreQueueWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.InputsExtractionJob.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Collector} returns this + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.setPreQueueWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.InputsExtractionJob.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string post_queue_workflow_id = 5; + * optional string url = 3; * @return {string} */ -proto.clarifai.api.Collector.prototype.getPostQueueWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.InputsExtractionJob.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.Collector} returns this + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.setPostQueueWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.InputsExtractionJob.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional CollectorSource collector_source = 6; - * @return {?proto.clarifai.api.CollectorSource} + * optional InputsExtractionJobProgress progress = 4; + * @return {?proto.clarifai.api.InputsExtractionJobProgress} */ -proto.clarifai.api.Collector.prototype.getCollectorSource = function() { - return /** @type{?proto.clarifai.api.CollectorSource} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.CollectorSource, 6)); +proto.clarifai.api.InputsExtractionJob.prototype.getProgress = function() { + return /** @type{?proto.clarifai.api.InputsExtractionJobProgress} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.InputsExtractionJobProgress, 4)); }; /** - * @param {?proto.clarifai.api.CollectorSource|undefined} value - * @return {!proto.clarifai.api.Collector} returns this + * @param {?proto.clarifai.api.InputsExtractionJobProgress|undefined} value + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.setCollectorSource = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.clarifai.api.InputsExtractionJob.prototype.setProgress = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collector} returns this + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.clearCollectorSource = function() { - return this.setCollectorSource(undefined); +proto.clarifai.api.InputsExtractionJob.prototype.clearProgress = function() { + return this.setProgress(undefined); }; @@ -40441,36 +59764,36 @@ proto.clarifai.api.Collector.prototype.clearCollectorSource = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Collector.prototype.hasCollectorSource = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.InputsExtractionJob.prototype.hasProgress = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional status.Status status = 7; - * @return {?proto.clarifai.api.status.Status} + * optional google.protobuf.Timestamp created_at = 5; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.Collector.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 7)); +proto.clarifai.api.InputsExtractionJob.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.Collector} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.clarifai.api.InputsExtractionJob.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.Collector} returns this + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.Collector.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.InputsExtractionJob.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -40478,159 +59801,63 @@ proto.clarifai.api.Collector.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.Collector.prototype.hasStatus = function() { - return jspb.Message.getField(this, 7) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.CollectorSource.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.CollectorSource.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.CollectorSource} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.CollectorSource.toObject = function(includeInstance, msg) { - var f, obj = { - apiPostModelOutputsCollectorSource: (f = msg.getApiPostModelOutputsCollectorSource()) && proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.CollectorSource} - */ -proto.clarifai.api.CollectorSource.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.CollectorSource; - return proto.clarifai.api.CollectorSource.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.InputsExtractionJob.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.CollectorSource} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.CollectorSource} + * optional google.protobuf.Timestamp modified_at = 6; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.CollectorSource.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.clarifai.api.APIPostModelOutputsCollectorSource; - reader.readMessage(value,proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReader); - msg.setApiPostModelOutputsCollectorSource(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.InputsExtractionJob.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clarifai.api.CollectorSource.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.CollectorSource.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.InputsExtractionJob} returns this +*/ +proto.clarifai.api.InputsExtractionJob.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.CollectorSource} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.CollectorSource.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getApiPostModelOutputsCollectorSource(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter - ); - } +proto.clarifai.api.InputsExtractionJob.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * optional APIPostModelOutputsCollectorSource api_post_model_outputs_collector_source = 2; - * @return {?proto.clarifai.api.APIPostModelOutputsCollectorSource} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.CollectorSource.prototype.getApiPostModelOutputsCollectorSource = function() { - return /** @type{?proto.clarifai.api.APIPostModelOutputsCollectorSource} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.APIPostModelOutputsCollectorSource, 2)); -}; - - -/** - * @param {?proto.clarifai.api.APIPostModelOutputsCollectorSource|undefined} value - * @return {!proto.clarifai.api.CollectorSource} returns this -*/ -proto.clarifai.api.CollectorSource.prototype.setApiPostModelOutputsCollectorSource = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.InputsExtractionJob.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.CollectorSource} returns this + * optional InputIDConflictResolution input_id_conflict_resolution = 7; + * @return {!proto.clarifai.api.InputIDConflictResolution} */ -proto.clarifai.api.CollectorSource.prototype.clearApiPostModelOutputsCollectorSource = function() { - return this.setApiPostModelOutputsCollectorSource(undefined); +proto.clarifai.api.InputsExtractionJob.prototype.getInputIdConflictResolution = function() { + return /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.clarifai.api.InputIDConflictResolution} value + * @return {!proto.clarifai.api.InputsExtractionJob} returns this */ -proto.clarifai.api.CollectorSource.prototype.hasApiPostModelOutputsCollectorSource = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.InputsExtractionJob.prototype.setInputIdConflictResolution = function(value) { + return jspb.Message.setProto3EnumField(this, 7, value); }; @@ -40650,8 +59877,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject(opt_includeInstance, this); +proto.clarifai.api.InputsExtractionJobProgress.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputsExtractionJobProgress.toObject(opt_includeInstance, this); }; @@ -40660,17 +59887,20 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.APIPostModelOutputsCollectorSource} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputsExtractionJobProgress} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputsExtractionJobProgress.toObject = function(includeInstance, msg) { var f, obj = { - modelUserId: jspb.Message.getFieldWithDefault(msg, 1, ""), - modelAppId: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelId: jspb.Message.getFieldWithDefault(msg, 3, ""), - modelVersionId: jspb.Message.getFieldWithDefault(msg, 4, ""), - postInputsKeyId: jspb.Message.getFieldWithDefault(msg, 5, "") + audioInputsCount: jspb.Message.getFieldWithDefault(msg, 2, 0), + imageInputsCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + videoInputsCount: jspb.Message.getFieldWithDefault(msg, 4, 0), + textInputsCount: jspb.Message.getFieldWithDefault(msg, 5, 0), + pendingArchivesCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + inProgressArchivesCount: jspb.Message.getFieldWithDefault(msg, 7, 0), + completedArchivesCount: jspb.Message.getFieldWithDefault(msg, 8, 0), + failedArchivesCount: jspb.Message.getFieldWithDefault(msg, 9, 0) }; if (includeInstance) { @@ -40684,48 +59914,60 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} + * @return {!proto.clarifai.api.InputsExtractionJobProgress} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinary = function(bytes) { +proto.clarifai.api.InputsExtractionJobProgress.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.APIPostModelOutputsCollectorSource; - return proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputsExtractionJobProgress; + return proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.APIPostModelOutputsCollectorSource} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputsExtractionJobProgress} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} + * @return {!proto.clarifai.api.InputsExtractionJobProgress} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputsExtractionJobProgress.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setModelUserId(value); - break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelAppId(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setAudioInputsCount(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setImageInputsCount(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setModelVersionId(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setVideoInputsCount(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPostInputsKeyId(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setTextInputsCount(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setPendingArchivesCount(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setInProgressArchivesCount(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCompletedArchivesCount(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFailedArchivesCount(value); break; default: reader.skipField(); @@ -40740,9 +59982,9 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.serializeBinary = function() { +proto.clarifai.api.InputsExtractionJobProgress.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -40750,147 +59992,215 @@ proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.APIPostModelOutputsCollectorSource} message + * @param {!proto.clarifai.api.InputsExtractionJobProgress} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InputsExtractionJobProgress.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getModelUserId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getModelAppId(); - if (f.length > 0) { - writer.writeString( + f = message.getAudioInputsCount(); + if (f !== 0) { + writer.writeUint64( 2, f ); } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( + f = message.getImageInputsCount(); + if (f !== 0) { + writer.writeUint64( 3, f ); } - f = message.getModelVersionId(); - if (f.length > 0) { - writer.writeString( + f = message.getVideoInputsCount(); + if (f !== 0) { + writer.writeUint64( 4, f ); } - f = message.getPostInputsKeyId(); - if (f.length > 0) { - writer.writeString( + f = message.getTextInputsCount(); + if (f !== 0) { + writer.writeUint64( 5, f ); } + f = message.getPendingArchivesCount(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getInProgressArchivesCount(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getCompletedArchivesCount(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getFailedArchivesCount(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } }; /** - * optional string model_user_id = 1; - * @return {string} + * optional uint64 audio_inputs_count = 2; + * @return {number} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelUserId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.InputsExtractionJobProgress.prototype.getAudioInputsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelUserId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.InputsExtractionJobProgress.prototype.setAudioInputsCount = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional string model_app_id = 2; - * @return {string} + * optional uint64 image_inputs_count = 3; + * @return {number} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelAppId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.InputsExtractionJobProgress.prototype.getImageInputsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelAppId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.InputsExtractionJobProgress.prototype.setImageInputsCount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional string model_id = 3; - * @return {string} + * optional uint64 video_inputs_count = 4; + * @return {number} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.InputsExtractionJobProgress.prototype.getVideoInputsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.InputsExtractionJobProgress.prototype.setVideoInputsCount = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; /** - * optional string model_version_id = 4; - * @return {string} + * optional uint64 text_inputs_count = 5; + * @return {number} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.InputsExtractionJobProgress.prototype.getTextInputsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.InputsExtractionJobProgress.prototype.setTextInputsCount = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); }; /** - * optional string post_inputs_key_id = 5; - * @return {string} + * optional uint64 pending_archives_count = 6; + * @return {number} */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.getPostInputsKeyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.InputsExtractionJobProgress.prototype.getPendingArchivesCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.APIPostModelOutputsCollectorSource} returns this + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this */ -proto.clarifai.api.APIPostModelOutputsCollectorSource.prototype.setPostInputsKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.InputsExtractionJobProgress.prototype.setPendingArchivesCount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); }; +/** + * optional uint64 in_progress_archives_count = 7; + * @return {number} + */ +proto.clarifai.api.InputsExtractionJobProgress.prototype.getInProgressArchivesCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this */ -proto.clarifai.api.StatValue.repeatedFields_ = [3]; +proto.clarifai.api.InputsExtractionJobProgress.prototype.setInProgressArchivesCount = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 completed_archives_count = 8; + * @return {number} + */ +proto.clarifai.api.InputsExtractionJobProgress.prototype.getCompletedArchivesCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this + */ +proto.clarifai.api.InputsExtractionJobProgress.prototype.setCompletedArchivesCount = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 failed_archives_count = 9; + * @return {number} + */ +proto.clarifai.api.InputsExtractionJobProgress.prototype.getFailedArchivesCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.InputsExtractionJobProgress} returns this + */ +proto.clarifai.api.InputsExtractionJobProgress.prototype.setFailedArchivesCount = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + @@ -40907,8 +60217,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.StatValue.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.StatValue.toObject(opt_includeInstance, this); +proto.clarifai.api.InputsDataSource.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputsDataSource.toObject(opt_includeInstance, this); }; @@ -40917,15 +60227,15 @@ proto.clarifai.api.StatValue.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.StatValue} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputsDataSource} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValue.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputsDataSource.toObject = function(includeInstance, msg) { var f, obj = { - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - value: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - tagsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""), + url: (f = msg.getUrl()) && proto.clarifai.api.DataSourceURL.toObject(includeInstance, f), + inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -40939,23 +60249,23 @@ proto.clarifai.api.StatValue.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.StatValue} + * @return {!proto.clarifai.api.InputsDataSource} */ -proto.clarifai.api.StatValue.deserializeBinary = function(bytes) { +proto.clarifai.api.InputsDataSource.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.StatValue; - return proto.clarifai.api.StatValue.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputsDataSource; + return proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.StatValue} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputsDataSource} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.StatValue} + * @return {!proto.clarifai.api.InputsDataSource} */ -proto.clarifai.api.StatValue.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputsDataSource.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -40963,17 +60273,17 @@ proto.clarifai.api.StatValue.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); + var value = /** @type {string} */ (reader.readString()); + msg.setInputsAddJobId(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setValue(value); + var value = new proto.clarifai.api.DataSourceURL; + reader.readMessage(value,proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader); + msg.setUrl(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); + var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum()); + msg.setInputIdConflictResolution(value); break; default: reader.skipField(); @@ -40988,9 +60298,9 @@ proto.clarifai.api.StatValue.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.StatValue.prototype.serializeBinary = function() { +proto.clarifai.api.InputsDataSource.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.StatValue.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputsDataSource.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -40998,30 +60308,30 @@ proto.clarifai.api.StatValue.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.StatValue} message + * @param {!proto.clarifai.api.InputsDataSource} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValue.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InputsDataSource.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTime(); - if (f != null) { - writer.writeMessage( + f = message.getInputsAddJobId(); + if (f.length > 0) { + writer.writeString( 1, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } - f = message.getValue(); - if (f !== 0.0) { - writer.writeFloat( + f = message.getUrl(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto.clarifai.api.DataSourceURL.serializeBinaryToWriter ); } - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getInputIdConflictResolution(); + if (f !== 0.0) { + writer.writeEnum( 3, f ); @@ -41030,104 +60340,78 @@ proto.clarifai.api.StatValue.serializeBinaryToWriter = function(message, writer) /** - * optional google.protobuf.Timestamp time = 1; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.clarifai.api.StatValue.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.StatValue} returns this -*/ -proto.clarifai.api.StatValue.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.StatValue} returns this - */ -proto.clarifai.api.StatValue.prototype.clearTime = function() { - return this.setTime(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * optional string inputs_add_job_id = 1; + * @return {string} */ -proto.clarifai.api.StatValue.prototype.hasTime = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.InputsDataSource.prototype.getInputsAddJobId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional float value = 2; - * @return {number} + * @param {string} value + * @return {!proto.clarifai.api.InputsDataSource} returns this */ -proto.clarifai.api.StatValue.prototype.getValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.InputsDataSource.prototype.setInputsAddJobId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {number} value - * @return {!proto.clarifai.api.StatValue} returns this + * optional DataSourceURL url = 2; + * @return {?proto.clarifai.api.DataSourceURL} */ -proto.clarifai.api.StatValue.prototype.setValue = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.InputsDataSource.prototype.getUrl = function() { + return /** @type{?proto.clarifai.api.DataSourceURL} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DataSourceURL, 2)); }; /** - * repeated string tags = 3; - * @return {!Array} - */ -proto.clarifai.api.StatValue.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); + * @param {?proto.clarifai.api.DataSourceURL|undefined} value + * @return {!proto.clarifai.api.InputsDataSource} returns this +*/ +proto.clarifai.api.InputsDataSource.prototype.setUrl = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.StatValue} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InputsDataSource} returns this */ -proto.clarifai.api.StatValue.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.InputsDataSource.prototype.clearUrl = function() { + return this.setUrl(undefined); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValue} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.StatValue.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.InputsDataSource.prototype.hasUrl = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.StatValue} returns this + * optional InputIDConflictResolution input_id_conflict_resolution = 3; + * @return {!proto.clarifai.api.InputIDConflictResolution} */ -proto.clarifai.api.StatValue.prototype.clearTagsList = function() { - return this.setTagsList([]); +proto.clarifai.api.InputsDataSource.prototype.getInputIdConflictResolution = function() { + return /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {!proto.clarifai.api.InputIDConflictResolution} value + * @return {!proto.clarifai.api.InputsDataSource} returns this */ -proto.clarifai.api.StatValueAggregateResult.repeatedFields_ = [1]; +proto.clarifai.api.InputsDataSource.prototype.setInputIdConflictResolution = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + @@ -41144,8 +60428,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.StatValueAggregateResult.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.StatValueAggregateResult.toObject(opt_includeInstance, this); +proto.clarifai.api.DataSourceURL.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DataSourceURL.toObject(opt_includeInstance, this); }; @@ -41154,15 +60438,14 @@ proto.clarifai.api.StatValueAggregateResult.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.StatValueAggregateResult} msg The msg instance to transform. + * @param {!proto.clarifai.api.DataSourceURL} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregateResult.toObject = function(includeInstance, msg) { +proto.clarifai.api.DataSourceURL.toObject = function(includeInstance, msg) { var f, obj = { - statValueAggregatesList: jspb.Message.toObjectList(msg.getStatValueAggregatesList(), - proto.clarifai.api.StatValueAggregate.toObject, includeInstance), - statValueAggregateQuery: (f = msg.getStatValueAggregateQuery()) && proto.clarifai.api.StatValueAggregateQuery.toObject(includeInstance, f) + url: jspb.Message.getFieldWithDefault(msg, 1, ""), + credentials: (f = msg.getCredentials()) && proto.clarifai.api.DataSourceCredentials.toObject(includeInstance, f) }; if (includeInstance) { @@ -41176,23 +60459,23 @@ proto.clarifai.api.StatValueAggregateResult.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.StatValueAggregateResult} + * @return {!proto.clarifai.api.DataSourceURL} */ -proto.clarifai.api.StatValueAggregateResult.deserializeBinary = function(bytes) { +proto.clarifai.api.DataSourceURL.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.StatValueAggregateResult; - return proto.clarifai.api.StatValueAggregateResult.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DataSourceURL; + return proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.StatValueAggregateResult} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DataSourceURL} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.StatValueAggregateResult} + * @return {!proto.clarifai.api.DataSourceURL} */ -proto.clarifai.api.StatValueAggregateResult.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DataSourceURL.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -41200,14 +60483,13 @@ proto.clarifai.api.StatValueAggregateResult.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.clarifai.api.StatValueAggregate; - reader.readMessage(value,proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader); - msg.addStatValueAggregates(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); break; case 2: - var value = new proto.clarifai.api.StatValueAggregateQuery; - reader.readMessage(value,proto.clarifai.api.StatValueAggregateQuery.deserializeBinaryFromReader); - msg.setStatValueAggregateQuery(value); + var value = new proto.clarifai.api.DataSourceCredentials; + reader.readMessage(value,proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader); + msg.setCredentials(value); break; default: reader.skipField(); @@ -41222,9 +60504,9 @@ proto.clarifai.api.StatValueAggregateResult.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.StatValueAggregateResult.prototype.serializeBinary = function() { +proto.clarifai.api.DataSourceURL.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.StatValueAggregateResult.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DataSourceURL.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -41232,94 +60514,73 @@ proto.clarifai.api.StatValueAggregateResult.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.StatValueAggregateResult} message + * @param {!proto.clarifai.api.DataSourceURL} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregateResult.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DataSourceURL.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatValueAggregatesList(); + f = message.getUrl(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 1, - f, - proto.clarifai.api.StatValueAggregate.serializeBinaryToWriter + f ); } - f = message.getStatValueAggregateQuery(); + f = message.getCredentials(); if (f != null) { writer.writeMessage( 2, f, - proto.clarifai.api.StatValueAggregateQuery.serializeBinaryToWriter + proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter ); } }; /** - * repeated StatValueAggregate stat_value_aggregates = 1; - * @return {!Array} - */ -proto.clarifai.api.StatValueAggregateResult.prototype.getStatValueAggregatesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.StatValueAggregate, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.StatValueAggregateResult} returns this -*/ -proto.clarifai.api.StatValueAggregateResult.prototype.setStatValueAggregatesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clarifai.api.StatValueAggregate=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValueAggregate} + * optional string url = 1; + * @return {string} */ -proto.clarifai.api.StatValueAggregateResult.prototype.addStatValueAggregates = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clarifai.api.StatValueAggregate, opt_index); +proto.clarifai.api.DataSourceURL.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.StatValueAggregateResult} returns this + * @param {string} value + * @return {!proto.clarifai.api.DataSourceURL} returns this */ -proto.clarifai.api.StatValueAggregateResult.prototype.clearStatValueAggregatesList = function() { - return this.setStatValueAggregatesList([]); +proto.clarifai.api.DataSourceURL.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional StatValueAggregateQuery stat_value_aggregate_query = 2; - * @return {?proto.clarifai.api.StatValueAggregateQuery} + * optional DataSourceCredentials credentials = 2; + * @return {?proto.clarifai.api.DataSourceCredentials} */ -proto.clarifai.api.StatValueAggregateResult.prototype.getStatValueAggregateQuery = function() { - return /** @type{?proto.clarifai.api.StatValueAggregateQuery} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.StatValueAggregateQuery, 2)); +proto.clarifai.api.DataSourceURL.prototype.getCredentials = function() { + return /** @type{?proto.clarifai.api.DataSourceCredentials} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.DataSourceCredentials, 2)); }; /** - * @param {?proto.clarifai.api.StatValueAggregateQuery|undefined} value - * @return {!proto.clarifai.api.StatValueAggregateResult} returns this + * @param {?proto.clarifai.api.DataSourceCredentials|undefined} value + * @return {!proto.clarifai.api.DataSourceURL} returns this */ -proto.clarifai.api.StatValueAggregateResult.prototype.setStatValueAggregateQuery = function(value) { +proto.clarifai.api.DataSourceURL.prototype.setCredentials = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.StatValueAggregateResult} returns this + * @return {!proto.clarifai.api.DataSourceURL} returns this */ -proto.clarifai.api.StatValueAggregateResult.prototype.clearStatValueAggregateQuery = function() { - return this.setStatValueAggregateQuery(undefined); +proto.clarifai.api.DataSourceURL.prototype.clearCredentials = function() { + return this.setCredentials(undefined); }; @@ -41327,18 +60588,38 @@ proto.clarifai.api.StatValueAggregateResult.prototype.clearStatValueAggregateQue * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.StatValueAggregateResult.prototype.hasStatValueAggregateQuery = function() { +proto.clarifai.api.DataSourceURL.prototype.hasCredentials = function() { return jspb.Message.getField(this, 2) != null; }; /** - * List of repeated fields within this message type. - * @private {!Array} + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} * @const */ -proto.clarifai.api.StatValueAggregate.repeatedFields_ = [4]; +proto.clarifai.api.DataSourceCredentials.oneofGroups_ = [[1,2,4]]; + +/** + * @enum {number} + */ +proto.clarifai.api.DataSourceCredentials.CredentialsCase = { + CREDENTIALS_NOT_SET: 0, + S3_CREDS: 1, + GCP_CREDS: 2, + AZURE_BLOB_CREDS: 4 +}; + +/** + * @return {proto.clarifai.api.DataSourceCredentials.CredentialsCase} + */ +proto.clarifai.api.DataSourceCredentials.prototype.getCredentialsCase = function() { + return /** @type {proto.clarifai.api.DataSourceCredentials.CredentialsCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0])); +}; @@ -41355,8 +60636,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.StatValueAggregate.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.StatValueAggregate.toObject(opt_includeInstance, this); +proto.clarifai.api.DataSourceCredentials.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DataSourceCredentials.toObject(opt_includeInstance, this); }; @@ -41365,16 +60646,15 @@ proto.clarifai.api.StatValueAggregate.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.StatValueAggregate} msg The msg instance to transform. + * @param {!proto.clarifai.api.DataSourceCredentials} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregate.toObject = function(includeInstance, msg) { +proto.clarifai.api.DataSourceCredentials.toObject = function(includeInstance, msg) { var f, obj = { - time: (f = msg.getTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - aggregateValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0), - count: jspb.Message.getFieldWithDefault(msg, 3, 0), - tagsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + s3Creds: (f = msg.getS3Creds()) && proto.clarifai.api.AWSCreds.toObject(includeInstance, f), + gcpCreds: msg.getGcpCreds_asB64(), + azureBlobCreds: (f = msg.getAzureBlobCreds()) && proto.clarifai.api.AzureBlobCreds.toObject(includeInstance, f) }; if (includeInstance) { @@ -41388,23 +60668,23 @@ proto.clarifai.api.StatValueAggregate.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.StatValueAggregate} + * @return {!proto.clarifai.api.DataSourceCredentials} */ -proto.clarifai.api.StatValueAggregate.deserializeBinary = function(bytes) { +proto.clarifai.api.DataSourceCredentials.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.StatValueAggregate; - return proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DataSourceCredentials; + return proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.StatValueAggregate} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DataSourceCredentials} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.StatValueAggregate} + * @return {!proto.clarifai.api.DataSourceCredentials} */ -proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DataSourceCredentials.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -41412,21 +60692,18 @@ proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTime(value); + var value = new proto.clarifai.api.AWSCreds; + reader.readMessage(value,proto.clarifai.api.AWSCreds.deserializeBinaryFromReader); + msg.setS3Creds(value); break; case 2: - var value = /** @type {number} */ (reader.readFloat()); - msg.setAggregateValue(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCount(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setGcpCreds(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); + var value = new proto.clarifai.api.AzureBlobCreds; + reader.readMessage(value,proto.clarifai.api.AzureBlobCreds.deserializeBinaryFromReader); + msg.setAzureBlobCreds(value); break; default: reader.skipField(); @@ -41441,9 +60718,9 @@ proto.clarifai.api.StatValueAggregate.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.StatValueAggregate.prototype.serializeBinary = function() { +proto.clarifai.api.DataSourceCredentials.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.StatValueAggregate.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -41451,69 +60728,63 @@ proto.clarifai.api.StatValueAggregate.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.StatValueAggregate} message + * @param {!proto.clarifai.api.DataSourceCredentials} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregate.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DataSourceCredentials.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTime(); + f = message.getS3Creds(); if (f != null) { writer.writeMessage( 1, f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + proto.clarifai.api.AWSCreds.serializeBinaryToWriter ); } - f = message.getAggregateValue(); - if (f !== 0.0) { - writer.writeFloat( + f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBytes( 2, f ); } - f = message.getCount(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getAzureBlobCreds(); + if (f != null) { + writer.writeMessage( 4, - f + f, + proto.clarifai.api.AzureBlobCreds.serializeBinaryToWriter ); } }; /** - * optional google.protobuf.Timestamp time = 1; - * @return {?proto.google.protobuf.Timestamp} + * optional AWSCreds s3_creds = 1; + * @return {?proto.clarifai.api.AWSCreds} */ -proto.clarifai.api.StatValueAggregate.prototype.getTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); +proto.clarifai.api.DataSourceCredentials.prototype.getS3Creds = function() { + return /** @type{?proto.clarifai.api.AWSCreds} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AWSCreds, 1)); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.StatValueAggregate} returns this + * @param {?proto.clarifai.api.AWSCreds|undefined} value + * @return {!proto.clarifai.api.DataSourceCredentials} returns this */ -proto.clarifai.api.StatValueAggregate.prototype.setTime = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.DataSourceCredentials.prototype.setS3Creds = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.StatValueAggregate} returns this + * @return {!proto.clarifai.api.DataSourceCredentials} returns this */ -proto.clarifai.api.StatValueAggregate.prototype.clearTime = function() { - return this.setTime(undefined); +proto.clarifai.api.DataSourceCredentials.prototype.clearS3Creds = function() { + return this.setS3Creds(undefined); }; @@ -41521,91 +60792,108 @@ proto.clarifai.api.StatValueAggregate.prototype.clearTime = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.StatValueAggregate.prototype.hasTime = function() { +proto.clarifai.api.DataSourceCredentials.prototype.hasS3Creds = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional float aggregate_value = 2; - * @return {number} + * optional bytes gcp_creds = 2; + * @return {!(string|Uint8Array)} */ -proto.clarifai.api.StatValueAggregate.prototype.getAggregateValue = function() { - return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0)); +proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.StatValueAggregate} returns this + * optional bytes gcp_creds = 2; + * This is a type-conversion wrapper around `getGcpCreds()` + * @return {string} */ -proto.clarifai.api.StatValueAggregate.prototype.setAggregateValue = function(value) { - return jspb.Message.setProto3FloatField(this, 2, value); +proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getGcpCreds())); }; /** - * optional uint64 count = 3; - * @return {number} + * optional bytes gcp_creds = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getGcpCreds()` + * @return {!Uint8Array} */ -proto.clarifai.api.StatValueAggregate.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.DataSourceCredentials.prototype.getGcpCreds_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getGcpCreds())); }; /** - * @param {number} value - * @return {!proto.clarifai.api.StatValueAggregate} returns this + * @param {!(string|Uint8Array)} value + * @return {!proto.clarifai.api.DataSourceCredentials} returns this */ -proto.clarifai.api.StatValueAggregate.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.DataSourceCredentials.prototype.setGcpCreds = function(value) { + return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value); }; /** - * repeated string tags = 4; - * @return {!Array} + * Clears the field making it undefined. + * @return {!proto.clarifai.api.DataSourceCredentials} returns this */ -proto.clarifai.api.StatValueAggregate.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.clarifai.api.DataSourceCredentials.prototype.clearGcpCreds = function() { + return jspb.Message.setOneofField(this, 2, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], undefined); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.StatValueAggregate} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.StatValueAggregate.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.DataSourceCredentials.prototype.hasGcpCreds = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValueAggregate} returns this + * optional AzureBlobCreds azure_blob_creds = 4; + * @return {?proto.clarifai.api.AzureBlobCreds} */ -proto.clarifai.api.StatValueAggregate.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.DataSourceCredentials.prototype.getAzureBlobCreds = function() { + return /** @type{?proto.clarifai.api.AzureBlobCreds} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.AzureBlobCreds, 4)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.StatValueAggregate} returns this - */ -proto.clarifai.api.StatValueAggregate.prototype.clearTagsList = function() { - return this.setTagsList([]); + * @param {?proto.clarifai.api.AzureBlobCreds|undefined} value + * @return {!proto.clarifai.api.DataSourceCredentials} returns this +*/ +proto.clarifai.api.DataSourceCredentials.prototype.setAzureBlobCreds = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.clarifai.api.DataSourceCredentials.oneofGroups_[0], value); }; +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DataSourceCredentials} returns this + */ +proto.clarifai.api.DataSourceCredentials.prototype.clearAzureBlobCreds = function() { + return this.setAzureBlobCreds(undefined); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.StatValueAggregateQuery.repeatedFields_ = [1,2]; +proto.clarifai.api.DataSourceCredentials.prototype.hasAzureBlobCreds = function() { + return jspb.Message.getField(this, 4) != null; +}; + + @@ -41622,8 +60910,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.StatValueAggregateQuery.toObject(opt_includeInstance, this); +proto.clarifai.api.AWSCreds.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AWSCreds.toObject(opt_includeInstance, this); }; @@ -41632,18 +60920,16 @@ proto.clarifai.api.StatValueAggregateQuery.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.StatValueAggregateQuery} msg The msg instance to transform. + * @param {!proto.clarifai.api.AWSCreds} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregateQuery.toObject = function(includeInstance, msg) { +proto.clarifai.api.AWSCreds.toObject = function(includeInstance, msg) { var f, obj = { - tagsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - tagGroupsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - statValueAggType: jspb.Message.getFieldWithDefault(msg, 3, 0), - statTimeAggType: jspb.Message.getFieldWithDefault(msg, 4, 0), - startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), - endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f) + region: jspb.Message.getFieldWithDefault(msg, 2, ""), + id: jspb.Message.getFieldWithDefault(msg, 3, ""), + secret: jspb.Message.getFieldWithDefault(msg, 4, ""), + token: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -41657,54 +60943,44 @@ proto.clarifai.api.StatValueAggregateQuery.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.StatValueAggregateQuery} + * @return {!proto.clarifai.api.AWSCreds} */ -proto.clarifai.api.StatValueAggregateQuery.deserializeBinary = function(bytes) { +proto.clarifai.api.AWSCreds.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.StatValueAggregateQuery; - return proto.clarifai.api.StatValueAggregateQuery.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.AWSCreds; + return proto.clarifai.api.AWSCreds.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.StatValueAggregateQuery} msg The message object to deserialize into. + * @param {!proto.clarifai.api.AWSCreds} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.StatValueAggregateQuery} + * @return {!proto.clarifai.api.AWSCreds} */ -proto.clarifai.api.StatValueAggregateQuery.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.AWSCreds.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addTags(value); - break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addTagGroups(value); + msg.setRegion(value); break; case 3: - var value = /** @type {!proto.clarifai.api.StatValueAggType} */ (reader.readEnum()); - msg.setStatValueAggType(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 4: - var value = /** @type {!proto.clarifai.api.StatTimeAggType} */ (reader.readEnum()); - msg.setStatTimeAggType(value); + var value = /** @type {string} */ (reader.readString()); + msg.setSecret(value); break; case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setStartTime(value); - break; - case 6: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setEndTime(value); + var value = /** @type {string} */ (reader.readString()); + msg.setToken(value); break; default: reader.skipField(); @@ -41719,9 +60995,9 @@ proto.clarifai.api.StatValueAggregateQuery.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.serializeBinary = function() { +proto.clarifai.api.AWSCreds.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.StatValueAggregateQuery.serializeBinaryToWriter(this, writer); + proto.clarifai.api.AWSCreds.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -41729,240 +61005,272 @@ proto.clarifai.api.StatValueAggregateQuery.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.StatValueAggregateQuery} message + * @param {!proto.clarifai.api.AWSCreds} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregateQuery.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.AWSCreds.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTagsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getTagGroupsList(); + f = message.getRegion(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); } - f = message.getStatValueAggType(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 3, f ); } - f = message.getStatTimeAggType(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getSecret(); + if (f.length > 0) { + writer.writeString( 4, f ); } - f = message.getStartTime(); - if (f != null) { - writer.writeMessage( + f = message.getToken(); + if (f.length > 0) { + writer.writeString( 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } - f = message.getEndTime(); - if (f != null) { - writer.writeMessage( - 6, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + f ); } }; /** - * repeated string tags = 1; - * @return {!Array} - */ -proto.clarifai.api.StatValueAggregateQuery.prototype.getTagsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * optional string region = 2; + * @return {string} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.setTagsList = function(value) { - return jspb.Message.setField(this, 1, value || []); +proto.clarifai.api.AWSCreds.prototype.getRegion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * @return {!proto.clarifai.api.AWSCreds} returns this */ -proto.clarifai.api.StatValueAggregateQuery.prototype.addTags = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +proto.clarifai.api.AWSCreds.prototype.setRegion = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * optional string id = 3; + * @return {string} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.clearTagsList = function() { - return this.setTagsList([]); +proto.clarifai.api.AWSCreds.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * repeated string tag_groups = 2; - * @return {!Array} + * @param {string} value + * @return {!proto.clarifai.api.AWSCreds} returns this */ -proto.clarifai.api.StatValueAggregateQuery.prototype.getTagGroupsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.AWSCreds.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * optional string secret = 4; + * @return {string} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.setTagGroupsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.AWSCreds.prototype.getSecret = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * @return {!proto.clarifai.api.AWSCreds} returns this */ -proto.clarifai.api.StatValueAggregateQuery.prototype.addTagGroups = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.AWSCreds.prototype.setSecret = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * optional string token = 5; + * @return {string} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.clearTagGroupsList = function() { - return this.setTagGroupsList([]); +proto.clarifai.api.AWSCreds.prototype.getToken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * optional StatValueAggType stat_value_agg_type = 3; - * @return {!proto.clarifai.api.StatValueAggType} + * @param {string} value + * @return {!proto.clarifai.api.AWSCreds} returns this */ -proto.clarifai.api.StatValueAggregateQuery.prototype.getStatValueAggType = function() { - return /** @type {!proto.clarifai.api.StatValueAggType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.AWSCreds.prototype.setToken = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; -/** - * @param {!proto.clarifai.api.StatValueAggType} value - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this - */ -proto.clarifai.api.StatValueAggregateQuery.prototype.setStatValueAggType = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional StatTimeAggType stat_time_agg_type = 4; - * @return {!proto.clarifai.api.StatTimeAggType} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.getStatTimeAggType = function() { - return /** @type {!proto.clarifai.api.StatTimeAggType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.AzureBlobCreds.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.AzureBlobCreds.toObject(opt_includeInstance, this); }; /** - * @param {!proto.clarifai.api.StatTimeAggType} value - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.AzureBlobCreds} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregateQuery.prototype.setStatTimeAggType = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); +proto.clarifai.api.AzureBlobCreds.toObject = function(includeInstance, msg) { + var f, obj = { + accountName: jspb.Message.getFieldWithDefault(msg, 1, ""), + accountKey: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional google.protobuf.Timestamp start_time = 5; - * @return {?proto.google.protobuf.Timestamp} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.AzureBlobCreds} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.getStartTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +proto.clarifai.api.AzureBlobCreds.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.AzureBlobCreds; + return proto.clarifai.api.AzureBlobCreds.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this -*/ -proto.clarifai.api.StatValueAggregateQuery.prototype.setStartTime = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.AzureBlobCreds} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.AzureBlobCreds} + */ +proto.clarifai.api.AzureBlobCreds.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAccountKey(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.clearStartTime = function() { - return this.setStartTime(undefined); +proto.clarifai.api.AzureBlobCreds.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.AzureBlobCreds.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.AzureBlobCreds} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StatValueAggregateQuery.prototype.hasStartTime = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.AzureBlobCreds.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccountName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAccountKey(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * optional google.protobuf.Timestamp end_time = 6; - * @return {?proto.google.protobuf.Timestamp} + * optional string account_name = 1; + * @return {string} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.getEndTime = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +proto.clarifai.api.AzureBlobCreds.prototype.getAccountName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this -*/ -proto.clarifai.api.StatValueAggregateQuery.prototype.setEndTime = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + * @param {string} value + * @return {!proto.clarifai.api.AzureBlobCreds} returns this + */ +proto.clarifai.api.AzureBlobCreds.prototype.setAccountName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.StatValueAggregateQuery} returns this + * optional string account_key = 2; + * @return {string} */ -proto.clarifai.api.StatValueAggregateQuery.prototype.clearEndTime = function() { - return this.setEndTime(undefined); +proto.clarifai.api.AzureBlobCreds.prototype.getAccountKey = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.AzureBlobCreds} returns this */ -proto.clarifai.api.StatValueAggregateQuery.prototype.hasEndTime = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.AzureBlobCreds.prototype.setAccountKey = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -41982,8 +61290,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.Visibility.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Visibility.toObject(opt_includeInstance, this); +proto.clarifai.api.InputsUpload.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.InputsUpload.toObject(opt_includeInstance, this); }; @@ -41992,13 +61300,16 @@ proto.clarifai.api.Visibility.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Visibility} msg The msg instance to transform. + * @param {!proto.clarifai.api.InputsUpload} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Visibility.toObject = function(includeInstance, msg) { +proto.clarifai.api.InputsUpload.toObject = function(includeInstance, msg) { var f, obj = { - gettable: jspb.Message.getFieldWithDefault(msg, 1, 0) + inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 1, ""), + appPat: jspb.Message.getFieldWithDefault(msg, 2, ""), + upload: (f = msg.getUpload()) && proto.clarifai.api.Upload.toObject(includeInstance, f), + inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -42012,23 +61323,23 @@ proto.clarifai.api.Visibility.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Visibility} + * @return {!proto.clarifai.api.InputsUpload} */ -proto.clarifai.api.Visibility.deserializeBinary = function(bytes) { +proto.clarifai.api.InputsUpload.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Visibility; - return proto.clarifai.api.Visibility.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.InputsUpload; + return proto.clarifai.api.InputsUpload.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.Visibility} msg The message object to deserialize into. + * @param {!proto.clarifai.api.InputsUpload} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Visibility} + * @return {!proto.clarifai.api.InputsUpload} */ -proto.clarifai.api.Visibility.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.InputsUpload.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42036,8 +61347,21 @@ proto.clarifai.api.Visibility.deserializeBinaryFromReader = function(msg, reader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!proto.clarifai.api.Visibility.Gettable} */ (reader.readEnum()); - msg.setGettable(value); + var value = /** @type {string} */ (reader.readString()); + msg.setInputsAddJobId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAppPat(value); + break; + case 3: + var value = new proto.clarifai.api.Upload; + reader.readMessage(value,proto.clarifai.api.Upload.deserializeBinaryFromReader); + msg.setUpload(value); + break; + case 4: + var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum()); + msg.setInputIdConflictResolution(value); break; default: reader.skipField(); @@ -42052,9 +61376,9 @@ proto.clarifai.api.Visibility.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.Visibility.prototype.serializeBinary = function() { +proto.clarifai.api.InputsUpload.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Visibility.serializeBinaryToWriter(this, writer); + proto.clarifai.api.InputsUpload.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42062,16 +61386,38 @@ proto.clarifai.api.Visibility.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.Visibility} message + * @param {!proto.clarifai.api.InputsUpload} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Visibility.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.InputsUpload.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getGettable(); + f = message.getInputsAddJobId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getAppPat(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getUpload(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Upload.serializeBinaryToWriter + ); + } + f = message.getInputIdConflictResolution(); if (f !== 0.0) { writer.writeEnum( - 1, + 4, f ); } @@ -42079,30 +61425,93 @@ proto.clarifai.api.Visibility.serializeBinaryToWriter = function(message, writer /** - * @enum {number} + * optional string inputs_add_job_id = 1; + * @return {string} */ -proto.clarifai.api.Visibility.Gettable = { - UNKNOWN_VISIBILITY: 0, - PRIVATE: 10, - ORG: 30, - PUBLIC: 50 +proto.clarifai.api.InputsUpload.prototype.getInputsAddJobId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; + /** - * optional Gettable gettable = 1; - * @return {!proto.clarifai.api.Visibility.Gettable} + * @param {string} value + * @return {!proto.clarifai.api.InputsUpload} returns this */ -proto.clarifai.api.Visibility.prototype.getGettable = function() { - return /** @type {!proto.clarifai.api.Visibility.Gettable} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.InputsUpload.prototype.setInputsAddJobId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {!proto.clarifai.api.Visibility.Gettable} value - * @return {!proto.clarifai.api.Visibility} returns this + * optional string app_pat = 2; + * @return {string} */ -proto.clarifai.api.Visibility.prototype.setGettable = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.clarifai.api.InputsUpload.prototype.getAppPat = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.InputsUpload} returns this + */ +proto.clarifai.api.InputsUpload.prototype.setAppPat = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional Upload upload = 3; + * @return {?proto.clarifai.api.Upload} + */ +proto.clarifai.api.InputsUpload.prototype.getUpload = function() { + return /** @type{?proto.clarifai.api.Upload} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Upload, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Upload|undefined} value + * @return {!proto.clarifai.api.InputsUpload} returns this +*/ +proto.clarifai.api.InputsUpload.prototype.setUpload = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.InputsUpload} returns this + */ +proto.clarifai.api.InputsUpload.prototype.clearUpload = function() { + return this.setUpload(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.InputsUpload.prototype.hasUpload = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional InputIDConflictResolution input_id_conflict_resolution = 4; + * @return {!proto.clarifai.api.InputIDConflictResolution} + */ +proto.clarifai.api.InputsUpload.prototype.getInputIdConflictResolution = function() { + return /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.clarifai.api.InputIDConflictResolution} value + * @return {!proto.clarifai.api.InputsUpload} returns this + */ +proto.clarifai.api.InputsUpload.prototype.setInputIdConflictResolution = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); }; @@ -42122,8 +61531,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TrendingMetric.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TrendingMetric.toObject(opt_includeInstance, this); +proto.clarifai.api.BookmarkOrigin.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.BookmarkOrigin.toObject(opt_includeInstance, this); }; @@ -42132,16 +61541,16 @@ proto.clarifai.api.TrendingMetric.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TrendingMetric} msg The msg instance to transform. + * @param {!proto.clarifai.api.BookmarkOrigin} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TrendingMetric.toObject = function(includeInstance, msg) { +proto.clarifai.api.BookmarkOrigin.toObject = function(includeInstance, msg) { var f, obj = { - userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), appId: jspb.Message.getFieldWithDefault(msg, 2, ""), - objectId: jspb.Message.getFieldWithDefault(msg, 3, ""), - viewCount: jspb.Message.getFieldWithDefault(msg, 4, 0) + userId: jspb.Message.getFieldWithDefault(msg, 3, ""), + resourceType: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -42155,23 +61564,23 @@ proto.clarifai.api.TrendingMetric.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TrendingMetric} + * @return {!proto.clarifai.api.BookmarkOrigin} */ -proto.clarifai.api.TrendingMetric.deserializeBinary = function(bytes) { +proto.clarifai.api.BookmarkOrigin.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TrendingMetric; - return proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.BookmarkOrigin; + return proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TrendingMetric} msg The message object to deserialize into. + * @param {!proto.clarifai.api.BookmarkOrigin} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TrendingMetric} + * @return {!proto.clarifai.api.BookmarkOrigin} */ -proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.BookmarkOrigin.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42180,7 +61589,7 @@ proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function(msg, re switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setUserId(value); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); @@ -42188,11 +61597,11 @@ proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function(msg, re break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setObjectId(value); + msg.setUserId(value); break; case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setViewCount(value); + var value = /** @type {!proto.clarifai.api.BookmarkOrigin.BookmarkType} */ (reader.readEnum()); + msg.setResourceType(value); break; default: reader.skipField(); @@ -42207,9 +61616,9 @@ proto.clarifai.api.TrendingMetric.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TrendingMetric.prototype.serializeBinary = function() { +proto.clarifai.api.BookmarkOrigin.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TrendingMetric.serializeBinaryToWriter(this, writer); + proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42217,13 +61626,13 @@ proto.clarifai.api.TrendingMetric.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TrendingMetric} message + * @param {!proto.clarifai.api.BookmarkOrigin} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TrendingMetric.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.BookmarkOrigin.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserId(); + f = message.getId(); if (f.length > 0) { writer.writeString( 1, @@ -42237,16 +61646,16 @@ proto.clarifai.api.TrendingMetric.serializeBinaryToWriter = function(message, wr f ); } - f = message.getObjectId(); + f = message.getUserId(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getViewCount(); - if (f !== 0) { - writer.writeUint64( + f = message.getResourceType(); + if (f !== 0.0) { + writer.writeEnum( 4, f ); @@ -42255,19 +61664,30 @@ proto.clarifai.api.TrendingMetric.serializeBinaryToWriter = function(message, wr /** - * optional string user_id = 1; + * @enum {number} + */ +proto.clarifai.api.BookmarkOrigin.BookmarkType = { + UNKNOWN: 0, + MODEL: 1, + WORKFLOW: 2, + DATASET: 3, + MODULE: 4 +}; + +/** + * optional string id = 1; * @return {string} */ -proto.clarifai.api.TrendingMetric.prototype.getUserId = function() { +proto.clarifai.api.BookmarkOrigin.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.TrendingMetric} returns this + * @return {!proto.clarifai.api.BookmarkOrigin} returns this */ -proto.clarifai.api.TrendingMetric.prototype.setUserId = function(value) { +proto.clarifai.api.BookmarkOrigin.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; @@ -42276,57 +61696,64 @@ proto.clarifai.api.TrendingMetric.prototype.setUserId = function(value) { * optional string app_id = 2; * @return {string} */ -proto.clarifai.api.TrendingMetric.prototype.getAppId = function() { +proto.clarifai.api.BookmarkOrigin.prototype.getAppId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.TrendingMetric} returns this + * @return {!proto.clarifai.api.BookmarkOrigin} returns this */ -proto.clarifai.api.TrendingMetric.prototype.setAppId = function(value) { +proto.clarifai.api.BookmarkOrigin.prototype.setAppId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string object_id = 3; + * optional string user_id = 3; * @return {string} */ -proto.clarifai.api.TrendingMetric.prototype.getObjectId = function() { +proto.clarifai.api.BookmarkOrigin.prototype.getUserId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.TrendingMetric} returns this + * @return {!proto.clarifai.api.BookmarkOrigin} returns this */ -proto.clarifai.api.TrendingMetric.prototype.setObjectId = function(value) { +proto.clarifai.api.BookmarkOrigin.prototype.setUserId = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional uint64 view_count = 4; - * @return {number} + * optional BookmarkType resource_type = 4; + * @return {!proto.clarifai.api.BookmarkOrigin.BookmarkType} */ -proto.clarifai.api.TrendingMetric.prototype.getViewCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.BookmarkOrigin.prototype.getResourceType = function() { + return /** @type {!proto.clarifai.api.BookmarkOrigin.BookmarkType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TrendingMetric} returns this + * @param {!proto.clarifai.api.BookmarkOrigin.BookmarkType} value + * @return {!proto.clarifai.api.BookmarkOrigin} returns this */ -proto.clarifai.api.TrendingMetric.prototype.setViewCount = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.BookmarkOrigin.prototype.setResourceType = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.Runner.repeatedFields_ = [7]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -42342,8 +61769,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.TimeSegment.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TimeSegment.toObject(opt_includeInstance, this); +proto.clarifai.api.Runner.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Runner.toObject(opt_includeInstance, this); }; @@ -42352,15 +61779,19 @@ proto.clarifai.api.TimeSegment.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TimeSegment} msg The msg instance to transform. + * @param {!proto.clarifai.api.Runner} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TimeSegment.toObject = function(includeInstance, msg) { +proto.clarifai.api.Runner.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: (f = msg.getData()) && proto.clarifai.api.Data.toObject(includeInstance, f), - timeInfo: (f = msg.getTimeInfo()) && proto.clarifai.api.TimeInfo.toObject(includeInstance, f) + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + userId: jspb.Message.getFieldWithDefault(msg, 6, ""), + labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f }; if (includeInstance) { @@ -42374,23 +61805,23 @@ proto.clarifai.api.TimeSegment.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TimeSegment} + * @return {!proto.clarifai.api.Runner} */ -proto.clarifai.api.TimeSegment.deserializeBinary = function(bytes) { +proto.clarifai.api.Runner.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TimeSegment; - return proto.clarifai.api.TimeSegment.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.Runner; + return proto.clarifai.api.Runner.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.TimeSegment} msg The message object to deserialize into. + * @param {!proto.clarifai.api.Runner} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TimeSegment} + * @return {!proto.clarifai.api.Runner} */ -proto.clarifai.api.TimeSegment.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.Runner.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42402,14 +61833,31 @@ proto.clarifai.api.TimeSegment.deserializeBinaryFromReader = function(msg, reade msg.setId(value); break; case 2: - var value = new proto.clarifai.api.Data; - reader.readMessage(value,proto.clarifai.api.Data.deserializeBinaryFromReader); - msg.setData(value); + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; case 3: - var value = new proto.clarifai.api.TimeInfo; - reader.readMessage(value,proto.clarifai.api.TimeInfo.deserializeBinaryFromReader); - msg.setTimeInfo(value); + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 4: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setModifiedAt(value); + break; + case 5: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setMetadata(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setUserId(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addLabels(value); break; default: reader.skipField(); @@ -42424,9 +61872,9 @@ proto.clarifai.api.TimeSegment.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.TimeSegment.prototype.serializeBinary = function() { +proto.clarifai.api.Runner.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TimeSegment.serializeBinaryToWriter(this, writer); + proto.clarifai.api.Runner.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42434,11 +61882,11 @@ proto.clarifai.api.TimeSegment.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TimeSegment} message + * @param {!proto.clarifai.api.Runner} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.TimeSegment.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Runner.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { @@ -42447,20 +61895,49 @@ proto.clarifai.api.TimeSegment.serializeBinaryToWriter = function(message, write f ); } - f = message.getData(); + f = message.getDescription(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCreatedAt(); if (f != null) { writer.writeMessage( - 2, + 3, f, - proto.clarifai.api.Data.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } - f = message.getTimeInfo(); + f = message.getModifiedAt(); if (f != null) { writer.writeMessage( - 3, + 4, f, - proto.clarifai.api.TimeInfo.serializeBinaryToWriter + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getMetadata(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getLabelsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, + f ); } }; @@ -42470,82 +61947,63 @@ proto.clarifai.api.TimeSegment.serializeBinaryToWriter = function(message, write * optional string id = 1; * @return {string} */ -proto.clarifai.api.TimeSegment.prototype.getId = function() { +proto.clarifai.api.Runner.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.TimeSegment} returns this + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeSegment.prototype.setId = function(value) { +proto.clarifai.api.Runner.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** - * optional Data data = 2; - * @return {?proto.clarifai.api.Data} - */ -proto.clarifai.api.TimeSegment.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Data, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.TimeSegment} returns this -*/ -proto.clarifai.api.TimeSegment.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TimeSegment} returns this + * optional string description = 2; + * @return {string} */ -proto.clarifai.api.TimeSegment.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.Runner.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeSegment.prototype.hasData = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.Runner.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional TimeInfo time_info = 3; - * @return {?proto.clarifai.api.TimeInfo} + * optional google.protobuf.Timestamp created_at = 3; + * @return {?proto.google.protobuf.Timestamp} */ -proto.clarifai.api.TimeSegment.prototype.getTimeInfo = function() { - return /** @type{?proto.clarifai.api.TimeInfo} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.TimeInfo, 3)); +proto.clarifai.api.Runner.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** - * @param {?proto.clarifai.api.TimeInfo|undefined} value - * @return {!proto.clarifai.api.TimeSegment} returns this + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeSegment.prototype.setTimeInfo = function(value) { +proto.clarifai.api.Runner.prototype.setCreatedAt = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.TimeSegment} returns this + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeSegment.prototype.clearTimeInfo = function() { - return this.setTimeInfo(undefined); +proto.clarifai.api.Runner.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; @@ -42553,198 +62011,137 @@ proto.clarifai.api.TimeSegment.prototype.clearTimeInfo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.TimeSegment.prototype.hasTimeInfo = function() { +proto.clarifai.api.Runner.prototype.hasCreatedAt = function() { return jspb.Message.getField(this, 3) != null; }; +/** + * optional google.protobuf.Timestamp modified_at = 4; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.clarifai.api.Runner.prototype.getModifiedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)); +}; + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.clarifai.api.Runner} returns this +*/ +proto.clarifai.api.Runner.prototype.setModifiedAt = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeInfo.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.TimeInfo.toObject(opt_includeInstance, this); +proto.clarifai.api.Runner.prototype.clearModifiedAt = function() { + return this.setModifiedAt(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.TimeInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TimeInfo.toObject = function(includeInstance, msg) { - var f, obj = { - numFrames: jspb.Message.getFieldWithDefault(msg, 1, 0), - beginTime: jspb.Message.getFieldWithDefault(msg, 2, 0), - endTime: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.Runner.prototype.hasModifiedAt = function() { + return jspb.Message.getField(this, 4) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.TimeInfo} + * optional google.protobuf.Struct metadata = 5; + * @return {?proto.google.protobuf.Struct} */ -proto.clarifai.api.TimeInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.TimeInfo; - return proto.clarifai.api.TimeInfo.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.Runner.prototype.getMetadata = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.TimeInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.TimeInfo} - */ -proto.clarifai.api.TimeInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNumFrames(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setBeginTime(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setEndTime(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.clarifai.api.Runner} returns this +*/ +proto.clarifai.api.Runner.prototype.setMetadata = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.TimeInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.Runner.prototype.clearMetadata = function() { + return this.setMetadata(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.TimeInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.TimeInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNumFrames(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getBeginTime(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getEndTime(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } +proto.clarifai.api.Runner.prototype.hasMetadata = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional uint32 num_frames = 1; - * @return {number} + * optional string user_id = 6; + * @return {string} */ -proto.clarifai.api.TimeInfo.prototype.getNumFrames = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.Runner.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TimeInfo} returns this + * @param {string} value + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeInfo.prototype.setNumFrames = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.Runner.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); }; /** - * optional uint32 begin_time = 2; - * @return {number} + * repeated string labels = 7; + * @return {!Array} */ -proto.clarifai.api.TimeInfo.prototype.getBeginTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.Runner.prototype.getLabelsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TimeInfo} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeInfo.prototype.setBeginTime = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.Runner.prototype.setLabelsList = function(value) { + return jspb.Message.setField(this, 7, value || []); }; /** - * optional uint32 end_time = 3; - * @return {number} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeInfo.prototype.getEndTime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.Runner.prototype.addLabels = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.TimeInfo} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.Runner} returns this */ -proto.clarifai.api.TimeInfo.prototype.setEndTime = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.Runner.prototype.clearLabelsList = function() { + return this.setLabelsList([]); }; @@ -42753,7 +62150,25 @@ proto.clarifai.api.TimeInfo.prototype.setEndTime = function(value) { */ proto.clarifai.api.DatasetVersionMetricsGroupType = { DATASET_VERSION_METRICS_GROUP_TYPE_NOT_SET: 0, - INPUT_TYPE: 1 + INPUT_TYPE: 2, + CONCEPT_ID: 10, + CONCEPTS_COUNT: 11, + BOUNDING_BOXES_COUNT: 20, + POLYGONS_COUNT: 21, + POINTS_COUNT: 22, + MASKS_COUNT: 23, + PIXELS_COUNT: 30, + ASPECT_RATIO: 31 +}; + +/** + * @enum {number} + */ +proto.clarifai.api.DatasetVersionExportFormat = { + DATASET_VERSION_EXPORT_FORMAT_NOT_SET: 0, + CLARIFAI_DATA_PROTOBUF: 1, + CLARIFAI_DATA_JSON: 3, + COCO: 2 }; /** @@ -42775,6 +62190,18 @@ proto.clarifai.api.LicenseScope = { SEARCH: 3 }; +/** + * @enum {number} + */ +proto.clarifai.api.DataType = { + UNDEFINED: 0, + STRING: 1, + UINT8: 2, + INT32: 3, + INT64: 4, + FP32: 5 +}; + /** * @enum {number} */ @@ -42791,8 +62218,12 @@ proto.clarifai.api.ValueComparator = { * @enum {number} */ proto.clarifai.api.EvaluationType = { - CLASSIFICATION: 0, - DETECTION: 1 + UNDEFINED: 0, + CLASSIFICATION: 1, + DETECTION: 2, + SEGMENTATION: 3, + CLUSTERING: 4, + TRACKER: 5 }; /** @@ -42815,6 +62246,19 @@ proto.clarifai.api.UsageIntervalType = { YEAR: 3 }; +/** + * @enum {number} + */ +proto.clarifai.api.AnnotationDataType = { + ANNOTATION_DATA_TYPE_NOT_SET: 0, + TAG: 1, + BOUNDING_BOX: 2, + POLYGON: 4, + POINT: 8, + SPAN: 16, + MASK: 32 +}; + /** * @enum {number} */ @@ -42854,4 +62298,13 @@ proto.clarifai.api.ValidationErrorType = { FORMAT: 3 }; +/** + * @enum {number} + */ +proto.clarifai.api.InputIDConflictResolution = { + INPUT_ID_CONFLICT_RESOLUTION_NOT_SET: 0, + SKIP: 1, + SUFFIX: 2 +}; + goog.object.extend(exports, proto.clarifai.api); diff --git a/proto/clarifai/api/service.proto b/proto/clarifai/api/service.proto index 8806725..978429f 100644 --- a/proto/clarifai/api/service.proto +++ b/proto/clarifai/api/service.proto @@ -18,7 +18,7 @@ import "google/protobuf/timestamp.proto"; package clarifai.api; -option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api/api"; +option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api"; option java_multiple_files = true; option java_package = "com.clarifai.grpc.api"; option objc_class_prefix = "CAIP"; @@ -28,6 +28,18 @@ option objc_class_prefix = "CAIP"; read this before contributing to this file and other *.proto files for the API. https://cloud.google.com/service-management/reference/rpc/google.api#google.api.HttpRule + + For the cl_depending_scopes in this file, see the docstring that explains the two types of + scope dependencies in clarifai/auth/scope/scope.proto + + For new endpoints you should typically only add the fully qualified url that includes the user_id + and app_id. + + You should typicaly use KeyAuth (the most restricted auth type) for new endpoints unless they are + for resources not contained in an app or need access from things across apps. See more about the + auth types here: + https://clarifai.atlassian.net/wiki/spaces/TT/pages/1821409336/API+Authorizers+and+Resource+Access + */ @@ -46,6 +58,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -58,6 +71,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -69,6 +83,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Delete; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -83,6 +98,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -97,6 +113,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -109,7 +126,22 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + } + + // List models concepts. + rpc ListModelConcepts (ListModelConceptsRequest) returns (MultiConceptResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/concepts" + additional_bindings { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/concepts" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } // Search over the concepts to find one or more you're looking for. @@ -125,6 +157,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // as it needs to know the concepts in your workflow's models. @@ -141,6 +174,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -156,6 +190,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -179,6 +214,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -191,6 +227,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -205,6 +242,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -221,6 +259,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -237,6 +276,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -251,6 +291,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -266,6 +307,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -281,6 +323,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // to get the model for the worker. @@ -295,6 +338,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // to get the model for the worker. @@ -311,6 +355,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -330,6 +375,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -345,6 +391,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -361,6 +408,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -387,6 +435,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -394,7 +443,23 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // Execute a search over annotation + // Patch saved annotations searches by ids. + rpc PatchAnnotationsSearches (PatchAnnotationsSearchesRequest) returns (MultiSearchResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches" + body: "*" + additional_bindings { + patch: "/v2/annotations/searches" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Execute a search over annotations rpc PostAnnotationsSearches(PostAnnotationsSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches" @@ -405,6 +470,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -422,6 +488,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -436,6 +503,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -450,6 +518,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -464,11 +533,25 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; } + // Get a video input manifest. + rpc GetInputVideoManifest (GetVideoManifestRequest) returns (GetVideoManifestResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/{input_id}/video_manifest" + additional_bindings { + get: "/v2/inputs/{input_id}/video_manifest" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + // List all the inputs. rpc ListInputs (ListInputsRequest) returns (MultiInputResponse) { option (google.api.http) = { @@ -478,14 +561,14 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; } - // Add an input (or set of inputs) to an app. - // This call is synchronous if the PostInputsRequest contains exactly one image input. Otherwise, - // it is asynchronous. + // Add 1 or more input to an app. + // The actual inputs processing is asynchronous. rpc PostInputs (PostInputsRequest) returns (MultiInputResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs" @@ -496,6 +579,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -520,6 +604,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -537,6 +622,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -559,6 +645,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -569,7 +656,23 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Execute a search over input + // Patch saved inputs searches by ids. + rpc PatchInputsSearches (PatchInputsSearchesRequest) returns (MultiSearchResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/searches" + body: "*" + additional_bindings { + patch: "/v2/inputs/searches" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Execute a search over inputs rpc PostInputsSearches(PostInputsSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/searches" @@ -580,6 +683,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -607,30 +711,285 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Predict; } + // List all the datasets. + rpc ListDatasets (ListDatasetsRequest) returns (MultiDatasetResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + additional_bindings { + get: "/v2/users/{user_app_id.user_id}/datasets" + } + additional_bindings { + get: "/v2/datasets" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + // Get a specific dataset. + rpc GetDataset (GetDatasetRequest) returns (SingleDatasetResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}" + additional_bindings { + get: "/v2/datasets/{dataset_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + // Add datasets to an app. + // The process is atomic, i.e. either all or no datasets are added. + // If there is an error for one dataset, + // the process will stop, revert the transaction and return the error. + rpc PostDatasets (PostDatasetsRequest) returns (MultiDatasetResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + body: "*" + additional_bindings { + post: "/v2/datasets" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + // Patch one or more datasets. + // The process is atomic, i.e. either all or no datasets are patched. + // If there is an error for one dataset, + // the process will stop, revert the transaction and return the error. + rpc PatchDatasets (PatchDatasetsRequest) returns (MultiDatasetResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + body: "*" + additional_bindings { + patch: "/v2/datasets" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + // Delete one or more datasets in a single request. + rpc DeleteDatasets (DeleteDatasetsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + body: "*" + additional_bindings { + delete: "/v2/datasets" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Delete; + } + // List all the dataset inputs in a dataset. + rpc ListDatasetInputs (ListDatasetInputsRequest) returns (MultiDatasetInputResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs" + additional_bindings { + get: "/v2/datasets/{dataset_id}/inputs" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + } + // Get a specific dataset input. + rpc GetDatasetInput (GetDatasetInputRequest) returns (SingleDatasetInputResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs/{input_id}" + additional_bindings { + get: "/v2/datasets/{dataset_id}/inputs/{input_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + } + // Add dataset inputs to a dataset. + // The process is not atomic, i.e. if there are errors with some dataset + // inputs, others might still be added. The response reports + // - SUCCESS if all dataset inputs were added, + // - MIXED_STATUS if only some dataset inputs were added, and + // - FAILURE if no dataset inputs were added. + // Each individual dataset input in the response has the status set to + // indicate if it was successful or if there was an error. + rpc PostDatasetInputs (PostDatasetInputsRequest) returns (MultiDatasetInputResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs" + body: "*" + additional_bindings { + post: "/v2/datasets/{dataset_id}/inputs" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + } + // Delete one or more dataset inputs in a single request. + rpc DeleteDatasetInputs (DeleteDatasetInputsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs" + body: "*" + additional_bindings { + delete: "/v2/datasets/{dataset_id}/inputs" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + // List all the dataset versions. + rpc ListDatasetVersions (ListDatasetVersionsRequest) returns (MultiDatasetVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" + additional_bindings { + get: "/v2/datasets/{dataset_id}/versions" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + // Get a specific dataset version. + rpc GetDatasetVersion (GetDatasetVersionRequest) returns (SingleDatasetVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions/{dataset_version_id}" + additional_bindings { + get: "/v2/datasets/{dataset_id}/versions/{dataset_version_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + rpc ListDatasetVersionMetricsGroups (ListDatasetVersionMetricsGroupsRequest) returns (MultiDatasetVersionMetricsGroupResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions/{dataset_version_id}/metrics" + additional_bindings { + get: "/v2/datasets/{dataset_id}/versions/{dataset_version_id}/metrics" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + // Add dataset versions to a dataset. + rpc PostDatasetVersions (PostDatasetVersionsRequest) returns (MultiDatasetVersionResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" + body: "*" + additional_bindings { + post: "/v2/datasets/{dataset_id}/versions" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + } + // Patch one or more dataset versions. + rpc PatchDatasetVersions (PatchDatasetVersionsRequest) returns (MultiDatasetVersionResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" + body: "*" + additional_bindings { + patch: "/v2/datasets/{dataset_id}/versions" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + } + // Delete one or more dataset versions in a single request. + rpc DeleteDatasetVersions (DeleteDatasetVersionsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" + body: "*" + additional_bindings { + delete: "/v2/datasets/{dataset_id}/versions" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Delete; + } - - - - + // Create export of a dataset version. + rpc PutDatasetVersionExports (PutDatasetVersionExportsRequest) returns (MultiDatasetVersionExportResponse) { + option (google.api.http) = { + put: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions/{dataset_version_id}/exports" + body: "*" + additional_bindings { + put: "/v2/datasets/{dataset_id}/versions/{dataset_version_id}/exports" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + } //////////////////////////////////////// @@ -646,6 +1005,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -667,6 +1027,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -679,6 +1040,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -699,6 +1061,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -715,11 +1078,27 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } + // List the resource counts for the app. + rpc GetResourceCounts (GetResourceCountsRequest) returns (GetResourceCountsResponse){ + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/resource_counts" + additional_bindings { + get: "/v2/resource_counts" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + } // Search over the models to find one or more you're looking for. // This leverage the "body" parameter because we also have page and @@ -734,6 +1113,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -749,6 +1129,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; @@ -767,12 +1148,25 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Train; } + // Patch one or more models ids. + rpc PatchModelIds (PatchModelIdsRequest) returns (MultiModelResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/ids" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + } + // Delete a single model. rpc DeleteModel (DeleteModelRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { @@ -782,6 +1176,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; @@ -800,6 +1195,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; @@ -807,7 +1203,20 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - + // Update model check consents + rpc PatchModelCheckConsents (PatchModelCheckConsentsRequest) returns (MultiModelCheckConsentResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/check_consents" + body: "*" + additional_bindings { + patch: "/v2/models/{model_id}/check_consents" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + } // Update model toolkits tags rpc PatchModelToolkits (PatchModelToolkitsRequest) returns (MultiModelToolkitResponse) { @@ -820,6 +1229,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -834,6 +1244,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -848,6 +1259,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -866,6 +1278,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -881,6 +1294,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -894,8 +1308,55 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + } + + rpc PostWorkflowVersionsUnPublish (PostWorkflowVersionsUnPublishRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/unpublish" + body: "*" + additional_bindings { + post: "/v2/workflows/{workflow_id}/unpublish" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = WorkflowPublications_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; + } + + rpc PostWorkflowVersionsPublish (PostWorkflowVersionsPublishRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/publish" + body: "*" + additional_bindings { + post: "/v2/workflows/{workflow_id}/publish" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = WorkflowPublications_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } // PostModelVersionsPublish @@ -909,6 +1370,8 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = ModelVersionPublications_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -931,6 +1394,8 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = ModelVersionPublications_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -956,6 +1421,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -974,6 +1440,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; @@ -989,6 +1456,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; @@ -996,6 +1464,7 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } + // Deprecated: Use GetEvaluation instead // Get the evaluation metrics for a model version. rpc GetModelVersionMetrics (GetModelVersionMetricsRequest) returns (SingleModelVersionResponse) { option (google.api.http) = { @@ -1005,6 +1474,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; @@ -1012,6 +1482,7 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } + // Deprecated, use PostEvaluations instead // Run the evaluation metrics for a model version. rpc PostModelVersionMetrics (PostModelVersionMetricsRequest) returns (SingleModelVersionResponse) { option (google.api.http) = { @@ -1023,6 +1494,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -1035,6 +1507,124 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } + // Deprecated, use PostEvaluations instead + rpc PostModelVersionEvaluations (PostModelVersionEvaluationsRequest) returns (MultiEvalMetricsResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/evaluations" + body: "*" + additional_bindings { + post: "/v2/models/{model_id}/versions/{model_version_id}/evaluations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; + } + + // Deprecated, use GetEvaluation instead + // List the evaluation metrics for a model version. + rpc ListModelVersionEvaluations (ListModelVersionEvaluationsRequest) returns (MultiEvalMetricsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/evaluations" + additional_bindings { + get: "/v2/models/{model_id}/versions/{model_version_id}/evaluations" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + } + + // Deprecated, use GetEvaluation instead + // Get an evaluation metrics for a model version. + rpc GetModelVersionEvaluation (GetModelVersionEvaluationRequest) returns (SingleEvalMetricsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/evaluations/{evaluation_id}" + additional_bindings { + get: "/v2/models/{model_id}/versions/{model_version_id}/evaluations/{evaluation_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + } + + rpc PostEvaluations (PostEvaluationsRequest) returns (MultiEvalMetricsResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/evaluations" + body: "*" + additional_bindings { + post: "/v2/evaluations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; + } + + rpc ListEvaluations (ListEvaluationsRequest) returns (MultiEvalMetricsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/evaluations" + additional_bindings { + get: "/v2/users/{user_app_id.user_id}/evaluations" + } + additional_bindings { + get: "/v2/evaluations" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + } + + rpc GetEvaluation (GetEvaluationRequest) returns (SingleEvalMetricsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/evaluations/{evaluation_id}" + additional_bindings { + get: "/v2/evaluations/{evaluation_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + } + // Lists model references tied to a particular model id. rpc ListModelReferences (ListModelReferencesRequest) returns (MultiModelReferenceResponse) { option (google.api.http) = { @@ -1044,6 +1634,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -1058,6 +1649,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -1070,6 +1662,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } @@ -1083,6 +1676,10 @@ service V2 { + + + + //////////////////////////////////////// //////////////////////////////////////// @@ -1098,6 +1695,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } @@ -1114,6 +1712,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } @@ -1130,6 +1729,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; @@ -1146,11 +1746,24 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } + // Patch one or more workflows ids. + rpc PatchWorkflowIds (PatchWorkflowIdsRequest) returns (MultiWorkflowResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/ids" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + } + // Delete a single workflow. rpc DeleteWorkflow (DeleteWorkflowRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { @@ -1160,6 +1773,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; @@ -1176,6 +1790,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; @@ -1196,6 +1811,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Predict; @@ -1217,6 +1833,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Predict; @@ -1232,53 +1849,57 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } // Get single workflow version. rpc GetWorkflowVersion (GetWorkflowVersionRequest) returns (SingleWorkflowVersionResponse) { - option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{workflow_version_id}" - additional_bindings { - get: "/v2/workflows/{workflow_id}/versions/{workflow_version_id}" - } - }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{workflow_version_id}" + additional_bindings { + get: "/v2/workflows/{workflow_id}/versions/{workflow_version_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } // Delete workflow versions. rpc DeleteWorkflowVersions (DeleteWorkflowVersionsRequest) returns (clarifai.api.status.BaseResponse) { - option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" + body: "*" + additional_bindings { + delete: "/v2/workflows/{workflow_id}/versions" body: "*" - additional_bindings { - delete: "/v2/workflows/{workflow_id}/versions" - body: "*" - } - }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; } // Patch workflow versions. rpc PatchWorkflowVersions (PatchWorkflowVersionsRequest) returns (MultiWorkflowVersionResponse) { - option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" + body: "*" + additional_bindings { + patch: "/v2/workflows/{workflow_id}/versions" body: "*" - additional_bindings { - patch: "/v2/workflows/{workflow_id}/versions" - body: "*" - } - }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; } @@ -1310,6 +1931,7 @@ service V2 { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/keys" }; option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; } @@ -1451,6 +2073,29 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; } + // Patch apps ids. + rpc PatchAppsIds (PatchAppsIdsRequest) returns (MultiAppResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/ids" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + } + + // Patch one app. + rpc PatchApp (PatchAppRequest) returns (SingleAppResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + } + + // Search over the applications to find one or more you're looking for. rpc PostAppsSearches (PostAppsSearchesRequest) returns (MultiAppResponse) { option (google.api.http) = { @@ -1462,6 +2107,13 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } + // Get user information + rpc GetUser (GetUserRequest) returns (SingleUserResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + } @@ -1530,7 +2182,8 @@ service V2 { - // Get a saved search. + + // Get a saved legacy search. rpc GetSearch (GetSearchRequest) returns (SingleSearchResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" @@ -1539,10 +2192,11 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // List all saved searches. + // List all saved legacy searches. rpc ListSearches (ListSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" @@ -1551,10 +2205,29 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Patch saved legacy searches by ids. + rpc PatchSearches (PatchSearchesRequest) returns (MultiSearchResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" + body: "*" + additional_bindings { + patch: "/v2/searches" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } // Execute a new search and optionally save it. + // + // Deprecated: Use PostInputsSearches or PostAnnotationsSearches instead. rpc PostSearches (PostSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" @@ -1565,6 +2238,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -1572,9 +2246,10 @@ service V2 { // option (clarifai.auth.util.cl_depending_scopes) = Predict; // optional option (clarifai.auth.util.cl_depending_scopes) = Search; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // to know the concepts and models in your default workflow. + option deprecated = true; } - // Execute a previously saved search. + // Execute a previously saved legacy search. rpc PostSearchesByID (PostSearchesByIDRequest) returns (MultiSearchResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" @@ -1585,6 +2260,8 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; option (clarifai.auth.util.cl_depending_scopes) = Search; } @@ -1599,6 +2276,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -1617,6 +2295,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -1634,6 +2313,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -1649,6 +2329,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; option (clarifai.auth.util.cl_depending_scopes) = Metrics_Delete; @@ -1663,9 +2344,86 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Delete; + } + + + // List all the annotation filters. + rpc ListAnnotationFilters (ListAnnotationFiltersRequest) returns (MultiAnnotationFilterResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" + additional_bindings { + get: "/v2/annotation_filters" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Get a specific annotation filter. + rpc GetAnnotationFilter (GetAnnotationFilterRequest) returns (SingleAnnotationFilterResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters/{annotation_filter_id}" + additional_bindings { + get: "/v2/annotation_filters/{annotation_filter_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Add annotation filters. + rpc PostAnnotationFilters (PostAnnotationFiltersRequest) returns (MultiAnnotationFilterResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" + body: "*" + additional_bindings { + post: "/v2/annotation_filters" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + } + + // Patch one or more annotation filters. + rpc PatchAnnotationFilters (PatchAnnotationFiltersRequest) returns (MultiAnnotationFilterResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" + body: "*" + additional_bindings { + patch: "/v2/annotation_filters" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; } + // Delete one or more annotation filters in a single request. + rpc DeleteAnnotationFilters (DeleteAnnotationFiltersRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" + body: "*" + additional_bindings { + delete: "/v2/annotation_filters" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + } @@ -1720,12 +2478,15 @@ service V2 { + + // owner list users who the app is shared with rpc ListCollaborators (ListCollaboratorsRequest) returns (MultiCollaboratorsResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; } @@ -1736,6 +2497,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; } @@ -1747,6 +2509,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Delete; @@ -1759,6 +2522,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Delete; @@ -1786,6 +2550,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Train; @@ -1804,7 +2569,7 @@ service V2 { option (google.api.http) = { get : "/v2/users/{user_app_id.user_id}/duplications" }; - option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; + option (clarifai.auth.util.cl_auth_type) = PATAuth; } // get the app duplication status @@ -1812,7 +2577,7 @@ service V2 { option (google.api.http) = { get : "/v2/users/{user_app_id.user_id}/duplications/{app_duplication_id}" }; - option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; + option (clarifai.auth.util.cl_auth_type) = PATAuth; } // Add tasks to an app. @@ -1826,10 +2591,12 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids @@ -1847,6 +2614,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; } @@ -1859,6 +2627,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; } @@ -1871,8 +2640,9 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids @@ -1887,8 +2657,9 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids @@ -1905,10 +2676,11 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids @@ -1928,11 +2700,18 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Delete; } + + + //////////////////////////////////////// + // Label Order + //////////////////////////////////////// + // Add Label orders. rpc PostLabelOrders (PostLabelOrdersRequest) returns (MultiLabelOrderResponse) { option (google.api.http) = { @@ -1943,21 +2722,20 @@ service V2 { body: "*" } }; - option (clarifai.auth.util.cl_private_rpc) = false; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids } - - // Get a label order. rpc GetLabelOrder (GetLabelOrderRequest) returns (SingleLabelOrderResponse) { option (google.api.http) = { @@ -1966,8 +2744,9 @@ service V2 { get: "/v2/label_orders/{label_order_id}" } }; - option (clarifai.auth.util.cl_private_rpc) = false; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; // needed because task is embedded @@ -1981,8 +2760,9 @@ service V2 { get: "/v2/label_orders" } }; - option (clarifai.auth.util.cl_private_rpc) = false; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; // needed because task is embedded @@ -1998,8 +2778,9 @@ service V2 { body: "*" } }; - option (clarifai.auth.util.cl_private_rpc) = false; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -2019,8 +2800,9 @@ service V2 { body: "*" } }; - option (clarifai.auth.util.cl_private_rpc) = false; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Delete; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; @@ -2044,6 +2826,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -2065,6 +2848,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; } @@ -2077,6 +2861,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; } @@ -2091,6 +2876,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; } @@ -2109,6 +2895,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; option (clarifai.auth.util.cl_depending_scopes) = Collectors_Delete; option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; @@ -2138,6 +2925,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; } @@ -2175,48 +2963,646 @@ service V2 { + // Get a specific module from an app. + rpc GetModule (GetModuleRequest) returns (SingleModuleResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + // List all the modules in community, by user or by app. + rpc ListModules (ListModulesRequest) returns (MultiModuleResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + additional_bindings { + get: "/v2/users/{user_app_id.user_id}/modules" + } + additional_bindings { + get: "/v2/modules" + } + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + // Add a modules to an app. + rpc PostModules (PostModulesRequest) returns (MultiModuleResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + // Patch one or more modules. + rpc PatchModules (PatchModulesRequest) returns (MultiModuleResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + // Delete multiple modules in one request. + rpc DeleteModules (DeleteModulesRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; // Needed to cascade delete to IMV + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + } + // Get a specific module version for a module. + rpc GetModuleVersion (GetModuleVersionRequest) returns (SingleModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions/{module_version_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + // List all the modules versions for a given module. + rpc ListModuleVersions (ListModuleVersionsRequest) returns (MultiModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + // Create a new module version to trigger training of the module. + rpc PostModuleVersions (PostModuleVersionsRequest) returns (MultiModuleVersionResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + // Delete a multiple module version. + rpc DeleteModuleVersions (DeleteModuleVersionsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; // Needed to cascade delete to IMV + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + } + // Get installed modules vesrions for an app. + rpc GetInstalledModuleVersion (GetInstalledModuleVersionRequest) returns (SingleInstalledModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions/{installed_module_version_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + // List installed modules vesrions for an app. + rpc ListInstalledModuleVersions (ListInstalledModuleVersionsRequest) returns (MultiInstalledModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + // Install a new module version which will deploy the specific ModuleVersion to the app in the url. + rpc PostInstalledModuleVersions (PostInstalledModuleVersionsRequest) returns (MultiInstalledModuleVersionResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; // since adding Keys needs that. + } + // Uninstall an installed module version which will deploy the specific ModuleVersion to the app + // in the url. + // This cleaned up any associated caller keys so needs the Keys_Delete scope. + rpc DeleteInstalledModuleVersions (DeleteInstalledModuleVersionsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + // Assign a key that the caller owns to be used when accessing this installed module version + // If this endpoint is called with a different key then it overwrites what is there. + rpc PostInstalledModuleVersionsKey (PostInstalledModuleVersionsKeyRequest) returns (SingleKeyResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions/{installed_module_version_id}/key" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; // since adding Keys needs that. + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } -} - - -// Split the results into pages. -message Pagination { - // (optional URL parameter) The page number. Pagination is used to split the results into chunks. Defaults to 1. - uint32 page = 1; - // (optional URL parameter) The number of results that will be contained in each page. Defaults to 128. - uint32 per_page = 2; -} + // Perform bulk operations on a list of inputs based on input source. + // Operation include add, update, delete of concepts, metadata and geo data. + // This is an Asynchronous process. Use ListBulkOperations or GetBulkOperation to check the status. + rpc PostBulkOperations (PostBulkOperationsRequest) returns (MultiBulkOperationsResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + body: "*" + additional_bindings { + post: "/v2/bulk_operations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; + } -// GetAnnotationRequest -message GetAnnotationRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - string annotation_id = 2; - string input_id = 3; -} + // List all the bulk operations + rpc ListBulkOperations (ListBulkOperationsRequest) returns (MultiBulkOperationsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + additional_bindings { + get: "/v2/bulk_operations" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + } -// ListAnnotationsRequest -message ListAnnotationsRequest { - reserved 4; + // Get the bulk operation details by ID + rpc GetBulkOperation (GetBulkOperationRequest) returns (SingleBulkOperationsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations/{id}" + additional_bindings { + get: "/v2/bulk_operations/{id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + } - clarifai.api.UserAppIDSet user_app_id = 1; + // Cancel one or more bulk operations + rpc CancelBulkOperations (CancelBulkOperationRequest) returns (MultiBulkOperationsResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + body: "*" + additional_bindings { + patch: "/v2/bulk_operations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Add; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + } - // List annotations for these IDs - repeated string ids = 2; + // delete one or more terminated bulk operations + rpc DeleteBulkOperations (DeleteBulkOperationRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + body: "*" + additional_bindings { + delete: "/v2/bulk_operations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Add; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Delete; + } - // List annotations for these Input IDs + // Get a specific job. + rpc GetDatasetInputsSearchAddJob (GetDatasetInputsSearchAddJobRequest) returns (SingleDatasetInputsSearchAddJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/inputs/search_add/jobs/{job_id}" + additional_bindings { + get: "/v2/datasets/inputs/search_add/jobs/{job_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + } + + // List next non-labeled and unassigned inputs from task's dataset + rpc ListNextTaskAssignments (ListNextTaskAssignmentsRequest) returns (MultiInputResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/assignments" + additional_bindings { + get: "/v2/tasks/{task_id}/assignments" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + } + + // PutTaskAssignments evaluates all the annotations by labeler (authenticated user) for given task (task_id) and input (input_id). + rpc PutTaskAssignments (PutTaskAssignmentsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + put: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/assignments" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + } + + + + // List all the inputs add jobs + rpc ListInputsAddJobs (ListInputsAddJobsRequest) returns (MultiInputsAddJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/add" + additional_bindings { + get: "/v2/inputs/jobs/add" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // Get the input add job details by ID + rpc GetInputsAddJob (GetInputsAddJobRequest) returns (SingleInputsAddJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/add/{id}" + additional_bindings { + get: "/v2/inputs/jobs/add/{id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // cancel the input add job by ID + rpc CancelInputsAddJob (CancelInputsAddJobRequest) returns (SingleInputsAddJobResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/add/{id}" + body: "*" + additional_bindings { + patch: "/v2/inputs/jobs/add/{id}" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + rpc PostUploads (PostUploadsRequest) returns (MultiUploadResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads" + body: "*" + additional_bindings { + post: "/v2/uploads" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + // Upload a part of a multipart upload. + // Behaviour on completion depends on the endpoint that was used to initiate the upload. + rpc PutUploadContentParts (PutUploadContentPartsRequest) returns (SingleUploadResponse) { + option (google.api.http) = { + put: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads/{upload_id}/content_parts" + additional_bindings { + put: "/v2/uploads/{upload_id}/content_parts" + } + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + rpc GetUpload (GetUploadRequest) returns (SingleUploadResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads/{upload_id}" + additional_bindings { + get: "/v2/uploads/{upload_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + rpc ListUploads (ListUploadsRequest) returns (MultiUploadResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads" + additional_bindings { + get: "/v2/uploads" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + rpc DeleteUploads (DeleteUploadsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads" + body: "*" + additional_bindings { + delete: "/v2/uploads" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Delete; + } + + // Initiates retrieval of inputs from cloud storage from a user provided data source. + // Will create and return an inputs-add-job for tracking progress. + // Archives will be extracted and their contents will be processed as inputs. + // + // The cloud URL will be treated as a filter prefix. For example s3:/bucket/images_folder/abc will process + // files in the images_folder beginning with abc or in a subfolder beginning with abc. + // For example: + // bucket/images_folder/abcImage.png + // bucket/images_folder/abc-1/Data.zip + // + // If given URL is for a private bucket or file, then credentials should be provided to access the bucket. + // Credentials should include rights to list the objects in the bucket, except when pointed directly at a file archive, + // in which case it only requires rights to access that particular file. + rpc PostInputsDataSources (PostInputsDataSourcesRequest) returns (MultiInputsAddJobResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/data_sources" + body: "*" + additional_bindings { + post: "/v2/inputs/data_sources" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + } + + // Get the input extraction job details by ID + rpc GetInputsExtractionJob (GetInputsExtractionJobRequest) returns (SingleInputsExtractionJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/extraction/{inputs_extraction_job_id}" + additional_bindings { + get: "/v2/inputs/jobs/extraction/{inputs_extraction_job_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // List all the input extraction jobs + rpc ListInputsExtractionJobs (ListInputsExtractionJobsRequest) returns (MultiInputsExtractionJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/extraction" + additional_bindings { + get: "/v2/inputs/jobs/extraction" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + rpc CancelInputsExtractionJobs (CancelInputsExtractionJobsRequest) returns (MultiInputsExtractionJobResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/extraction" + body: "*" + additional_bindings { + patch: "/v2/inputs/jobs/extraction" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // Start uploading a file archive containing inputs. + // Will create and return an inputs-add-job for tracking progress. + // + // Associated inputs-add-job contains an upload id which should be completed through `PutUploadContentParts` endpoint. + // Completing the upload will automatically begin unpacking the archive and uploading the contents as inputs. + rpc PostInputsUploads (PostInputsUploadsRequest) returns (MultiInputsAddJobResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/uploads" + body: "*" + additional_bindings { + post: "/v2/inputs/uploads" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + + + // Get a specific runner from an app. + rpc GetRunner (GetRunnerRequest) returns (SingleRunnerResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/runners/{runner_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + } + + // List all the runners in community, by user or by app. + rpc ListRunners (ListRunnersRequest) returns (MultiRunnerResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/runners" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + } + + // Add a runners to an app. + rpc PostRunners (PostRunnersRequest) returns (MultiRunnerResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/runners" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Add; + } + + // Delete multiple runners in one request. + rpc DeleteRunners (DeleteRunnersRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/runners" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Add; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Delete; + } + + // List items for the remote runner to work on. + rpc ListRunnerItems (ListRunnerItemsRequest) returns (MultiRunnerItemResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/runners/{runner_id}/items" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = RunnerItems_Get; + } + + // Post back outputs from remote runners + rpc PostRunnerItemOutputs (PostRunnerItemOutputsRequest) returns (MultiRunnerItemOutputResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/runners/{runner_id}/items/{item_id}/outputs" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = RunnerItems_Get; + option (clarifai.auth.util.cl_depending_scopes) = RunnerItems_Add; + }} + + + + + + +// Split the results into pages. +message Pagination { + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. Defaults to 1. + uint32 page = 1; + // (optional URL parameter) The number of results that will be contained in each page. Defaults to 128. + uint32 per_page = 2; +} + +// GetAnnotationRequest +message GetAnnotationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string annotation_id = 2; + string input_id = 3; +} + +// ListAnnotationsRequest +message ListAnnotationsRequest { + reserved 4; + + clarifai.api.UserAppIDSet user_app_id = 1; + + // List annotations for these IDs + repeated string ids = 2; + + // List annotations for these Input IDs // Note that 'ids' are optional but if the are provided the number and order in // 'ids' and 'input_ids' should match // If you do not specify 'ids' all the annotations for 'input_ids' are returned @@ -2246,6 +3632,10 @@ message ListAnnotationsRequest { // Set this flag to list both trusted and not trusted annotations // by default it's listing only trusted annotations bool list_all_annotations = 6; + + // Set this flag to return the model output for model annotations in the response. + bool return_model_output = 12; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. // Defaults to 1. uint32 page = 7; @@ -2273,6 +3663,11 @@ message PatchAnnotationsRequest { // The action to perform on the patched objects // For now actions 'merge', 'overwrite', and 'remove' are supported string action = 3; + + // If the request is a "remove" action and the annotation is left with empty data, + // then setting delete_if_empty_data to true will delete the annotation, + // if possible (for example, will not delete an input-level annotation). + bool delete_if_empty_data = 4; } // PatchAnnotationsStatusRequest @@ -2356,8 +3751,12 @@ message ListAppsRequest { // Whether to order by the name bool sort_by_name = 6; // Whether to order by the modified_at time. - // If neither sort option is set to true, will sort by modified_at. + // If none of the sort options is set to true, will sort by modified_at. bool sort_by_modified_at = 7; + // Whether to order by the created_at time. + bool sort_by_created_at = 12; + // Whether to order by the number of users stared the app + bool sort_by_star_count = 13; } // Filtering options: @@ -2401,11 +3800,40 @@ message PatchAppsRequest { bool reindex = 5; } -// Search over the available applications. -message PostAppsSearchesRequest { +// PatchAppRequest +message PatchAppRequest { clarifai.api.UserAppIDSet user_app_id = 1; - // The body of the request. - AppQuery app_query = 2; + App app = 2; + + // The action to perform on the patched App object except App.Metadata + // For now only action 'overwrite' is supported + string action = 3; + + // The action to perform on the patched App.Metadata + clarifai.api.PatchAction metadata_action = 4; + + // If set, the app will be automatically reindexed upon change of its base workflow. + bool reindex = 5; +} + + +// PatchAppsIdsRequest +message PatchAppsIdsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Array containing 1 entry + repeated IdUpdateSource ids = 3; + + // The action to perform on the patched objects + // Only 'overwrite' is supported + string action = 4; +} + +// Search over the available applications. +message PostAppsSearchesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // The body of the request. + AppQuery app_query = 2; // Pagination parameters here since there are no url args in this // POST request. Pagination pagination = 3; @@ -2429,6 +3857,12 @@ message ListCollaboratorsRequest { // Set this flag to list both deleted and not deleted collaborators // by default it's listing only not deleted collaborators bool list_all_collaborators = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; } // PostCollaboratorsRequest @@ -2549,6 +3983,22 @@ message ListConceptsRequest { uint32 per_page = 3; } +// ListModelConceptsRequest +message ListModelConceptsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Model id + string model_id = 2; + // Model version Id. Optional, if not provided latest model version is used. + string version_id = 3; + + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 4; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 5; +} + // PostConceptsSearchesRequest message PostConceptsSearchesRequest { // Ids present in the url of the request. @@ -2798,6 +4248,10 @@ message MultiConceptLanguageResponse { message GetInputRequest { clarifai.api.UserAppIDSet user_app_id = 1; string input_id = 2; +}// GetInputRequest +message GetVideoManifestRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string input_id = 2; } // GetInputSamplesRequest @@ -2832,7 +4286,9 @@ message StreamInputsRequest { uint32 per_page = 2; string last_id = 3; - + // By default, the endpoint return inputs by the time when it is added. + // If this is set to true, we will return inputs by id. + bool order_by_id = 5; bool descending = 4; } @@ -2846,6 +4302,15 @@ message PostInputsRequest { // * data // * dataset_ids repeated Input inputs = 2; + + // Collect statistics about created inputs in job with given ID. + // * If job ID is empty, then job is not created. + // * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID. + // * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics. + string inputs_add_job_id = 3; + + // How to handle input ID conflicts. + InputIDConflictResolution input_id_conflict_resolution = 4; } @@ -2887,11 +4352,22 @@ message SingleInputResponse { Input input = 2; } +message GetVideoManifestResponse { + clarifai.api.status.Status status = 1; + + // MPEG-dash manifest as data-URI, base64-encoded + // Can be empty if status is FAILED + // Can be fallback manifest if status is MIXED_STATUS + string manifest_url = 2; +} + // MultiInputResponse message MultiInputResponse { clarifai.api.status.Status status = 1; repeated Input inputs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + + InputsAddJob inputs_add_job = 3; } // MultiInputAnnotationResponse @@ -2913,34 +4389,278 @@ message GetInputCountRequest { clarifai.api.UserAppIDSet user_app_id = 1; } +// ListDatasetsRequest +message ListDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; + bool starred_only = 4; + repeated string additional_fields = 5; + // Sorting opitons: + // Whether to sort in ascending order. If false, will order in descending order. + bool sort_ascending = 6; + oneof sort_by { + // Whether to order by the created_at time. + bool sort_by_created_at = 7; + // Whether to order by the number of users stared the app + bool sort_by_star_count = 8; + // If neither sort option is set to true, will sort by modified_at. + bool sort_by_modified_at = 9; + } + // Filter datasets by bookmark. If set, only return bookmarked datasets. Otherwise none bookmarked datasets only. + bool bookmark = 10; +} + +// GetDatasetRequest +message GetDatasetRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + repeated string additional_fields = 3; +} + +// Request to add one or more datasets. +message PostDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // List of datasets that are requested to be added. + repeated Dataset datasets = 2; +} + +// Request to patch several datasets. +message PatchDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // List of datasets that are requested to be updated. + repeated Dataset datasets = 2; + + // The action to perform on the patched objects + // Supported values: 'overwrite' and 'merge' + string action = 3; +} + +// Request to delete several datasets by list of ids. +message DeleteDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string dataset_ids = 2; +} + +// MultiDatasetResponse +message MultiDatasetResponse { + clarifai.api.status.Status status = 1; + repeated Dataset datasets = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// SingleDatasetResponse +message SingleDatasetResponse { + clarifai.api.status.Status status = 1; + Dataset dataset = 2; +} + +// ListDatasetInputsRequest +message ListDatasetInputsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; +} + +// GetDatasetInputRequest +message GetDatasetInputRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + + // Identify dataset input by id. + string input_id = 3; +} + +// Request to add one or more datasets. +message PostDatasetInputsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + + // List of inputs that are requested to be added to this dataset. + // Identify each input by id field. All other inputs fields are ignored. + repeated DatasetInput dataset_inputs = 3; + + // Query to search inputs to be added to this dataset. + Search search = 4; +} + +// Request to delete several dataset inputs by list of ids. +message DeleteDatasetInputsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + + // Specify which inputs to delete from dataset. + repeated string input_ids = 3; +} + +// MultiDatasetInputResponse +message MultiDatasetInputResponse { + clarifai.api.status.Status status = 1; + repeated DatasetInput dataset_inputs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + DatasetInputsSearchAddJob dataset_inputs_search_add_job = 3; +} + +// SingleDatasetInputResponse +message SingleDatasetInputResponse { + clarifai.api.status.Status status = 1; + DatasetInput dataset_input = 2; +} + +// ListDatasetVersionsRequest +message ListDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; +} + +// GetDatasetVersionRequest +message GetDatasetVersionRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + + // Identify dataset version by id. + string dataset_version_id = 3; +} + +// ListDatasetVersionMetricsGroupsRequest +message ListDatasetVersionMetricsGroupsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // Identify dataset version by id. + string dataset_version_id = 3; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 4; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 5; + // Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter. + repeated string parent_paths = 6; + // Filter by parent type. Multiple types are OR-ed. Empty list results in no filter. + repeated DatasetVersionMetricsGroupType types = 7; + // Filter by value. Multiple values are OR-ed. Empty list results in no filter. + repeated google.protobuf.Value values = 8; +} +// Request to add one or more dataset versions. +message PostDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // List of dataset versions that are requested to be added. + repeated DatasetVersion dataset_versions = 3; +} +// Request to patch several dataset versions. +message PatchDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // List of dataset versions that are requested to be updated. + repeated DatasetVersion dataset_versions = 3; + // The action to perform on the patched objects + // For now, only 'overwrite' action is supported + string action = 4; +} +// Request to delete several dataset versions by list of ids. +message DeleteDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + repeated string dataset_version_ids = 3; +} +// Request to create exports of a dataset version. +message PutDatasetVersionExportsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // Identify dataset version by id. + string dataset_version_id = 3; + // exports is the list of requested dataset version exports. + // Only setting the 'format' field of the export is supported. + repeated DatasetVersionExport exports = 4; +} +message MultiDatasetVersionResponse { + clarifai.api.status.Status status = 1; + repeated DatasetVersion dataset_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message MultiDatasetVersionExportResponse { + clarifai.api.status.Status status = 1; + repeated DatasetVersionExport exports = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message MultiDatasetVersionMetricsGroupResponse { + clarifai.api.status.Status status = 1; + repeated DatasetVersionMetricsGroup dataset_version_metrics_groups = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message SingleDatasetVersionResponse { + clarifai.api.status.Status status = 1; + DatasetVersion dataset_version = 2; +} +message GetDatasetInputsSearchAddJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string job_id = 2; +} +message SingleDatasetInputsSearchAddJobResponse { + clarifai.api.status.Status status = 1; + DatasetInputsSearchAddJob job = 2; +} //////////////////////////////////////////////////// // Model prediction related stuff needs inputs and produces outputs. @@ -2984,6 +4704,9 @@ message ListKeysRequest { // (optional URL parameter) The number of results that will be contained in each page. Defaults // to 128. uint32 per_page = 3; + bool not_expired = 4; + repeated string scopes = 5; + repeated string endpoints = 6; } // ListAppKeysRequest @@ -3048,7 +4771,7 @@ message GetModelRequest { string version_id = 3; string language = 4; bool trained_before = 5; - // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets repeated string additional_fields = 19; } @@ -3072,16 +4795,21 @@ message ListModelsRequest { // Whether to order by the number of training inputs bool sort_by_num_inputs = 12; // Whether to order by the modified_at time of the latest model version. - // If neither sort option is set to true, will sort by modified_at. + // If none of the sort options is set to true, will sort by modified_at. bool sort_by_modified_at = 13; + // Whether to order by the created_at + bool sort_by_created_at = 24; + // Whether to order by count of stars + bool sort_by_star_count = 25; } // Filtering options: // Query name, description and id fields, that can contain the words in the query string. Does NOT support wildcards - full words only. Supports operators "OR" and "-" as NOT. string query = 14; - // Filter by the name, description and id of the model. This supports wildcard queries like "gen*" to match "general" as an example. - // Deprecated in favor of query - string name = 5 [deprecated = true]; + // Filter by the description and id of the model. This supports wildcard queries like "gen*" to match "general" as an example. + string name = 5; + // Extends the name filter to include the user_id of the application owner that the model belongs to. + bool filter_by_user_id = 22; // Filter models by the specific model_type_id. See ListModelTypes for the list of ModelType.Id's // supported. string model_type_id = 6; @@ -3105,8 +4833,30 @@ message ListModelsRequest { repeated string use_cases = 18; // List of language tags to filter by repeated string languages = 21; - // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets repeated string additional_fields = 19; + // Old API behavior resulted in returning clarifai main models when calling ListModels while scoped to an app. While we transition + // away from that, we can use this flag to not always fetch clarifai main models, unless that is the app we are explicitly listing for. + bool dont_fetch_from_main = 23; + + // Filter models by bookmark. If set, only return bookmarked models. Otherwise none bookmarked models only. + // Note: you can not filter `trained_only` and bookmark at the same time. + // When filter by bookmark, we will return trained and untrained models. + bool bookmark = 26; +} + +// ResourceCountRequest +message GetResourceCountsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; +} + +// ResourceCountResponse +message GetResourceCountsResponse { + clarifai.api.status.Status status = 1; + int64 datasets = 2; + int64 models = 3; + int64 workflows = 4; + int64 modules = 5; } message PatchModelToolkitsRequest { @@ -3119,6 +4869,17 @@ message PatchModelToolkitsRequest { string action = 4; } +// PatchModelCheckConsentsRequest +message PatchModelCheckConsentsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // the model id + string model_id = 2; + // the consents + repeated string check_consents = 3; + //overwrite supported + string action = 4; +} + message PatchModelUseCasesRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -3146,6 +4907,11 @@ message MultiModelToolkitResponse { repeated string toolkits = 2; } +message MultiModelCheckConsentResponse { + clarifai.api.status.Status status = 1; + repeated string check_consents = 2; +} + message MultiModelUseCaseResponse { clarifai.api.status.Status status = 1; repeated string usecases = 2; @@ -3179,6 +4945,25 @@ message PatchModelsRequest { string action = 3; } +message IdUpdateSource { + //old id + string id = 1; + //new id + string new_id = 2; +} + +// PatchModelIdsRequest +message PatchModelIdsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Array containing 1 entry + repeated IdUpdateSource ids = 3; + + // The action to perform on the patched objects + // Only 'overwrite' is supported + string action = 4; +} + // DeleteModelRequest message DeleteModelRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -3242,8 +5027,27 @@ message ListModelVersionsRequest { // (optional URL parameter) The number of results that will be contained in each page. Defaults // to 128. uint32 per_page = 4; + + // Filtering options: // To list only the model versions that have these concept ids present in them. repeated string concept_ids = 5; + // To list only the model versions that have been trained. + bool trained_only = 6; + + // Sorting options: + // Whether to sort in ascending order. If false, will order in descending order. + bool sort_ascending = 7; + oneof sort_by { + // Whether to order by the status code + bool sort_by_status_code = 8; + // Whether to order by the number of training inputs + bool sort_by_num_inputs = 9; + // Whether to sort by the description + bool sort_by_description = 10; + // Whether to order by the created_at time + // If neither sort option is set to true, will sort by created_at. + bool sort_by_created_at = 11; + } } // DeleteModelVersionRequest @@ -3267,36 +5071,40 @@ message MultiModelVersionResponse { // Create (train) a new model version. message PostModelVersionsRequest { + reserved 4, 5, 6, 7, 9; clarifai.api.UserAppIDSet user_app_id = 1; string model_id = 2; - // This lets you post an existing model version rather than training a new one. - // For internal Clarifai use only to start. repeated ModelVersion model_versions = 3; - // Use this to filter inputs that are used in training - // Alternatively, use train_search & test_search fields OR dataset_version field. - clarifai.api.Search search = 4 [deprecated = true]; - //train_search is used to specify what data to train on. - // Alternatively, use dataset_version field. - clarifai.api.Search train_search = 5; - //test_search is used to specify what data to test on. - // Alternatively, use dataset_version field. - clarifai.api.Search test_search = 6; - - // whether to evaluate the transfer trained model after training - bool evaluate_after_training = 7; - // Description about this training run string description = 8; - // Use the data from this dataset version for training. - // Set dataset_version.dataset_id to identify the dataset that you would like to use. - // When dataset_version.id field is set, - // the system will reuse the data from provided dataset version. - // When dataset_version.id is not set, - // a new dataset version will be created in the dataset using provided dataset_version fields. - DatasetVersion dataset_version = 9; + // When evaluate_after_training set to true, we will do evaluation immediately after training finishes. + // We will merge this with default_eval_info. + EvalInfo eval_info = 10; +} + +message PostWorkflowVersionsUnPublishRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string workflow_id = 2; + repeated WorkflowVersionUnPublishRequest publications = 3; +} + + + +message PostWorkflowVersionsPublishRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string workflow_id = 2; + repeated WorkflowVersionPublishRequest publications = 3; +} + +message WorkflowVersionPublishRequest { + string version_id = 1; +} + +message WorkflowVersionUnPublishRequest { + string version_id = 1; } // ModelVersionPublishRequest @@ -3323,34 +5131,126 @@ message PostModelVersionsUnPublishRequest { repeated ModelVersionUnpublishRequest publications = 3; } - - -// Evaluate this model version. -message PostModelVersionMetricsRequest { +// Evaluate this model vesion +message PostEvaluationsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - string model_id = 2; - string version_id = 3; - uint32 max_examples = 4; - - // Use this to filter inputs that are used in evaluation - clarifai.api.Search test_search = 5; + // eval_info, id, model, and ground_truth_dataset will be used when creating the evaluation + // If no dataset is provided, all app data that is annotated with concepts from the model will be used. + repeated EvalMetrics eval_metrics = 2; } -// Get the already computed evaluation metrics for this model -// version. -message GetModelVersionMetricsRequest { +message ListEvaluationsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - string model_id = 2; - string version_id = 3; - - // Any of the fields you wish to return from multiclass_metrics - FieldsValue fields = 4; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; + // If true, sort in ascending order, otherwise sort in descending order. + bool sort_ascending = 4; + oneof sort_by { + // Whether to order by application id + bool sort_by_app_id = 5; + // Whether to order by eval metric summary.macro_avg_roc_auc + bool sort_by_roc_auc = 6; + // Whether to order by eval metric summary.f1 + bool sort_by_f1 = 7; + // Whether to order by when the metric was created + bool sort_by_created_at = 8; + // Whether to order by eval metric summary.mean_avg_precision_iou_50 + bool sort_by_mean_avg_precision = 9; + // Whether to order by eval metric summary.macro_avg_precision + bool sort_by_precision = 10; + // Whether to order by eval metric summary.macro_avg_recall + bool sort_by_recall = 11; + } +} + +message GetEvaluationRequest{ + clarifai.api.UserAppIDSet user_app_id = 1; + string evaluation_id = 2; + // Any of the fields you wish to return in the metrics + // By default, only the summary is returned. + FieldsValue fields = 3; } +// Evaluate this model vesion +message PostModelVersionEvaluationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string model_version_id = 3; + // EvalInfo and ID will be used when creating the evaluation + repeated EvalMetrics eval_metrics = 4; +} -// // Request to delete several things by the list of ids. +message ListModelVersionEvaluationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string model_version_id = 3; + + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 4; + + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 5; +} + +message GetModelVersionEvaluationRequest{ + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string model_version_id = 3; + string evaluation_id = 4; + + // Any of the fields you wish to return from multiclass_metrics + // By default, only the summary is returned. + FieldsValue fields = 5; +} + +message SingleEvalMetricsResponse { + clarifai.api.status.Status status = 1; + EvalMetrics eval_metrics = 2; +} + +message MultiEvalMetricsResponse { + clarifai.api.status.Status status = 1; + repeated EvalMetrics eval_metrics = 2; +} + +// Evaluate this model version. +message PostModelVersionMetricsRequest { + reserved 4; + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string version_id = 3; + + // Use this to filter inputs that are used in evaluation + clarifai.api.Search test_search = 5; + + // evaluation info. Such as dataset used for evaluation. + EvalInfo eval_info = 10; +} + +// Get the already computed evaluation metrics for this model +// version. +message GetModelVersionMetricsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string version_id = 3; + + // Any of the fields you wish to return from multiclass_metrics + // By default, only the summary will be returned + FieldsValue fields = 4; +} + + + + +// // Request to delete several things by the list of ids. // message DeleteModelVersionsRequest { // clarifai.api.UserAppIDSet user_app_id = 1; // repeated string ids = 2; @@ -3402,6 +5302,8 @@ message MultiModelTypeResponse { repeated ModelType model_types = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; // List of model importers ModelTypeField model_importers = 3; + // Triton model envs that can be used for model upload + repeated TritonCondaEnvInfo triton_conda_envs_info= 4; } // GetModelVersionInputExampleRequest @@ -3519,6 +5421,7 @@ message MultiScopeResponse { App app = 3; // This is a list of endpoint permissions that your key has. repeated string endpoints = 4; + string user_feature_flags = 5; } // MultiScopeUserResponse @@ -3529,6 +5432,7 @@ message MultiScopeUserResponse { repeated string scopes = 2; // This is a list of endpoint permissions that your key has. repeated string endpoints = 4; + string user_feature_flags = 5; } // MultiScopeRootResponse @@ -3539,6 +5443,7 @@ message MultiScopeRootResponse { repeated string scopes = 2; // This is a list of endpoint permissions that your key has. repeated string endpoints = 4; + string user_feature_flags = 5; } // GetSearchRequest @@ -3575,6 +5480,43 @@ message PostSearchesRequest { Pagination pagination = 4; } +message PatchInputsSearchesRequest{ + // The user_id and app_id to query from. + clarifai.api.UserAppIDSet user_app_id = 1; + + // The searches to be patched + repeated Search searches = 2; + + // The action to perform on the patched Search objects + // For now only action 'overwrite' is supported + string action = 3; +} + +message PatchAnnotationsSearchesRequest { + // The user_id and app_id to query from. + clarifai.api.UserAppIDSet user_app_id = 1; + + // The searches to be patched + repeated Search searches = 2; + + // The action to perform on the patched Search objects + // For now only action 'overwrite' is supported + string action = 3; +} + +// PatchSearchesRequest +message PatchSearchesRequest { + // The user_id and app_id to query from. + clarifai.api.UserAppIDSet user_app_id = 1; + + // The searches to be patched + repeated Search searches = 2; + + // The action to perform on the patched Search objects + // For now only action 'overwrite' is supported + string action = 3; +} + // PostSearchesByIDRequest performs returns results of a saved search given its ID message PostSearchesByIDRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -3622,6 +5564,10 @@ message PostInputsSearchesRequest { // Pagination information to paginate through search result Hits. Pagination pagination = 3; + + // If only_count is set, then the response will not contain hits, + // but hit_counts instead. + bool only_count = 4; } // SingleSearchResponse returns saved search in response to GetSearchRequest @@ -3647,6 +5593,10 @@ message MultiSearchResponse { // The original Searches provided in the request. repeated Search searches = 5; + + // The counts of hits for each search, in the same order as searches. + // Only returned if the request set only_count. + repeated HitCount hit_counts = 6; } // PostAnnotationSearchMetricsRequest @@ -3690,7 +5640,66 @@ message MultiAnnotationSearchMetricsResponse { repeated AnnotationSearchMetrics annotation_search_metrics = 2; } +// ListAnnotationFiltersRequest +message ListAnnotationFiltersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +// GetAnnotationFilterRequest +message GetAnnotationFilterRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify annotation filter by id. + string annotation_filter_id = 2; +} + +// Request to add one or more annotation filters. +message PostAnnotationFiltersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // List of annotation filters that are requested to be added. + repeated AnnotationFilter annotation_filters = 2; +} + +// Request to patch several annotation filters. +message PatchAnnotationFiltersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // List of annotation filters that are requested to be updated. + repeated AnnotationFilter annotation_filters = 2; + + // The action to perform on the patched objects + // For now, only 'overwrite' action is supported + string action = 3; +} + +// Request to delete several annotation filters by list of ids. +message DeleteAnnotationFiltersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Specify which filters to delete. + repeated string annotation_filter_ids = 2; +} + +// MultiAnnotationFilterResponse +message MultiAnnotationFilterResponse { + clarifai.api.status.Status status = 1; + + repeated AnnotationFilter annotation_filters = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// SingleAnnotationFilterResponse +message SingleAnnotationFilterResponse { + clarifai.api.status.Status status = 1; + AnnotationFilter annotation_filter = 2; +} @@ -3721,6 +5730,26 @@ message MultiAnnotationSearchMetricsResponse { + + + +// GetUserRequest +message GetUserRequest { + // we used to have user_id but moved to the standard convention. Since this endpoint + // hasn't been exposed and only used by portal as a url this won't effect anything external. + clarifai.api.UserAppIDSet user_app_id = 1; + + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars + repeated string additional_fields = 2; +} + + + +// SingleUserResponse +message SingleUserResponse { + clarifai.api.status.Status status = 1; + User user = 2; +} @@ -3768,6 +5797,9 @@ message SinglePasswordValidationResponse { + + + @@ -3828,6 +5860,7 @@ enum OrganizationInvitationStatus { + // GetWorkflowRequest @@ -3843,6 +5876,9 @@ message GetWorkflowRequest { bool favor_clarifai_workflows = 3; // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars repeated string additional_fields = 4; + + // if true will not expand search to clarifai workflows + bool exclude_clarifai_workflows = 5; } // ListWorkflowsRequest @@ -3862,8 +5898,12 @@ message ListWorkflowsRequest { // Whether to order by the name bool sort_by_id = 6; // Whether to order by the modified_at time. - // If neither sort option is set to true, will sort by modified_at. + // If none of the sort options is set to true, will sort by modified_at. bool sort_by_modified_at = 7; + // Whether to order by the created_at time. + bool sort_by_created_at = 13; + // Whether to order by the number of users stared the workflow + bool sort_by_star_count = 14; } // Query various text fields that can contain the words in the query string. @@ -3877,6 +5917,12 @@ message ListWorkflowsRequest { bool starred_only = 11; // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars repeated string additional_fields = 10; + + // (optional) search_term. Full text and prefix matching on description, id, owner id. Searchable fields may be added + string search_term = 12; + + // Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only. + bool bookmark = 15; } @@ -3896,6 +5942,18 @@ message PatchWorkflowsRequest { string action = 3; } +// PatchWorkflowIdsRequest +message PatchWorkflowIdsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Array containing 1 entry + repeated IdUpdateSource ids = 3; + + // The action to perform on the patched objects + // Only 'overwrite' is supported + string action = 4; +} + // DeleteWorkflowRequest message DeleteWorkflowRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -4100,6 +6158,10 @@ message PostTasksRequest { message GetTaskRequest { clarifai.api.UserAppIDSet user_app_id = 1; string task_id = 2; + + // (optional URL parameter) List of additional fields to be included in the response. + // Currently supported: all, worker.users, review.users. + repeated string additional_fields = 3; } // Request to list multiple tasks. @@ -4115,8 +6177,16 @@ message ListTasksRequest { repeated string worker_user_ids = 4; // Get tasks that have ANY user from this list assigned as reviewer. repeated string review_user_ids = 5; + // Get tasks that are associated to ANY label order from this list. + repeated string label_order_ids = 8; + // Get label order tasks as well + // It is automatically set to true if label_order_ids is set. bool including_label_order_tasks = 6; + + // (optional URL parameter) List of additional fields to be included in the response. + // Currently supported: all, worker.users, review.users. + repeated string additional_fields = 7; } // Request to patch a list of tasks. @@ -4169,6 +6239,12 @@ message SingleTaskCountResponse { repeated TaskStatusCountPerUser counts = 4; } + + +//////////////////////////////////////////////////////////////////////////////// +// Label Orders +//////////////////////////////////////////////////////////////////////////////// + // Request to create label orders. message PostLabelOrdersRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -4203,7 +6279,7 @@ message PatchLabelOrdersRequest { string action = 3; } -// Request to delete a list of tasks. +// Request to delete a list of label orders. message DeleteLabelOrdersRequest { clarifai.api.UserAppIDSet user_app_id = 1; repeated string ids = 2; @@ -4318,6 +6394,7 @@ message MultiStatValueAggregateResponse { + // PostTrendingMetricsViewRequest message PostTrendingMetricsViewRequest { // The user_id and app_id information. @@ -4392,11 +6469,505 @@ message MultiTrendingMetricsViewResponse { +// GetModuleRequest +message GetModuleRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + repeated string additional_fields = 3; +} + +// ListModulesRequest +message ListModulesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; + + bool starred_only = 4; + + repeated string additional_fields = 5; + + // Sorting opitons: + // Whether to sort in ascending order. If false, will order in descending order. + bool sort_ascending = 6; + oneof sort_by { + // Whether to order by the created_at time. + bool sort_by_created_at = 7; + // Whether to order by the number of users stared the app + bool sort_by_star_count = 8; + // If neither sort option is set to true, will sort by modified_at. + bool sort_by_modified_at = 9; + } + + // Filter modules by bookmark. If set, only return bookmarked modules. Otherwise none bookmarked modules only. + bool bookmark = 10; +} + +// PostModulesRequest +message PostModulesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // This allows you to create one or more module by posting it to the API. + repeated Module modules = 3; +} + +// PatchModulesRequest +message PatchModulesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated Module modules = 2; + + // The action to perform on the patched objects + // For now actions 'merge', 'overwrite', and 'remove' are supported + string action = 3; +} + +// Request to delete several things by the list of ids. +message DeleteModulesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} + +// SingleModuleResponse +message SingleModuleResponse { + clarifai.api.status.Status status = 1; + Module module = 2; +} + +// MultiModuleResponse +message MultiModuleResponse { + clarifai.api.status.Status status = 1; + repeated Module modules = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// request for different endpoints currently. +message GetModuleVersionRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + string module_version_id = 3; +} +// ListModuleVersionsRequest +message ListModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; +} +// PostModuleVersionsRequest +message PostModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + // This allows you to create one or more module by posting it to the API. + repeated ModuleVersion module_versions = 3; +} +// Request to delete several module versions by the list of ids. +message DeleteModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + repeated string ids = 3; +} +// SingleModuleVersionResponse +message SingleModuleVersionResponse { + clarifai.api.status.Status status = 1; + ModuleVersion module_version = 2; +} +// MultiModuleVersionResponse +message MultiModuleVersionResponse { + clarifai.api.status.Status status = 1; + repeated ModuleVersion module_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +// GetInstalledModuleVersionRequest +message GetInstalledModuleVersionRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // the ID to get of the install module version. + string installed_module_version_id = 2; +} + +// ListInstalledModuleVersionsRequest +message ListInstalledModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +// PostInstalledModuleVersionsRequest to install a module version into the app in the URL +message PostInstalledModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // This allows you to create one or more module by posting it to the API. + repeated InstalledModuleVersion installed_module_versions = 2; +} + +// PostInstalledModuleVersionsKeyRequest to associate a key of the caller's to the installed module +// version. +message PostInstalledModuleVersionsKeyRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // the ID to get of the install module version. + string installed_module_version_id = 2; + // Note(zeiler): we don't provide a key to create since it's always deterministic. + // we'll create a PAT, owned by the caller with the scopes that the module requests. + // in the future if we want we can pass in a Key key = 3; field so that the caller + // can adjust the scopes, but for now that doesn't seem necessary. +} + +// Request to delete several installed module versions by the list of ids. +message DeleteInstalledModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} + +// SingleInstalledModuleVersionResponse +message SingleInstalledModuleVersionResponse { + clarifai.api.status.Status status = 1; + InstalledModuleVersion installed_module_version = 2; +} + +// MultiInstalledModuleVersionResponse +message MultiInstalledModuleVersionResponse { + clarifai.api.status.Status status = 1; + repeated InstalledModuleVersion installed_module_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// ListNextTaskAssignmentsRequest +message ListNextTaskAssignmentsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string task_id = 2; +} + +// Request to perform bulk operations on a list of inputs based on input source. +message PostBulkOperationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // List of bulk operation(s) to be performed e.g bulk update metadata or tags or labels etc. + repeated clarifai.api.BulkOperation bulk_operations = 2; +} + +// Request to list all the bulk operations. +message ListBulkOperationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +// Request to get the details of a bulk operation by ID. +message GetBulkOperationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // The bulk operation id + string id = 2; +} + +// Cancel a list of bulk operation ids +message CancelBulkOperationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // List of bulk operation ids to be cancelled + repeated string ids = 2; +} + +// Request to delete the terminated bulk operations by ID +// Only operations in terminated state can be deleted. +message DeleteBulkOperationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // List of bulk operation ids to be deleted + repeated string ids = 2; +} + +// SingleBulkOperationsResponse +message SingleBulkOperationsResponse { + clarifai.api.status.Status status = 1; + clarifai.api.BulkOperation bulk_operation = 2; +} + +// MultiBulkOperationsResponse +message MultiBulkOperationsResponse { + clarifai.api.status.Status status = 1; + repeated clarifai.api.BulkOperation bulk_operation = 2; +} + + + + + +// PutTaskAssignmentsRequest +message PutTaskAssignmentsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string task_id = 2; + string input_id = 3; +} + + + + + + +// List all the input ingestion jobs +message ListInputsAddJobsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +message GetInputsAddJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // id of add inputs job + string id = 2; +} + +message CancelInputsAddJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // id of add inputs job to be cancelled + string id = 2; +} + +// MultiInputsAddJobResponse +message MultiInputsAddJobResponse { + clarifai.api.status.Status status = 1; + repeated clarifai.api.InputsAddJob inputs_add_jobs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// SingleInputsAddJobResponse +message SingleInputsAddJobResponse { + clarifai.api.status.Status status = 1; + clarifai.api.InputsAddJob inputs_add_job = 2; +} + +// Start a multipart upload +message PostUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated clarifai.api.Upload uploads = 2; +} + +// Stops or deletes multipart upload +message DeleteUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} + +message ListUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +message GetUploadRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Upload ID + string upload_id = 2; +} + +message SingleUploadResponse { + clarifai.api.status.Status status = 1; + clarifai.api.Upload upload = 2; +} + +message MultiUploadResponse { + clarifai.api.status.Status status = 1; + repeated clarifai.api.Upload uploads = 2; +} + +// Upload a part of a multipart upload. +// Behaviour on completion depends on the endpoint that was used to initiate the upload. +message PutUploadContentPartsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string upload_id = 2; + repeated UploadContentPart content_parts = 3; +} + +// Initiates retrieval of inputs from cloud storage from a user provided data source. +// Will create and return an inputs-add-job for tracking progress. +// Archives will be extracted and their contents will be processed as inputs. +// +// The cloud URL will be treated as a filter prefix. For example s3:/bucket/images_folder/abc will process +// files in the images_folder beginning with abc or in a subfolder beginning with abc. +// For example: +// bucket/images_folder/abcImage.png +// bucket/images_folder/abc-1/Data.zip +// +// If given URL is for a private bucket or file, then credentials should be provided to access the bucket. +// Credentials should include rights to list the objects in the bucket, except when pointed directly at a file archive, +// in which case it only requires rights to access that particular file. +message PostInputsDataSourcesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + repeated InputsDataSource data_sources = 2; + + // If call back url is set, we will send a Post request to this endpoint with job status. + string call_back_url = 3; + + // Personal Access Token to the application to which inputs are added + string app_pat = 4; +} + +message GetInputsExtractionJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + string inputs_extraction_job_id = 2; +} + +message ListInputsExtractionJobsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +message SingleInputsExtractionJobResponse { + clarifai.api.status.Status status = 1; + clarifai.api.InputsExtractionJob inputs_extraction_job = 2; +} + +message MultiInputsExtractionJobResponse { + clarifai.api.status.Status status = 1; + repeated clarifai.api.InputsExtractionJob inputs_extraction_jobs = 2; +} + +// Cancel a list of extraction job ids +message CancelInputsExtractionJobsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // List of extraction job ids to be cancelled + repeated string ids = 2; +} + +// Start uploading a file archive containing inputs. +// Will create and return an inputs-add-job for tracking progress. +// +// Associated inputs-add-job contains an upload id which should be completed through `PutUploadContentParts` endpoint. +// Completing the upload will automatically begin unpacking the archive and uploading the contents as inputs. +message PostInputsUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated clarifai.api.InputsUpload inputs_uploads = 2; +} + +// GetRunnerRequest +message GetRunnerRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string runner_id = 2; +} + +// ListRunnersRequest +message ListRunnersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +// PostRunnersRequest +message PostRunnersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // This allows you to create one or more runner by posting it to the API. + repeated Runner runners = 3; +} + +// Request to delete several things by the list of ids. +message DeleteRunnersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} + + + +// SingleRunnerResponse +message SingleRunnerResponse { + clarifai.api.status.Status status = 1; + Runner runner = 2; +} + +// MultiRunnerResponse +message MultiRunnerResponse { + clarifai.api.status.Status status = 1; + repeated Runner runners = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + + + + + +message ListRunnerItemsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string runner_id = 2; +} + +// PostRunnerItemOutputsRequest +message PostRunnerItemOutputsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string runner_id = 2; + string item_id = 3; + // This allows you to create one or more runner by posting it to the API. + repeated RunnerItemOutput runner_item_outputs = 4; +} + + + + + +// MultiRunnerItemResponse +message MultiRunnerItemResponse { + clarifai.api.status.Status status = 1; + repeated RunnerItem items = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +message RunnerItem { + // A UUID hash for this work item. + string id = 1; + + // A description of the work to be done in case needed for UIs. + string description = 2; + + // TODO(zeiler): make these options a oneof. + // first work to do would be an inference runner. + PostModelOutputsRequest post_model_outputs_request = 3; + // training request next. +} + + + +message RunnerItemOutput { + // The output of the first task type. + // TODO(zeiler): should the interface be more like pairs of things wiht request/response in one "item"? + MultiOutputResponse multi_output_response = 1; + + // training response ??? or is it a model upload. + // again knowing what to send back from an implementation is goin gto be confusing unless we pair + // up the request and response. +} + + + +message MultiRunnerItemOutputResponse { + clarifai.api.status.Status status = 1; + repeated RunnerItemOutput runner_item_outputs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} \ No newline at end of file diff --git a/proto/clarifai/api/service_grpc_pb.d.ts b/proto/clarifai/api/service_grpc_pb.d.ts index 8813fcd..dd0192a 100644 --- a/proto/clarifai/api/service_grpc_pb.d.ts +++ b/proto/clarifai/api/service_grpc_pb.d.ts @@ -23,6 +23,7 @@ interface IV2Service extends grpc.ServiceDefinition { @@ -204,6 +286,15 @@ interface IV2Service_IListConcepts extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IListModelConcepts extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListModelConcepts"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostConceptsSearches extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostConceptsSearches"; requestStream: false; @@ -357,6 +448,15 @@ interface IV2Service_IDeleteAnnotations extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPatchAnnotationsSearches extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchAnnotationsSearches"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostAnnotationsSearches extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostAnnotationsSearches"; requestStream: false; @@ -402,6 +502,15 @@ interface IV2Service_IGetInput extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IGetInputVideoManifest extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetInputVideoManifest"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IListInputs extends grpc.MethodDefinition { path: "/clarifai.api.V2/ListInputs"; requestStream: false; @@ -447,6 +556,15 @@ interface IV2Service_IDeleteInputs extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPatchInputsSearches extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchInputsSearches"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostInputsSearches extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostInputsSearches"; requestStream: false; @@ -465,6 +583,150 @@ interface IV2Service_IPostModelOutputs extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IListDatasets extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListDatasets"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetDataset extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetDataset"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostDatasets extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostDatasets"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPatchDatasets extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchDatasets"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteDatasets extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteDatasets"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListDatasetInputs extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListDatasetInputs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetDatasetInput extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetDatasetInput"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostDatasetInputs extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostDatasetInputs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteDatasetInputs extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteDatasetInputs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListDatasetVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListDatasetVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetDatasetVersion extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetDatasetVersion"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListDatasetVersionMetricsGroups extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListDatasetVersionMetricsGroups"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostDatasetVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostDatasetVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPatchDatasetVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchDatasetVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteDatasetVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteDatasetVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPutDatasetVersionExports extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PutDatasetVersionExports"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IGetModelType extends grpc.MethodDefinition { path: "/clarifai.api.V2/GetModelType"; requestStream: false; @@ -519,6 +781,15 @@ interface IV2Service_IListModels extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IGetResourceCounts extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetResourceCounts"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostModelsSearches extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostModelsSearches"; requestStream: false; @@ -546,6 +817,15 @@ interface IV2Service_IPatchModels extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPatchModelIds extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchModelIds"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IDeleteModel extends grpc.MethodDefinition { path: "/clarifai.api.V2/DeleteModel"; requestStream: false; @@ -564,6 +844,15 @@ interface IV2Service_IDeleteModels extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPatchModelCheckConsents extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchModelCheckConsents"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPatchModelToolkits extends grpc.MethodDefinition { path: "/clarifai.api.V2/PatchModelToolkits"; requestStream: false; @@ -618,6 +907,24 @@ interface IV2Service_IListModelVersions extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPostWorkflowVersionsUnPublish extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostWorkflowVersionsUnPublish"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostWorkflowVersionsPublish extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostWorkflowVersionsPublish"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostModelVersionsPublish extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostModelVersionsPublish"; requestStream: false; @@ -681,6 +988,60 @@ interface IV2Service_IPostModelVersionMetrics extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPostModelVersionEvaluations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostModelVersionEvaluations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListModelVersionEvaluations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListModelVersionEvaluations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetModelVersionEvaluation extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetModelVersionEvaluation"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostEvaluations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostEvaluations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListEvaluations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListEvaluations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetEvaluation extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetEvaluation"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IListModelReferences extends grpc.MethodDefinition { path: "/clarifai.api.V2/ListModelReferences"; requestStream: false; @@ -744,6 +1105,15 @@ interface IV2Service_IPatchWorkflows extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPatchWorkflowIds extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchWorkflowIds"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IDeleteWorkflow extends grpc.MethodDefinition { path: "/clarifai.api.V2/DeleteWorkflow"; requestStream: false; @@ -951,6 +1321,24 @@ interface IV2Service_IPatchApps extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPatchAppsIds extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchAppsIds"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPatchApp extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchApp"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostAppsSearches extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostAppsSearches"; requestStream: false; @@ -960,6 +1348,15 @@ interface IV2Service_IPostAppsSearches extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IGetUser extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetUser"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostValidatePassword extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostValidatePassword"; requestStream: false; @@ -987,6 +1384,15 @@ interface IV2Service_IListSearches extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IPatchSearches extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchSearches"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IPostSearches extends grpc.MethodDefinition { path: "/clarifai.api.V2/PostSearches"; requestStream: false; @@ -1050,6 +1456,51 @@ interface IV2Service_IDeleteSearch extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IListAnnotationFilters extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListAnnotationFilters"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetAnnotationFilter extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetAnnotationFilter"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostAnnotationFilters extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostAnnotationFilters"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPatchAnnotationFilters extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchAnnotationFilters"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteAnnotationFilters extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteAnnotationFilters"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} interface IV2Service_IListStatusCodes extends grpc.MethodDefinition { path: "/clarifai.api.V2/ListStatusCodes"; requestStream: false; @@ -1329,6 +1780,375 @@ interface IV2Service_IListTrendingMetricsViews extends grpc.MethodDefinition; responseDeserialize: grpc.deserialize; } +interface IV2Service_IGetModule extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetModule"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListModules extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListModules"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostModules extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostModules"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPatchModules extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PatchModules"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteModules extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteModules"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetModuleVersion extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetModuleVersion"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListModuleVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListModuleVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostModuleVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostModuleVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteModuleVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteModuleVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetInstalledModuleVersion extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetInstalledModuleVersion"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListInstalledModuleVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListInstalledModuleVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostInstalledModuleVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostInstalledModuleVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteInstalledModuleVersions extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteInstalledModuleVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostInstalledModuleVersionsKey extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostInstalledModuleVersionsKey"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostBulkOperations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostBulkOperations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListBulkOperations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListBulkOperations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetBulkOperation extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetBulkOperation"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_ICancelBulkOperations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/CancelBulkOperations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteBulkOperations extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteBulkOperations"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetDatasetInputsSearchAddJob extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetDatasetInputsSearchAddJob"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListNextTaskAssignments extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListNextTaskAssignments"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPutTaskAssignments extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PutTaskAssignments"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListInputsAddJobs extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListInputsAddJobs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetInputsAddJob extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetInputsAddJob"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_ICancelInputsAddJob extends grpc.MethodDefinition { + path: "/clarifai.api.V2/CancelInputsAddJob"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostUploads extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostUploads"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPutUploadContentParts extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PutUploadContentParts"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetUpload extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetUpload"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListUploads extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListUploads"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteUploads extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteUploads"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostInputsDataSources extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostInputsDataSources"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetInputsExtractionJob extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetInputsExtractionJob"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListInputsExtractionJobs extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListInputsExtractionJobs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_ICancelInputsExtractionJobs extends grpc.MethodDefinition { + path: "/clarifai.api.V2/CancelInputsExtractionJobs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostInputsUploads extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostInputsUploads"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IGetRunner extends grpc.MethodDefinition { + path: "/clarifai.api.V2/GetRunner"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListRunners extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListRunners"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostRunners extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostRunners"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IDeleteRunners extends grpc.MethodDefinition { + path: "/clarifai.api.V2/DeleteRunners"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IListRunnerItems extends grpc.MethodDefinition { + path: "/clarifai.api.V2/ListRunnerItems"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface IV2Service_IPostRunnerItemOutputs extends grpc.MethodDefinition { + path: "/clarifai.api.V2/PostRunnerItemOutputs"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} export const V2Service: IV2Service; @@ -1339,6 +2159,7 @@ export interface IV2Server { getConceptCounts: grpc.handleUnaryCall; getConcept: grpc.handleUnaryCall; listConcepts: grpc.handleUnaryCall; + listModelConcepts: grpc.handleUnaryCall; postConceptsSearches: grpc.handleUnaryCall; postConcepts: grpc.handleUnaryCall; patchConcepts: grpc.handleUnaryCall; @@ -1356,35 +2177,59 @@ export interface IV2Server { patchAnnotationsStatus: grpc.handleUnaryCall; deleteAnnotation: grpc.handleUnaryCall; deleteAnnotations: grpc.handleUnaryCall; + patchAnnotationsSearches: grpc.handleUnaryCall; postAnnotationsSearches: grpc.handleUnaryCall; getInputCount: grpc.handleUnaryCall; streamInputs: grpc.handleUnaryCall; getInputSamples: grpc.handleUnaryCall; getInput: grpc.handleUnaryCall; + getInputVideoManifest: grpc.handleUnaryCall; listInputs: grpc.handleUnaryCall; postInputs: grpc.handleUnaryCall; patchInputs: grpc.handleUnaryCall; deleteInput: grpc.handleUnaryCall; deleteInputs: grpc.handleUnaryCall; + patchInputsSearches: grpc.handleUnaryCall; postInputsSearches: grpc.handleUnaryCall; postModelOutputs: grpc.handleUnaryCall; + listDatasets: grpc.handleUnaryCall; + getDataset: grpc.handleUnaryCall; + postDatasets: grpc.handleUnaryCall; + patchDatasets: grpc.handleUnaryCall; + deleteDatasets: grpc.handleUnaryCall; + listDatasetInputs: grpc.handleUnaryCall; + getDatasetInput: grpc.handleUnaryCall; + postDatasetInputs: grpc.handleUnaryCall; + deleteDatasetInputs: grpc.handleUnaryCall; + listDatasetVersions: grpc.handleUnaryCall; + getDatasetVersion: grpc.handleUnaryCall; + listDatasetVersionMetricsGroups: grpc.handleUnaryCall; + postDatasetVersions: grpc.handleUnaryCall; + patchDatasetVersions: grpc.handleUnaryCall; + deleteDatasetVersions: grpc.handleUnaryCall; + putDatasetVersionExports: grpc.handleUnaryCall; getModelType: grpc.handleUnaryCall; listOpenSourceLicenses: grpc.handleUnaryCall; listModelTypes: grpc.handleUnaryCall; getModel: grpc.handleUnaryCall; getModelOutputInfo: grpc.handleUnaryCall; listModels: grpc.handleUnaryCall; + getResourceCounts: grpc.handleUnaryCall; postModelsSearches: grpc.handleUnaryCall; postModels: grpc.handleUnaryCall; patchModels: grpc.handleUnaryCall; + patchModelIds: grpc.handleUnaryCall; deleteModel: grpc.handleUnaryCall; deleteModels: grpc.handleUnaryCall; + patchModelCheckConsents: grpc.handleUnaryCall; patchModelToolkits: grpc.handleUnaryCall; patchModelUseCases: grpc.handleUnaryCall; patchModelLanguages: grpc.handleUnaryCall; listModelInputs: grpc.handleUnaryCall; getModelVersion: grpc.handleUnaryCall; listModelVersions: grpc.handleUnaryCall; + postWorkflowVersionsUnPublish: grpc.handleUnaryCall; + postWorkflowVersionsPublish: grpc.handleUnaryCall; postModelVersionsPublish: grpc.handleUnaryCall; postModelVersionsUnPublish: grpc.handleUnaryCall; postModelVersions: grpc.handleUnaryCall; @@ -1392,6 +2237,12 @@ export interface IV2Server { deleteModelVersion: grpc.handleUnaryCall; getModelVersionMetrics: grpc.handleUnaryCall; postModelVersionMetrics: grpc.handleUnaryCall; + postModelVersionEvaluations: grpc.handleUnaryCall; + listModelVersionEvaluations: grpc.handleUnaryCall; + getModelVersionEvaluation: grpc.handleUnaryCall; + postEvaluations: grpc.handleUnaryCall; + listEvaluations: grpc.handleUnaryCall; + getEvaluation: grpc.handleUnaryCall; listModelReferences: grpc.handleUnaryCall; getModelVersionInputExample: grpc.handleUnaryCall; listModelVersionInputExamples: grpc.handleUnaryCall; @@ -1399,6 +2250,7 @@ export interface IV2Server { listWorkflows: grpc.handleUnaryCall; postWorkflows: grpc.handleUnaryCall; patchWorkflows: grpc.handleUnaryCall; + patchWorkflowIds: grpc.handleUnaryCall; deleteWorkflow: grpc.handleUnaryCall; deleteWorkflows: grpc.handleUnaryCall; postWorkflowResults: grpc.handleUnaryCall; @@ -1422,10 +2274,14 @@ export interface IV2Server { deleteApp: grpc.handleUnaryCall; postApps: grpc.handleUnaryCall; patchApps: grpc.handleUnaryCall; + patchAppsIds: grpc.handleUnaryCall; + patchApp: grpc.handleUnaryCall; postAppsSearches: grpc.handleUnaryCall; + getUser: grpc.handleUnaryCall; postValidatePassword: grpc.handleUnaryCall; getSearch: grpc.handleUnaryCall; listSearches: grpc.handleUnaryCall; + patchSearches: grpc.handleUnaryCall; postSearches: grpc.handleUnaryCall; postSearchesByID: grpc.handleUnaryCall; postAnnotationSearchMetrics: grpc.handleUnaryCall; @@ -1433,6 +2289,11 @@ export interface IV2Server { listAnnotationSearchMetrics: grpc.handleUnaryCall; deleteAnnotationSearchMetrics: grpc.handleUnaryCall; deleteSearch: grpc.handleUnaryCall; + listAnnotationFilters: grpc.handleUnaryCall; + getAnnotationFilter: grpc.handleUnaryCall; + postAnnotationFilters: grpc.handleUnaryCall; + patchAnnotationFilters: grpc.handleUnaryCall; + deleteAnnotationFilters: grpc.handleUnaryCall; listStatusCodes: grpc.handleUnaryCall; getStatusCode: grpc.handleUnaryCall; listCollaborators: grpc.handleUnaryCall; @@ -1464,6 +2325,47 @@ export interface IV2Server { postStatValuesAggregate: grpc.handleUnaryCall; postTrendingMetricsView: grpc.handleUnaryCall; listTrendingMetricsViews: grpc.handleUnaryCall; + getModule: grpc.handleUnaryCall; + listModules: grpc.handleUnaryCall; + postModules: grpc.handleUnaryCall; + patchModules: grpc.handleUnaryCall; + deleteModules: grpc.handleUnaryCall; + getModuleVersion: grpc.handleUnaryCall; + listModuleVersions: grpc.handleUnaryCall; + postModuleVersions: grpc.handleUnaryCall; + deleteModuleVersions: grpc.handleUnaryCall; + getInstalledModuleVersion: grpc.handleUnaryCall; + listInstalledModuleVersions: grpc.handleUnaryCall; + postInstalledModuleVersions: grpc.handleUnaryCall; + deleteInstalledModuleVersions: grpc.handleUnaryCall; + postInstalledModuleVersionsKey: grpc.handleUnaryCall; + postBulkOperations: grpc.handleUnaryCall; + listBulkOperations: grpc.handleUnaryCall; + getBulkOperation: grpc.handleUnaryCall; + cancelBulkOperations: grpc.handleUnaryCall; + deleteBulkOperations: grpc.handleUnaryCall; + getDatasetInputsSearchAddJob: grpc.handleUnaryCall; + listNextTaskAssignments: grpc.handleUnaryCall; + putTaskAssignments: grpc.handleUnaryCall; + listInputsAddJobs: grpc.handleUnaryCall; + getInputsAddJob: grpc.handleUnaryCall; + cancelInputsAddJob: grpc.handleUnaryCall; + postUploads: grpc.handleUnaryCall; + putUploadContentParts: grpc.handleUnaryCall; + getUpload: grpc.handleUnaryCall; + listUploads: grpc.handleUnaryCall; + deleteUploads: grpc.handleUnaryCall; + postInputsDataSources: grpc.handleUnaryCall; + getInputsExtractionJob: grpc.handleUnaryCall; + listInputsExtractionJobs: grpc.handleUnaryCall; + cancelInputsExtractionJobs: grpc.handleUnaryCall; + postInputsUploads: grpc.handleUnaryCall; + getRunner: grpc.handleUnaryCall; + listRunners: grpc.handleUnaryCall; + postRunners: grpc.handleUnaryCall; + deleteRunners: grpc.handleUnaryCall; + listRunnerItems: grpc.handleUnaryCall; + postRunnerItemOutputs: grpc.handleUnaryCall; } export interface IV2Client { @@ -1485,6 +2387,9 @@ export interface IV2Client { listConcepts(request: proto_clarifai_api_service_pb.ListConceptsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; listConcepts(request: proto_clarifai_api_service_pb.ListConceptsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; listConcepts(request: proto_clarifai_api_service_pb.ListConceptsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; + listModelConcepts(request: proto_clarifai_api_service_pb.ListModelConceptsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; + listModelConcepts(request: proto_clarifai_api_service_pb.ListModelConceptsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; + listModelConcepts(request: proto_clarifai_api_service_pb.ListModelConceptsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; postConceptsSearches(request: proto_clarifai_api_service_pb.PostConceptsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; postConceptsSearches(request: proto_clarifai_api_service_pb.PostConceptsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; postConceptsSearches(request: proto_clarifai_api_service_pb.PostConceptsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; @@ -1536,6 +2441,9 @@ export interface IV2Client { deleteAnnotations(request: proto_clarifai_api_service_pb.DeleteAnnotationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteAnnotations(request: proto_clarifai_api_service_pb.DeleteAnnotationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteAnnotations(request: proto_clarifai_api_service_pb.DeleteAnnotationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + patchAnnotationsSearches(request: proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + patchAnnotationsSearches(request: proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + patchAnnotationsSearches(request: proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postAnnotationsSearches(request: proto_clarifai_api_service_pb.PostAnnotationsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postAnnotationsSearches(request: proto_clarifai_api_service_pb.PostAnnotationsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postAnnotationsSearches(request: proto_clarifai_api_service_pb.PostAnnotationsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; @@ -1551,6 +2459,9 @@ export interface IV2Client { getInput(request: proto_clarifai_api_service_pb.GetInputRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputResponse) => void): grpc.ClientUnaryCall; getInput(request: proto_clarifai_api_service_pb.GetInputRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputResponse) => void): grpc.ClientUnaryCall; getInput(request: proto_clarifai_api_service_pb.GetInputRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputResponse) => void): grpc.ClientUnaryCall; + getInputVideoManifest(request: proto_clarifai_api_service_pb.GetVideoManifestRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetVideoManifestResponse) => void): grpc.ClientUnaryCall; + getInputVideoManifest(request: proto_clarifai_api_service_pb.GetVideoManifestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetVideoManifestResponse) => void): grpc.ClientUnaryCall; + getInputVideoManifest(request: proto_clarifai_api_service_pb.GetVideoManifestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetVideoManifestResponse) => void): grpc.ClientUnaryCall; listInputs(request: proto_clarifai_api_service_pb.ListInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; listInputs(request: proto_clarifai_api_service_pb.ListInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; listInputs(request: proto_clarifai_api_service_pb.ListInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; @@ -1566,12 +2477,63 @@ export interface IV2Client { deleteInputs(request: proto_clarifai_api_service_pb.DeleteInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteInputs(request: proto_clarifai_api_service_pb.DeleteInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteInputs(request: proto_clarifai_api_service_pb.DeleteInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + patchInputsSearches(request: proto_clarifai_api_service_pb.PatchInputsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + patchInputsSearches(request: proto_clarifai_api_service_pb.PatchInputsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + patchInputsSearches(request: proto_clarifai_api_service_pb.PatchInputsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postInputsSearches(request: proto_clarifai_api_service_pb.PostInputsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postInputsSearches(request: proto_clarifai_api_service_pb.PostInputsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postInputsSearches(request: proto_clarifai_api_service_pb.PostInputsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postModelOutputs(request: proto_clarifai_api_service_pb.PostModelOutputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiOutputResponse) => void): grpc.ClientUnaryCall; postModelOutputs(request: proto_clarifai_api_service_pb.PostModelOutputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiOutputResponse) => void): grpc.ClientUnaryCall; postModelOutputs(request: proto_clarifai_api_service_pb.PostModelOutputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiOutputResponse) => void): grpc.ClientUnaryCall; + listDatasets(request: proto_clarifai_api_service_pb.ListDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + listDatasets(request: proto_clarifai_api_service_pb.ListDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + listDatasets(request: proto_clarifai_api_service_pb.ListDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + getDataset(request: proto_clarifai_api_service_pb.GetDatasetRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetResponse) => void): grpc.ClientUnaryCall; + getDataset(request: proto_clarifai_api_service_pb.GetDatasetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetResponse) => void): grpc.ClientUnaryCall; + getDataset(request: proto_clarifai_api_service_pb.GetDatasetRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetResponse) => void): grpc.ClientUnaryCall; + postDatasets(request: proto_clarifai_api_service_pb.PostDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + postDatasets(request: proto_clarifai_api_service_pb.PostDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + postDatasets(request: proto_clarifai_api_service_pb.PostDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + patchDatasets(request: proto_clarifai_api_service_pb.PatchDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + patchDatasets(request: proto_clarifai_api_service_pb.PatchDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + patchDatasets(request: proto_clarifai_api_service_pb.PatchDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + deleteDatasets(request: proto_clarifai_api_service_pb.DeleteDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteDatasets(request: proto_clarifai_api_service_pb.DeleteDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteDatasets(request: proto_clarifai_api_service_pb.DeleteDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + listDatasetInputs(request: proto_clarifai_api_service_pb.ListDatasetInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + listDatasetInputs(request: proto_clarifai_api_service_pb.ListDatasetInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + listDatasetInputs(request: proto_clarifai_api_service_pb.ListDatasetInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + getDatasetInput(request: proto_clarifai_api_service_pb.GetDatasetInputRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputResponse) => void): grpc.ClientUnaryCall; + getDatasetInput(request: proto_clarifai_api_service_pb.GetDatasetInputRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputResponse) => void): grpc.ClientUnaryCall; + getDatasetInput(request: proto_clarifai_api_service_pb.GetDatasetInputRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputResponse) => void): grpc.ClientUnaryCall; + postDatasetInputs(request: proto_clarifai_api_service_pb.PostDatasetInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + postDatasetInputs(request: proto_clarifai_api_service_pb.PostDatasetInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + postDatasetInputs(request: proto_clarifai_api_service_pb.PostDatasetInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + deleteDatasetInputs(request: proto_clarifai_api_service_pb.DeleteDatasetInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteDatasetInputs(request: proto_clarifai_api_service_pb.DeleteDatasetInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteDatasetInputs(request: proto_clarifai_api_service_pb.DeleteDatasetInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + listDatasetVersions(request: proto_clarifai_api_service_pb.ListDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + listDatasetVersions(request: proto_clarifai_api_service_pb.ListDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + listDatasetVersions(request: proto_clarifai_api_service_pb.ListDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + getDatasetVersion(request: proto_clarifai_api_service_pb.GetDatasetVersionRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetVersionResponse) => void): grpc.ClientUnaryCall; + getDatasetVersion(request: proto_clarifai_api_service_pb.GetDatasetVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetVersionResponse) => void): grpc.ClientUnaryCall; + getDatasetVersion(request: proto_clarifai_api_service_pb.GetDatasetVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetVersionResponse) => void): grpc.ClientUnaryCall; + listDatasetVersionMetricsGroups(request: proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse) => void): grpc.ClientUnaryCall; + listDatasetVersionMetricsGroups(request: proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse) => void): grpc.ClientUnaryCall; + listDatasetVersionMetricsGroups(request: proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse) => void): grpc.ClientUnaryCall; + postDatasetVersions(request: proto_clarifai_api_service_pb.PostDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + postDatasetVersions(request: proto_clarifai_api_service_pb.PostDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + postDatasetVersions(request: proto_clarifai_api_service_pb.PostDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + patchDatasetVersions(request: proto_clarifai_api_service_pb.PatchDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + patchDatasetVersions(request: proto_clarifai_api_service_pb.PatchDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + patchDatasetVersions(request: proto_clarifai_api_service_pb.PatchDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + deleteDatasetVersions(request: proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteDatasetVersions(request: proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteDatasetVersions(request: proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + putDatasetVersionExports(request: proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse) => void): grpc.ClientUnaryCall; + putDatasetVersionExports(request: proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse) => void): grpc.ClientUnaryCall; + putDatasetVersionExports(request: proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse) => void): grpc.ClientUnaryCall; getModelType(request: proto_clarifai_api_service_pb.GetModelTypeRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelTypeResponse) => void): grpc.ClientUnaryCall; getModelType(request: proto_clarifai_api_service_pb.GetModelTypeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelTypeResponse) => void): grpc.ClientUnaryCall; getModelType(request: proto_clarifai_api_service_pb.GetModelTypeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelTypeResponse) => void): grpc.ClientUnaryCall; @@ -1590,6 +2552,9 @@ export interface IV2Client { listModels(request: proto_clarifai_api_service_pb.ListModelsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; listModels(request: proto_clarifai_api_service_pb.ListModelsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; listModels(request: proto_clarifai_api_service_pb.ListModelsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + getResourceCounts(request: proto_clarifai_api_service_pb.GetResourceCountsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetResourceCountsResponse) => void): grpc.ClientUnaryCall; + getResourceCounts(request: proto_clarifai_api_service_pb.GetResourceCountsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetResourceCountsResponse) => void): grpc.ClientUnaryCall; + getResourceCounts(request: proto_clarifai_api_service_pb.GetResourceCountsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetResourceCountsResponse) => void): grpc.ClientUnaryCall; postModelsSearches(request: proto_clarifai_api_service_pb.PostModelsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; postModelsSearches(request: proto_clarifai_api_service_pb.PostModelsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; postModelsSearches(request: proto_clarifai_api_service_pb.PostModelsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; @@ -1599,12 +2564,18 @@ export interface IV2Client { patchModels(request: proto_clarifai_api_service_pb.PatchModelsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; patchModels(request: proto_clarifai_api_service_pb.PatchModelsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; patchModels(request: proto_clarifai_api_service_pb.PatchModelsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + patchModelIds(request: proto_clarifai_api_service_pb.PatchModelIdsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + patchModelIds(request: proto_clarifai_api_service_pb.PatchModelIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + patchModelIds(request: proto_clarifai_api_service_pb.PatchModelIdsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; deleteModel(request: proto_clarifai_api_service_pb.DeleteModelRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteModel(request: proto_clarifai_api_service_pb.DeleteModelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteModel(request: proto_clarifai_api_service_pb.DeleteModelRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteModels(request: proto_clarifai_api_service_pb.DeleteModelsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteModels(request: proto_clarifai_api_service_pb.DeleteModelsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteModels(request: proto_clarifai_api_service_pb.DeleteModelsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + patchModelCheckConsents(request: proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelCheckConsentResponse) => void): grpc.ClientUnaryCall; + patchModelCheckConsents(request: proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelCheckConsentResponse) => void): grpc.ClientUnaryCall; + patchModelCheckConsents(request: proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelCheckConsentResponse) => void): grpc.ClientUnaryCall; patchModelToolkits(request: proto_clarifai_api_service_pb.PatchModelToolkitsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelToolkitResponse) => void): grpc.ClientUnaryCall; patchModelToolkits(request: proto_clarifai_api_service_pb.PatchModelToolkitsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelToolkitResponse) => void): grpc.ClientUnaryCall; patchModelToolkits(request: proto_clarifai_api_service_pb.PatchModelToolkitsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelToolkitResponse) => void): grpc.ClientUnaryCall; @@ -1623,6 +2594,12 @@ export interface IV2Client { listModelVersions(request: proto_clarifai_api_service_pb.ListModelVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelVersionResponse) => void): grpc.ClientUnaryCall; listModelVersions(request: proto_clarifai_api_service_pb.ListModelVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelVersionResponse) => void): grpc.ClientUnaryCall; listModelVersions(request: proto_clarifai_api_service_pb.ListModelVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelVersionResponse) => void): grpc.ClientUnaryCall; + postWorkflowVersionsUnPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + postWorkflowVersionsUnPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + postWorkflowVersionsUnPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + postWorkflowVersionsPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + postWorkflowVersionsPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + postWorkflowVersionsPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; postModelVersionsPublish(request: proto_clarifai_api_service_pb.PostModelVersionsPublishRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; postModelVersionsPublish(request: proto_clarifai_api_service_pb.PostModelVersionsPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; postModelVersionsPublish(request: proto_clarifai_api_service_pb.PostModelVersionsPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; @@ -1644,6 +2621,24 @@ export interface IV2Client { postModelVersionMetrics(request: proto_clarifai_api_service_pb.PostModelVersionMetricsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelVersionResponse) => void): grpc.ClientUnaryCall; postModelVersionMetrics(request: proto_clarifai_api_service_pb.PostModelVersionMetricsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelVersionResponse) => void): grpc.ClientUnaryCall; postModelVersionMetrics(request: proto_clarifai_api_service_pb.PostModelVersionMetricsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelVersionResponse) => void): grpc.ClientUnaryCall; + postModelVersionEvaluations(request: proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + postModelVersionEvaluations(request: proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + postModelVersionEvaluations(request: proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + listModelVersionEvaluations(request: proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + listModelVersionEvaluations(request: proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + listModelVersionEvaluations(request: proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + getModelVersionEvaluation(request: proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + getModelVersionEvaluation(request: proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + getModelVersionEvaluation(request: proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + postEvaluations(request: proto_clarifai_api_service_pb.PostEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + postEvaluations(request: proto_clarifai_api_service_pb.PostEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + postEvaluations(request: proto_clarifai_api_service_pb.PostEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + listEvaluations(request: proto_clarifai_api_service_pb.ListEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + listEvaluations(request: proto_clarifai_api_service_pb.ListEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + listEvaluations(request: proto_clarifai_api_service_pb.ListEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + getEvaluation(request: proto_clarifai_api_service_pb.GetEvaluationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + getEvaluation(request: proto_clarifai_api_service_pb.GetEvaluationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + getEvaluation(request: proto_clarifai_api_service_pb.GetEvaluationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; listModelReferences(request: proto_clarifai_api_service_pb.ListModelReferencesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelReferenceResponse) => void): grpc.ClientUnaryCall; listModelReferences(request: proto_clarifai_api_service_pb.ListModelReferencesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelReferenceResponse) => void): grpc.ClientUnaryCall; listModelReferences(request: proto_clarifai_api_service_pb.ListModelReferencesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelReferenceResponse) => void): grpc.ClientUnaryCall; @@ -1665,6 +2660,9 @@ export interface IV2Client { patchWorkflows(request: proto_clarifai_api_service_pb.PatchWorkflowsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; patchWorkflows(request: proto_clarifai_api_service_pb.PatchWorkflowsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; patchWorkflows(request: proto_clarifai_api_service_pb.PatchWorkflowsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; + patchWorkflowIds(request: proto_clarifai_api_service_pb.PatchWorkflowIdsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; + patchWorkflowIds(request: proto_clarifai_api_service_pb.PatchWorkflowIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; + patchWorkflowIds(request: proto_clarifai_api_service_pb.PatchWorkflowIdsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; deleteWorkflow(request: proto_clarifai_api_service_pb.DeleteWorkflowRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteWorkflow(request: proto_clarifai_api_service_pb.DeleteWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteWorkflow(request: proto_clarifai_api_service_pb.DeleteWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; @@ -1734,9 +2732,18 @@ export interface IV2Client { patchApps(request: proto_clarifai_api_service_pb.PatchAppsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; patchApps(request: proto_clarifai_api_service_pb.PatchAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; patchApps(request: proto_clarifai_api_service_pb.PatchAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + patchAppsIds(request: proto_clarifai_api_service_pb.PatchAppsIdsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + patchAppsIds(request: proto_clarifai_api_service_pb.PatchAppsIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + patchAppsIds(request: proto_clarifai_api_service_pb.PatchAppsIdsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + patchApp(request: proto_clarifai_api_service_pb.PatchAppRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAppResponse) => void): grpc.ClientUnaryCall; + patchApp(request: proto_clarifai_api_service_pb.PatchAppRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAppResponse) => void): grpc.ClientUnaryCall; + patchApp(request: proto_clarifai_api_service_pb.PatchAppRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAppResponse) => void): grpc.ClientUnaryCall; postAppsSearches(request: proto_clarifai_api_service_pb.PostAppsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; postAppsSearches(request: proto_clarifai_api_service_pb.PostAppsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; postAppsSearches(request: proto_clarifai_api_service_pb.PostAppsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + getUser(request: proto_clarifai_api_service_pb.GetUserRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUserResponse) => void): grpc.ClientUnaryCall; + getUser(request: proto_clarifai_api_service_pb.GetUserRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUserResponse) => void): grpc.ClientUnaryCall; + getUser(request: proto_clarifai_api_service_pb.GetUserRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUserResponse) => void): grpc.ClientUnaryCall; postValidatePassword(request: proto_clarifai_api_service_pb.PostValidatePasswordRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SinglePasswordValidationResponse) => void): grpc.ClientUnaryCall; postValidatePassword(request: proto_clarifai_api_service_pb.PostValidatePasswordRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SinglePasswordValidationResponse) => void): grpc.ClientUnaryCall; postValidatePassword(request: proto_clarifai_api_service_pb.PostValidatePasswordRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SinglePasswordValidationResponse) => void): grpc.ClientUnaryCall; @@ -1746,6 +2753,9 @@ export interface IV2Client { listSearches(request: proto_clarifai_api_service_pb.ListSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; listSearches(request: proto_clarifai_api_service_pb.ListSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; listSearches(request: proto_clarifai_api_service_pb.ListSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + patchSearches(request: proto_clarifai_api_service_pb.PatchSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + patchSearches(request: proto_clarifai_api_service_pb.PatchSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + patchSearches(request: proto_clarifai_api_service_pb.PatchSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postSearches(request: proto_clarifai_api_service_pb.PostSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postSearches(request: proto_clarifai_api_service_pb.PostSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; postSearches(request: proto_clarifai_api_service_pb.PostSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; @@ -1767,6 +2777,21 @@ export interface IV2Client { deleteSearch(request: proto_clarifai_api_service_pb.DeleteSearchRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteSearch(request: proto_clarifai_api_service_pb.DeleteSearchRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; deleteSearch(request: proto_clarifai_api_service_pb.DeleteSearchRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + listAnnotationFilters(request: proto_clarifai_api_service_pb.ListAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + listAnnotationFilters(request: proto_clarifai_api_service_pb.ListAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + listAnnotationFilters(request: proto_clarifai_api_service_pb.ListAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + getAnnotationFilter(request: proto_clarifai_api_service_pb.GetAnnotationFilterRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + getAnnotationFilter(request: proto_clarifai_api_service_pb.GetAnnotationFilterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + getAnnotationFilter(request: proto_clarifai_api_service_pb.GetAnnotationFilterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + postAnnotationFilters(request: proto_clarifai_api_service_pb.PostAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + postAnnotationFilters(request: proto_clarifai_api_service_pb.PostAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + postAnnotationFilters(request: proto_clarifai_api_service_pb.PostAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + patchAnnotationFilters(request: proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + patchAnnotationFilters(request: proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + patchAnnotationFilters(request: proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + deleteAnnotationFilters(request: proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteAnnotationFilters(request: proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteAnnotationFilters(request: proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; listStatusCodes(request: proto_clarifai_api_service_pb.ListStatusCodesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiStatusCodeResponse) => void): grpc.ClientUnaryCall; listStatusCodes(request: proto_clarifai_api_service_pb.ListStatusCodesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiStatusCodeResponse) => void): grpc.ClientUnaryCall; listStatusCodes(request: proto_clarifai_api_service_pb.ListStatusCodesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiStatusCodeResponse) => void): grpc.ClientUnaryCall; @@ -1860,6 +2885,129 @@ export interface IV2Client { listTrendingMetricsViews(request: proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiTrendingMetricsViewResponse) => void): grpc.ClientUnaryCall; listTrendingMetricsViews(request: proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiTrendingMetricsViewResponse) => void): grpc.ClientUnaryCall; listTrendingMetricsViews(request: proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiTrendingMetricsViewResponse) => void): grpc.ClientUnaryCall; + getModule(request: proto_clarifai_api_service_pb.GetModuleRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleResponse) => void): grpc.ClientUnaryCall; + getModule(request: proto_clarifai_api_service_pb.GetModuleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleResponse) => void): grpc.ClientUnaryCall; + getModule(request: proto_clarifai_api_service_pb.GetModuleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleResponse) => void): grpc.ClientUnaryCall; + listModules(request: proto_clarifai_api_service_pb.ListModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + listModules(request: proto_clarifai_api_service_pb.ListModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + listModules(request: proto_clarifai_api_service_pb.ListModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + postModules(request: proto_clarifai_api_service_pb.PostModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + postModules(request: proto_clarifai_api_service_pb.PostModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + postModules(request: proto_clarifai_api_service_pb.PostModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + patchModules(request: proto_clarifai_api_service_pb.PatchModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + patchModules(request: proto_clarifai_api_service_pb.PatchModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + patchModules(request: proto_clarifai_api_service_pb.PatchModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + deleteModules(request: proto_clarifai_api_service_pb.DeleteModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteModules(request: proto_clarifai_api_service_pb.DeleteModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteModules(request: proto_clarifai_api_service_pb.DeleteModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + getModuleVersion(request: proto_clarifai_api_service_pb.GetModuleVersionRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleVersionResponse) => void): grpc.ClientUnaryCall; + getModuleVersion(request: proto_clarifai_api_service_pb.GetModuleVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleVersionResponse) => void): grpc.ClientUnaryCall; + getModuleVersion(request: proto_clarifai_api_service_pb.GetModuleVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleVersionResponse) => void): grpc.ClientUnaryCall; + listModuleVersions(request: proto_clarifai_api_service_pb.ListModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + listModuleVersions(request: proto_clarifai_api_service_pb.ListModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + listModuleVersions(request: proto_clarifai_api_service_pb.ListModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + postModuleVersions(request: proto_clarifai_api_service_pb.PostModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + postModuleVersions(request: proto_clarifai_api_service_pb.PostModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + postModuleVersions(request: proto_clarifai_api_service_pb.PostModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + deleteModuleVersions(request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteModuleVersions(request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteModuleVersions(request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + getInstalledModuleVersion(request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + getInstalledModuleVersion(request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + getInstalledModuleVersion(request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + listInstalledModuleVersions(request: proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + listInstalledModuleVersions(request: proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + listInstalledModuleVersions(request: proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + postInstalledModuleVersions(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + postInstalledModuleVersions(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + postInstalledModuleVersions(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + deleteInstalledModuleVersions(request: proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteInstalledModuleVersions(request: proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteInstalledModuleVersions(request: proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + postInstalledModuleVersionsKey(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleKeyResponse) => void): grpc.ClientUnaryCall; + postInstalledModuleVersionsKey(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleKeyResponse) => void): grpc.ClientUnaryCall; + postInstalledModuleVersionsKey(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleKeyResponse) => void): grpc.ClientUnaryCall; + postBulkOperations(request: proto_clarifai_api_service_pb.PostBulkOperationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + postBulkOperations(request: proto_clarifai_api_service_pb.PostBulkOperationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + postBulkOperations(request: proto_clarifai_api_service_pb.PostBulkOperationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + listBulkOperations(request: proto_clarifai_api_service_pb.ListBulkOperationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + listBulkOperations(request: proto_clarifai_api_service_pb.ListBulkOperationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + listBulkOperations(request: proto_clarifai_api_service_pb.ListBulkOperationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + getBulkOperation(request: proto_clarifai_api_service_pb.GetBulkOperationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleBulkOperationsResponse) => void): grpc.ClientUnaryCall; + getBulkOperation(request: proto_clarifai_api_service_pb.GetBulkOperationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleBulkOperationsResponse) => void): grpc.ClientUnaryCall; + getBulkOperation(request: proto_clarifai_api_service_pb.GetBulkOperationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleBulkOperationsResponse) => void): grpc.ClientUnaryCall; + cancelBulkOperations(request: proto_clarifai_api_service_pb.CancelBulkOperationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + cancelBulkOperations(request: proto_clarifai_api_service_pb.CancelBulkOperationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + cancelBulkOperations(request: proto_clarifai_api_service_pb.CancelBulkOperationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + deleteBulkOperations(request: proto_clarifai_api_service_pb.DeleteBulkOperationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteBulkOperations(request: proto_clarifai_api_service_pb.DeleteBulkOperationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteBulkOperations(request: proto_clarifai_api_service_pb.DeleteBulkOperationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + getDatasetInputsSearchAddJob(request: proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse) => void): grpc.ClientUnaryCall; + getDatasetInputsSearchAddJob(request: proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse) => void): grpc.ClientUnaryCall; + getDatasetInputsSearchAddJob(request: proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse) => void): grpc.ClientUnaryCall; + listNextTaskAssignments(request: proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; + listNextTaskAssignments(request: proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; + listNextTaskAssignments(request: proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; + putTaskAssignments(request: proto_clarifai_api_service_pb.PutTaskAssignmentsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + putTaskAssignments(request: proto_clarifai_api_service_pb.PutTaskAssignmentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + putTaskAssignments(request: proto_clarifai_api_service_pb.PutTaskAssignmentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + listInputsAddJobs(request: proto_clarifai_api_service_pb.ListInputsAddJobsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + listInputsAddJobs(request: proto_clarifai_api_service_pb.ListInputsAddJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + listInputsAddJobs(request: proto_clarifai_api_service_pb.ListInputsAddJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + getInputsAddJob(request: proto_clarifai_api_service_pb.GetInputsAddJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + getInputsAddJob(request: proto_clarifai_api_service_pb.GetInputsAddJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + getInputsAddJob(request: proto_clarifai_api_service_pb.GetInputsAddJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + cancelInputsAddJob(request: proto_clarifai_api_service_pb.CancelInputsAddJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + cancelInputsAddJob(request: proto_clarifai_api_service_pb.CancelInputsAddJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + cancelInputsAddJob(request: proto_clarifai_api_service_pb.CancelInputsAddJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + postUploads(request: proto_clarifai_api_service_pb.PostUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + postUploads(request: proto_clarifai_api_service_pb.PostUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + postUploads(request: proto_clarifai_api_service_pb.PostUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + putUploadContentParts(request: proto_clarifai_api_service_pb.PutUploadContentPartsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + putUploadContentParts(request: proto_clarifai_api_service_pb.PutUploadContentPartsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + putUploadContentParts(request: proto_clarifai_api_service_pb.PutUploadContentPartsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + getUpload(request: proto_clarifai_api_service_pb.GetUploadRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + getUpload(request: proto_clarifai_api_service_pb.GetUploadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + getUpload(request: proto_clarifai_api_service_pb.GetUploadRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + listUploads(request: proto_clarifai_api_service_pb.ListUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + listUploads(request: proto_clarifai_api_service_pb.ListUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + listUploads(request: proto_clarifai_api_service_pb.ListUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + deleteUploads(request: proto_clarifai_api_service_pb.DeleteUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteUploads(request: proto_clarifai_api_service_pb.DeleteUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteUploads(request: proto_clarifai_api_service_pb.DeleteUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + postInputsDataSources(request: proto_clarifai_api_service_pb.PostInputsDataSourcesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + postInputsDataSources(request: proto_clarifai_api_service_pb.PostInputsDataSourcesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + postInputsDataSources(request: proto_clarifai_api_service_pb.PostInputsDataSourcesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + getInputsExtractionJob(request: proto_clarifai_api_service_pb.GetInputsExtractionJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + getInputsExtractionJob(request: proto_clarifai_api_service_pb.GetInputsExtractionJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + getInputsExtractionJob(request: proto_clarifai_api_service_pb.GetInputsExtractionJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + listInputsExtractionJobs(request: proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + listInputsExtractionJobs(request: proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + listInputsExtractionJobs(request: proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + cancelInputsExtractionJobs(request: proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + cancelInputsExtractionJobs(request: proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + cancelInputsExtractionJobs(request: proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + postInputsUploads(request: proto_clarifai_api_service_pb.PostInputsUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + postInputsUploads(request: proto_clarifai_api_service_pb.PostInputsUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + postInputsUploads(request: proto_clarifai_api_service_pb.PostInputsUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + getRunner(request: proto_clarifai_api_service_pb.GetRunnerRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleRunnerResponse) => void): grpc.ClientUnaryCall; + getRunner(request: proto_clarifai_api_service_pb.GetRunnerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleRunnerResponse) => void): grpc.ClientUnaryCall; + getRunner(request: proto_clarifai_api_service_pb.GetRunnerRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleRunnerResponse) => void): grpc.ClientUnaryCall; + listRunners(request: proto_clarifai_api_service_pb.ListRunnersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + listRunners(request: proto_clarifai_api_service_pb.ListRunnersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + listRunners(request: proto_clarifai_api_service_pb.ListRunnersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + postRunners(request: proto_clarifai_api_service_pb.PostRunnersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + postRunners(request: proto_clarifai_api_service_pb.PostRunnersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + postRunners(request: proto_clarifai_api_service_pb.PostRunnersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + deleteRunners(request: proto_clarifai_api_service_pb.DeleteRunnersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteRunners(request: proto_clarifai_api_service_pb.DeleteRunnersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + deleteRunners(request: proto_clarifai_api_service_pb.DeleteRunnersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + listRunnerItems(request: proto_clarifai_api_service_pb.ListRunnerItemsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemResponse) => void): grpc.ClientUnaryCall; + listRunnerItems(request: proto_clarifai_api_service_pb.ListRunnerItemsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemResponse) => void): grpc.ClientUnaryCall; + listRunnerItems(request: proto_clarifai_api_service_pb.ListRunnerItemsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemResponse) => void): grpc.ClientUnaryCall; + postRunnerItemOutputs(request: proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse) => void): grpc.ClientUnaryCall; + postRunnerItemOutputs(request: proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse) => void): grpc.ClientUnaryCall; + postRunnerItemOutputs(request: proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse) => void): grpc.ClientUnaryCall; } export class V2Client extends grpc.Client implements IV2Client { @@ -1882,6 +3030,9 @@ export class V2Client extends grpc.Client implements IV2Client { public listConcepts(request: proto_clarifai_api_service_pb.ListConceptsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; public listConcepts(request: proto_clarifai_api_service_pb.ListConceptsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; public listConcepts(request: proto_clarifai_api_service_pb.ListConceptsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; + public listModelConcepts(request: proto_clarifai_api_service_pb.ListModelConceptsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; + public listModelConcepts(request: proto_clarifai_api_service_pb.ListModelConceptsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; + public listModelConcepts(request: proto_clarifai_api_service_pb.ListModelConceptsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; public postConceptsSearches(request: proto_clarifai_api_service_pb.PostConceptsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; public postConceptsSearches(request: proto_clarifai_api_service_pb.PostConceptsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; public postConceptsSearches(request: proto_clarifai_api_service_pb.PostConceptsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiConceptResponse) => void): grpc.ClientUnaryCall; @@ -1933,6 +3084,9 @@ export class V2Client extends grpc.Client implements IV2Client { public deleteAnnotations(request: proto_clarifai_api_service_pb.DeleteAnnotationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteAnnotations(request: proto_clarifai_api_service_pb.DeleteAnnotationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteAnnotations(request: proto_clarifai_api_service_pb.DeleteAnnotationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public patchAnnotationsSearches(request: proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + public patchAnnotationsSearches(request: proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + public patchAnnotationsSearches(request: proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postAnnotationsSearches(request: proto_clarifai_api_service_pb.PostAnnotationsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postAnnotationsSearches(request: proto_clarifai_api_service_pb.PostAnnotationsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postAnnotationsSearches(request: proto_clarifai_api_service_pb.PostAnnotationsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; @@ -1948,6 +3102,9 @@ export class V2Client extends grpc.Client implements IV2Client { public getInput(request: proto_clarifai_api_service_pb.GetInputRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputResponse) => void): grpc.ClientUnaryCall; public getInput(request: proto_clarifai_api_service_pb.GetInputRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputResponse) => void): grpc.ClientUnaryCall; public getInput(request: proto_clarifai_api_service_pb.GetInputRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputResponse) => void): grpc.ClientUnaryCall; + public getInputVideoManifest(request: proto_clarifai_api_service_pb.GetVideoManifestRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetVideoManifestResponse) => void): grpc.ClientUnaryCall; + public getInputVideoManifest(request: proto_clarifai_api_service_pb.GetVideoManifestRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetVideoManifestResponse) => void): grpc.ClientUnaryCall; + public getInputVideoManifest(request: proto_clarifai_api_service_pb.GetVideoManifestRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetVideoManifestResponse) => void): grpc.ClientUnaryCall; public listInputs(request: proto_clarifai_api_service_pb.ListInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; public listInputs(request: proto_clarifai_api_service_pb.ListInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; public listInputs(request: proto_clarifai_api_service_pb.ListInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; @@ -1963,12 +3120,63 @@ export class V2Client extends grpc.Client implements IV2Client { public deleteInputs(request: proto_clarifai_api_service_pb.DeleteInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteInputs(request: proto_clarifai_api_service_pb.DeleteInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteInputs(request: proto_clarifai_api_service_pb.DeleteInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public patchInputsSearches(request: proto_clarifai_api_service_pb.PatchInputsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + public patchInputsSearches(request: proto_clarifai_api_service_pb.PatchInputsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + public patchInputsSearches(request: proto_clarifai_api_service_pb.PatchInputsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postInputsSearches(request: proto_clarifai_api_service_pb.PostInputsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postInputsSearches(request: proto_clarifai_api_service_pb.PostInputsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postInputsSearches(request: proto_clarifai_api_service_pb.PostInputsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postModelOutputs(request: proto_clarifai_api_service_pb.PostModelOutputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiOutputResponse) => void): grpc.ClientUnaryCall; public postModelOutputs(request: proto_clarifai_api_service_pb.PostModelOutputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiOutputResponse) => void): grpc.ClientUnaryCall; public postModelOutputs(request: proto_clarifai_api_service_pb.PostModelOutputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiOutputResponse) => void): grpc.ClientUnaryCall; + public listDatasets(request: proto_clarifai_api_service_pb.ListDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public listDatasets(request: proto_clarifai_api_service_pb.ListDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public listDatasets(request: proto_clarifai_api_service_pb.ListDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public getDataset(request: proto_clarifai_api_service_pb.GetDatasetRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetResponse) => void): grpc.ClientUnaryCall; + public getDataset(request: proto_clarifai_api_service_pb.GetDatasetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetResponse) => void): grpc.ClientUnaryCall; + public getDataset(request: proto_clarifai_api_service_pb.GetDatasetRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetResponse) => void): grpc.ClientUnaryCall; + public postDatasets(request: proto_clarifai_api_service_pb.PostDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public postDatasets(request: proto_clarifai_api_service_pb.PostDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public postDatasets(request: proto_clarifai_api_service_pb.PostDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public patchDatasets(request: proto_clarifai_api_service_pb.PatchDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public patchDatasets(request: proto_clarifai_api_service_pb.PatchDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public patchDatasets(request: proto_clarifai_api_service_pb.PatchDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetResponse) => void): grpc.ClientUnaryCall; + public deleteDatasets(request: proto_clarifai_api_service_pb.DeleteDatasetsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteDatasets(request: proto_clarifai_api_service_pb.DeleteDatasetsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteDatasets(request: proto_clarifai_api_service_pb.DeleteDatasetsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public listDatasetInputs(request: proto_clarifai_api_service_pb.ListDatasetInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + public listDatasetInputs(request: proto_clarifai_api_service_pb.ListDatasetInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + public listDatasetInputs(request: proto_clarifai_api_service_pb.ListDatasetInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + public getDatasetInput(request: proto_clarifai_api_service_pb.GetDatasetInputRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputResponse) => void): grpc.ClientUnaryCall; + public getDatasetInput(request: proto_clarifai_api_service_pb.GetDatasetInputRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputResponse) => void): grpc.ClientUnaryCall; + public getDatasetInput(request: proto_clarifai_api_service_pb.GetDatasetInputRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputResponse) => void): grpc.ClientUnaryCall; + public postDatasetInputs(request: proto_clarifai_api_service_pb.PostDatasetInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + public postDatasetInputs(request: proto_clarifai_api_service_pb.PostDatasetInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + public postDatasetInputs(request: proto_clarifai_api_service_pb.PostDatasetInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetInputResponse) => void): grpc.ClientUnaryCall; + public deleteDatasetInputs(request: proto_clarifai_api_service_pb.DeleteDatasetInputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteDatasetInputs(request: proto_clarifai_api_service_pb.DeleteDatasetInputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteDatasetInputs(request: proto_clarifai_api_service_pb.DeleteDatasetInputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public listDatasetVersions(request: proto_clarifai_api_service_pb.ListDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public listDatasetVersions(request: proto_clarifai_api_service_pb.ListDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public listDatasetVersions(request: proto_clarifai_api_service_pb.ListDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public getDatasetVersion(request: proto_clarifai_api_service_pb.GetDatasetVersionRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public getDatasetVersion(request: proto_clarifai_api_service_pb.GetDatasetVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public getDatasetVersion(request: proto_clarifai_api_service_pb.GetDatasetVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public listDatasetVersionMetricsGroups(request: proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse) => void): grpc.ClientUnaryCall; + public listDatasetVersionMetricsGroups(request: proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse) => void): grpc.ClientUnaryCall; + public listDatasetVersionMetricsGroups(request: proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse) => void): grpc.ClientUnaryCall; + public postDatasetVersions(request: proto_clarifai_api_service_pb.PostDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public postDatasetVersions(request: proto_clarifai_api_service_pb.PostDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public postDatasetVersions(request: proto_clarifai_api_service_pb.PostDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public patchDatasetVersions(request: proto_clarifai_api_service_pb.PatchDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public patchDatasetVersions(request: proto_clarifai_api_service_pb.PatchDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public patchDatasetVersions(request: proto_clarifai_api_service_pb.PatchDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionResponse) => void): grpc.ClientUnaryCall; + public deleteDatasetVersions(request: proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteDatasetVersions(request: proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteDatasetVersions(request: proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public putDatasetVersionExports(request: proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse) => void): grpc.ClientUnaryCall; + public putDatasetVersionExports(request: proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse) => void): grpc.ClientUnaryCall; + public putDatasetVersionExports(request: proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse) => void): grpc.ClientUnaryCall; public getModelType(request: proto_clarifai_api_service_pb.GetModelTypeRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelTypeResponse) => void): grpc.ClientUnaryCall; public getModelType(request: proto_clarifai_api_service_pb.GetModelTypeRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelTypeResponse) => void): grpc.ClientUnaryCall; public getModelType(request: proto_clarifai_api_service_pb.GetModelTypeRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelTypeResponse) => void): grpc.ClientUnaryCall; @@ -1987,6 +3195,9 @@ export class V2Client extends grpc.Client implements IV2Client { public listModels(request: proto_clarifai_api_service_pb.ListModelsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; public listModels(request: proto_clarifai_api_service_pb.ListModelsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; public listModels(request: proto_clarifai_api_service_pb.ListModelsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + public getResourceCounts(request: proto_clarifai_api_service_pb.GetResourceCountsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetResourceCountsResponse) => void): grpc.ClientUnaryCall; + public getResourceCounts(request: proto_clarifai_api_service_pb.GetResourceCountsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetResourceCountsResponse) => void): grpc.ClientUnaryCall; + public getResourceCounts(request: proto_clarifai_api_service_pb.GetResourceCountsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.GetResourceCountsResponse) => void): grpc.ClientUnaryCall; public postModelsSearches(request: proto_clarifai_api_service_pb.PostModelsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; public postModelsSearches(request: proto_clarifai_api_service_pb.PostModelsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; public postModelsSearches(request: proto_clarifai_api_service_pb.PostModelsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; @@ -1996,12 +3207,18 @@ export class V2Client extends grpc.Client implements IV2Client { public patchModels(request: proto_clarifai_api_service_pb.PatchModelsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; public patchModels(request: proto_clarifai_api_service_pb.PatchModelsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; public patchModels(request: proto_clarifai_api_service_pb.PatchModelsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + public patchModelIds(request: proto_clarifai_api_service_pb.PatchModelIdsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + public patchModelIds(request: proto_clarifai_api_service_pb.PatchModelIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; + public patchModelIds(request: proto_clarifai_api_service_pb.PatchModelIdsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelResponse) => void): grpc.ClientUnaryCall; public deleteModel(request: proto_clarifai_api_service_pb.DeleteModelRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteModel(request: proto_clarifai_api_service_pb.DeleteModelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteModel(request: proto_clarifai_api_service_pb.DeleteModelRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteModels(request: proto_clarifai_api_service_pb.DeleteModelsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteModels(request: proto_clarifai_api_service_pb.DeleteModelsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteModels(request: proto_clarifai_api_service_pb.DeleteModelsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public patchModelCheckConsents(request: proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelCheckConsentResponse) => void): grpc.ClientUnaryCall; + public patchModelCheckConsents(request: proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelCheckConsentResponse) => void): grpc.ClientUnaryCall; + public patchModelCheckConsents(request: proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelCheckConsentResponse) => void): grpc.ClientUnaryCall; public patchModelToolkits(request: proto_clarifai_api_service_pb.PatchModelToolkitsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelToolkitResponse) => void): grpc.ClientUnaryCall; public patchModelToolkits(request: proto_clarifai_api_service_pb.PatchModelToolkitsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelToolkitResponse) => void): grpc.ClientUnaryCall; public patchModelToolkits(request: proto_clarifai_api_service_pb.PatchModelToolkitsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelToolkitResponse) => void): grpc.ClientUnaryCall; @@ -2020,6 +3237,12 @@ export class V2Client extends grpc.Client implements IV2Client { public listModelVersions(request: proto_clarifai_api_service_pb.ListModelVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelVersionResponse) => void): grpc.ClientUnaryCall; public listModelVersions(request: proto_clarifai_api_service_pb.ListModelVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelVersionResponse) => void): grpc.ClientUnaryCall; public listModelVersions(request: proto_clarifai_api_service_pb.ListModelVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelVersionResponse) => void): grpc.ClientUnaryCall; + public postWorkflowVersionsUnPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public postWorkflowVersionsUnPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public postWorkflowVersionsUnPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public postWorkflowVersionsPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public postWorkflowVersionsPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public postWorkflowVersionsPublish(request: proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public postModelVersionsPublish(request: proto_clarifai_api_service_pb.PostModelVersionsPublishRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public postModelVersionsPublish(request: proto_clarifai_api_service_pb.PostModelVersionsPublishRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public postModelVersionsPublish(request: proto_clarifai_api_service_pb.PostModelVersionsPublishRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; @@ -2041,6 +3264,24 @@ export class V2Client extends grpc.Client implements IV2Client { public postModelVersionMetrics(request: proto_clarifai_api_service_pb.PostModelVersionMetricsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelVersionResponse) => void): grpc.ClientUnaryCall; public postModelVersionMetrics(request: proto_clarifai_api_service_pb.PostModelVersionMetricsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelVersionResponse) => void): grpc.ClientUnaryCall; public postModelVersionMetrics(request: proto_clarifai_api_service_pb.PostModelVersionMetricsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModelVersionResponse) => void): grpc.ClientUnaryCall; + public postModelVersionEvaluations(request: proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public postModelVersionEvaluations(request: proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public postModelVersionEvaluations(request: proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public listModelVersionEvaluations(request: proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public listModelVersionEvaluations(request: proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public listModelVersionEvaluations(request: proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public getModelVersionEvaluation(request: proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public getModelVersionEvaluation(request: proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public getModelVersionEvaluation(request: proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public postEvaluations(request: proto_clarifai_api_service_pb.PostEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public postEvaluations(request: proto_clarifai_api_service_pb.PostEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public postEvaluations(request: proto_clarifai_api_service_pb.PostEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public listEvaluations(request: proto_clarifai_api_service_pb.ListEvaluationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public listEvaluations(request: proto_clarifai_api_service_pb.ListEvaluationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public listEvaluations(request: proto_clarifai_api_service_pb.ListEvaluationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public getEvaluation(request: proto_clarifai_api_service_pb.GetEvaluationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public getEvaluation(request: proto_clarifai_api_service_pb.GetEvaluationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; + public getEvaluation(request: proto_clarifai_api_service_pb.GetEvaluationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleEvalMetricsResponse) => void): grpc.ClientUnaryCall; public listModelReferences(request: proto_clarifai_api_service_pb.ListModelReferencesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelReferenceResponse) => void): grpc.ClientUnaryCall; public listModelReferences(request: proto_clarifai_api_service_pb.ListModelReferencesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelReferenceResponse) => void): grpc.ClientUnaryCall; public listModelReferences(request: proto_clarifai_api_service_pb.ListModelReferencesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModelReferenceResponse) => void): grpc.ClientUnaryCall; @@ -2062,6 +3303,9 @@ export class V2Client extends grpc.Client implements IV2Client { public patchWorkflows(request: proto_clarifai_api_service_pb.PatchWorkflowsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; public patchWorkflows(request: proto_clarifai_api_service_pb.PatchWorkflowsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; public patchWorkflows(request: proto_clarifai_api_service_pb.PatchWorkflowsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; + public patchWorkflowIds(request: proto_clarifai_api_service_pb.PatchWorkflowIdsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; + public patchWorkflowIds(request: proto_clarifai_api_service_pb.PatchWorkflowIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; + public patchWorkflowIds(request: proto_clarifai_api_service_pb.PatchWorkflowIdsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiWorkflowResponse) => void): grpc.ClientUnaryCall; public deleteWorkflow(request: proto_clarifai_api_service_pb.DeleteWorkflowRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteWorkflow(request: proto_clarifai_api_service_pb.DeleteWorkflowRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteWorkflow(request: proto_clarifai_api_service_pb.DeleteWorkflowRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; @@ -2131,9 +3375,18 @@ export class V2Client extends grpc.Client implements IV2Client { public patchApps(request: proto_clarifai_api_service_pb.PatchAppsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; public patchApps(request: proto_clarifai_api_service_pb.PatchAppsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; public patchApps(request: proto_clarifai_api_service_pb.PatchAppsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + public patchAppsIds(request: proto_clarifai_api_service_pb.PatchAppsIdsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + public patchAppsIds(request: proto_clarifai_api_service_pb.PatchAppsIdsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + public patchAppsIds(request: proto_clarifai_api_service_pb.PatchAppsIdsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + public patchApp(request: proto_clarifai_api_service_pb.PatchAppRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAppResponse) => void): grpc.ClientUnaryCall; + public patchApp(request: proto_clarifai_api_service_pb.PatchAppRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAppResponse) => void): grpc.ClientUnaryCall; + public patchApp(request: proto_clarifai_api_service_pb.PatchAppRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAppResponse) => void): grpc.ClientUnaryCall; public postAppsSearches(request: proto_clarifai_api_service_pb.PostAppsSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; public postAppsSearches(request: proto_clarifai_api_service_pb.PostAppsSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; public postAppsSearches(request: proto_clarifai_api_service_pb.PostAppsSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAppResponse) => void): grpc.ClientUnaryCall; + public getUser(request: proto_clarifai_api_service_pb.GetUserRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUserResponse) => void): grpc.ClientUnaryCall; + public getUser(request: proto_clarifai_api_service_pb.GetUserRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUserResponse) => void): grpc.ClientUnaryCall; + public getUser(request: proto_clarifai_api_service_pb.GetUserRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUserResponse) => void): grpc.ClientUnaryCall; public postValidatePassword(request: proto_clarifai_api_service_pb.PostValidatePasswordRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SinglePasswordValidationResponse) => void): grpc.ClientUnaryCall; public postValidatePassword(request: proto_clarifai_api_service_pb.PostValidatePasswordRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SinglePasswordValidationResponse) => void): grpc.ClientUnaryCall; public postValidatePassword(request: proto_clarifai_api_service_pb.PostValidatePasswordRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SinglePasswordValidationResponse) => void): grpc.ClientUnaryCall; @@ -2143,6 +3396,9 @@ export class V2Client extends grpc.Client implements IV2Client { public listSearches(request: proto_clarifai_api_service_pb.ListSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public listSearches(request: proto_clarifai_api_service_pb.ListSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public listSearches(request: proto_clarifai_api_service_pb.ListSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + public patchSearches(request: proto_clarifai_api_service_pb.PatchSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + public patchSearches(request: proto_clarifai_api_service_pb.PatchSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; + public patchSearches(request: proto_clarifai_api_service_pb.PatchSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postSearches(request: proto_clarifai_api_service_pb.PostSearchesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postSearches(request: proto_clarifai_api_service_pb.PostSearchesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; public postSearches(request: proto_clarifai_api_service_pb.PostSearchesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiSearchResponse) => void): grpc.ClientUnaryCall; @@ -2164,6 +3420,21 @@ export class V2Client extends grpc.Client implements IV2Client { public deleteSearch(request: proto_clarifai_api_service_pb.DeleteSearchRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteSearch(request: proto_clarifai_api_service_pb.DeleteSearchRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public deleteSearch(request: proto_clarifai_api_service_pb.DeleteSearchRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public listAnnotationFilters(request: proto_clarifai_api_service_pb.ListAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public listAnnotationFilters(request: proto_clarifai_api_service_pb.ListAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public listAnnotationFilters(request: proto_clarifai_api_service_pb.ListAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public getAnnotationFilter(request: proto_clarifai_api_service_pb.GetAnnotationFilterRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public getAnnotationFilter(request: proto_clarifai_api_service_pb.GetAnnotationFilterRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public getAnnotationFilter(request: proto_clarifai_api_service_pb.GetAnnotationFilterRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public postAnnotationFilters(request: proto_clarifai_api_service_pb.PostAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public postAnnotationFilters(request: proto_clarifai_api_service_pb.PostAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public postAnnotationFilters(request: proto_clarifai_api_service_pb.PostAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public patchAnnotationFilters(request: proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public patchAnnotationFilters(request: proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public patchAnnotationFilters(request: proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse) => void): grpc.ClientUnaryCall; + public deleteAnnotationFilters(request: proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteAnnotationFilters(request: proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteAnnotationFilters(request: proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; public listStatusCodes(request: proto_clarifai_api_service_pb.ListStatusCodesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiStatusCodeResponse) => void): grpc.ClientUnaryCall; public listStatusCodes(request: proto_clarifai_api_service_pb.ListStatusCodesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiStatusCodeResponse) => void): grpc.ClientUnaryCall; public listStatusCodes(request: proto_clarifai_api_service_pb.ListStatusCodesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiStatusCodeResponse) => void): grpc.ClientUnaryCall; @@ -2257,4 +3528,127 @@ export class V2Client extends grpc.Client implements IV2Client { public listTrendingMetricsViews(request: proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiTrendingMetricsViewResponse) => void): grpc.ClientUnaryCall; public listTrendingMetricsViews(request: proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiTrendingMetricsViewResponse) => void): grpc.ClientUnaryCall; public listTrendingMetricsViews(request: proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiTrendingMetricsViewResponse) => void): grpc.ClientUnaryCall; + public getModule(request: proto_clarifai_api_service_pb.GetModuleRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleResponse) => void): grpc.ClientUnaryCall; + public getModule(request: proto_clarifai_api_service_pb.GetModuleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleResponse) => void): grpc.ClientUnaryCall; + public getModule(request: proto_clarifai_api_service_pb.GetModuleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleResponse) => void): grpc.ClientUnaryCall; + public listModules(request: proto_clarifai_api_service_pb.ListModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public listModules(request: proto_clarifai_api_service_pb.ListModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public listModules(request: proto_clarifai_api_service_pb.ListModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public postModules(request: proto_clarifai_api_service_pb.PostModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public postModules(request: proto_clarifai_api_service_pb.PostModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public postModules(request: proto_clarifai_api_service_pb.PostModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public patchModules(request: proto_clarifai_api_service_pb.PatchModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public patchModules(request: proto_clarifai_api_service_pb.PatchModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public patchModules(request: proto_clarifai_api_service_pb.PatchModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleResponse) => void): grpc.ClientUnaryCall; + public deleteModules(request: proto_clarifai_api_service_pb.DeleteModulesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteModules(request: proto_clarifai_api_service_pb.DeleteModulesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteModules(request: proto_clarifai_api_service_pb.DeleteModulesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public getModuleVersion(request: proto_clarifai_api_service_pb.GetModuleVersionRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleVersionResponse) => void): grpc.ClientUnaryCall; + public getModuleVersion(request: proto_clarifai_api_service_pb.GetModuleVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleVersionResponse) => void): grpc.ClientUnaryCall; + public getModuleVersion(request: proto_clarifai_api_service_pb.GetModuleVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleModuleVersionResponse) => void): grpc.ClientUnaryCall; + public listModuleVersions(request: proto_clarifai_api_service_pb.ListModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + public listModuleVersions(request: proto_clarifai_api_service_pb.ListModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + public listModuleVersions(request: proto_clarifai_api_service_pb.ListModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + public postModuleVersions(request: proto_clarifai_api_service_pb.PostModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + public postModuleVersions(request: proto_clarifai_api_service_pb.PostModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + public postModuleVersions(request: proto_clarifai_api_service_pb.PostModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiModuleVersionResponse) => void): grpc.ClientUnaryCall; + public deleteModuleVersions(request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteModuleVersions(request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteModuleVersions(request: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public getInstalledModuleVersion(request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public getInstalledModuleVersion(request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public getInstalledModuleVersion(request: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public listInstalledModuleVersions(request: proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public listInstalledModuleVersions(request: proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public listInstalledModuleVersions(request: proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public postInstalledModuleVersions(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public postInstalledModuleVersions(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public postInstalledModuleVersions(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse) => void): grpc.ClientUnaryCall; + public deleteInstalledModuleVersions(request: proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteInstalledModuleVersions(request: proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteInstalledModuleVersions(request: proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public postInstalledModuleVersionsKey(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleKeyResponse) => void): grpc.ClientUnaryCall; + public postInstalledModuleVersionsKey(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleKeyResponse) => void): grpc.ClientUnaryCall; + public postInstalledModuleVersionsKey(request: proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleKeyResponse) => void): grpc.ClientUnaryCall; + public postBulkOperations(request: proto_clarifai_api_service_pb.PostBulkOperationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public postBulkOperations(request: proto_clarifai_api_service_pb.PostBulkOperationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public postBulkOperations(request: proto_clarifai_api_service_pb.PostBulkOperationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public listBulkOperations(request: proto_clarifai_api_service_pb.ListBulkOperationsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public listBulkOperations(request: proto_clarifai_api_service_pb.ListBulkOperationsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public listBulkOperations(request: proto_clarifai_api_service_pb.ListBulkOperationsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public getBulkOperation(request: proto_clarifai_api_service_pb.GetBulkOperationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public getBulkOperation(request: proto_clarifai_api_service_pb.GetBulkOperationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public getBulkOperation(request: proto_clarifai_api_service_pb.GetBulkOperationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public cancelBulkOperations(request: proto_clarifai_api_service_pb.CancelBulkOperationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public cancelBulkOperations(request: proto_clarifai_api_service_pb.CancelBulkOperationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public cancelBulkOperations(request: proto_clarifai_api_service_pb.CancelBulkOperationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiBulkOperationsResponse) => void): grpc.ClientUnaryCall; + public deleteBulkOperations(request: proto_clarifai_api_service_pb.DeleteBulkOperationRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteBulkOperations(request: proto_clarifai_api_service_pb.DeleteBulkOperationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteBulkOperations(request: proto_clarifai_api_service_pb.DeleteBulkOperationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public getDatasetInputsSearchAddJob(request: proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse) => void): grpc.ClientUnaryCall; + public getDatasetInputsSearchAddJob(request: proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse) => void): grpc.ClientUnaryCall; + public getDatasetInputsSearchAddJob(request: proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse) => void): grpc.ClientUnaryCall; + public listNextTaskAssignments(request: proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; + public listNextTaskAssignments(request: proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; + public listNextTaskAssignments(request: proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputResponse) => void): grpc.ClientUnaryCall; + public putTaskAssignments(request: proto_clarifai_api_service_pb.PutTaskAssignmentsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public putTaskAssignments(request: proto_clarifai_api_service_pb.PutTaskAssignmentsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public putTaskAssignments(request: proto_clarifai_api_service_pb.PutTaskAssignmentsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public listInputsAddJobs(request: proto_clarifai_api_service_pb.ListInputsAddJobsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public listInputsAddJobs(request: proto_clarifai_api_service_pb.ListInputsAddJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public listInputsAddJobs(request: proto_clarifai_api_service_pb.ListInputsAddJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public getInputsAddJob(request: proto_clarifai_api_service_pb.GetInputsAddJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public getInputsAddJob(request: proto_clarifai_api_service_pb.GetInputsAddJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public getInputsAddJob(request: proto_clarifai_api_service_pb.GetInputsAddJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public cancelInputsAddJob(request: proto_clarifai_api_service_pb.CancelInputsAddJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public cancelInputsAddJob(request: proto_clarifai_api_service_pb.CancelInputsAddJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public cancelInputsAddJob(request: proto_clarifai_api_service_pb.CancelInputsAddJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public postUploads(request: proto_clarifai_api_service_pb.PostUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + public postUploads(request: proto_clarifai_api_service_pb.PostUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + public postUploads(request: proto_clarifai_api_service_pb.PostUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + public putUploadContentParts(request: proto_clarifai_api_service_pb.PutUploadContentPartsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + public putUploadContentParts(request: proto_clarifai_api_service_pb.PutUploadContentPartsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + public putUploadContentParts(request: proto_clarifai_api_service_pb.PutUploadContentPartsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + public getUpload(request: proto_clarifai_api_service_pb.GetUploadRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + public getUpload(request: proto_clarifai_api_service_pb.GetUploadRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + public getUpload(request: proto_clarifai_api_service_pb.GetUploadRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleUploadResponse) => void): grpc.ClientUnaryCall; + public listUploads(request: proto_clarifai_api_service_pb.ListUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + public listUploads(request: proto_clarifai_api_service_pb.ListUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + public listUploads(request: proto_clarifai_api_service_pb.ListUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiUploadResponse) => void): grpc.ClientUnaryCall; + public deleteUploads(request: proto_clarifai_api_service_pb.DeleteUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteUploads(request: proto_clarifai_api_service_pb.DeleteUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteUploads(request: proto_clarifai_api_service_pb.DeleteUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public postInputsDataSources(request: proto_clarifai_api_service_pb.PostInputsDataSourcesRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public postInputsDataSources(request: proto_clarifai_api_service_pb.PostInputsDataSourcesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public postInputsDataSources(request: proto_clarifai_api_service_pb.PostInputsDataSourcesRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public getInputsExtractionJob(request: proto_clarifai_api_service_pb.GetInputsExtractionJobRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public getInputsExtractionJob(request: proto_clarifai_api_service_pb.GetInputsExtractionJobRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public getInputsExtractionJob(request: proto_clarifai_api_service_pb.GetInputsExtractionJobRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public listInputsExtractionJobs(request: proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public listInputsExtractionJobs(request: proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public listInputsExtractionJobs(request: proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public cancelInputsExtractionJobs(request: proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public cancelInputsExtractionJobs(request: proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public cancelInputsExtractionJobs(request: proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse) => void): grpc.ClientUnaryCall; + public postInputsUploads(request: proto_clarifai_api_service_pb.PostInputsUploadsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public postInputsUploads(request: proto_clarifai_api_service_pb.PostInputsUploadsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public postInputsUploads(request: proto_clarifai_api_service_pb.PostInputsUploadsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiInputsAddJobResponse) => void): grpc.ClientUnaryCall; + public getRunner(request: proto_clarifai_api_service_pb.GetRunnerRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleRunnerResponse) => void): grpc.ClientUnaryCall; + public getRunner(request: proto_clarifai_api_service_pb.GetRunnerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleRunnerResponse) => void): grpc.ClientUnaryCall; + public getRunner(request: proto_clarifai_api_service_pb.GetRunnerRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.SingleRunnerResponse) => void): grpc.ClientUnaryCall; + public listRunners(request: proto_clarifai_api_service_pb.ListRunnersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + public listRunners(request: proto_clarifai_api_service_pb.ListRunnersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + public listRunners(request: proto_clarifai_api_service_pb.ListRunnersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + public postRunners(request: proto_clarifai_api_service_pb.PostRunnersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + public postRunners(request: proto_clarifai_api_service_pb.PostRunnersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + public postRunners(request: proto_clarifai_api_service_pb.PostRunnersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerResponse) => void): grpc.ClientUnaryCall; + public deleteRunners(request: proto_clarifai_api_service_pb.DeleteRunnersRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteRunners(request: proto_clarifai_api_service_pb.DeleteRunnersRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public deleteRunners(request: proto_clarifai_api_service_pb.DeleteRunnersRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_status_status_pb.BaseResponse) => void): grpc.ClientUnaryCall; + public listRunnerItems(request: proto_clarifai_api_service_pb.ListRunnerItemsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemResponse) => void): grpc.ClientUnaryCall; + public listRunnerItems(request: proto_clarifai_api_service_pb.ListRunnerItemsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemResponse) => void): grpc.ClientUnaryCall; + public listRunnerItems(request: proto_clarifai_api_service_pb.ListRunnerItemsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemResponse) => void): grpc.ClientUnaryCall; + public postRunnerItemOutputs(request: proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse) => void): grpc.ClientUnaryCall; + public postRunnerItemOutputs(request: proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse) => void): grpc.ClientUnaryCall; + public postRunnerItemOutputs(request: proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse) => void): grpc.ClientUnaryCall; } diff --git a/proto/clarifai/api/service_grpc_pb.js b/proto/clarifai/api/service_grpc_pb.js index 71183cc..90beb38 100644 --- a/proto/clarifai/api/service_grpc_pb.js +++ b/proto/clarifai/api/service_grpc_pb.js @@ -14,6 +14,50 @@ var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/durat var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); +function serialize_clarifai_api_CancelBulkOperationRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.CancelBulkOperationRequest)) { + throw new Error('Expected argument of type clarifai.api.CancelBulkOperationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_CancelBulkOperationRequest(buffer_arg) { + return proto_clarifai_api_service_pb.CancelBulkOperationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_CancelInputsAddJobRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.CancelInputsAddJobRequest)) { + throw new Error('Expected argument of type clarifai.api.CancelInputsAddJobRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_CancelInputsAddJobRequest(buffer_arg) { + return proto_clarifai_api_service_pb.CancelInputsAddJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_CancelInputsExtractionJobsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest)) { + throw new Error('Expected argument of type clarifai.api.CancelInputsExtractionJobsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_CancelInputsExtractionJobsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_DeleteAnnotationFiltersRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteAnnotationFiltersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteAnnotationFiltersRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_DeleteAnnotationRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.DeleteAnnotationRequest)) { throw new Error('Expected argument of type clarifai.api.DeleteAnnotationRequest'); @@ -58,6 +102,17 @@ function deserialize_clarifai_api_DeleteAppRequest(buffer_arg) { return proto_clarifai_api_service_pb.DeleteAppRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_DeleteBulkOperationRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteBulkOperationRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteBulkOperationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteBulkOperationRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteBulkOperationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_DeleteCollaboratorsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.DeleteCollaboratorsRequest)) { throw new Error('Expected argument of type clarifai.api.DeleteCollaboratorsRequest'); @@ -91,6 +146,39 @@ function deserialize_clarifai_api_DeleteConceptRelationsRequest(buffer_arg) { return proto_clarifai_api_service_pb.DeleteConceptRelationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_DeleteDatasetInputsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteDatasetInputsRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteDatasetInputsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteDatasetInputsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteDatasetInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_DeleteDatasetVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteDatasetVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteDatasetVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_DeleteDatasetsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteDatasetsRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteDatasetsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteDatasetsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteDatasetsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_DeleteInputRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.DeleteInputRequest)) { throw new Error('Expected argument of type clarifai.api.DeleteInputRequest'); @@ -113,6 +201,17 @@ function deserialize_clarifai_api_DeleteInputsRequest(buffer_arg) { return proto_clarifai_api_service_pb.DeleteInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_DeleteInstalledModuleVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteInstalledModuleVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteInstalledModuleVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_DeleteKeyRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.DeleteKeyRequest)) { throw new Error('Expected argument of type clarifai.api.DeleteKeyRequest'); @@ -168,6 +267,39 @@ function deserialize_clarifai_api_DeleteModelsRequest(buffer_arg) { return proto_clarifai_api_service_pb.DeleteModelsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_DeleteModuleVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteModuleVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteModuleVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteModuleVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteModuleVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_DeleteModulesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteModulesRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteModulesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteModulesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteModulesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_DeleteRunnersRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteRunnersRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteRunnersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteRunnersRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteRunnersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_DeleteSearchRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.DeleteSearchRequest)) { throw new Error('Expected argument of type clarifai.api.DeleteSearchRequest'); @@ -190,6 +322,17 @@ function deserialize_clarifai_api_DeleteTasksRequest(buffer_arg) { return proto_clarifai_api_service_pb.DeleteTasksRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_DeleteUploadsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.DeleteUploadsRequest)) { + throw new Error('Expected argument of type clarifai.api.DeleteUploadsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_DeleteUploadsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.DeleteUploadsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_DeleteWorkflowRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.DeleteWorkflowRequest)) { throw new Error('Expected argument of type clarifai.api.DeleteWorkflowRequest'); @@ -223,6 +366,17 @@ function deserialize_clarifai_api_DeleteWorkflowsRequest(buffer_arg) { return proto_clarifai_api_service_pb.DeleteWorkflowsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_GetAnnotationFilterRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetAnnotationFilterRequest)) { + throw new Error('Expected argument of type clarifai.api.GetAnnotationFilterRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetAnnotationFilterRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetAnnotationFilterRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_GetAnnotationRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.GetAnnotationRequest)) { throw new Error('Expected argument of type clarifai.api.GetAnnotationRequest'); @@ -267,6 +421,17 @@ function deserialize_clarifai_api_GetAppRequest(buffer_arg) { return proto_clarifai_api_service_pb.GetAppRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_GetBulkOperationRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetBulkOperationRequest)) { + throw new Error('Expected argument of type clarifai.api.GetBulkOperationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetBulkOperationRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetBulkOperationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_GetCollectorRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.GetCollectorRequest)) { throw new Error('Expected argument of type clarifai.api.GetCollectorRequest'); @@ -311,6 +476,61 @@ function deserialize_clarifai_api_GetConceptRequest(buffer_arg) { return proto_clarifai_api_service_pb.GetConceptRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_GetDatasetInputRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetDatasetInputRequest)) { + throw new Error('Expected argument of type clarifai.api.GetDatasetInputRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetDatasetInputRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetDatasetInputRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetDatasetInputsSearchAddJobRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest)) { + throw new Error('Expected argument of type clarifai.api.GetDatasetInputsSearchAddJobRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetDatasetInputsSearchAddJobRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetDatasetRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetDatasetRequest)) { + throw new Error('Expected argument of type clarifai.api.GetDatasetRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetDatasetRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetDatasetRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetDatasetVersionRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetDatasetVersionRequest)) { + throw new Error('Expected argument of type clarifai.api.GetDatasetVersionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetDatasetVersionRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetDatasetVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetEvaluationRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetEvaluationRequest)) { + throw new Error('Expected argument of type clarifai.api.GetEvaluationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetEvaluationRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetEvaluationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_GetInputCountRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.GetInputCountRequest)) { throw new Error('Expected argument of type clarifai.api.GetInputCountRequest'); @@ -344,6 +564,39 @@ function deserialize_clarifai_api_GetInputSamplesRequest(buffer_arg) { return proto_clarifai_api_service_pb.GetInputSamplesRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_GetInputsAddJobRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetInputsAddJobRequest)) { + throw new Error('Expected argument of type clarifai.api.GetInputsAddJobRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetInputsAddJobRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetInputsAddJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetInputsExtractionJobRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetInputsExtractionJobRequest)) { + throw new Error('Expected argument of type clarifai.api.GetInputsExtractionJobRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetInputsExtractionJobRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetInputsExtractionJobRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetInstalledModuleVersionRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest)) { + throw new Error('Expected argument of type clarifai.api.GetInstalledModuleVersionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetInstalledModuleVersionRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_GetKeyRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.GetKeyRequest)) { throw new Error('Expected argument of type clarifai.api.GetKeyRequest'); @@ -388,6 +641,17 @@ function deserialize_clarifai_api_GetModelTypeRequest(buffer_arg) { return proto_clarifai_api_service_pb.GetModelTypeRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_GetModelVersionEvaluationRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest)) { + throw new Error('Expected argument of type clarifai.api.GetModelVersionEvaluationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetModelVersionEvaluationRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_GetModelVersionInputExampleRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.GetModelVersionInputExampleRequest)) { throw new Error('Expected argument of type clarifai.api.GetModelVersionInputExampleRequest'); @@ -421,6 +685,61 @@ function deserialize_clarifai_api_GetModelVersionRequest(buffer_arg) { return proto_clarifai_api_service_pb.GetModelVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_GetModuleRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetModuleRequest)) { + throw new Error('Expected argument of type clarifai.api.GetModuleRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetModuleRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetModuleRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetModuleVersionRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetModuleVersionRequest)) { + throw new Error('Expected argument of type clarifai.api.GetModuleVersionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetModuleVersionRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetModuleVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetResourceCountsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetResourceCountsRequest)) { + throw new Error('Expected argument of type clarifai.api.GetResourceCountsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetResourceCountsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetResourceCountsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetResourceCountsResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetResourceCountsResponse)) { + throw new Error('Expected argument of type clarifai.api.GetResourceCountsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetResourceCountsResponse(buffer_arg) { + return proto_clarifai_api_service_pb.GetResourceCountsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetRunnerRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetRunnerRequest)) { + throw new Error('Expected argument of type clarifai.api.GetRunnerRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetRunnerRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetRunnerRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_GetSearchRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.GetSearchRequest)) { throw new Error('Expected argument of type clarifai.api.GetSearchRequest'); @@ -465,6 +784,50 @@ function deserialize_clarifai_api_GetTaskRequest(buffer_arg) { return proto_clarifai_api_service_pb.GetTaskRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_GetUploadRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetUploadRequest)) { + throw new Error('Expected argument of type clarifai.api.GetUploadRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetUploadRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetUploadRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetUserRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetUserRequest)) { + throw new Error('Expected argument of type clarifai.api.GetUserRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetUserRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetVideoManifestRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetVideoManifestRequest)) { + throw new Error('Expected argument of type clarifai.api.GetVideoManifestRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetVideoManifestRequest(buffer_arg) { + return proto_clarifai_api_service_pb.GetVideoManifestRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_GetVideoManifestResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.GetVideoManifestResponse)) { + throw new Error('Expected argument of type clarifai.api.GetVideoManifestResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_GetVideoManifestResponse(buffer_arg) { + return proto_clarifai_api_service_pb.GetVideoManifestResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_GetWorkflowRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.GetWorkflowRequest)) { throw new Error('Expected argument of type clarifai.api.GetWorkflowRequest'); @@ -487,6 +850,17 @@ function deserialize_clarifai_api_GetWorkflowVersionRequest(buffer_arg) { return proto_clarifai_api_service_pb.GetWorkflowVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListAnnotationFiltersRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListAnnotationFiltersRequest)) { + throw new Error('Expected argument of type clarifai.api.ListAnnotationFiltersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListAnnotationFiltersRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListAnnotationFiltersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListAnnotationSearchMetricsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListAnnotationSearchMetricsRequest)) { throw new Error('Expected argument of type clarifai.api.ListAnnotationSearchMetricsRequest'); @@ -542,6 +916,17 @@ function deserialize_clarifai_api_ListAppsRequest(buffer_arg) { return proto_clarifai_api_service_pb.ListAppsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListBulkOperationsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListBulkOperationsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListBulkOperationsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListBulkOperationsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListBulkOperationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListCollaborationsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListCollaborationsRequest)) { throw new Error('Expected argument of type clarifai.api.ListCollaborationsRequest'); @@ -608,6 +993,83 @@ function deserialize_clarifai_api_ListConceptsRequest(buffer_arg) { return proto_clarifai_api_service_pb.ListConceptsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListDatasetInputsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListDatasetInputsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListDatasetInputsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListDatasetInputsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListDatasetInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListDatasetVersionMetricsGroupsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListDatasetVersionMetricsGroupsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListDatasetVersionMetricsGroupsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListDatasetVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListDatasetVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListDatasetVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListDatasetVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListDatasetVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListDatasetsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListDatasetsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListDatasetsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListDatasetsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListDatasetsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListEvaluationsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListEvaluationsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListEvaluationsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListEvaluationsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListEvaluationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListInputsAddJobsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListInputsAddJobsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListInputsAddJobsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListInputsAddJobsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListInputsAddJobsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListInputsExtractionJobsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListInputsExtractionJobsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListInputsExtractionJobsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListInputsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListInputsRequest)) { throw new Error('Expected argument of type clarifai.api.ListInputsRequest'); @@ -619,6 +1081,17 @@ function deserialize_clarifai_api_ListInputsRequest(buffer_arg) { return proto_clarifai_api_service_pb.ListInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListInstalledModuleVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListInstalledModuleVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListInstalledModuleVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListKeysRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListKeysRequest)) { throw new Error('Expected argument of type clarifai.api.ListKeysRequest'); @@ -652,6 +1125,17 @@ function deserialize_clarifai_api_ListLabelOrdersRequest(buffer_arg) { return proto_clarifai_api_service_pb.ListLabelOrdersRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListModelConceptsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListModelConceptsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListModelConceptsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListModelConceptsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListModelConceptsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListModelInputsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListModelInputsRequest)) { throw new Error('Expected argument of type clarifai.api.ListModelInputsRequest'); @@ -685,6 +1169,17 @@ function deserialize_clarifai_api_ListModelTypesRequest(buffer_arg) { return proto_clarifai_api_service_pb.ListModelTypesRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListModelVersionEvaluationsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListModelVersionEvaluationsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListModelVersionEvaluationsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListModelVersionInputExamplesRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListModelVersionInputExamplesRequest)) { throw new Error('Expected argument of type clarifai.api.ListModelVersionInputExamplesRequest'); @@ -718,6 +1213,39 @@ function deserialize_clarifai_api_ListModelsRequest(buffer_arg) { return proto_clarifai_api_service_pb.ListModelsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListModuleVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListModuleVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListModuleVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListModuleVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListModuleVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListModulesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListModulesRequest)) { + throw new Error('Expected argument of type clarifai.api.ListModulesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListModulesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListModulesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListNextTaskAssignmentsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListNextTaskAssignmentsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListNextTaskAssignmentsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListOpenSourceLicensesRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListOpenSourceLicensesRequest)) { throw new Error('Expected argument of type clarifai.api.ListOpenSourceLicensesRequest'); @@ -740,6 +1268,28 @@ function deserialize_clarifai_api_ListOpenSourceLicensesResponse(buffer_arg) { return proto_clarifai_api_service_pb.ListOpenSourceLicensesResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_ListRunnerItemsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListRunnerItemsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListRunnerItemsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListRunnerItemsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListRunnerItemsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListRunnersRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListRunnersRequest)) { + throw new Error('Expected argument of type clarifai.api.ListRunnersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListRunnersRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListRunnersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_ListScopesRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.ListScopesRequest)) { throw new Error('Expected argument of type clarifai.api.ListScopesRequest'); @@ -791,8 +1341,19 @@ function serialize_clarifai_api_ListTrendingMetricsViewsRequest(arg) { return Buffer.from(arg.serializeBinary()); } -function deserialize_clarifai_api_ListTrendingMetricsViewsRequest(buffer_arg) { - return proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_clarifai_api_ListTrendingMetricsViewsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListTrendingMetricsViewsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_ListUploadsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.ListUploadsRequest)) { + throw new Error('Expected argument of type clarifai.api.ListUploadsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_ListUploadsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.ListUploadsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_clarifai_api_ListWorkflowVersionsRequest(arg) { @@ -817,6 +1378,17 @@ function deserialize_clarifai_api_ListWorkflowsRequest(buffer_arg) { return proto_clarifai_api_service_pb.ListWorkflowsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiAnnotationFilterResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiAnnotationFilterResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiAnnotationFilterResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiAnnotationFilterResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiAnnotationFilterResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiAnnotationResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiAnnotationResponse)) { throw new Error('Expected argument of type clarifai.api.MultiAnnotationResponse'); @@ -861,6 +1433,17 @@ function deserialize_clarifai_api_MultiAppResponse(buffer_arg) { return proto_clarifai_api_service_pb.MultiAppResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiBulkOperationsResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiBulkOperationsResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiBulkOperationsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiBulkOperationsResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiBulkOperationsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiCollaborationsResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiCollaborationsResponse)) { throw new Error('Expected argument of type clarifai.api.MultiCollaborationsResponse'); @@ -949,6 +1532,72 @@ function deserialize_clarifai_api_MultiConceptResponse(buffer_arg) { return proto_clarifai_api_service_pb.MultiConceptResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiDatasetInputResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiDatasetInputResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiDatasetInputResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiDatasetInputResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiDatasetInputResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiDatasetResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiDatasetResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiDatasetResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiDatasetResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiDatasetResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiDatasetVersionExportResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiDatasetVersionExportResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiDatasetVersionExportResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiDatasetVersionMetricsGroupResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiDatasetVersionMetricsGroupResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiDatasetVersionMetricsGroupResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiDatasetVersionResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiDatasetVersionResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiDatasetVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiDatasetVersionResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiDatasetVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiEvalMetricsResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiEvalMetricsResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiEvalMetricsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiEvalMetricsResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiEvalMetricsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiInputAnnotationResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiInputAnnotationResponse)) { throw new Error('Expected argument of type clarifai.api.MultiInputAnnotationResponse'); @@ -971,6 +1620,39 @@ function deserialize_clarifai_api_MultiInputResponse(buffer_arg) { return proto_clarifai_api_service_pb.MultiInputResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiInputsAddJobResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiInputsAddJobResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiInputsAddJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiInputsAddJobResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiInputsAddJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiInputsExtractionJobResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiInputsExtractionJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiInputsExtractionJobResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiInstalledModuleVersionResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiInstalledModuleVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiInstalledModuleVersionResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiKeyResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiKeyResponse)) { throw new Error('Expected argument of type clarifai.api.MultiKeyResponse'); @@ -1004,6 +1686,17 @@ function deserialize_clarifai_api_MultiLabelOrderResponse(buffer_arg) { return proto_clarifai_api_service_pb.MultiLabelOrderResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiModelCheckConsentResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiModelCheckConsentResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiModelCheckConsentResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiModelCheckConsentResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiModelCheckConsentResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiModelLanguageResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiModelLanguageResponse)) { throw new Error('Expected argument of type clarifai.api.MultiModelLanguageResponse'); @@ -1092,6 +1785,28 @@ function deserialize_clarifai_api_MultiModelVersionResponse(buffer_arg) { return proto_clarifai_api_service_pb.MultiModelVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiModuleResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiModuleResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiModuleResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiModuleResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiModuleResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiModuleVersionResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiModuleVersionResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiModuleVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiModuleVersionResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiModuleVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiOutputResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiOutputResponse)) { throw new Error('Expected argument of type clarifai.api.MultiOutputResponse'); @@ -1103,6 +1818,39 @@ function deserialize_clarifai_api_MultiOutputResponse(buffer_arg) { return proto_clarifai_api_service_pb.MultiOutputResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiRunnerItemOutputResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiRunnerItemOutputResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiRunnerItemOutputResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiRunnerItemResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiRunnerItemResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiRunnerItemResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiRunnerItemResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiRunnerItemResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_MultiRunnerResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiRunnerResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiRunnerResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiRunnerResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiRunnerResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiScopeDepsResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiScopeDepsResponse)) { throw new Error('Expected argument of type clarifai.api.MultiScopeDepsResponse'); @@ -1213,6 +1961,17 @@ function deserialize_clarifai_api_MultiTrendingMetricsViewResponse(buffer_arg) { return proto_clarifai_api_service_pb.MultiTrendingMetricsViewResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_MultiUploadResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.MultiUploadResponse)) { + throw new Error('Expected argument of type clarifai.api.MultiUploadResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_MultiUploadResponse(buffer_arg) { + return proto_clarifai_api_service_pb.MultiUploadResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_MultiWorkflowResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.MultiWorkflowResponse)) { throw new Error('Expected argument of type clarifai.api.MultiWorkflowResponse'); @@ -1268,6 +2027,17 @@ function deserialize_clarifai_api_MyScopesUserRequest(buffer_arg) { return proto_clarifai_api_service_pb.MyScopesUserRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchAnnotationFiltersRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchAnnotationFiltersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchAnnotationFiltersRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchAnnotationsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchAnnotationsRequest)) { throw new Error('Expected argument of type clarifai.api.PatchAnnotationsRequest'); @@ -1279,6 +2049,17 @@ function deserialize_clarifai_api_PatchAnnotationsRequest(buffer_arg) { return proto_clarifai_api_service_pb.PatchAnnotationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchAnnotationsSearchesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchAnnotationsSearchesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchAnnotationsSearchesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchAnnotationsStatusRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchAnnotationsStatusRequest)) { throw new Error('Expected argument of type clarifai.api.PatchAnnotationsStatusRequest'); @@ -1301,6 +2082,28 @@ function deserialize_clarifai_api_PatchAnnotationsStatusResponse(buffer_arg) { return proto_clarifai_api_service_pb.PatchAnnotationsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchAppRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchAppRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchAppRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchAppRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchAppRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PatchAppsIdsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchAppsIdsRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchAppsIdsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchAppsIdsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchAppsIdsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchAppsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchAppsRequest)) { throw new Error('Expected argument of type clarifai.api.PatchAppsRequest'); @@ -1356,6 +2159,28 @@ function deserialize_clarifai_api_PatchConceptsRequest(buffer_arg) { return proto_clarifai_api_service_pb.PatchConceptsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchDatasetVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchDatasetVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchDatasetVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchDatasetVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchDatasetVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PatchDatasetsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchDatasetsRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchDatasetsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchDatasetsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchDatasetsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchInputsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchInputsRequest)) { throw new Error('Expected argument of type clarifai.api.PatchInputsRequest'); @@ -1367,6 +2192,17 @@ function deserialize_clarifai_api_PatchInputsRequest(buffer_arg) { return proto_clarifai_api_service_pb.PatchInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchInputsSearchesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchInputsSearchesRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchInputsSearchesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchInputsSearchesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchInputsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchKeysRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchKeysRequest)) { throw new Error('Expected argument of type clarifai.api.PatchKeysRequest'); @@ -1389,6 +2225,28 @@ function deserialize_clarifai_api_PatchLabelOrdersRequest(buffer_arg) { return proto_clarifai_api_service_pb.PatchLabelOrdersRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchModelCheckConsentsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchModelCheckConsentsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchModelCheckConsentsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PatchModelIdsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchModelIdsRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchModelIdsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchModelIdsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchModelIdsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchModelLanguagesRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchModelLanguagesRequest)) { throw new Error('Expected argument of type clarifai.api.PatchModelLanguagesRequest'); @@ -1444,6 +2302,28 @@ function deserialize_clarifai_api_PatchModelsRequest(buffer_arg) { return proto_clarifai_api_service_pb.PatchModelsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchModulesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchModulesRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchModulesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchModulesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchModulesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PatchSearchesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchSearchesRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchSearchesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchSearchesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchTasksRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchTasksRequest)) { throw new Error('Expected argument of type clarifai.api.PatchTasksRequest'); @@ -1455,6 +2335,17 @@ function deserialize_clarifai_api_PatchTasksRequest(buffer_arg) { return proto_clarifai_api_service_pb.PatchTasksRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PatchWorkflowIdsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PatchWorkflowIdsRequest)) { + throw new Error('Expected argument of type clarifai.api.PatchWorkflowIdsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PatchWorkflowIdsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PatchWorkflowIdsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PatchWorkflowVersionsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PatchWorkflowVersionsRequest)) { throw new Error('Expected argument of type clarifai.api.PatchWorkflowVersionsRequest'); @@ -1477,6 +2368,17 @@ function deserialize_clarifai_api_PatchWorkflowsRequest(buffer_arg) { return proto_clarifai_api_service_pb.PatchWorkflowsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PostAnnotationFiltersRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostAnnotationFiltersRequest)) { + throw new Error('Expected argument of type clarifai.api.PostAnnotationFiltersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostAnnotationFiltersRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostAnnotationFiltersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PostAnnotationSearchMetricsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PostAnnotationSearchMetricsRequest)) { throw new Error('Expected argument of type clarifai.api.PostAnnotationSearchMetricsRequest'); @@ -1543,6 +2445,17 @@ function deserialize_clarifai_api_PostAppsSearchesRequest(buffer_arg) { return proto_clarifai_api_service_pb.PostAppsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PostBulkOperationsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostBulkOperationsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostBulkOperationsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostBulkOperationsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostBulkOperationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PostCollaboratorsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PostCollaboratorsRequest)) { throw new Error('Expected argument of type clarifai.api.PostCollaboratorsRequest'); @@ -1616,30 +2529,118 @@ function serialize_clarifai_api_PostConceptsSearchesRequest(arg) { return Buffer.from(arg.serializeBinary()); } -function deserialize_clarifai_api_PostConceptsSearchesRequest(buffer_arg) { - return proto_clarifai_api_service_pb.PostConceptsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_clarifai_api_PostConceptsSearchesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostConceptsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostDatasetInputsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostDatasetInputsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostDatasetInputsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostDatasetInputsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostDatasetInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostDatasetVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostDatasetVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostDatasetVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostDatasetVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostDatasetVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostDatasetsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostDatasetsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostDatasetsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostDatasetsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostDatasetsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostEvaluationsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostEvaluationsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostEvaluationsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostEvaluationsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostEvaluationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostInputsDataSourcesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostInputsDataSourcesRequest)) { + throw new Error('Expected argument of type clarifai.api.PostInputsDataSourcesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostInputsDataSourcesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostInputsDataSourcesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostInputsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostInputsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostInputsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostInputsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostInputsSearchesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostInputsSearchesRequest)) { + throw new Error('Expected argument of type clarifai.api.PostInputsSearchesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostInputsSearchesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostInputsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostInputsUploadsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostInputsUploadsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostInputsUploadsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostInputsUploadsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostInputsUploadsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_clarifai_api_PostInputsRequest(arg) { - if (!(arg instanceof proto_clarifai_api_service_pb.PostInputsRequest)) { - throw new Error('Expected argument of type clarifai.api.PostInputsRequest'); +function serialize_clarifai_api_PostInstalledModuleVersionsKeyRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest)) { + throw new Error('Expected argument of type clarifai.api.PostInstalledModuleVersionsKeyRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_clarifai_api_PostInputsRequest(buffer_arg) { - return proto_clarifai_api_service_pb.PostInputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_clarifai_api_PostInstalledModuleVersionsKeyRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_clarifai_api_PostInputsSearchesRequest(arg) { - if (!(arg instanceof proto_clarifai_api_service_pb.PostInputsSearchesRequest)) { - throw new Error('Expected argument of type clarifai.api.PostInputsSearchesRequest'); +function serialize_clarifai_api_PostInstalledModuleVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostInstalledModuleVersionsRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_clarifai_api_PostInputsSearchesRequest(buffer_arg) { - return proto_clarifai_api_service_pb.PostInputsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_clarifai_api_PostInstalledModuleVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_clarifai_api_PostKeysRequest(arg) { @@ -1686,6 +2687,17 @@ function deserialize_clarifai_api_PostModelOutputsRequest(buffer_arg) { return proto_clarifai_api_service_pb.PostModelOutputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PostModelVersionEvaluationsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostModelVersionEvaluationsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostModelVersionEvaluationsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PostModelVersionMetricsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PostModelVersionMetricsRequest)) { throw new Error('Expected argument of type clarifai.api.PostModelVersionMetricsRequest'); @@ -1752,6 +2764,50 @@ function deserialize_clarifai_api_PostModelsSearchesRequest(buffer_arg) { return proto_clarifai_api_service_pb.PostModelsSearchesRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PostModuleVersionsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostModuleVersionsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostModuleVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostModuleVersionsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostModuleVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostModulesRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostModulesRequest)) { + throw new Error('Expected argument of type clarifai.api.PostModulesRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostModulesRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostModulesRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostRunnerItemOutputsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostRunnerItemOutputsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostRunnerItemOutputsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostRunnersRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostRunnersRequest)) { + throw new Error('Expected argument of type clarifai.api.PostRunnersRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostRunnersRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostRunnersRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PostSearchesByIDRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PostSearchesByIDRequest)) { throw new Error('Expected argument of type clarifai.api.PostSearchesByIDRequest'); @@ -1818,6 +2874,17 @@ function deserialize_clarifai_api_PostTrendingMetricsViewRequest(buffer_arg) { return proto_clarifai_api_service_pb.PostTrendingMetricsViewRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PostUploadsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostUploadsRequest)) { + throw new Error('Expected argument of type clarifai.api.PostUploadsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostUploadsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostUploadsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PostValidatePasswordRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PostValidatePasswordRequest)) { throw new Error('Expected argument of type clarifai.api.PostValidatePasswordRequest'); @@ -1873,6 +2940,28 @@ function deserialize_clarifai_api_PostWorkflowResultsSimilarityResponse(buffer_a return proto_clarifai_api_service_pb.PostWorkflowResultsSimilarityResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PostWorkflowVersionsPublishRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest)) { + throw new Error('Expected argument of type clarifai.api.PostWorkflowVersionsPublishRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostWorkflowVersionsPublishRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PostWorkflowVersionsUnPublishRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest)) { + throw new Error('Expected argument of type clarifai.api.PostWorkflowVersionsUnPublishRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PostWorkflowVersionsUnPublishRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_PostWorkflowsRequest(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.PostWorkflowsRequest)) { throw new Error('Expected argument of type clarifai.api.PostWorkflowsRequest'); @@ -1884,6 +2973,50 @@ function deserialize_clarifai_api_PostWorkflowsRequest(buffer_arg) { return proto_clarifai_api_service_pb.PostWorkflowsRequest.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_PutDatasetVersionExportsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest)) { + throw new Error('Expected argument of type clarifai.api.PutDatasetVersionExportsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PutDatasetVersionExportsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PutTaskAssignmentsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PutTaskAssignmentsRequest)) { + throw new Error('Expected argument of type clarifai.api.PutTaskAssignmentsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PutTaskAssignmentsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PutTaskAssignmentsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_PutUploadContentPartsRequest(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.PutUploadContentPartsRequest)) { + throw new Error('Expected argument of type clarifai.api.PutUploadContentPartsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_PutUploadContentPartsRequest(buffer_arg) { + return proto_clarifai_api_service_pb.PutUploadContentPartsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleAnnotationFilterResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleAnnotationFilterResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleAnnotationFilterResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleAnnotationFilterResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleAnnotationFilterResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_SingleAnnotationResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.SingleAnnotationResponse)) { throw new Error('Expected argument of type clarifai.api.SingleAnnotationResponse'); @@ -1917,6 +3050,17 @@ function deserialize_clarifai_api_SingleAppResponse(buffer_arg) { return proto_clarifai_api_service_pb.SingleAppResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_SingleBulkOperationsResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleBulkOperationsResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleBulkOperationsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleBulkOperationsResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleBulkOperationsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_SingleCollectorResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.SingleCollectorResponse)) { throw new Error('Expected argument of type clarifai.api.SingleCollectorResponse'); @@ -1950,6 +3094,61 @@ function deserialize_clarifai_api_SingleConceptResponse(buffer_arg) { return proto_clarifai_api_service_pb.SingleConceptResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_SingleDatasetInputResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleDatasetInputResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleDatasetInputResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleDatasetInputResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleDatasetInputResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleDatasetInputsSearchAddJobResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleDatasetInputsSearchAddJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleDatasetInputsSearchAddJobResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleDatasetResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleDatasetResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleDatasetResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleDatasetResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleDatasetResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleDatasetVersionResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleDatasetVersionResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleDatasetVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleDatasetVersionResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleDatasetVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleEvalMetricsResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleEvalMetricsResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleEvalMetricsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleEvalMetricsResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleEvalMetricsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_SingleInputCountResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.SingleInputCountResponse)) { throw new Error('Expected argument of type clarifai.api.SingleInputCountResponse'); @@ -1972,6 +3171,39 @@ function deserialize_clarifai_api_SingleInputResponse(buffer_arg) { return proto_clarifai_api_service_pb.SingleInputResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_SingleInputsAddJobResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleInputsAddJobResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleInputsAddJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleInputsAddJobResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleInputsAddJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleInputsExtractionJobResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleInputsExtractionJobResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleInputsExtractionJobResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleInstalledModuleVersionResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleInstalledModuleVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleInstalledModuleVersionResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_SingleKeyResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.SingleKeyResponse)) { throw new Error('Expected argument of type clarifai.api.SingleKeyResponse'); @@ -2038,6 +3270,28 @@ function deserialize_clarifai_api_SingleModelVersionResponse(buffer_arg) { return proto_clarifai_api_service_pb.SingleModelVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_SingleModuleResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleModuleResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleModuleResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleModuleResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleModuleResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleModuleVersionResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleModuleVersionResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleModuleVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleModuleVersionResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleModuleVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_SinglePasswordValidationResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.SinglePasswordValidationResponse)) { throw new Error('Expected argument of type clarifai.api.SinglePasswordValidationResponse'); @@ -2049,6 +3303,17 @@ function deserialize_clarifai_api_SinglePasswordValidationResponse(buffer_arg) { return proto_clarifai_api_service_pb.SinglePasswordValidationResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_SingleRunnerResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleRunnerResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleRunnerResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleRunnerResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleRunnerResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_SingleSearchResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.SingleSearchResponse)) { throw new Error('Expected argument of type clarifai.api.SingleSearchResponse'); @@ -2093,6 +3358,28 @@ function deserialize_clarifai_api_SingleTaskResponse(buffer_arg) { return proto_clarifai_api_service_pb.SingleTaskResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_clarifai_api_SingleUploadResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleUploadResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleUploadResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleUploadResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleUploadResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_clarifai_api_SingleUserResponse(arg) { + if (!(arg instanceof proto_clarifai_api_service_pb.SingleUserResponse)) { + throw new Error('Expected argument of type clarifai.api.SingleUserResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_clarifai_api_SingleUserResponse(buffer_arg) { + return proto_clarifai_api_service_pb.SingleUserResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_clarifai_api_SingleWorkflowResponse(arg) { if (!(arg instanceof proto_clarifai_api_service_pb.SingleWorkflowResponse)) { throw new Error('Expected argument of type clarifai.api.SingleWorkflowResponse'); @@ -2144,6 +3431,18 @@ function deserialize_clarifai_api_status_BaseResponse(buffer_arg) { // for the API. // https://cloud.google.com/service-management/reference/rpc/google.api#google.api.HttpRule // +// For the cl_depending_scopes in this file, see the docstring that explains the two types of +// scope dependencies in clarifai/auth/scope/scope.proto +// +// For new endpoints you should typically only add the fully qualified url that includes the user_id +// and app_id. +// +// You should typicaly use KeyAuth (the most restricted auth type) for new endpoints unless they are +// for resources not contained in an app or need access from things across apps. See more about the +// auth types here: +// https://clarifai.atlassian.net/wiki/spaces/TT/pages/1821409336/API+Authorizers+and+Resource+Access +// +// var V2Service = exports.V2Service = { // List concept relations between concepts in the platform. // MUST be above ListConcepts so that if concept_id is empty this will still match @@ -2219,6 +3518,18 @@ listConcepts: { responseSerialize: serialize_clarifai_api_MultiConceptResponse, responseDeserialize: deserialize_clarifai_api_MultiConceptResponse, }, + // List models concepts. +listModelConcepts: { + path: '/clarifai.api.V2/ListModelConcepts', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListModelConceptsRequest, + responseType: proto_clarifai_api_service_pb.MultiConceptResponse, + requestSerialize: serialize_clarifai_api_ListModelConceptsRequest, + requestDeserialize: deserialize_clarifai_api_ListModelConceptsRequest, + responseSerialize: serialize_clarifai_api_MultiConceptResponse, + responseDeserialize: deserialize_clarifai_api_MultiConceptResponse, + }, // Search over the concepts to find one or more you're looking for. // This leverage the "body" parameter because we also have page and // per_page as url query param variables in this request. @@ -2426,7 +3737,19 @@ deleteAnnotations: { responseSerialize: serialize_clarifai_api_status_BaseResponse, responseDeserialize: deserialize_clarifai_api_status_BaseResponse, }, - // Execute a search over annotation + // Patch saved annotations searches by ids. +patchAnnotationsSearches: { + path: '/clarifai.api.V2/PatchAnnotationsSearches', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchAnnotationsSearchesRequest, + responseType: proto_clarifai_api_service_pb.MultiSearchResponse, + requestSerialize: serialize_clarifai_api_PatchAnnotationsSearchesRequest, + requestDeserialize: deserialize_clarifai_api_PatchAnnotationsSearchesRequest, + responseSerialize: serialize_clarifai_api_MultiSearchResponse, + responseDeserialize: deserialize_clarifai_api_MultiSearchResponse, + }, + // Execute a search over annotations postAnnotationsSearches: { path: '/clarifai.api.V2/PostAnnotationsSearches', requestStream: false, @@ -2486,6 +3809,18 @@ getInput: { responseSerialize: serialize_clarifai_api_SingleInputResponse, responseDeserialize: deserialize_clarifai_api_SingleInputResponse, }, + // Get a video input manifest. +getInputVideoManifest: { + path: '/clarifai.api.V2/GetInputVideoManifest', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetVideoManifestRequest, + responseType: proto_clarifai_api_service_pb.GetVideoManifestResponse, + requestSerialize: serialize_clarifai_api_GetVideoManifestRequest, + requestDeserialize: deserialize_clarifai_api_GetVideoManifestRequest, + responseSerialize: serialize_clarifai_api_GetVideoManifestResponse, + responseDeserialize: deserialize_clarifai_api_GetVideoManifestResponse, + }, // List all the inputs. listInputs: { path: '/clarifai.api.V2/ListInputs', @@ -2498,9 +3833,8 @@ listInputs: { responseSerialize: serialize_clarifai_api_MultiInputResponse, responseDeserialize: deserialize_clarifai_api_MultiInputResponse, }, - // Add an input (or set of inputs) to an app. -// This call is synchronous if the PostInputsRequest contains exactly one image input. Otherwise, -// it is asynchronous. + // Add 1 or more input to an app. +// The actual inputs processing is asynchronous. postInputs: { path: '/clarifai.api.V2/PostInputs', requestStream: false, @@ -2549,7 +3883,19 @@ deleteInputs: { responseSerialize: serialize_clarifai_api_status_BaseResponse, responseDeserialize: deserialize_clarifai_api_status_BaseResponse, }, - // Execute a search over input + // Patch saved inputs searches by ids. +patchInputsSearches: { + path: '/clarifai.api.V2/PatchInputsSearches', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchInputsSearchesRequest, + responseType: proto_clarifai_api_service_pb.MultiSearchResponse, + requestSerialize: serialize_clarifai_api_PatchInputsSearchesRequest, + requestDeserialize: deserialize_clarifai_api_PatchInputsSearchesRequest, + responseSerialize: serialize_clarifai_api_MultiSearchResponse, + responseDeserialize: deserialize_clarifai_api_MultiSearchResponse, + }, + // Execute a search over inputs postInputsSearches: { path: '/clarifai.api.V2/PostInputsSearches', requestStream: false, @@ -2561,17 +3907,221 @@ postInputsSearches: { responseSerialize: serialize_clarifai_api_MultiSearchResponse, responseDeserialize: deserialize_clarifai_api_MultiSearchResponse, }, - // Get predicted outputs from the model. -postModelOutputs: { - path: '/clarifai.api.V2/PostModelOutputs', + // Get predicted outputs from the model. +postModelOutputs: { + path: '/clarifai.api.V2/PostModelOutputs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostModelOutputsRequest, + responseType: proto_clarifai_api_service_pb.MultiOutputResponse, + requestSerialize: serialize_clarifai_api_PostModelOutputsRequest, + requestDeserialize: deserialize_clarifai_api_PostModelOutputsRequest, + responseSerialize: serialize_clarifai_api_MultiOutputResponse, + responseDeserialize: deserialize_clarifai_api_MultiOutputResponse, + }, + // List all the datasets. +listDatasets: { + path: '/clarifai.api.V2/ListDatasets', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListDatasetsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetResponse, + requestSerialize: serialize_clarifai_api_ListDatasetsRequest, + requestDeserialize: deserialize_clarifai_api_ListDatasetsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetResponse, + }, + // Get a specific dataset. +getDataset: { + path: '/clarifai.api.V2/GetDataset', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetDatasetRequest, + responseType: proto_clarifai_api_service_pb.SingleDatasetResponse, + requestSerialize: serialize_clarifai_api_GetDatasetRequest, + requestDeserialize: deserialize_clarifai_api_GetDatasetRequest, + responseSerialize: serialize_clarifai_api_SingleDatasetResponse, + responseDeserialize: deserialize_clarifai_api_SingleDatasetResponse, + }, + // Add datasets to an app. +// The process is atomic, i.e. either all or no datasets are added. +// If there is an error for one dataset, +// the process will stop, revert the transaction and return the error. +postDatasets: { + path: '/clarifai.api.V2/PostDatasets', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostDatasetsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetResponse, + requestSerialize: serialize_clarifai_api_PostDatasetsRequest, + requestDeserialize: deserialize_clarifai_api_PostDatasetsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetResponse, + }, + // Patch one or more datasets. +// The process is atomic, i.e. either all or no datasets are patched. +// If there is an error for one dataset, +// the process will stop, revert the transaction and return the error. +patchDatasets: { + path: '/clarifai.api.V2/PatchDatasets', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchDatasetsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetResponse, + requestSerialize: serialize_clarifai_api_PatchDatasetsRequest, + requestDeserialize: deserialize_clarifai_api_PatchDatasetsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetResponse, + }, + // Delete one or more datasets in a single request. +deleteDatasets: { + path: '/clarifai.api.V2/DeleteDatasets', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteDatasetsRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteDatasetsRequest, + requestDeserialize: deserialize_clarifai_api_DeleteDatasetsRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // List all the dataset inputs in a dataset. +listDatasetInputs: { + path: '/clarifai.api.V2/ListDatasetInputs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListDatasetInputsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetInputResponse, + requestSerialize: serialize_clarifai_api_ListDatasetInputsRequest, + requestDeserialize: deserialize_clarifai_api_ListDatasetInputsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetInputResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetInputResponse, + }, + // Get a specific dataset input. +getDatasetInput: { + path: '/clarifai.api.V2/GetDatasetInput', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetDatasetInputRequest, + responseType: proto_clarifai_api_service_pb.SingleDatasetInputResponse, + requestSerialize: serialize_clarifai_api_GetDatasetInputRequest, + requestDeserialize: deserialize_clarifai_api_GetDatasetInputRequest, + responseSerialize: serialize_clarifai_api_SingleDatasetInputResponse, + responseDeserialize: deserialize_clarifai_api_SingleDatasetInputResponse, + }, + // Add dataset inputs to a dataset. +// The process is not atomic, i.e. if there are errors with some dataset +// inputs, others might still be added. The response reports +// - SUCCESS if all dataset inputs were added, +// - MIXED_STATUS if only some dataset inputs were added, and +// - FAILURE if no dataset inputs were added. +// Each individual dataset input in the response has the status set to +// indicate if it was successful or if there was an error. +postDatasetInputs: { + path: '/clarifai.api.V2/PostDatasetInputs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostDatasetInputsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetInputResponse, + requestSerialize: serialize_clarifai_api_PostDatasetInputsRequest, + requestDeserialize: deserialize_clarifai_api_PostDatasetInputsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetInputResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetInputResponse, + }, + // Delete one or more dataset inputs in a single request. +deleteDatasetInputs: { + path: '/clarifai.api.V2/DeleteDatasetInputs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteDatasetInputsRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteDatasetInputsRequest, + requestDeserialize: deserialize_clarifai_api_DeleteDatasetInputsRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // List all the dataset versions. +listDatasetVersions: { + path: '/clarifai.api.V2/ListDatasetVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListDatasetVersionsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetVersionResponse, + requestSerialize: serialize_clarifai_api_ListDatasetVersionsRequest, + requestDeserialize: deserialize_clarifai_api_ListDatasetVersionsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetVersionResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetVersionResponse, + }, + // Get a specific dataset version. +getDatasetVersion: { + path: '/clarifai.api.V2/GetDatasetVersion', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetDatasetVersionRequest, + responseType: proto_clarifai_api_service_pb.SingleDatasetVersionResponse, + requestSerialize: serialize_clarifai_api_GetDatasetVersionRequest, + requestDeserialize: deserialize_clarifai_api_GetDatasetVersionRequest, + responseSerialize: serialize_clarifai_api_SingleDatasetVersionResponse, + responseDeserialize: deserialize_clarifai_api_SingleDatasetVersionResponse, + }, + listDatasetVersionMetricsGroups: { + path: '/clarifai.api.V2/ListDatasetVersionMetricsGroups', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListDatasetVersionMetricsGroupsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetVersionMetricsGroupResponse, + requestSerialize: serialize_clarifai_api_ListDatasetVersionMetricsGroupsRequest, + requestDeserialize: deserialize_clarifai_api_ListDatasetVersionMetricsGroupsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetVersionMetricsGroupResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetVersionMetricsGroupResponse, + }, + // Add dataset versions to a dataset. +postDatasetVersions: { + path: '/clarifai.api.V2/PostDatasetVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostDatasetVersionsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetVersionResponse, + requestSerialize: serialize_clarifai_api_PostDatasetVersionsRequest, + requestDeserialize: deserialize_clarifai_api_PostDatasetVersionsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetVersionResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetVersionResponse, + }, + // Patch one or more dataset versions. +patchDatasetVersions: { + path: '/clarifai.api.V2/PatchDatasetVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchDatasetVersionsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetVersionResponse, + requestSerialize: serialize_clarifai_api_PatchDatasetVersionsRequest, + requestDeserialize: deserialize_clarifai_api_PatchDatasetVersionsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetVersionResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetVersionResponse, + }, + // Delete one or more dataset versions in a single request. +deleteDatasetVersions: { + path: '/clarifai.api.V2/DeleteDatasetVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteDatasetVersionsRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteDatasetVersionsRequest, + requestDeserialize: deserialize_clarifai_api_DeleteDatasetVersionsRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // Create export of a dataset version. +putDatasetVersionExports: { + path: '/clarifai.api.V2/PutDatasetVersionExports', requestStream: false, responseStream: false, - requestType: proto_clarifai_api_service_pb.PostModelOutputsRequest, - responseType: proto_clarifai_api_service_pb.MultiOutputResponse, - requestSerialize: serialize_clarifai_api_PostModelOutputsRequest, - requestDeserialize: deserialize_clarifai_api_PostModelOutputsRequest, - responseSerialize: serialize_clarifai_api_MultiOutputResponse, - responseDeserialize: deserialize_clarifai_api_MultiOutputResponse, + requestType: proto_clarifai_api_service_pb.PutDatasetVersionExportsRequest, + responseType: proto_clarifai_api_service_pb.MultiDatasetVersionExportResponse, + requestSerialize: serialize_clarifai_api_PutDatasetVersionExportsRequest, + requestDeserialize: deserialize_clarifai_api_PutDatasetVersionExportsRequest, + responseSerialize: serialize_clarifai_api_MultiDatasetVersionExportResponse, + responseDeserialize: deserialize_clarifai_api_MultiDatasetVersionExportResponse, }, // ////////////////////////////////////// // Models @@ -2651,6 +4201,18 @@ listModels: { responseSerialize: serialize_clarifai_api_MultiModelResponse, responseDeserialize: deserialize_clarifai_api_MultiModelResponse, }, + // List the resource counts for the app. +getResourceCounts: { + path: '/clarifai.api.V2/GetResourceCounts', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetResourceCountsRequest, + responseType: proto_clarifai_api_service_pb.GetResourceCountsResponse, + requestSerialize: serialize_clarifai_api_GetResourceCountsRequest, + requestDeserialize: deserialize_clarifai_api_GetResourceCountsRequest, + responseSerialize: serialize_clarifai_api_GetResourceCountsResponse, + responseDeserialize: deserialize_clarifai_api_GetResourceCountsResponse, + }, // Search over the models to find one or more you're looking for. // This leverage the "body" parameter because we also have page and // per_page as url query param variables in this request. @@ -2689,6 +4251,18 @@ patchModels: { responseSerialize: serialize_clarifai_api_MultiModelResponse, responseDeserialize: deserialize_clarifai_api_MultiModelResponse, }, + // Patch one or more models ids. +patchModelIds: { + path: '/clarifai.api.V2/PatchModelIds', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchModelIdsRequest, + responseType: proto_clarifai_api_service_pb.MultiModelResponse, + requestSerialize: serialize_clarifai_api_PatchModelIdsRequest, + requestDeserialize: deserialize_clarifai_api_PatchModelIdsRequest, + responseSerialize: serialize_clarifai_api_MultiModelResponse, + responseDeserialize: deserialize_clarifai_api_MultiModelResponse, + }, // Delete a single model. deleteModel: { path: '/clarifai.api.V2/DeleteModel', @@ -2713,6 +4287,18 @@ deleteModels: { responseSerialize: serialize_clarifai_api_status_BaseResponse, responseDeserialize: deserialize_clarifai_api_status_BaseResponse, }, + // Update model check consents +patchModelCheckConsents: { + path: '/clarifai.api.V2/PatchModelCheckConsents', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchModelCheckConsentsRequest, + responseType: proto_clarifai_api_service_pb.MultiModelCheckConsentResponse, + requestSerialize: serialize_clarifai_api_PatchModelCheckConsentsRequest, + requestDeserialize: deserialize_clarifai_api_PatchModelCheckConsentsRequest, + responseSerialize: serialize_clarifai_api_MultiModelCheckConsentResponse, + responseDeserialize: deserialize_clarifai_api_MultiModelCheckConsentResponse, + }, // Update model toolkits tags patchModelToolkits: { path: '/clarifai.api.V2/PatchModelToolkits', @@ -2785,6 +4371,28 @@ listModelVersions: { responseSerialize: serialize_clarifai_api_MultiModelVersionResponse, responseDeserialize: deserialize_clarifai_api_MultiModelVersionResponse, }, + postWorkflowVersionsUnPublish: { + path: '/clarifai.api.V2/PostWorkflowVersionsUnPublish', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostWorkflowVersionsUnPublishRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_PostWorkflowVersionsUnPublishRequest, + requestDeserialize: deserialize_clarifai_api_PostWorkflowVersionsUnPublishRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + postWorkflowVersionsPublish: { + path: '/clarifai.api.V2/PostWorkflowVersionsPublish', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostWorkflowVersionsPublishRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_PostWorkflowVersionsPublishRequest, + requestDeserialize: deserialize_clarifai_api_PostWorkflowVersionsPublishRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, // PostModelVersionsPublish postModelVersionsPublish: { path: '/clarifai.api.V2/PostModelVersionsPublish', @@ -2847,7 +4455,8 @@ deleteModelVersion: { responseSerialize: serialize_clarifai_api_status_BaseResponse, responseDeserialize: deserialize_clarifai_api_status_BaseResponse, }, - // Get the evaluation metrics for a model version. + // Deprecated: Use GetEvaluation instead +// Get the evaluation metrics for a model version. getModelVersionMetrics: { path: '/clarifai.api.V2/GetModelVersionMetrics', requestStream: false, @@ -2859,7 +4468,8 @@ getModelVersionMetrics: { responseSerialize: serialize_clarifai_api_SingleModelVersionResponse, responseDeserialize: deserialize_clarifai_api_SingleModelVersionResponse, }, - // Run the evaluation metrics for a model version. + // Deprecated, use PostEvaluations instead +// Run the evaluation metrics for a model version. postModelVersionMetrics: { path: '/clarifai.api.V2/PostModelVersionMetrics', requestStream: false, @@ -2871,6 +4481,77 @@ postModelVersionMetrics: { responseSerialize: serialize_clarifai_api_SingleModelVersionResponse, responseDeserialize: deserialize_clarifai_api_SingleModelVersionResponse, }, + // Deprecated, use PostEvaluations instead +postModelVersionEvaluations: { + path: '/clarifai.api.V2/PostModelVersionEvaluations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostModelVersionEvaluationsRequest, + responseType: proto_clarifai_api_service_pb.MultiEvalMetricsResponse, + requestSerialize: serialize_clarifai_api_PostModelVersionEvaluationsRequest, + requestDeserialize: deserialize_clarifai_api_PostModelVersionEvaluationsRequest, + responseSerialize: serialize_clarifai_api_MultiEvalMetricsResponse, + responseDeserialize: deserialize_clarifai_api_MultiEvalMetricsResponse, + }, + // Deprecated, use GetEvaluation instead +// List the evaluation metrics for a model version. +listModelVersionEvaluations: { + path: '/clarifai.api.V2/ListModelVersionEvaluations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListModelVersionEvaluationsRequest, + responseType: proto_clarifai_api_service_pb.MultiEvalMetricsResponse, + requestSerialize: serialize_clarifai_api_ListModelVersionEvaluationsRequest, + requestDeserialize: deserialize_clarifai_api_ListModelVersionEvaluationsRequest, + responseSerialize: serialize_clarifai_api_MultiEvalMetricsResponse, + responseDeserialize: deserialize_clarifai_api_MultiEvalMetricsResponse, + }, + // Deprecated, use GetEvaluation instead +// Get an evaluation metrics for a model version. +getModelVersionEvaluation: { + path: '/clarifai.api.V2/GetModelVersionEvaluation', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetModelVersionEvaluationRequest, + responseType: proto_clarifai_api_service_pb.SingleEvalMetricsResponse, + requestSerialize: serialize_clarifai_api_GetModelVersionEvaluationRequest, + requestDeserialize: deserialize_clarifai_api_GetModelVersionEvaluationRequest, + responseSerialize: serialize_clarifai_api_SingleEvalMetricsResponse, + responseDeserialize: deserialize_clarifai_api_SingleEvalMetricsResponse, + }, + postEvaluations: { + path: '/clarifai.api.V2/PostEvaluations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostEvaluationsRequest, + responseType: proto_clarifai_api_service_pb.MultiEvalMetricsResponse, + requestSerialize: serialize_clarifai_api_PostEvaluationsRequest, + requestDeserialize: deserialize_clarifai_api_PostEvaluationsRequest, + responseSerialize: serialize_clarifai_api_MultiEvalMetricsResponse, + responseDeserialize: deserialize_clarifai_api_MultiEvalMetricsResponse, + }, + listEvaluations: { + path: '/clarifai.api.V2/ListEvaluations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListEvaluationsRequest, + responseType: proto_clarifai_api_service_pb.MultiEvalMetricsResponse, + requestSerialize: serialize_clarifai_api_ListEvaluationsRequest, + requestDeserialize: deserialize_clarifai_api_ListEvaluationsRequest, + responseSerialize: serialize_clarifai_api_MultiEvalMetricsResponse, + responseDeserialize: deserialize_clarifai_api_MultiEvalMetricsResponse, + }, + getEvaluation: { + path: '/clarifai.api.V2/GetEvaluation', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetEvaluationRequest, + responseType: proto_clarifai_api_service_pb.SingleEvalMetricsResponse, + requestSerialize: serialize_clarifai_api_GetEvaluationRequest, + requestDeserialize: deserialize_clarifai_api_GetEvaluationRequest, + responseSerialize: serialize_clarifai_api_SingleEvalMetricsResponse, + responseDeserialize: deserialize_clarifai_api_SingleEvalMetricsResponse, + }, // Lists model references tied to a particular model id. listModelReferences: { path: '/clarifai.api.V2/ListModelReferences', @@ -2961,6 +4642,18 @@ patchWorkflows: { responseSerialize: serialize_clarifai_api_MultiWorkflowResponse, responseDeserialize: deserialize_clarifai_api_MultiWorkflowResponse, }, + // Patch one or more workflows ids. +patchWorkflowIds: { + path: '/clarifai.api.V2/PatchWorkflowIds', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchWorkflowIdsRequest, + responseType: proto_clarifai_api_service_pb.MultiWorkflowResponse, + requestSerialize: serialize_clarifai_api_PatchWorkflowIdsRequest, + requestDeserialize: deserialize_clarifai_api_PatchWorkflowIdsRequest, + responseSerialize: serialize_clarifai_api_MultiWorkflowResponse, + responseDeserialize: deserialize_clarifai_api_MultiWorkflowResponse, + }, // Delete a single workflow. deleteWorkflow: { path: '/clarifai.api.V2/DeleteWorkflow', @@ -3243,6 +4936,30 @@ patchApps: { responseSerialize: serialize_clarifai_api_MultiAppResponse, responseDeserialize: deserialize_clarifai_api_MultiAppResponse, }, + // Patch apps ids. +patchAppsIds: { + path: '/clarifai.api.V2/PatchAppsIds', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchAppsIdsRequest, + responseType: proto_clarifai_api_service_pb.MultiAppResponse, + requestSerialize: serialize_clarifai_api_PatchAppsIdsRequest, + requestDeserialize: deserialize_clarifai_api_PatchAppsIdsRequest, + responseSerialize: serialize_clarifai_api_MultiAppResponse, + responseDeserialize: deserialize_clarifai_api_MultiAppResponse, + }, + // Patch one app. +patchApp: { + path: '/clarifai.api.V2/PatchApp', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchAppRequest, + responseType: proto_clarifai_api_service_pb.SingleAppResponse, + requestSerialize: serialize_clarifai_api_PatchAppRequest, + requestDeserialize: deserialize_clarifai_api_PatchAppRequest, + responseSerialize: serialize_clarifai_api_SingleAppResponse, + responseDeserialize: deserialize_clarifai_api_SingleAppResponse, + }, // Search over the applications to find one or more you're looking for. postAppsSearches: { path: '/clarifai.api.V2/PostAppsSearches', @@ -3255,6 +4972,18 @@ postAppsSearches: { responseSerialize: serialize_clarifai_api_MultiAppResponse, responseDeserialize: deserialize_clarifai_api_MultiAppResponse, }, + // Get user information +getUser: { + path: '/clarifai.api.V2/GetUser', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetUserRequest, + responseType: proto_clarifai_api_service_pb.SingleUserResponse, + requestSerialize: serialize_clarifai_api_GetUserRequest, + requestDeserialize: deserialize_clarifai_api_GetUserRequest, + responseSerialize: serialize_clarifai_api_SingleUserResponse, + responseDeserialize: deserialize_clarifai_api_SingleUserResponse, + }, // Validate new password in real-time for a user postValidatePassword: { path: '/clarifai.api.V2/PostValidatePassword', @@ -3267,7 +4996,7 @@ postValidatePassword: { responseSerialize: serialize_clarifai_api_SinglePasswordValidationResponse, responseDeserialize: deserialize_clarifai_api_SinglePasswordValidationResponse, }, - // Get a saved search. + // Get a saved legacy search. getSearch: { path: '/clarifai.api.V2/GetSearch', requestStream: false, @@ -3279,7 +5008,7 @@ getSearch: { responseSerialize: serialize_clarifai_api_SingleSearchResponse, responseDeserialize: deserialize_clarifai_api_SingleSearchResponse, }, - // List all saved searches. + // List all saved legacy searches. listSearches: { path: '/clarifai.api.V2/ListSearches', requestStream: false, @@ -3291,7 +5020,21 @@ listSearches: { responseSerialize: serialize_clarifai_api_MultiSearchResponse, responseDeserialize: deserialize_clarifai_api_MultiSearchResponse, }, + // Patch saved legacy searches by ids. +patchSearches: { + path: '/clarifai.api.V2/PatchSearches', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchSearchesRequest, + responseType: proto_clarifai_api_service_pb.MultiSearchResponse, + requestSerialize: serialize_clarifai_api_PatchSearchesRequest, + requestDeserialize: deserialize_clarifai_api_PatchSearchesRequest, + responseSerialize: serialize_clarifai_api_MultiSearchResponse, + responseDeserialize: deserialize_clarifai_api_MultiSearchResponse, + }, // Execute a new search and optionally save it. +// +// Deprecated: Use PostInputsSearches or PostAnnotationsSearches instead. postSearches: { path: '/clarifai.api.V2/PostSearches', requestStream: false, @@ -3303,7 +5046,7 @@ postSearches: { responseSerialize: serialize_clarifai_api_MultiSearchResponse, responseDeserialize: deserialize_clarifai_api_MultiSearchResponse, }, - // Execute a previously saved search. + // Execute a previously saved legacy search. postSearchesByID: { path: '/clarifai.api.V2/PostSearchesByID', requestStream: false, @@ -3375,6 +5118,66 @@ deleteSearch: { responseSerialize: serialize_clarifai_api_status_BaseResponse, responseDeserialize: deserialize_clarifai_api_status_BaseResponse, }, + // List all the annotation filters. +listAnnotationFilters: { + path: '/clarifai.api.V2/ListAnnotationFilters', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListAnnotationFiltersRequest, + responseType: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse, + requestSerialize: serialize_clarifai_api_ListAnnotationFiltersRequest, + requestDeserialize: deserialize_clarifai_api_ListAnnotationFiltersRequest, + responseSerialize: serialize_clarifai_api_MultiAnnotationFilterResponse, + responseDeserialize: deserialize_clarifai_api_MultiAnnotationFilterResponse, + }, + // Get a specific annotation filter. +getAnnotationFilter: { + path: '/clarifai.api.V2/GetAnnotationFilter', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetAnnotationFilterRequest, + responseType: proto_clarifai_api_service_pb.SingleAnnotationFilterResponse, + requestSerialize: serialize_clarifai_api_GetAnnotationFilterRequest, + requestDeserialize: deserialize_clarifai_api_GetAnnotationFilterRequest, + responseSerialize: serialize_clarifai_api_SingleAnnotationFilterResponse, + responseDeserialize: deserialize_clarifai_api_SingleAnnotationFilterResponse, + }, + // Add annotation filters. +postAnnotationFilters: { + path: '/clarifai.api.V2/PostAnnotationFilters', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostAnnotationFiltersRequest, + responseType: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse, + requestSerialize: serialize_clarifai_api_PostAnnotationFiltersRequest, + requestDeserialize: deserialize_clarifai_api_PostAnnotationFiltersRequest, + responseSerialize: serialize_clarifai_api_MultiAnnotationFilterResponse, + responseDeserialize: deserialize_clarifai_api_MultiAnnotationFilterResponse, + }, + // Patch one or more annotation filters. +patchAnnotationFilters: { + path: '/clarifai.api.V2/PatchAnnotationFilters', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchAnnotationFiltersRequest, + responseType: proto_clarifai_api_service_pb.MultiAnnotationFilterResponse, + requestSerialize: serialize_clarifai_api_PatchAnnotationFiltersRequest, + requestDeserialize: deserialize_clarifai_api_PatchAnnotationFiltersRequest, + responseSerialize: serialize_clarifai_api_MultiAnnotationFilterResponse, + responseDeserialize: deserialize_clarifai_api_MultiAnnotationFilterResponse, + }, + // Delete one or more annotation filters in a single request. +deleteAnnotationFilters: { + path: '/clarifai.api.V2/DeleteAnnotationFilters', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteAnnotationFiltersRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteAnnotationFiltersRequest, + requestDeserialize: deserialize_clarifai_api_DeleteAnnotationFiltersRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, // List all status codes. listStatusCodes: { path: '/clarifai.api.V2/ListStatusCodes', @@ -3580,7 +5383,11 @@ deleteTasks: { responseSerialize: serialize_clarifai_api_status_BaseResponse, responseDeserialize: deserialize_clarifai_api_status_BaseResponse, }, - // Add Label orders. + // ////////////////////////////////////// +// Label Order +// ////////////////////////////////////// +// +// Add Label orders. postLabelOrders: { path: '/clarifai.api.V2/PostLabelOrders', requestStream: false, @@ -3755,6 +5562,515 @@ listTrendingMetricsViews: { responseSerialize: serialize_clarifai_api_MultiTrendingMetricsViewResponse, responseDeserialize: deserialize_clarifai_api_MultiTrendingMetricsViewResponse, }, + // Get a specific module from an app. +getModule: { + path: '/clarifai.api.V2/GetModule', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetModuleRequest, + responseType: proto_clarifai_api_service_pb.SingleModuleResponse, + requestSerialize: serialize_clarifai_api_GetModuleRequest, + requestDeserialize: deserialize_clarifai_api_GetModuleRequest, + responseSerialize: serialize_clarifai_api_SingleModuleResponse, + responseDeserialize: deserialize_clarifai_api_SingleModuleResponse, + }, + // List all the modules in community, by user or by app. +listModules: { + path: '/clarifai.api.V2/ListModules', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListModulesRequest, + responseType: proto_clarifai_api_service_pb.MultiModuleResponse, + requestSerialize: serialize_clarifai_api_ListModulesRequest, + requestDeserialize: deserialize_clarifai_api_ListModulesRequest, + responseSerialize: serialize_clarifai_api_MultiModuleResponse, + responseDeserialize: deserialize_clarifai_api_MultiModuleResponse, + }, + // Add a modules to an app. +postModules: { + path: '/clarifai.api.V2/PostModules', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostModulesRequest, + responseType: proto_clarifai_api_service_pb.MultiModuleResponse, + requestSerialize: serialize_clarifai_api_PostModulesRequest, + requestDeserialize: deserialize_clarifai_api_PostModulesRequest, + responseSerialize: serialize_clarifai_api_MultiModuleResponse, + responseDeserialize: deserialize_clarifai_api_MultiModuleResponse, + }, + // Patch one or more modules. +patchModules: { + path: '/clarifai.api.V2/PatchModules', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PatchModulesRequest, + responseType: proto_clarifai_api_service_pb.MultiModuleResponse, + requestSerialize: serialize_clarifai_api_PatchModulesRequest, + requestDeserialize: deserialize_clarifai_api_PatchModulesRequest, + responseSerialize: serialize_clarifai_api_MultiModuleResponse, + responseDeserialize: deserialize_clarifai_api_MultiModuleResponse, + }, + // Delete multiple modules in one request. +deleteModules: { + path: '/clarifai.api.V2/DeleteModules', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteModulesRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteModulesRequest, + requestDeserialize: deserialize_clarifai_api_DeleteModulesRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // Get a specific module version for a module. +getModuleVersion: { + path: '/clarifai.api.V2/GetModuleVersion', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetModuleVersionRequest, + responseType: proto_clarifai_api_service_pb.SingleModuleVersionResponse, + requestSerialize: serialize_clarifai_api_GetModuleVersionRequest, + requestDeserialize: deserialize_clarifai_api_GetModuleVersionRequest, + responseSerialize: serialize_clarifai_api_SingleModuleVersionResponse, + responseDeserialize: deserialize_clarifai_api_SingleModuleVersionResponse, + }, + // List all the modules versions for a given module. +listModuleVersions: { + path: '/clarifai.api.V2/ListModuleVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListModuleVersionsRequest, + responseType: proto_clarifai_api_service_pb.MultiModuleVersionResponse, + requestSerialize: serialize_clarifai_api_ListModuleVersionsRequest, + requestDeserialize: deserialize_clarifai_api_ListModuleVersionsRequest, + responseSerialize: serialize_clarifai_api_MultiModuleVersionResponse, + responseDeserialize: deserialize_clarifai_api_MultiModuleVersionResponse, + }, + // Create a new module version to trigger training of the module. +postModuleVersions: { + path: '/clarifai.api.V2/PostModuleVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostModuleVersionsRequest, + responseType: proto_clarifai_api_service_pb.MultiModuleVersionResponse, + requestSerialize: serialize_clarifai_api_PostModuleVersionsRequest, + requestDeserialize: deserialize_clarifai_api_PostModuleVersionsRequest, + responseSerialize: serialize_clarifai_api_MultiModuleVersionResponse, + responseDeserialize: deserialize_clarifai_api_MultiModuleVersionResponse, + }, + // Delete a multiple module version. +deleteModuleVersions: { + path: '/clarifai.api.V2/DeleteModuleVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteModuleVersionsRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteModuleVersionsRequest, + requestDeserialize: deserialize_clarifai_api_DeleteModuleVersionsRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // Get installed modules vesrions for an app. +getInstalledModuleVersion: { + path: '/clarifai.api.V2/GetInstalledModuleVersion', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetInstalledModuleVersionRequest, + responseType: proto_clarifai_api_service_pb.SingleInstalledModuleVersionResponse, + requestSerialize: serialize_clarifai_api_GetInstalledModuleVersionRequest, + requestDeserialize: deserialize_clarifai_api_GetInstalledModuleVersionRequest, + responseSerialize: serialize_clarifai_api_SingleInstalledModuleVersionResponse, + responseDeserialize: deserialize_clarifai_api_SingleInstalledModuleVersionResponse, + }, + // List installed modules vesrions for an app. +listInstalledModuleVersions: { + path: '/clarifai.api.V2/ListInstalledModuleVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListInstalledModuleVersionsRequest, + responseType: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse, + requestSerialize: serialize_clarifai_api_ListInstalledModuleVersionsRequest, + requestDeserialize: deserialize_clarifai_api_ListInstalledModuleVersionsRequest, + responseSerialize: serialize_clarifai_api_MultiInstalledModuleVersionResponse, + responseDeserialize: deserialize_clarifai_api_MultiInstalledModuleVersionResponse, + }, + // Install a new module version which will deploy the specific ModuleVersion to the app in the url. +postInstalledModuleVersions: { + path: '/clarifai.api.V2/PostInstalledModuleVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostInstalledModuleVersionsRequest, + responseType: proto_clarifai_api_service_pb.MultiInstalledModuleVersionResponse, + requestSerialize: serialize_clarifai_api_PostInstalledModuleVersionsRequest, + requestDeserialize: deserialize_clarifai_api_PostInstalledModuleVersionsRequest, + responseSerialize: serialize_clarifai_api_MultiInstalledModuleVersionResponse, + responseDeserialize: deserialize_clarifai_api_MultiInstalledModuleVersionResponse, + }, + // Uninstall an installed module version which will deploy the specific ModuleVersion to the app +// in the url. +// This cleaned up any associated caller keys so needs the Keys_Delete scope. +deleteInstalledModuleVersions: { + path: '/clarifai.api.V2/DeleteInstalledModuleVersions', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteInstalledModuleVersionsRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteInstalledModuleVersionsRequest, + requestDeserialize: deserialize_clarifai_api_DeleteInstalledModuleVersionsRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // Assign a key that the caller owns to be used when accessing this installed module version +// If this endpoint is called with a different key then it overwrites what is there. +postInstalledModuleVersionsKey: { + path: '/clarifai.api.V2/PostInstalledModuleVersionsKey', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostInstalledModuleVersionsKeyRequest, + responseType: proto_clarifai_api_service_pb.SingleKeyResponse, + requestSerialize: serialize_clarifai_api_PostInstalledModuleVersionsKeyRequest, + requestDeserialize: deserialize_clarifai_api_PostInstalledModuleVersionsKeyRequest, + responseSerialize: serialize_clarifai_api_SingleKeyResponse, + responseDeserialize: deserialize_clarifai_api_SingleKeyResponse, + }, + // Perform bulk operations on a list of inputs based on input source. +// Operation include add, update, delete of concepts, metadata and geo data. +// This is an Asynchronous process. Use ListBulkOperations or GetBulkOperation to check the status. +postBulkOperations: { + path: '/clarifai.api.V2/PostBulkOperations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostBulkOperationsRequest, + responseType: proto_clarifai_api_service_pb.MultiBulkOperationsResponse, + requestSerialize: serialize_clarifai_api_PostBulkOperationsRequest, + requestDeserialize: deserialize_clarifai_api_PostBulkOperationsRequest, + responseSerialize: serialize_clarifai_api_MultiBulkOperationsResponse, + responseDeserialize: deserialize_clarifai_api_MultiBulkOperationsResponse, + }, + // List all the bulk operations +listBulkOperations: { + path: '/clarifai.api.V2/ListBulkOperations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListBulkOperationsRequest, + responseType: proto_clarifai_api_service_pb.MultiBulkOperationsResponse, + requestSerialize: serialize_clarifai_api_ListBulkOperationsRequest, + requestDeserialize: deserialize_clarifai_api_ListBulkOperationsRequest, + responseSerialize: serialize_clarifai_api_MultiBulkOperationsResponse, + responseDeserialize: deserialize_clarifai_api_MultiBulkOperationsResponse, + }, + // Get the bulk operation details by ID +getBulkOperation: { + path: '/clarifai.api.V2/GetBulkOperation', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetBulkOperationRequest, + responseType: proto_clarifai_api_service_pb.SingleBulkOperationsResponse, + requestSerialize: serialize_clarifai_api_GetBulkOperationRequest, + requestDeserialize: deserialize_clarifai_api_GetBulkOperationRequest, + responseSerialize: serialize_clarifai_api_SingleBulkOperationsResponse, + responseDeserialize: deserialize_clarifai_api_SingleBulkOperationsResponse, + }, + // Cancel one or more bulk operations +cancelBulkOperations: { + path: '/clarifai.api.V2/CancelBulkOperations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.CancelBulkOperationRequest, + responseType: proto_clarifai_api_service_pb.MultiBulkOperationsResponse, + requestSerialize: serialize_clarifai_api_CancelBulkOperationRequest, + requestDeserialize: deserialize_clarifai_api_CancelBulkOperationRequest, + responseSerialize: serialize_clarifai_api_MultiBulkOperationsResponse, + responseDeserialize: deserialize_clarifai_api_MultiBulkOperationsResponse, + }, + // delete one or more terminated bulk operations +deleteBulkOperations: { + path: '/clarifai.api.V2/DeleteBulkOperations', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteBulkOperationRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteBulkOperationRequest, + requestDeserialize: deserialize_clarifai_api_DeleteBulkOperationRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // Get a specific job. +getDatasetInputsSearchAddJob: { + path: '/clarifai.api.V2/GetDatasetInputsSearchAddJob', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetDatasetInputsSearchAddJobRequest, + responseType: proto_clarifai_api_service_pb.SingleDatasetInputsSearchAddJobResponse, + requestSerialize: serialize_clarifai_api_GetDatasetInputsSearchAddJobRequest, + requestDeserialize: deserialize_clarifai_api_GetDatasetInputsSearchAddJobRequest, + responseSerialize: serialize_clarifai_api_SingleDatasetInputsSearchAddJobResponse, + responseDeserialize: deserialize_clarifai_api_SingleDatasetInputsSearchAddJobResponse, + }, + // List next non-labeled and unassigned inputs from task's dataset +listNextTaskAssignments: { + path: '/clarifai.api.V2/ListNextTaskAssignments', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListNextTaskAssignmentsRequest, + responseType: proto_clarifai_api_service_pb.MultiInputResponse, + requestSerialize: serialize_clarifai_api_ListNextTaskAssignmentsRequest, + requestDeserialize: deserialize_clarifai_api_ListNextTaskAssignmentsRequest, + responseSerialize: serialize_clarifai_api_MultiInputResponse, + responseDeserialize: deserialize_clarifai_api_MultiInputResponse, + }, + // PutTaskAssignments evaluates all the annotations by labeler (authenticated user) for given task (task_id) and input (input_id). +putTaskAssignments: { + path: '/clarifai.api.V2/PutTaskAssignments', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PutTaskAssignmentsRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_PutTaskAssignmentsRequest, + requestDeserialize: deserialize_clarifai_api_PutTaskAssignmentsRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // List all the inputs add jobs +listInputsAddJobs: { + path: '/clarifai.api.V2/ListInputsAddJobs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListInputsAddJobsRequest, + responseType: proto_clarifai_api_service_pb.MultiInputsAddJobResponse, + requestSerialize: serialize_clarifai_api_ListInputsAddJobsRequest, + requestDeserialize: deserialize_clarifai_api_ListInputsAddJobsRequest, + responseSerialize: serialize_clarifai_api_MultiInputsAddJobResponse, + responseDeserialize: deserialize_clarifai_api_MultiInputsAddJobResponse, + }, + // Get the input add job details by ID +getInputsAddJob: { + path: '/clarifai.api.V2/GetInputsAddJob', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetInputsAddJobRequest, + responseType: proto_clarifai_api_service_pb.SingleInputsAddJobResponse, + requestSerialize: serialize_clarifai_api_GetInputsAddJobRequest, + requestDeserialize: deserialize_clarifai_api_GetInputsAddJobRequest, + responseSerialize: serialize_clarifai_api_SingleInputsAddJobResponse, + responseDeserialize: deserialize_clarifai_api_SingleInputsAddJobResponse, + }, + // cancel the input add job by ID +cancelInputsAddJob: { + path: '/clarifai.api.V2/CancelInputsAddJob', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.CancelInputsAddJobRequest, + responseType: proto_clarifai_api_service_pb.SingleInputsAddJobResponse, + requestSerialize: serialize_clarifai_api_CancelInputsAddJobRequest, + requestDeserialize: deserialize_clarifai_api_CancelInputsAddJobRequest, + responseSerialize: serialize_clarifai_api_SingleInputsAddJobResponse, + responseDeserialize: deserialize_clarifai_api_SingleInputsAddJobResponse, + }, + postUploads: { + path: '/clarifai.api.V2/PostUploads', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostUploadsRequest, + responseType: proto_clarifai_api_service_pb.MultiUploadResponse, + requestSerialize: serialize_clarifai_api_PostUploadsRequest, + requestDeserialize: deserialize_clarifai_api_PostUploadsRequest, + responseSerialize: serialize_clarifai_api_MultiUploadResponse, + responseDeserialize: deserialize_clarifai_api_MultiUploadResponse, + }, + // Upload a part of a multipart upload. +// Behaviour on completion depends on the endpoint that was used to initiate the upload. +putUploadContentParts: { + path: '/clarifai.api.V2/PutUploadContentParts', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PutUploadContentPartsRequest, + responseType: proto_clarifai_api_service_pb.SingleUploadResponse, + requestSerialize: serialize_clarifai_api_PutUploadContentPartsRequest, + requestDeserialize: deserialize_clarifai_api_PutUploadContentPartsRequest, + responseSerialize: serialize_clarifai_api_SingleUploadResponse, + responseDeserialize: deserialize_clarifai_api_SingleUploadResponse, + }, + getUpload: { + path: '/clarifai.api.V2/GetUpload', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetUploadRequest, + responseType: proto_clarifai_api_service_pb.SingleUploadResponse, + requestSerialize: serialize_clarifai_api_GetUploadRequest, + requestDeserialize: deserialize_clarifai_api_GetUploadRequest, + responseSerialize: serialize_clarifai_api_SingleUploadResponse, + responseDeserialize: deserialize_clarifai_api_SingleUploadResponse, + }, + listUploads: { + path: '/clarifai.api.V2/ListUploads', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListUploadsRequest, + responseType: proto_clarifai_api_service_pb.MultiUploadResponse, + requestSerialize: serialize_clarifai_api_ListUploadsRequest, + requestDeserialize: deserialize_clarifai_api_ListUploadsRequest, + responseSerialize: serialize_clarifai_api_MultiUploadResponse, + responseDeserialize: deserialize_clarifai_api_MultiUploadResponse, + }, + deleteUploads: { + path: '/clarifai.api.V2/DeleteUploads', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteUploadsRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteUploadsRequest, + requestDeserialize: deserialize_clarifai_api_DeleteUploadsRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // Initiates retrieval of inputs from cloud storage from a user provided data source. +// Will create and return an inputs-add-job for tracking progress. +// Archives will be extracted and their contents will be processed as inputs. +// +// The cloud URL will be treated as a filter prefix. For example s3:/bucket/images_folder/abc will process +// files in the images_folder beginning with abc or in a subfolder beginning with abc. +// For example: +// bucket/images_folder/abcImage.png +// bucket/images_folder/abc-1/Data.zip +// +// If given URL is for a private bucket or file, then credentials should be provided to access the bucket. +// Credentials should include rights to list the objects in the bucket, except when pointed directly at a file archive, +// in which case it only requires rights to access that particular file. +postInputsDataSources: { + path: '/clarifai.api.V2/PostInputsDataSources', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostInputsDataSourcesRequest, + responseType: proto_clarifai_api_service_pb.MultiInputsAddJobResponse, + requestSerialize: serialize_clarifai_api_PostInputsDataSourcesRequest, + requestDeserialize: deserialize_clarifai_api_PostInputsDataSourcesRequest, + responseSerialize: serialize_clarifai_api_MultiInputsAddJobResponse, + responseDeserialize: deserialize_clarifai_api_MultiInputsAddJobResponse, + }, + // Get the input extraction job details by ID +getInputsExtractionJob: { + path: '/clarifai.api.V2/GetInputsExtractionJob', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetInputsExtractionJobRequest, + responseType: proto_clarifai_api_service_pb.SingleInputsExtractionJobResponse, + requestSerialize: serialize_clarifai_api_GetInputsExtractionJobRequest, + requestDeserialize: deserialize_clarifai_api_GetInputsExtractionJobRequest, + responseSerialize: serialize_clarifai_api_SingleInputsExtractionJobResponse, + responseDeserialize: deserialize_clarifai_api_SingleInputsExtractionJobResponse, + }, + // List all the input extraction jobs +listInputsExtractionJobs: { + path: '/clarifai.api.V2/ListInputsExtractionJobs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListInputsExtractionJobsRequest, + responseType: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse, + requestSerialize: serialize_clarifai_api_ListInputsExtractionJobsRequest, + requestDeserialize: deserialize_clarifai_api_ListInputsExtractionJobsRequest, + responseSerialize: serialize_clarifai_api_MultiInputsExtractionJobResponse, + responseDeserialize: deserialize_clarifai_api_MultiInputsExtractionJobResponse, + }, + cancelInputsExtractionJobs: { + path: '/clarifai.api.V2/CancelInputsExtractionJobs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.CancelInputsExtractionJobsRequest, + responseType: proto_clarifai_api_service_pb.MultiInputsExtractionJobResponse, + requestSerialize: serialize_clarifai_api_CancelInputsExtractionJobsRequest, + requestDeserialize: deserialize_clarifai_api_CancelInputsExtractionJobsRequest, + responseSerialize: serialize_clarifai_api_MultiInputsExtractionJobResponse, + responseDeserialize: deserialize_clarifai_api_MultiInputsExtractionJobResponse, + }, + // Start uploading a file archive containing inputs. +// Will create and return an inputs-add-job for tracking progress. +// +// Associated inputs-add-job contains an upload id which should be completed through `PutUploadContentParts` endpoint. +// Completing the upload will automatically begin unpacking the archive and uploading the contents as inputs. +postInputsUploads: { + path: '/clarifai.api.V2/PostInputsUploads', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostInputsUploadsRequest, + responseType: proto_clarifai_api_service_pb.MultiInputsAddJobResponse, + requestSerialize: serialize_clarifai_api_PostInputsUploadsRequest, + requestDeserialize: deserialize_clarifai_api_PostInputsUploadsRequest, + responseSerialize: serialize_clarifai_api_MultiInputsAddJobResponse, + responseDeserialize: deserialize_clarifai_api_MultiInputsAddJobResponse, + }, + // Get a specific runner from an app. +getRunner: { + path: '/clarifai.api.V2/GetRunner', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.GetRunnerRequest, + responseType: proto_clarifai_api_service_pb.SingleRunnerResponse, + requestSerialize: serialize_clarifai_api_GetRunnerRequest, + requestDeserialize: deserialize_clarifai_api_GetRunnerRequest, + responseSerialize: serialize_clarifai_api_SingleRunnerResponse, + responseDeserialize: deserialize_clarifai_api_SingleRunnerResponse, + }, + // List all the runners in community, by user or by app. +listRunners: { + path: '/clarifai.api.V2/ListRunners', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListRunnersRequest, + responseType: proto_clarifai_api_service_pb.MultiRunnerResponse, + requestSerialize: serialize_clarifai_api_ListRunnersRequest, + requestDeserialize: deserialize_clarifai_api_ListRunnersRequest, + responseSerialize: serialize_clarifai_api_MultiRunnerResponse, + responseDeserialize: deserialize_clarifai_api_MultiRunnerResponse, + }, + // Add a runners to an app. +postRunners: { + path: '/clarifai.api.V2/PostRunners', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostRunnersRequest, + responseType: proto_clarifai_api_service_pb.MultiRunnerResponse, + requestSerialize: serialize_clarifai_api_PostRunnersRequest, + requestDeserialize: deserialize_clarifai_api_PostRunnersRequest, + responseSerialize: serialize_clarifai_api_MultiRunnerResponse, + responseDeserialize: deserialize_clarifai_api_MultiRunnerResponse, + }, + // Delete multiple runners in one request. +deleteRunners: { + path: '/clarifai.api.V2/DeleteRunners', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.DeleteRunnersRequest, + responseType: proto_clarifai_api_status_status_pb.BaseResponse, + requestSerialize: serialize_clarifai_api_DeleteRunnersRequest, + requestDeserialize: deserialize_clarifai_api_DeleteRunnersRequest, + responseSerialize: serialize_clarifai_api_status_BaseResponse, + responseDeserialize: deserialize_clarifai_api_status_BaseResponse, + }, + // List items for the remote runner to work on. +listRunnerItems: { + path: '/clarifai.api.V2/ListRunnerItems', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.ListRunnerItemsRequest, + responseType: proto_clarifai_api_service_pb.MultiRunnerItemResponse, + requestSerialize: serialize_clarifai_api_ListRunnerItemsRequest, + requestDeserialize: deserialize_clarifai_api_ListRunnerItemsRequest, + responseSerialize: serialize_clarifai_api_MultiRunnerItemResponse, + responseDeserialize: deserialize_clarifai_api_MultiRunnerItemResponse, + }, + // Post back outputs from remote runners +postRunnerItemOutputs: { + path: '/clarifai.api.V2/PostRunnerItemOutputs', + requestStream: false, + responseStream: false, + requestType: proto_clarifai_api_service_pb.PostRunnerItemOutputsRequest, + responseType: proto_clarifai_api_service_pb.MultiRunnerItemOutputResponse, + requestSerialize: serialize_clarifai_api_PostRunnerItemOutputsRequest, + requestDeserialize: deserialize_clarifai_api_PostRunnerItemOutputsRequest, + responseSerialize: serialize_clarifai_api_MultiRunnerItemOutputResponse, + responseDeserialize: deserialize_clarifai_api_MultiRunnerItemOutputResponse, + }, }; exports.V2Client = grpc.makeGenericClientConstructor(V2Service); diff --git a/proto/clarifai/api/service_pb.d.ts b/proto/clarifai/api/service_pb.d.ts index 85be867..711a52f 100644 --- a/proto/clarifai/api/service_pb.d.ts +++ b/proto/clarifai/api/service_pb.d.ts @@ -18,11 +18,9 @@ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/t export class Pagination extends jspb.Message { getPage(): number; setPage(value: number): Pagination; - getPerPage(): number; setPerPage(value: number): Pagination; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Pagination.AsObject; static toObject(includeInstance: boolean, msg: Pagination): Pagination.AsObject; @@ -46,14 +44,11 @@ export class GetAnnotationRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetAnnotationRequest; - getAnnotationId(): string; setAnnotationId(value: string): GetAnnotationRequest; - getInputId(): string; setInputId(value: string): GetAnnotationRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetAnnotationRequest.AsObject; static toObject(includeInstance: boolean, msg: GetAnnotationRequest): GetAnnotationRequest.AsObject; @@ -78,45 +73,37 @@ export class ListAnnotationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAnnotationsRequest; - clearIdsList(): void; getIdsList(): Array; setIdsList(value: Array): ListAnnotationsRequest; addIds(value: string, index?: number): string; - clearInputIdsList(): void; getInputIdsList(): Array; setInputIdsList(value: Array): ListAnnotationsRequest; addInputIds(value: string, index?: number): string; - clearUserIdsList(): void; getUserIdsList(): Array; setUserIdsList(value: Array): ListAnnotationsRequest; addUserIds(value: string, index?: number): string; - clearModelVersionIdsList(): void; getModelVersionIdsList(): Array; setModelVersionIdsList(value: Array): ListAnnotationsRequest; addModelVersionIds(value: string, index?: number): string; - clearStatusesList(): void; getStatusesList(): Array; setStatusesList(value: Array): ListAnnotationsRequest; addStatuses(value?: proto_clarifai_api_status_status_pb.Status, index?: number): proto_clarifai_api_status_status_pb.Status; - getListAllAnnotations(): boolean; setListAllAnnotations(value: boolean): ListAnnotationsRequest; - + getReturnModelOutput(): boolean; + setReturnModelOutput(value: boolean): ListAnnotationsRequest; getPage(): number; setPage(value: number): ListAnnotationsRequest; - getPerPage(): number; setPerPage(value: number): ListAnnotationsRequest; - getTaskId(): string; setTaskId(value: string): ListAnnotationsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListAnnotationsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListAnnotationsRequest): ListAnnotationsRequest.AsObject; @@ -136,6 +123,7 @@ export namespace ListAnnotationsRequest { modelVersionIdsList: Array, statusesList: Array, listAllAnnotations: boolean, + returnModelOutput: boolean, page: number, perPage: number, taskId: string, @@ -148,13 +136,11 @@ export class PostAnnotationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationsRequest; - clearAnnotationsList(): void; getAnnotationsList(): Array; setAnnotationsList(value: Array): PostAnnotationsRequest; addAnnotations(value?: proto_clarifai_api_resources_pb.Annotation, index?: number): proto_clarifai_api_resources_pb.Annotation; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostAnnotationsRequest.AsObject; static toObject(includeInstance: boolean, msg: PostAnnotationsRequest): PostAnnotationsRequest.AsObject; @@ -178,15 +164,14 @@ export class PatchAnnotationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchAnnotationsRequest; - clearAnnotationsList(): void; getAnnotationsList(): Array; setAnnotationsList(value: Array): PatchAnnotationsRequest; addAnnotations(value?: proto_clarifai_api_resources_pb.Annotation, index?: number): proto_clarifai_api_resources_pb.Annotation; - getAction(): string; setAction(value: string): PatchAnnotationsRequest; - + getDeleteIfEmptyData(): boolean; + setDeleteIfEmptyData(value: boolean): PatchAnnotationsRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchAnnotationsRequest.AsObject; @@ -203,6 +188,7 @@ export namespace PatchAnnotationsRequest { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, annotationsList: Array, action: string, + deleteIfEmptyData: boolean, } } @@ -212,22 +198,17 @@ export class PatchAnnotationsStatusRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchAnnotationsStatusRequest; - getStatusCode(): proto_clarifai_api_status_status_code_pb.StatusCode; setStatusCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): PatchAnnotationsStatusRequest; - clearUserIdsList(): void; getUserIdsList(): Array; setUserIdsList(value: Array): PatchAnnotationsStatusRequest; addUserIds(value: string, index?: number): string; - getTaskId(): string; setTaskId(value: string): PatchAnnotationsStatusRequest; - getAction(): string; setAction(value: string): PatchAnnotationsStatusRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchAnnotationsStatusRequest.AsObject; static toObject(includeInstance: boolean, msg: PatchAnnotationsStatusRequest): PatchAnnotationsStatusRequest.AsObject; @@ -254,16 +235,13 @@ export class PatchAnnotationsStatusResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): PatchAnnotationsStatusResponse; - clearUserIdsList(): void; getUserIdsList(): Array; setUserIdsList(value: Array): PatchAnnotationsStatusResponse; addUserIds(value: string, index?: number): string; - getUpdatedCount(): number; setUpdatedCount(value: number): PatchAnnotationsStatusResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchAnnotationsStatusResponse.AsObject; static toObject(includeInstance: boolean, msg: PatchAnnotationsStatusResponse): PatchAnnotationsStatusResponse.AsObject; @@ -288,14 +266,11 @@ export class DeleteAnnotationRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteAnnotationRequest; - getInputId(): string; setInputId(value: string): DeleteAnnotationRequest; - getAnnotationId(): string; setAnnotationId(value: string): DeleteAnnotationRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteAnnotationRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteAnnotationRequest): DeleteAnnotationRequest.AsObject; @@ -320,18 +295,15 @@ export class DeleteAnnotationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteAnnotationsRequest; - clearIdsList(): void; getIdsList(): Array; setIdsList(value: Array): DeleteAnnotationsRequest; addIds(value: string, index?: number): string; - clearInputIdsList(): void; getInputIdsList(): Array; setInputIdsList(value: Array): DeleteAnnotationsRequest; addInputIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteAnnotationsRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteAnnotationsRequest): DeleteAnnotationsRequest.AsObject; @@ -357,13 +329,11 @@ export class SingleAnnotationResponse extends jspb.Message { getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleAnnotationResponse; - hasAnnotation(): boolean; clearAnnotation(): void; getAnnotation(): proto_clarifai_api_resources_pb.Annotation | undefined; setAnnotation(value?: proto_clarifai_api_resources_pb.Annotation): SingleAnnotationResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SingleAnnotationResponse.AsObject; static toObject(includeInstance: boolean, msg: SingleAnnotationResponse): SingleAnnotationResponse.AsObject; @@ -387,13 +357,11 @@ export class MultiAnnotationResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiAnnotationResponse; - clearAnnotationsList(): void; getAnnotationsList(): Array; setAnnotationsList(value: Array): MultiAnnotationResponse; addAnnotations(value?: proto_clarifai_api_resources_pb.Annotation, index?: number): proto_clarifai_api_resources_pb.Annotation; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiAnnotationResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiAnnotationResponse): MultiAnnotationResponse.AsObject; @@ -417,13 +385,11 @@ export class GetAppRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetAppRequest; - clearAdditionalFieldsList(): void; getAdditionalFieldsList(): Array; setAdditionalFieldsList(value: Array): GetAppRequest; addAdditionalFields(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetAppRequest.AsObject; static toObject(includeInstance: boolean, msg: GetAppRequest): GetAppRequest.AsObject; @@ -447,46 +413,45 @@ export class ListAppsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAppsRequest; - getPage(): number; setPage(value: number): ListAppsRequest; - getPerPage(): number; setPerPage(value: number): ListAppsRequest; - getSortAscending(): boolean; setSortAscending(value: boolean): ListAppsRequest; - hasSortByName(): boolean; clearSortByName(): void; getSortByName(): boolean; setSortByName(value: boolean): ListAppsRequest; - hasSortByModifiedAt(): boolean; clearSortByModifiedAt(): void; getSortByModifiedAt(): boolean; setSortByModifiedAt(value: boolean): ListAppsRequest; + hasSortByCreatedAt(): boolean; + clearSortByCreatedAt(): void; + getSortByCreatedAt(): boolean; + setSortByCreatedAt(value: boolean): ListAppsRequest; + + hasSortByStarCount(): boolean; + clearSortByStarCount(): void; + getSortByStarCount(): boolean; + setSortByStarCount(value: boolean): ListAppsRequest; getQuery(): string; setQuery(value: string): ListAppsRequest; - getName(): string; setName(value: string): ListAppsRequest; - getFeaturedOnly(): boolean; setFeaturedOnly(value: boolean): ListAppsRequest; - getStarredOnly(): boolean; setStarredOnly(value: boolean): ListAppsRequest; - clearAdditionalFieldsList(): void; getAdditionalFieldsList(): Array; setAdditionalFieldsList(value: Array): ListAppsRequest; addAdditionalFields(value: string, index?: number): string; - getSortByCase(): ListAppsRequest.SortByCase; serializeBinary(): Uint8Array; @@ -507,6 +472,8 @@ export namespace ListAppsRequest { sortAscending: boolean, sortByName: boolean, sortByModifiedAt: boolean, + sortByCreatedAt: boolean, + sortByStarCount: boolean, query: string, name: string, featuredOnly: boolean, @@ -516,11 +483,10 @@ export namespace ListAppsRequest { export enum SortByCase { SORT_BY_NOT_SET = 0, - - SORT_BY_NAME = 6, - - SORT_BY_MODIFIED_AT = 7, - + SORT_BY_NAME = 6, + SORT_BY_MODIFIED_AT = 7, + SORT_BY_CREATED_AT = 12, + SORT_BY_STAR_COUNT = 13, } } @@ -531,13 +497,11 @@ export class PostAppsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAppsRequest; - clearAppsList(): void; getAppsList(): Array; setAppsList(value: Array): PostAppsRequest; addApps(value?: proto_clarifai_api_resources_pb.App, index?: number): proto_clarifai_api_resources_pb.App; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostAppsRequest.AsObject; static toObject(includeInstance: boolean, msg: PostAppsRequest): PostAppsRequest.AsObject; @@ -562,7 +526,6 @@ export class DeleteAppRequest extends jspb.Message { getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteAppRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteAppRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteAppRequest): DeleteAppRequest.AsObject; @@ -585,25 +548,20 @@ export class PatchAppsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchAppsRequest; - clearAppsList(): void; getAppsList(): Array; setAppsList(value: Array): PatchAppsRequest; addApps(value?: proto_clarifai_api_resources_pb.App, index?: number): proto_clarifai_api_resources_pb.App; - getAction(): string; setAction(value: string): PatchAppsRequest; - hasMetadataAction(): boolean; clearMetadataAction(): void; getMetadataAction(): proto_clarifai_api_resources_pb.PatchAction | undefined; setMetadataAction(value?: proto_clarifai_api_resources_pb.PatchAction): PatchAppsRequest; - getReindex(): boolean; setReindex(value: boolean): PatchAppsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchAppsRequest.AsObject; static toObject(includeInstance: boolean, msg: PatchAppsRequest): PatchAppsRequest.AsObject; @@ -624,6 +582,78 @@ export namespace PatchAppsRequest { } } +export class PatchAppRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchAppRequest; + + hasApp(): boolean; + clearApp(): void; + getApp(): proto_clarifai_api_resources_pb.App | undefined; + setApp(value?: proto_clarifai_api_resources_pb.App): PatchAppRequest; + getAction(): string; + setAction(value: string): PatchAppRequest; + + hasMetadataAction(): boolean; + clearMetadataAction(): void; + getMetadataAction(): proto_clarifai_api_resources_pb.PatchAction | undefined; + setMetadataAction(value?: proto_clarifai_api_resources_pb.PatchAction): PatchAppRequest; + getReindex(): boolean; + setReindex(value: boolean): PatchAppRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchAppRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchAppRequest): PatchAppRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchAppRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchAppRequest; + static deserializeBinaryFromReader(message: PatchAppRequest, reader: jspb.BinaryReader): PatchAppRequest; +} + +export namespace PatchAppRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + app?: proto_clarifai_api_resources_pb.App.AsObject, + action: string, + metadataAction?: proto_clarifai_api_resources_pb.PatchAction.AsObject, + reindex: boolean, + } +} + +export class PatchAppsIdsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchAppsIdsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): PatchAppsIdsRequest; + addIds(value?: IdUpdateSource, index?: number): IdUpdateSource; + getAction(): string; + setAction(value: string): PatchAppsIdsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchAppsIdsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchAppsIdsRequest): PatchAppsIdsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchAppsIdsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchAppsIdsRequest; + static deserializeBinaryFromReader(message: PatchAppsIdsRequest, reader: jspb.BinaryReader): PatchAppsIdsRequest; +} + +export namespace PatchAppsIdsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, + action: string, + } +} + export class PostAppsSearchesRequest extends jspb.Message { hasUserAppId(): boolean; @@ -631,19 +661,16 @@ export class PostAppsSearchesRequest extends jspb.Message { getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAppsSearchesRequest; - hasAppQuery(): boolean; clearAppQuery(): void; getAppQuery(): proto_clarifai_api_resources_pb.AppQuery | undefined; setAppQuery(value?: proto_clarifai_api_resources_pb.AppQuery): PostAppsSearchesRequest; - hasPagination(): boolean; clearPagination(): void; getPagination(): Pagination | undefined; setPagination(value?: Pagination): PostAppsSearchesRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostAppsSearchesRequest.AsObject; static toObject(includeInstance: boolean, msg: PostAppsSearchesRequest): PostAppsSearchesRequest.AsObject; @@ -669,13 +696,11 @@ export class SingleAppResponse extends jspb.Message { getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleAppResponse; - hasApp(): boolean; clearApp(): void; getApp(): proto_clarifai_api_resources_pb.App | undefined; setApp(value?: proto_clarifai_api_resources_pb.App): SingleAppResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SingleAppResponse.AsObject; static toObject(includeInstance: boolean, msg: SingleAppResponse): SingleAppResponse.AsObject; @@ -699,13 +724,11 @@ export class MultiAppResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiAppResponse; - clearAppsList(): void; getAppsList(): Array; setAppsList(value: Array): MultiAppResponse; addApps(value?: proto_clarifai_api_resources_pb.App, index?: number): proto_clarifai_api_resources_pb.App; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiAppResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiAppResponse): MultiAppResponse.AsObject; @@ -729,10 +752,12 @@ export class ListCollaboratorsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListCollaboratorsRequest; - getListAllCollaborators(): boolean; setListAllCollaborators(value: boolean): ListCollaboratorsRequest; - + getPage(): number; + setPage(value: number): ListCollaboratorsRequest; + getPerPage(): number; + setPerPage(value: number): ListCollaboratorsRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListCollaboratorsRequest.AsObject; @@ -748,6 +773,8 @@ export namespace ListCollaboratorsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, listAllCollaborators: boolean, + page: number, + perPage: number, } } @@ -757,13 +784,11 @@ export class PostCollaboratorsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostCollaboratorsRequest; - clearCollaboratorsList(): void; getCollaboratorsList(): Array; setCollaboratorsList(value: Array): PostCollaboratorsRequest; addCollaborators(value?: proto_clarifai_api_resources_pb.Collaborator, index?: number): proto_clarifai_api_resources_pb.Collaborator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostCollaboratorsRequest.AsObject; static toObject(includeInstance: boolean, msg: PostCollaboratorsRequest): PostCollaboratorsRequest.AsObject; @@ -787,16 +812,13 @@ export class PatchCollaboratorsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchCollaboratorsRequest; - clearCollaboratorsList(): void; getCollaboratorsList(): Array; setCollaboratorsList(value: Array): PatchCollaboratorsRequest; addCollaborators(value?: proto_clarifai_api_resources_pb.Collaborator, index?: number): proto_clarifai_api_resources_pb.Collaborator; - getAction(): string; setAction(value: string): PatchCollaboratorsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchCollaboratorsRequest.AsObject; static toObject(includeInstance: boolean, msg: PatchCollaboratorsRequest): PatchCollaboratorsRequest.AsObject; @@ -821,18 +843,15 @@ export class DeleteCollaboratorsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteCollaboratorsRequest; - clearCollaboratorIdsList(): void; getCollaboratorIdsList(): Array; setCollaboratorIdsList(value: Array): DeleteCollaboratorsRequest; addCollaboratorIds(value: string, index?: number): string; - clearUserEmailsList(): void; getUserEmailsList(): Array; setUserEmailsList(value: Array): DeleteCollaboratorsRequest; addUserEmails(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteCollaboratorsRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteCollaboratorsRequest): DeleteCollaboratorsRequest.AsObject; @@ -857,13 +876,11 @@ export class MultiCollaboratorsResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiCollaboratorsResponse; - clearCollaboratorsList(): void; getCollaboratorsList(): Array; setCollaboratorsList(value: Array): MultiCollaboratorsResponse; addCollaborators(value?: proto_clarifai_api_resources_pb.Collaborator, index?: number): proto_clarifai_api_resources_pb.Collaborator; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiCollaboratorsResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiCollaboratorsResponse): MultiCollaboratorsResponse.AsObject; @@ -887,14 +904,11 @@ export class ListCollaborationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListCollaborationsRequest; - getPage(): number; setPage(value: number): ListCollaborationsRequest; - getPerPage(): number; setPerPage(value: number): ListCollaborationsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListCollaborationsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListCollaborationsRequest): ListCollaborationsRequest.AsObject; @@ -919,13 +933,11 @@ export class MultiCollaborationsResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiCollaborationsResponse; - clearCollaborationsList(): void; getCollaborationsList(): Array; setCollaborationsList(value: Array): MultiCollaborationsResponse; addCollaborations(value?: proto_clarifai_api_resources_pb.Collaboration, index?: number): proto_clarifai_api_resources_pb.Collaboration; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiCollaborationsResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiCollaborationsResponse): MultiCollaborationsResponse.AsObject; @@ -947,7 +959,6 @@ export class GetStatusCodeRequest extends jspb.Message { getStatusCodeId(): string; setStatusCodeId(value: string): GetStatusCodeRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetStatusCodeRequest.AsObject; static toObject(includeInstance: boolean, msg: GetStatusCodeRequest): GetStatusCodeRequest.AsObject; @@ -988,7 +999,6 @@ export class SingleStatusCodeResponse extends jspb.Message { getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleStatusCodeResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SingleStatusCodeResponse.AsObject; static toObject(includeInstance: boolean, msg: SingleStatusCodeResponse): SingleStatusCodeResponse.AsObject; @@ -1011,13 +1021,11 @@ export class MultiStatusCodeResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiStatusCodeResponse; - clearStatusesList(): void; getStatusesList(): Array; setStatusesList(value: Array): MultiStatusCodeResponse; addStatuses(value?: proto_clarifai_api_status_status_pb.Status, index?: number): proto_clarifai_api_status_status_pb.Status; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiStatusCodeResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiStatusCodeResponse): MultiStatusCodeResponse.AsObject; @@ -1041,11 +1049,9 @@ export class GetConceptRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetConceptRequest; - getConceptId(): string; setConceptId(value: string): GetConceptRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetConceptRequest.AsObject; static toObject(includeInstance: boolean, msg: GetConceptRequest): GetConceptRequest.AsObject; @@ -1069,14 +1075,11 @@ export class ListConceptsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListConceptsRequest; - getPage(): number; setPage(value: number): ListConceptsRequest; - getPerPage(): number; setPerPage(value: number): ListConceptsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListConceptsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListConceptsRequest): ListConceptsRequest.AsObject; @@ -1095,6 +1098,41 @@ export namespace ListConceptsRequest { } } +export class ListModelConceptsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelConceptsRequest; + getModelId(): string; + setModelId(value: string): ListModelConceptsRequest; + getVersionId(): string; + setVersionId(value: string): ListModelConceptsRequest; + getPage(): number; + setPage(value: number): ListModelConceptsRequest; + getPerPage(): number; + setPerPage(value: number): ListModelConceptsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListModelConceptsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelConceptsRequest): ListModelConceptsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListModelConceptsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelConceptsRequest; + static deserializeBinaryFromReader(message: ListModelConceptsRequest, reader: jspb.BinaryReader): ListModelConceptsRequest; +} + +export namespace ListModelConceptsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + versionId: string, + page: number, + perPage: number, + } +} + export class PostConceptsSearchesRequest extends jspb.Message { hasUserAppId(): boolean; @@ -1102,19 +1140,16 @@ export class PostConceptsSearchesRequest extends jspb.Message { getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostConceptsSearchesRequest; - hasConceptQuery(): boolean; clearConceptQuery(): void; getConceptQuery(): proto_clarifai_api_resources_pb.ConceptQuery | undefined; setConceptQuery(value?: proto_clarifai_api_resources_pb.ConceptQuery): PostConceptsSearchesRequest; - hasPagination(): boolean; clearPagination(): void; getPagination(): Pagination | undefined; setPagination(value?: Pagination): PostConceptsSearchesRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostConceptsSearchesRequest.AsObject; static toObject(includeInstance: boolean, msg: PostConceptsSearchesRequest): PostConceptsSearchesRequest.AsObject; @@ -1139,13 +1174,11 @@ export class PostConceptsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostConceptsRequest; - clearConceptsList(): void; getConceptsList(): Array; setConceptsList(value: Array): PostConceptsRequest; addConcepts(value?: proto_clarifai_api_resources_pb.Concept, index?: number): proto_clarifai_api_resources_pb.Concept; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostConceptsRequest.AsObject; static toObject(includeInstance: boolean, msg: PostConceptsRequest): PostConceptsRequest.AsObject; @@ -1169,16 +1202,13 @@ export class PatchConceptsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchConceptsRequest; - clearConceptsList(): void; getConceptsList(): Array; setConceptsList(value: Array): PatchConceptsRequest; addConcepts(value?: proto_clarifai_api_resources_pb.Concept, index?: number): proto_clarifai_api_resources_pb.Concept; - getAction(): string; setAction(value: string): PatchConceptsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchConceptsRequest.AsObject; static toObject(includeInstance: boolean, msg: PatchConceptsRequest): PatchConceptsRequest.AsObject; @@ -1203,14 +1233,11 @@ export class GetConceptCountsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetConceptCountsRequest; - getPage(): number; setPage(value: number): GetConceptCountsRequest; - getPerPage(): number; setPerPage(value: number): GetConceptCountsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetConceptCountsRequest.AsObject; static toObject(includeInstance: boolean, msg: GetConceptCountsRequest): GetConceptCountsRequest.AsObject; @@ -1236,13 +1263,11 @@ export class SingleConceptResponse extends jspb.Message { getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleConceptResponse; - hasConcept(): boolean; clearConcept(): void; getConcept(): proto_clarifai_api_resources_pb.Concept | undefined; setConcept(value?: proto_clarifai_api_resources_pb.Concept): SingleConceptResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SingleConceptResponse.AsObject; static toObject(includeInstance: boolean, msg: SingleConceptResponse): SingleConceptResponse.AsObject; @@ -1266,13 +1291,11 @@ export class MultiConceptResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiConceptResponse; - clearConceptsList(): void; getConceptsList(): Array; setConceptsList(value: Array): MultiConceptResponse; addConcepts(value?: proto_clarifai_api_resources_pb.Concept, index?: number): proto_clarifai_api_resources_pb.Concept; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiConceptResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiConceptResponse): MultiConceptResponse.AsObject; @@ -1296,13 +1319,11 @@ export class MultiConceptCountResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiConceptCountResponse; - clearConceptCountsList(): void; getConceptCountsList(): Array; setConceptCountsList(value: Array): MultiConceptCountResponse; addConceptCounts(value?: proto_clarifai_api_resources_pb.ConceptCount, index?: number): proto_clarifai_api_resources_pb.ConceptCount; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiConceptCountResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiConceptCountResponse): MultiConceptCountResponse.AsObject; @@ -1326,23 +1347,17 @@ export class ListConceptRelationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListConceptRelationsRequest; - getConceptId(): string; setConceptId(value: string): ListConceptRelationsRequest; - getPredicate(): string; setPredicate(value: string): ListConceptRelationsRequest; - getKnowledgeGraphId(): string; setKnowledgeGraphId(value: string): ListConceptRelationsRequest; - getPage(): number; setPage(value: number): ListConceptRelationsRequest; - getPerPage(): number; setPerPage(value: number): ListConceptRelationsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListConceptRelationsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListConceptRelationsRequest): ListConceptRelationsRequest.AsObject; @@ -1370,16 +1385,13 @@ export class PostConceptRelationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostConceptRelationsRequest; - getConceptId(): string; setConceptId(value: string): PostConceptRelationsRequest; - clearConceptRelationsList(): void; getConceptRelationsList(): Array; setConceptRelationsList(value: Array): PostConceptRelationsRequest; addConceptRelations(value?: proto_clarifai_api_resources_pb.ConceptRelation, index?: number): proto_clarifai_api_resources_pb.ConceptRelation; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostConceptRelationsRequest.AsObject; static toObject(includeInstance: boolean, msg: PostConceptRelationsRequest): PostConceptRelationsRequest.AsObject; @@ -1404,16 +1416,13 @@ export class DeleteConceptRelationsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteConceptRelationsRequest; - getConceptId(): string; setConceptId(value: string): DeleteConceptRelationsRequest; - clearIdsList(): void; getIdsList(): Array; setIdsList(value: Array): DeleteConceptRelationsRequest; addIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteConceptRelationsRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteConceptRelationsRequest): DeleteConceptRelationsRequest.AsObject; @@ -1439,7 +1448,6 @@ export class ListKnowledgeGraphsRequest extends jspb.Message { getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListKnowledgeGraphsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListKnowledgeGraphsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListKnowledgeGraphsRequest): ListKnowledgeGraphsRequest.AsObject; @@ -1462,13 +1470,11 @@ export class PostKnowledgeGraphsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostKnowledgeGraphsRequest; - clearKnowledgeGraphsList(): void; getKnowledgeGraphsList(): Array; setKnowledgeGraphsList(value: Array): PostKnowledgeGraphsRequest; addKnowledgeGraphs(value?: proto_clarifai_api_resources_pb.KnowledgeGraph, index?: number): proto_clarifai_api_resources_pb.KnowledgeGraph; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostKnowledgeGraphsRequest.AsObject; static toObject(includeInstance: boolean, msg: PostKnowledgeGraphsRequest): PostKnowledgeGraphsRequest.AsObject; @@ -1492,13 +1498,11 @@ export class PostConceptMappingJobsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostConceptMappingJobsRequest; - clearConceptMappingJobsList(): void; getConceptMappingJobsList(): Array; setConceptMappingJobsList(value: Array): PostConceptMappingJobsRequest; addConceptMappingJobs(value?: proto_clarifai_api_resources_pb.ConceptMappingJob, index?: number): proto_clarifai_api_resources_pb.ConceptMappingJob; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostConceptMappingJobsRequest.AsObject; static toObject(includeInstance: boolean, msg: PostConceptMappingJobsRequest): PostConceptMappingJobsRequest.AsObject; @@ -1522,13 +1526,11 @@ export class MultiConceptRelationResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiConceptRelationResponse; - clearConceptRelationsList(): void; getConceptRelationsList(): Array; setConceptRelationsList(value: Array): MultiConceptRelationResponse; addConceptRelations(value?: proto_clarifai_api_resources_pb.ConceptRelation, index?: number): proto_clarifai_api_resources_pb.ConceptRelation; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiConceptRelationResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiConceptRelationResponse): MultiConceptRelationResponse.AsObject; @@ -1552,13 +1554,11 @@ export class MultiKnowledgeGraphResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiKnowledgeGraphResponse; - clearKnowledgeGraphsList(): void; getKnowledgeGraphsList(): Array; setKnowledgeGraphsList(value: Array): MultiKnowledgeGraphResponse; addKnowledgeGraphs(value?: proto_clarifai_api_resources_pb.KnowledgeGraph, index?: number): proto_clarifai_api_resources_pb.KnowledgeGraph; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiKnowledgeGraphResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiKnowledgeGraphResponse): MultiKnowledgeGraphResponse.AsObject; @@ -1582,13 +1582,11 @@ export class MultiConceptMappingJobResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiConceptMappingJobResponse; - clearIdsList(): void; getIdsList(): Array; setIdsList(value: Array): MultiConceptMappingJobResponse; addIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiConceptMappingJobResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiConceptMappingJobResponse): MultiConceptMappingJobResponse.AsObject; @@ -1612,14 +1610,11 @@ export class GetConceptLanguageRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetConceptLanguageRequest; - getConceptId(): string; setConceptId(value: string): GetConceptLanguageRequest; - getLanguage(): string; setLanguage(value: string): GetConceptLanguageRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetConceptLanguageRequest.AsObject; static toObject(includeInstance: boolean, msg: GetConceptLanguageRequest): GetConceptLanguageRequest.AsObject; @@ -1644,17 +1639,13 @@ export class ListConceptLanguagesRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListConceptLanguagesRequest; - getConceptId(): string; setConceptId(value: string): ListConceptLanguagesRequest; - getPage(): number; setPage(value: number): ListConceptLanguagesRequest; - getPerPage(): number; setPerPage(value: number): ListConceptLanguagesRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListConceptLanguagesRequest.AsObject; static toObject(includeInstance: boolean, msg: ListConceptLanguagesRequest): ListConceptLanguagesRequest.AsObject; @@ -1680,19 +1671,15 @@ export class PatchConceptLanguagesRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchConceptLanguagesRequest; - getConceptId(): string; setConceptId(value: string): PatchConceptLanguagesRequest; - clearConceptLanguagesList(): void; getConceptLanguagesList(): Array; setConceptLanguagesList(value: Array): PatchConceptLanguagesRequest; addConceptLanguages(value?: proto_clarifai_api_resources_pb.ConceptLanguage, index?: number): proto_clarifai_api_resources_pb.ConceptLanguage; - getAction(): string; setAction(value: string): PatchConceptLanguagesRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchConceptLanguagesRequest.AsObject; static toObject(includeInstance: boolean, msg: PatchConceptLanguagesRequest): PatchConceptLanguagesRequest.AsObject; @@ -1718,16 +1705,13 @@ export class PostConceptLanguagesRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostConceptLanguagesRequest; - getConceptId(): string; setConceptId(value: string): PostConceptLanguagesRequest; - clearConceptLanguagesList(): void; getConceptLanguagesList(): Array; setConceptLanguagesList(value: Array): PostConceptLanguagesRequest; addConceptLanguages(value?: proto_clarifai_api_resources_pb.ConceptLanguage, index?: number): proto_clarifai_api_resources_pb.ConceptLanguage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostConceptLanguagesRequest.AsObject; static toObject(includeInstance: boolean, msg: PostConceptLanguagesRequest): PostConceptLanguagesRequest.AsObject; @@ -1753,13 +1737,11 @@ export class SingleConceptLanguageResponse extends jspb.Message { getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleConceptLanguageResponse; - hasConceptLanguage(): boolean; clearConceptLanguage(): void; getConceptLanguage(): proto_clarifai_api_resources_pb.ConceptLanguage | undefined; setConceptLanguage(value?: proto_clarifai_api_resources_pb.ConceptLanguage): SingleConceptLanguageResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SingleConceptLanguageResponse.AsObject; static toObject(includeInstance: boolean, msg: SingleConceptLanguageResponse): SingleConceptLanguageResponse.AsObject; @@ -1783,13 +1765,11 @@ export class MultiConceptLanguageResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiConceptLanguageResponse; - clearConceptLanguagesList(): void; getConceptLanguagesList(): Array; setConceptLanguagesList(value: Array): MultiConceptLanguageResponse; addConceptLanguages(value?: proto_clarifai_api_resources_pb.ConceptLanguage, index?: number): proto_clarifai_api_resources_pb.ConceptLanguage; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiConceptLanguageResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiConceptLanguageResponse): MultiConceptLanguageResponse.AsObject; @@ -1813,11 +1793,9 @@ export class GetInputRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetInputRequest; - getInputId(): string; setInputId(value: string): GetInputRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetInputRequest.AsObject; static toObject(includeInstance: boolean, msg: GetInputRequest): GetInputRequest.AsObject; @@ -1835,22 +1813,45 @@ export namespace GetInputRequest { } } +export class GetVideoManifestRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetVideoManifestRequest; + getInputId(): string; + setInputId(value: string): GetVideoManifestRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetVideoManifestRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetVideoManifestRequest): GetVideoManifestRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetVideoManifestRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetVideoManifestRequest; + static deserializeBinaryFromReader(message: GetVideoManifestRequest, reader: jspb.BinaryReader): GetVideoManifestRequest; +} + +export namespace GetVideoManifestRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + inputId: string, + } +} + export class GetInputSamplesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetInputSamplesRequest; - getTaskId(): string; setTaskId(value: string): GetInputSamplesRequest; - clearUserIdsList(): void; getUserIdsList(): Array; setUserIdsList(value: Array): GetInputSamplesRequest; addUserIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetInputSamplesRequest.AsObject; static toObject(includeInstance: boolean, msg: GetInputSamplesRequest): GetInputSamplesRequest.AsObject; @@ -1875,25 +1876,20 @@ export class ListInputsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListInputsRequest; - getPage(): number; setPage(value: number): ListInputsRequest; - getPerPage(): number; setPerPage(value: number): ListInputsRequest; - hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): ListInputsRequest; - clearIdsList(): void; getIdsList(): Array; setIdsList(value: Array): ListInputsRequest; addIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListInputsRequest.AsObject; static toObject(includeInstance: boolean, msg: ListInputsRequest): ListInputsRequest.AsObject; @@ -1920,17 +1916,15 @@ export class StreamInputsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): StreamInputsRequest; - getPerPage(): number; setPerPage(value: number): StreamInputsRequest; - getLastId(): string; setLastId(value: string): StreamInputsRequest; - + getOrderById(): boolean; + setOrderById(value: boolean): StreamInputsRequest; getDescending(): boolean; setDescending(value: boolean): StreamInputsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): StreamInputsRequest.AsObject; static toObject(includeInstance: boolean, msg: StreamInputsRequest): StreamInputsRequest.AsObject; @@ -1946,6 +1940,7 @@ export namespace StreamInputsRequest { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, perPage: number, lastId: string, + orderById: boolean, descending: boolean, } } @@ -1956,12 +1951,14 @@ export class PostInputsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostInputsRequest; - clearInputsList(): void; getInputsList(): Array; setInputsList(value: Array): PostInputsRequest; addInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; - + getInputsAddJobId(): string; + setInputsAddJobId(value: string): PostInputsRequest; + getInputIdConflictResolution(): proto_clarifai_api_resources_pb.InputIDConflictResolution; + setInputIdConflictResolution(value: proto_clarifai_api_resources_pb.InputIDConflictResolution): PostInputsRequest; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PostInputsRequest.AsObject; @@ -1977,6 +1974,8 @@ export namespace PostInputsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, inputsList: Array, + inputsAddJobId: string, + inputIdConflictResolution: proto_clarifai_api_resources_pb.InputIDConflictResolution, } } @@ -1986,16 +1985,13 @@ export class PatchInputsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchInputsRequest; - clearInputsList(): void; getInputsList(): Array; setInputsList(value: Array): PatchInputsRequest; addInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; - getAction(): string; setAction(value: string): PatchInputsRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): PatchInputsRequest.AsObject; static toObject(includeInstance: boolean, msg: PatchInputsRequest): PatchInputsRequest.AsObject; @@ -2020,11 +2016,9 @@ export class DeleteInputRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteInputRequest; - getInputId(): string; setInputId(value: string): DeleteInputRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteInputRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteInputRequest): DeleteInputRequest.AsObject; @@ -2048,13 +2042,11 @@ export class DeleteInputsRequest extends jspb.Message { clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteInputsRequest; - clearIdsList(): void; getIdsList(): Array; setIdsList(value: Array): DeleteInputsRequest; addIds(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeleteInputsRequest.AsObject; static toObject(includeInstance: boolean, msg: DeleteInputsRequest): DeleteInputsRequest.AsObject; @@ -2079,13 +2071,11 @@ export class SingleInputResponse extends jspb.Message { getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleInputResponse; - hasInput(): boolean; clearInput(): void; getInput(): proto_clarifai_api_resources_pb.Input | undefined; setInput(value?: proto_clarifai_api_resources_pb.Input): SingleInputResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SingleInputResponse.AsObject; static toObject(includeInstance: boolean, msg: SingleInputResponse): SingleInputResponse.AsObject; @@ -2103,18 +2093,47 @@ export namespace SingleInputResponse { } } +export class GetVideoManifestResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): GetVideoManifestResponse; + getManifestUrl(): string; + setManifestUrl(value: string): GetVideoManifestResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetVideoManifestResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetVideoManifestResponse): GetVideoManifestResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetVideoManifestResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetVideoManifestResponse; + static deserializeBinaryFromReader(message: GetVideoManifestResponse, reader: jspb.BinaryReader): GetVideoManifestResponse; +} + +export namespace GetVideoManifestResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + manifestUrl: string, + } +} + export class MultiInputResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiInputResponse; - clearInputsList(): void; getInputsList(): Array; setInputsList(value: Array): MultiInputResponse; addInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; + hasInputsAddJob(): boolean; + clearInputsAddJob(): void; + getInputsAddJob(): proto_clarifai_api_resources_pb.InputsAddJob | undefined; + setInputsAddJob(value?: proto_clarifai_api_resources_pb.InputsAddJob): MultiInputResponse; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiInputResponse.AsObject; @@ -2130,6 +2149,7 @@ export namespace MultiInputResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, inputsList: Array, + inputsAddJob?: proto_clarifai_api_resources_pb.InputsAddJob.AsObject, } } @@ -2139,13 +2159,11 @@ export class MultiInputAnnotationResponse extends jspb.Message { clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiInputAnnotationResponse; - clearHitsList(): void; getHitsList(): Array; setHitsList(value: Array): MultiInputAnnotationResponse; addHits(value?: proto_clarifai_api_resources_pb.Hit, index?: number): proto_clarifai_api_resources_pb.Hit; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): MultiInputAnnotationResponse.AsObject; static toObject(includeInstance: boolean, msg: MultiInputAnnotationResponse): MultiInputAnnotationResponse.AsObject; @@ -2170,13 +2188,11 @@ export class SingleInputCountResponse extends jspb.Message { getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleInputCountResponse; - hasCounts(): boolean; clearCounts(): void; getCounts(): proto_clarifai_api_resources_pb.InputCount | undefined; setCounts(value?: proto_clarifai_api_resources_pb.InputCount): SingleInputCountResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SingleInputCountResponse.AsObject; static toObject(includeInstance: boolean, msg: SingleInputCountResponse): SingleInputCountResponse.AsObject; @@ -2201,7 +2217,6 @@ export class GetInputCountRequest extends jspb.Message { getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetInputCountRequest; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetInputCountRequest.AsObject; static toObject(includeInstance: boolean, msg: GetInputCountRequest): GetInputCountRequest.AsObject; @@ -2218,3391 +2233,6653 @@ export namespace GetInputCountRequest { } } -export class PostModelOutputsRequest extends jspb.Message { +export class ListDatasetsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelOutputsRequest; - - getModelId(): string; - setModelId(value: string): PostModelOutputsRequest; - - getVersionId(): string; - setVersionId(value: string): PostModelOutputsRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListDatasetsRequest; + getPage(): number; + setPage(value: number): ListDatasetsRequest; + getPerPage(): number; + setPerPage(value: number): ListDatasetsRequest; + getStarredOnly(): boolean; + setStarredOnly(value: boolean): ListDatasetsRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): ListDatasetsRequest; + addAdditionalFields(value: string, index?: number): string; + getSortAscending(): boolean; + setSortAscending(value: boolean): ListDatasetsRequest; - clearInputsList(): void; - getInputsList(): Array; - setInputsList(value: Array): PostModelOutputsRequest; - addInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; + hasSortByCreatedAt(): boolean; + clearSortByCreatedAt(): void; + getSortByCreatedAt(): boolean; + setSortByCreatedAt(value: boolean): ListDatasetsRequest; + hasSortByStarCount(): boolean; + clearSortByStarCount(): void; + getSortByStarCount(): boolean; + setSortByStarCount(value: boolean): ListDatasetsRequest; - hasModel(): boolean; - clearModel(): void; - getModel(): proto_clarifai_api_resources_pb.Model | undefined; - setModel(value?: proto_clarifai_api_resources_pb.Model): PostModelOutputsRequest; + hasSortByModifiedAt(): boolean; + clearSortByModifiedAt(): void; + getSortByModifiedAt(): boolean; + setSortByModifiedAt(value: boolean): ListDatasetsRequest; + getBookmark(): boolean; + setBookmark(value: boolean): ListDatasetsRequest; + getSortByCase(): ListDatasetsRequest.SortByCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostModelOutputsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostModelOutputsRequest): PostModelOutputsRequest.AsObject; + toObject(includeInstance?: boolean): ListDatasetsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListDatasetsRequest): ListDatasetsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostModelOutputsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostModelOutputsRequest; - static deserializeBinaryFromReader(message: PostModelOutputsRequest, reader: jspb.BinaryReader): PostModelOutputsRequest; + static serializeBinaryToWriter(message: ListDatasetsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListDatasetsRequest; + static deserializeBinaryFromReader(message: ListDatasetsRequest, reader: jspb.BinaryReader): ListDatasetsRequest; } -export namespace PostModelOutputsRequest { +export namespace ListDatasetsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - versionId: string, - inputsList: Array, - model?: proto_clarifai_api_resources_pb.Model.AsObject, + page: number, + perPage: number, + starredOnly: boolean, + additionalFieldsList: Array, + sortAscending: boolean, + sortByCreatedAt: boolean, + sortByStarCount: boolean, + sortByModifiedAt: boolean, + bookmark: boolean, + } + + export enum SortByCase { + SORT_BY_NOT_SET = 0, + SORT_BY_CREATED_AT = 7, + SORT_BY_STAR_COUNT = 8, + SORT_BY_MODIFIED_AT = 9, } + } -export class ListModelInputsRequest extends jspb.Message { +export class GetDatasetRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelInputsRequest; - - getModelId(): string; - setModelId(value: string): ListModelInputsRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetDatasetRequest; + getDatasetId(): string; + setDatasetId(value: string): GetDatasetRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): GetDatasetRequest; + addAdditionalFields(value: string, index?: number): string; - getVersionId(): string; - setVersionId(value: string): ListModelInputsRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetDatasetRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetDatasetRequest): GetDatasetRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetDatasetRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDatasetRequest; + static deserializeBinaryFromReader(message: GetDatasetRequest, reader: jspb.BinaryReader): GetDatasetRequest; +} - getPage(): number; - setPage(value: number): ListModelInputsRequest; +export namespace GetDatasetRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + datasetId: string, + additionalFieldsList: Array, + } +} - getPerPage(): number; - setPerPage(value: number): ListModelInputsRequest; +export class PostDatasetsRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostDatasetsRequest; + clearDatasetsList(): void; + getDatasetsList(): Array; + setDatasetsList(value: Array): PostDatasetsRequest; + addDatasets(value?: proto_clarifai_api_resources_pb.Dataset, index?: number): proto_clarifai_api_resources_pb.Dataset; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListModelInputsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListModelInputsRequest): ListModelInputsRequest.AsObject; + toObject(includeInstance?: boolean): PostDatasetsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostDatasetsRequest): PostDatasetsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListModelInputsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListModelInputsRequest; - static deserializeBinaryFromReader(message: ListModelInputsRequest, reader: jspb.BinaryReader): ListModelInputsRequest; + static serializeBinaryToWriter(message: PostDatasetsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostDatasetsRequest; + static deserializeBinaryFromReader(message: PostDatasetsRequest, reader: jspb.BinaryReader): PostDatasetsRequest; } -export namespace ListModelInputsRequest { +export namespace PostDatasetsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - versionId: string, - page: number, - perPage: number, + datasetsList: Array, } } -export class GetKeyRequest extends jspb.Message { +export class PatchDatasetsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetKeyRequest; - - getKeyId(): string; - setKeyId(value: string): GetKeyRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchDatasetsRequest; + clearDatasetsList(): void; + getDatasetsList(): Array; + setDatasetsList(value: Array): PatchDatasetsRequest; + addDatasets(value?: proto_clarifai_api_resources_pb.Dataset, index?: number): proto_clarifai_api_resources_pb.Dataset; + getAction(): string; + setAction(value: string): PatchDatasetsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetKeyRequest): GetKeyRequest.AsObject; + toObject(includeInstance?: boolean): PatchDatasetsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchDatasetsRequest): PatchDatasetsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetKeyRequest; - static deserializeBinaryFromReader(message: GetKeyRequest, reader: jspb.BinaryReader): GetKeyRequest; + static serializeBinaryToWriter(message: PatchDatasetsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchDatasetsRequest; + static deserializeBinaryFromReader(message: PatchDatasetsRequest, reader: jspb.BinaryReader): PatchDatasetsRequest; } -export namespace GetKeyRequest { +export namespace PatchDatasetsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - keyId: string, + datasetsList: Array, + action: string, } } -export class ListKeysRequest extends jspb.Message { +export class DeleteDatasetsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListKeysRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteDatasetsRequest; + clearDatasetIdsList(): void; + getDatasetIdsList(): Array; + setDatasetIdsList(value: Array): DeleteDatasetsRequest; + addDatasetIds(value: string, index?: number): string; - getPage(): number; - setPage(value: number): ListKeysRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteDatasetsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteDatasetsRequest): DeleteDatasetsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteDatasetsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteDatasetsRequest; + static deserializeBinaryFromReader(message: DeleteDatasetsRequest, reader: jspb.BinaryReader): DeleteDatasetsRequest; +} - getPerPage(): number; - setPerPage(value: number): ListKeysRequest; +export namespace DeleteDatasetsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + datasetIdsList: Array, + } +} + +export class MultiDatasetResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiDatasetResponse; + clearDatasetsList(): void; + getDatasetsList(): Array; + setDatasetsList(value: Array): MultiDatasetResponse; + addDatasets(value?: proto_clarifai_api_resources_pb.Dataset, index?: number): proto_clarifai_api_resources_pb.Dataset; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListKeysRequest): ListKeysRequest.AsObject; + toObject(includeInstance?: boolean): MultiDatasetResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiDatasetResponse): MultiDatasetResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListKeysRequest; - static deserializeBinaryFromReader(message: ListKeysRequest, reader: jspb.BinaryReader): ListKeysRequest; + static serializeBinaryToWriter(message: MultiDatasetResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiDatasetResponse; + static deserializeBinaryFromReader(message: MultiDatasetResponse, reader: jspb.BinaryReader): MultiDatasetResponse; } -export namespace ListKeysRequest { +export namespace MultiDatasetResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - page: number, - perPage: number, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + datasetsList: Array, } } -export class ListAppKeysRequest extends jspb.Message { +export class SingleDatasetResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleDatasetResponse; + + hasDataset(): boolean; + clearDataset(): void; + getDataset(): proto_clarifai_api_resources_pb.Dataset | undefined; + setDataset(value?: proto_clarifai_api_resources_pb.Dataset): SingleDatasetResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleDatasetResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleDatasetResponse): SingleDatasetResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleDatasetResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleDatasetResponse; + static deserializeBinaryFromReader(message: SingleDatasetResponse, reader: jspb.BinaryReader): SingleDatasetResponse; +} + +export namespace SingleDatasetResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + dataset?: proto_clarifai_api_resources_pb.Dataset.AsObject, + } +} + +export class ListDatasetInputsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAppKeysRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListDatasetInputsRequest; + getDatasetId(): string; + setDatasetId(value: string): ListDatasetInputsRequest; getPage(): number; - setPage(value: number): ListAppKeysRequest; - + setPage(value: number): ListDatasetInputsRequest; getPerPage(): number; - setPerPage(value: number): ListAppKeysRequest; - + setPerPage(value: number): ListDatasetInputsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListAppKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListAppKeysRequest): ListAppKeysRequest.AsObject; + toObject(includeInstance?: boolean): ListDatasetInputsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListDatasetInputsRequest): ListDatasetInputsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListAppKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListAppKeysRequest; - static deserializeBinaryFromReader(message: ListAppKeysRequest, reader: jspb.BinaryReader): ListAppKeysRequest; + static serializeBinaryToWriter(message: ListDatasetInputsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListDatasetInputsRequest; + static deserializeBinaryFromReader(message: ListDatasetInputsRequest, reader: jspb.BinaryReader): ListDatasetInputsRequest; } -export namespace ListAppKeysRequest { +export namespace ListDatasetInputsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + datasetId: string, page: number, perPage: number, } } -export class PostKeysRequest extends jspb.Message { +export class GetDatasetInputRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostKeysRequest; - - clearKeysList(): void; - getKeysList(): Array; - setKeysList(value: Array): PostKeysRequest; - addKeys(value?: proto_clarifai_api_resources_pb.Key, index?: number): proto_clarifai_api_resources_pb.Key; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetDatasetInputRequest; + getDatasetId(): string; + setDatasetId(value: string): GetDatasetInputRequest; + getInputId(): string; + setInputId(value: string): GetDatasetInputRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostKeysRequest): PostKeysRequest.AsObject; + toObject(includeInstance?: boolean): GetDatasetInputRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetDatasetInputRequest): GetDatasetInputRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostKeysRequest; - static deserializeBinaryFromReader(message: PostKeysRequest, reader: jspb.BinaryReader): PostKeysRequest; + static serializeBinaryToWriter(message: GetDatasetInputRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDatasetInputRequest; + static deserializeBinaryFromReader(message: GetDatasetInputRequest, reader: jspb.BinaryReader): GetDatasetInputRequest; } -export namespace PostKeysRequest { +export namespace GetDatasetInputRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - keysList: Array, + datasetId: string, + inputId: string, } } -export class DeleteKeyRequest extends jspb.Message { +export class PostDatasetInputsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteKeyRequest; - - getKeyId(): string; - setKeyId(value: string): DeleteKeyRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostDatasetInputsRequest; + getDatasetId(): string; + setDatasetId(value: string): PostDatasetInputsRequest; + clearDatasetInputsList(): void; + getDatasetInputsList(): Array; + setDatasetInputsList(value: Array): PostDatasetInputsRequest; + addDatasetInputs(value?: proto_clarifai_api_resources_pb.DatasetInput, index?: number): proto_clarifai_api_resources_pb.DatasetInput; + hasSearch(): boolean; + clearSearch(): void; + getSearch(): proto_clarifai_api_resources_pb.Search | undefined; + setSearch(value?: proto_clarifai_api_resources_pb.Search): PostDatasetInputsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteKeyRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteKeyRequest): DeleteKeyRequest.AsObject; + toObject(includeInstance?: boolean): PostDatasetInputsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostDatasetInputsRequest): PostDatasetInputsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteKeyRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteKeyRequest; - static deserializeBinaryFromReader(message: DeleteKeyRequest, reader: jspb.BinaryReader): DeleteKeyRequest; + static serializeBinaryToWriter(message: PostDatasetInputsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostDatasetInputsRequest; + static deserializeBinaryFromReader(message: PostDatasetInputsRequest, reader: jspb.BinaryReader): PostDatasetInputsRequest; } -export namespace DeleteKeyRequest { +export namespace PostDatasetInputsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - keyId: string, + datasetId: string, + datasetInputsList: Array, + search?: proto_clarifai_api_resources_pb.Search.AsObject, } } -export class PatchKeysRequest extends jspb.Message { +export class DeleteDatasetInputsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchKeysRequest; - - clearKeysList(): void; - getKeysList(): Array; - setKeysList(value: Array): PatchKeysRequest; - addKeys(value?: proto_clarifai_api_resources_pb.Key, index?: number): proto_clarifai_api_resources_pb.Key; - - getAction(): string; - setAction(value: string): PatchKeysRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteDatasetInputsRequest; + getDatasetId(): string; + setDatasetId(value: string): DeleteDatasetInputsRequest; + clearInputIdsList(): void; + getInputIdsList(): Array; + setInputIdsList(value: Array): DeleteDatasetInputsRequest; + addInputIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchKeysRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchKeysRequest): PatchKeysRequest.AsObject; + toObject(includeInstance?: boolean): DeleteDatasetInputsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteDatasetInputsRequest): DeleteDatasetInputsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchKeysRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchKeysRequest; - static deserializeBinaryFromReader(message: PatchKeysRequest, reader: jspb.BinaryReader): PatchKeysRequest; + static serializeBinaryToWriter(message: DeleteDatasetInputsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteDatasetInputsRequest; + static deserializeBinaryFromReader(message: DeleteDatasetInputsRequest, reader: jspb.BinaryReader): DeleteDatasetInputsRequest; } -export namespace PatchKeysRequest { +export namespace DeleteDatasetInputsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - keysList: Array, - action: string, + datasetId: string, + inputIdsList: Array, } } -export class SingleKeyResponse extends jspb.Message { +export class MultiDatasetInputResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleKeyResponse; - - - hasKey(): boolean; - clearKey(): void; - getKey(): proto_clarifai_api_resources_pb.Key | undefined; - setKey(value?: proto_clarifai_api_resources_pb.Key): SingleKeyResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiDatasetInputResponse; + clearDatasetInputsList(): void; + getDatasetInputsList(): Array; + setDatasetInputsList(value: Array): MultiDatasetInputResponse; + addDatasetInputs(value?: proto_clarifai_api_resources_pb.DatasetInput, index?: number): proto_clarifai_api_resources_pb.DatasetInput; + hasDatasetInputsSearchAddJob(): boolean; + clearDatasetInputsSearchAddJob(): void; + getDatasetInputsSearchAddJob(): proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob | undefined; + setDatasetInputsSearchAddJob(value?: proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob): MultiDatasetInputResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleKeyResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleKeyResponse): SingleKeyResponse.AsObject; + toObject(includeInstance?: boolean): MultiDatasetInputResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiDatasetInputResponse): MultiDatasetInputResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleKeyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleKeyResponse; - static deserializeBinaryFromReader(message: SingleKeyResponse, reader: jspb.BinaryReader): SingleKeyResponse; + static serializeBinaryToWriter(message: MultiDatasetInputResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiDatasetInputResponse; + static deserializeBinaryFromReader(message: MultiDatasetInputResponse, reader: jspb.BinaryReader): MultiDatasetInputResponse; } -export namespace SingleKeyResponse { +export namespace MultiDatasetInputResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - key?: proto_clarifai_api_resources_pb.Key.AsObject, + datasetInputsList: Array, + datasetInputsSearchAddJob?: proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.AsObject, } } -export class MultiKeyResponse extends jspb.Message { +export class SingleDatasetInputResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiKeyResponse; - - clearKeysList(): void; - getKeysList(): Array; - setKeysList(value: Array): MultiKeyResponse; - addKeys(value?: proto_clarifai_api_resources_pb.Key, index?: number): proto_clarifai_api_resources_pb.Key; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleDatasetInputResponse; + hasDatasetInput(): boolean; + clearDatasetInput(): void; + getDatasetInput(): proto_clarifai_api_resources_pb.DatasetInput | undefined; + setDatasetInput(value?: proto_clarifai_api_resources_pb.DatasetInput): SingleDatasetInputResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiKeyResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiKeyResponse): MultiKeyResponse.AsObject; + toObject(includeInstance?: boolean): SingleDatasetInputResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleDatasetInputResponse): SingleDatasetInputResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiKeyResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiKeyResponse; - static deserializeBinaryFromReader(message: MultiKeyResponse, reader: jspb.BinaryReader): MultiKeyResponse; + static serializeBinaryToWriter(message: SingleDatasetInputResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleDatasetInputResponse; + static deserializeBinaryFromReader(message: SingleDatasetInputResponse, reader: jspb.BinaryReader): SingleDatasetInputResponse; } -export namespace MultiKeyResponse { +export namespace SingleDatasetInputResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - keysList: Array, + datasetInput?: proto_clarifai_api_resources_pb.DatasetInput.AsObject, } } -export class GetModelRequest extends jspb.Message { +export class ListDatasetVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelRequest; - - getModelId(): string; - setModelId(value: string): GetModelRequest; - - getVersionId(): string; - setVersionId(value: string): GetModelRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListDatasetVersionsRequest; + getDatasetId(): string; + setDatasetId(value: string): ListDatasetVersionsRequest; + getPage(): number; + setPage(value: number): ListDatasetVersionsRequest; + getPerPage(): number; + setPerPage(value: number): ListDatasetVersionsRequest; - getLanguage(): string; - setLanguage(value: string): GetModelRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListDatasetVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListDatasetVersionsRequest): ListDatasetVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListDatasetVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListDatasetVersionsRequest; + static deserializeBinaryFromReader(message: ListDatasetVersionsRequest, reader: jspb.BinaryReader): ListDatasetVersionsRequest; +} - getTrainedBefore(): boolean; - setTrainedBefore(value: boolean): GetModelRequest; +export namespace ListDatasetVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + datasetId: string, + page: number, + perPage: number, + } +} - clearAdditionalFieldsList(): void; - getAdditionalFieldsList(): Array; - setAdditionalFieldsList(value: Array): GetModelRequest; - addAdditionalFields(value: string, index?: number): string; +export class GetDatasetVersionRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetDatasetVersionRequest; + getDatasetId(): string; + setDatasetId(value: string): GetDatasetVersionRequest; + getDatasetVersionId(): string; + setDatasetVersionId(value: string): GetDatasetVersionRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetModelRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetModelRequest): GetModelRequest.AsObject; + toObject(includeInstance?: boolean): GetDatasetVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetDatasetVersionRequest): GetDatasetVersionRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetModelRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetModelRequest; - static deserializeBinaryFromReader(message: GetModelRequest, reader: jspb.BinaryReader): GetModelRequest; + static serializeBinaryToWriter(message: GetDatasetVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDatasetVersionRequest; + static deserializeBinaryFromReader(message: GetDatasetVersionRequest, reader: jspb.BinaryReader): GetDatasetVersionRequest; } -export namespace GetModelRequest { +export namespace GetDatasetVersionRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - versionId: string, - language: string, - trainedBefore: boolean, - additionalFieldsList: Array, + datasetId: string, + datasetVersionId: string, } } -export class ListModelsRequest extends jspb.Message { +export class ListDatasetVersionMetricsGroupsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListDatasetVersionMetricsGroupsRequest; + getDatasetId(): string; + setDatasetId(value: string): ListDatasetVersionMetricsGroupsRequest; + getDatasetVersionId(): string; + setDatasetVersionId(value: string): ListDatasetVersionMetricsGroupsRequest; getPage(): number; - setPage(value: number): ListModelsRequest; - + setPage(value: number): ListDatasetVersionMetricsGroupsRequest; getPerPage(): number; - setPerPage(value: number): ListModelsRequest; - - getSortAscending(): boolean; - setSortAscending(value: boolean): ListModelsRequest; - - - hasSortByName(): boolean; - clearSortByName(): void; - getSortByName(): boolean; - setSortByName(value: boolean): ListModelsRequest; - - - hasSortByNumInputs(): boolean; - clearSortByNumInputs(): void; - getSortByNumInputs(): boolean; - setSortByNumInputs(value: boolean): ListModelsRequest; - - - hasSortByModifiedAt(): boolean; - clearSortByModifiedAt(): void; - getSortByModifiedAt(): boolean; - setSortByModifiedAt(value: boolean): ListModelsRequest; - - getQuery(): string; - setQuery(value: string): ListModelsRequest; - - getName(): string; - setName(value: string): ListModelsRequest; - - getModelTypeId(): string; - setModelTypeId(value: string): ListModelsRequest; - - getTrainedOnly(): boolean; - setTrainedOnly(value: boolean): ListModelsRequest; - - clearInputFieldsList(): void; - getInputFieldsList(): Array; - setInputFieldsList(value: Array): ListModelsRequest; - addInputFields(value: string, index?: number): string; - - clearOutputFieldsList(): void; - getOutputFieldsList(): Array; - setOutputFieldsList(value: Array): ListModelsRequest; - addOutputFields(value: string, index?: number): string; - - getLicense(): string; - setLicense(value: string): ListModelsRequest; - - getFeaturedOnly(): boolean; - setFeaturedOnly(value: boolean): ListModelsRequest; - - getStarredOnly(): boolean; - setStarredOnly(value: boolean): ListModelsRequest; - - clearToolkitsList(): void; - getToolkitsList(): Array; - setToolkitsList(value: Array): ListModelsRequest; - addToolkits(value: string, index?: number): string; - - clearUseCasesList(): void; - getUseCasesList(): Array; - setUseCasesList(value: Array): ListModelsRequest; - addUseCases(value: string, index?: number): string; - - clearLanguagesList(): void; - getLanguagesList(): Array; - setLanguagesList(value: Array): ListModelsRequest; - addLanguages(value: string, index?: number): string; - - clearAdditionalFieldsList(): void; - getAdditionalFieldsList(): Array; - setAdditionalFieldsList(value: Array): ListModelsRequest; - addAdditionalFields(value: string, index?: number): string; - - - getSortByCase(): ListModelsRequest.SortByCase; + setPerPage(value: number): ListDatasetVersionMetricsGroupsRequest; + clearParentPathsList(): void; + getParentPathsList(): Array; + setParentPathsList(value: Array): ListDatasetVersionMetricsGroupsRequest; + addParentPaths(value: string, index?: number): string; + clearTypesList(): void; + getTypesList(): Array; + setTypesList(value: Array): ListDatasetVersionMetricsGroupsRequest; + addTypes(value: proto_clarifai_api_resources_pb.DatasetVersionMetricsGroupType, index?: number): proto_clarifai_api_resources_pb.DatasetVersionMetricsGroupType; + clearValuesList(): void; + getValuesList(): Array; + setValuesList(value: Array): ListDatasetVersionMetricsGroupsRequest; + addValues(value?: google_protobuf_struct_pb.Value, index?: number): google_protobuf_struct_pb.Value; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListModelsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListModelsRequest): ListModelsRequest.AsObject; + toObject(includeInstance?: boolean): ListDatasetVersionMetricsGroupsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListDatasetVersionMetricsGroupsRequest): ListDatasetVersionMetricsGroupsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListModelsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListModelsRequest; - static deserializeBinaryFromReader(message: ListModelsRequest, reader: jspb.BinaryReader): ListModelsRequest; + static serializeBinaryToWriter(message: ListDatasetVersionMetricsGroupsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListDatasetVersionMetricsGroupsRequest; + static deserializeBinaryFromReader(message: ListDatasetVersionMetricsGroupsRequest, reader: jspb.BinaryReader): ListDatasetVersionMetricsGroupsRequest; } -export namespace ListModelsRequest { +export namespace ListDatasetVersionMetricsGroupsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + datasetId: string, + datasetVersionId: string, page: number, perPage: number, - sortAscending: boolean, - sortByName: boolean, - sortByNumInputs: boolean, - sortByModifiedAt: boolean, - query: string, - name: string, - modelTypeId: string, - trainedOnly: boolean, - inputFieldsList: Array, - outputFieldsList: Array, - license: string, - featuredOnly: boolean, - starredOnly: boolean, - toolkitsList: Array, - useCasesList: Array, - languagesList: Array, - additionalFieldsList: Array, + parentPathsList: Array, + typesList: Array, + valuesList: Array, } +} - export enum SortByCase { - SORT_BY_NOT_SET = 0, - - SORT_BY_NAME = 11, +export class PostDatasetVersionsRequest extends jspb.Message { - SORT_BY_NUM_INPUTS = 12, + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostDatasetVersionsRequest; + getDatasetId(): string; + setDatasetId(value: string): PostDatasetVersionsRequest; + clearDatasetVersionsList(): void; + getDatasetVersionsList(): Array; + setDatasetVersionsList(value: Array): PostDatasetVersionsRequest; + addDatasetVersions(value?: proto_clarifai_api_resources_pb.DatasetVersion, index?: number): proto_clarifai_api_resources_pb.DatasetVersion; - SORT_BY_MODIFIED_AT = 13, + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostDatasetVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostDatasetVersionsRequest): PostDatasetVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostDatasetVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostDatasetVersionsRequest; + static deserializeBinaryFromReader(message: PostDatasetVersionsRequest, reader: jspb.BinaryReader): PostDatasetVersionsRequest; +} +export namespace PostDatasetVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + datasetId: string, + datasetVersionsList: Array, } - } -export class PatchModelToolkitsRequest extends jspb.Message { +export class PatchDatasetVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelToolkitsRequest; - - getModelId(): string; - setModelId(value: string): PatchModelToolkitsRequest; - - clearToolkitsList(): void; - getToolkitsList(): Array; - setToolkitsList(value: Array): PatchModelToolkitsRequest; - addToolkits(value: string, index?: number): string; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchDatasetVersionsRequest; + getDatasetId(): string; + setDatasetId(value: string): PatchDatasetVersionsRequest; + clearDatasetVersionsList(): void; + getDatasetVersionsList(): Array; + setDatasetVersionsList(value: Array): PatchDatasetVersionsRequest; + addDatasetVersions(value?: proto_clarifai_api_resources_pb.DatasetVersion, index?: number): proto_clarifai_api_resources_pb.DatasetVersion; getAction(): string; - setAction(value: string): PatchModelToolkitsRequest; - + setAction(value: string): PatchDatasetVersionsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchModelToolkitsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchModelToolkitsRequest): PatchModelToolkitsRequest.AsObject; + toObject(includeInstance?: boolean): PatchDatasetVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchDatasetVersionsRequest): PatchDatasetVersionsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchModelToolkitsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchModelToolkitsRequest; - static deserializeBinaryFromReader(message: PatchModelToolkitsRequest, reader: jspb.BinaryReader): PatchModelToolkitsRequest; + static serializeBinaryToWriter(message: PatchDatasetVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchDatasetVersionsRequest; + static deserializeBinaryFromReader(message: PatchDatasetVersionsRequest, reader: jspb.BinaryReader): PatchDatasetVersionsRequest; } -export namespace PatchModelToolkitsRequest { +export namespace PatchDatasetVersionsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - toolkitsList: Array, + datasetId: string, + datasetVersionsList: Array, action: string, } } -export class PatchModelUseCasesRequest extends jspb.Message { +export class DeleteDatasetVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelUseCasesRequest; - - getModelId(): string; - setModelId(value: string): PatchModelUseCasesRequest; - - clearUsecasesList(): void; - getUsecasesList(): Array; - setUsecasesList(value: Array): PatchModelUseCasesRequest; - addUsecases(value: string, index?: number): string; - - getAction(): string; - setAction(value: string): PatchModelUseCasesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteDatasetVersionsRequest; + getDatasetId(): string; + setDatasetId(value: string): DeleteDatasetVersionsRequest; + clearDatasetVersionIdsList(): void; + getDatasetVersionIdsList(): Array; + setDatasetVersionIdsList(value: Array): DeleteDatasetVersionsRequest; + addDatasetVersionIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchModelUseCasesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchModelUseCasesRequest): PatchModelUseCasesRequest.AsObject; + toObject(includeInstance?: boolean): DeleteDatasetVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteDatasetVersionsRequest): DeleteDatasetVersionsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchModelUseCasesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchModelUseCasesRequest; - static deserializeBinaryFromReader(message: PatchModelUseCasesRequest, reader: jspb.BinaryReader): PatchModelUseCasesRequest; + static serializeBinaryToWriter(message: DeleteDatasetVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteDatasetVersionsRequest; + static deserializeBinaryFromReader(message: DeleteDatasetVersionsRequest, reader: jspb.BinaryReader): DeleteDatasetVersionsRequest; } -export namespace PatchModelUseCasesRequest { +export namespace DeleteDatasetVersionsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - usecasesList: Array, - action: string, + datasetId: string, + datasetVersionIdsList: Array, } } -export class PatchModelLanguagesRequest extends jspb.Message { +export class PutDatasetVersionExportsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelLanguagesRequest; - - getModelId(): string; - setModelId(value: string): PatchModelLanguagesRequest; - - clearLanguagesList(): void; - getLanguagesList(): Array; - setLanguagesList(value: Array): PatchModelLanguagesRequest; - addLanguages(value: string, index?: number): string; - - getAction(): string; - setAction(value: string): PatchModelLanguagesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PutDatasetVersionExportsRequest; + getDatasetId(): string; + setDatasetId(value: string): PutDatasetVersionExportsRequest; + getDatasetVersionId(): string; + setDatasetVersionId(value: string): PutDatasetVersionExportsRequest; + clearExportsList(): void; + getExportsList(): Array; + setExportsList(value: Array): PutDatasetVersionExportsRequest; + addExports(value?: proto_clarifai_api_resources_pb.DatasetVersionExport, index?: number): proto_clarifai_api_resources_pb.DatasetVersionExport; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchModelLanguagesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchModelLanguagesRequest): PatchModelLanguagesRequest.AsObject; + toObject(includeInstance?: boolean): PutDatasetVersionExportsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PutDatasetVersionExportsRequest): PutDatasetVersionExportsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchModelLanguagesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchModelLanguagesRequest; - static deserializeBinaryFromReader(message: PatchModelLanguagesRequest, reader: jspb.BinaryReader): PatchModelLanguagesRequest; + static serializeBinaryToWriter(message: PutDatasetVersionExportsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PutDatasetVersionExportsRequest; + static deserializeBinaryFromReader(message: PutDatasetVersionExportsRequest, reader: jspb.BinaryReader): PutDatasetVersionExportsRequest; } -export namespace PatchModelLanguagesRequest { +export namespace PutDatasetVersionExportsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - languagesList: Array, - action: string, + datasetId: string, + datasetVersionId: string, + exportsList: Array, } } -export class MultiModelToolkitResponse extends jspb.Message { +export class MultiDatasetVersionResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelToolkitResponse; - - clearToolkitsList(): void; - getToolkitsList(): Array; - setToolkitsList(value: Array): MultiModelToolkitResponse; - addToolkits(value: string, index?: number): string; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiDatasetVersionResponse; + clearDatasetVersionsList(): void; + getDatasetVersionsList(): Array; + setDatasetVersionsList(value: Array): MultiDatasetVersionResponse; + addDatasetVersions(value?: proto_clarifai_api_resources_pb.DatasetVersion, index?: number): proto_clarifai_api_resources_pb.DatasetVersion; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelToolkitResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelToolkitResponse): MultiModelToolkitResponse.AsObject; + toObject(includeInstance?: boolean): MultiDatasetVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiDatasetVersionResponse): MultiDatasetVersionResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelToolkitResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelToolkitResponse; - static deserializeBinaryFromReader(message: MultiModelToolkitResponse, reader: jspb.BinaryReader): MultiModelToolkitResponse; + static serializeBinaryToWriter(message: MultiDatasetVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiDatasetVersionResponse; + static deserializeBinaryFromReader(message: MultiDatasetVersionResponse, reader: jspb.BinaryReader): MultiDatasetVersionResponse; } -export namespace MultiModelToolkitResponse { +export namespace MultiDatasetVersionResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - toolkitsList: Array, + datasetVersionsList: Array, } } -export class MultiModelUseCaseResponse extends jspb.Message { +export class MultiDatasetVersionExportResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelUseCaseResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiDatasetVersionExportResponse; + clearExportsList(): void; + getExportsList(): Array; + setExportsList(value: Array): MultiDatasetVersionExportResponse; + addExports(value?: proto_clarifai_api_resources_pb.DatasetVersionExport, index?: number): proto_clarifai_api_resources_pb.DatasetVersionExport; - clearUsecasesList(): void; - getUsecasesList(): Array; - setUsecasesList(value: Array): MultiModelUseCaseResponse; - addUsecases(value: string, index?: number): string; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiDatasetVersionExportResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiDatasetVersionExportResponse): MultiDatasetVersionExportResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiDatasetVersionExportResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiDatasetVersionExportResponse; + static deserializeBinaryFromReader(message: MultiDatasetVersionExportResponse, reader: jspb.BinaryReader): MultiDatasetVersionExportResponse; +} + +export namespace MultiDatasetVersionExportResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + exportsList: Array, + } +} + +export class MultiDatasetVersionMetricsGroupResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiDatasetVersionMetricsGroupResponse; + clearDatasetVersionMetricsGroupsList(): void; + getDatasetVersionMetricsGroupsList(): Array; + setDatasetVersionMetricsGroupsList(value: Array): MultiDatasetVersionMetricsGroupResponse; + addDatasetVersionMetricsGroups(value?: proto_clarifai_api_resources_pb.DatasetVersionMetricsGroup, index?: number): proto_clarifai_api_resources_pb.DatasetVersionMetricsGroup; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelUseCaseResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelUseCaseResponse): MultiModelUseCaseResponse.AsObject; + toObject(includeInstance?: boolean): MultiDatasetVersionMetricsGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiDatasetVersionMetricsGroupResponse): MultiDatasetVersionMetricsGroupResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelUseCaseResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelUseCaseResponse; - static deserializeBinaryFromReader(message: MultiModelUseCaseResponse, reader: jspb.BinaryReader): MultiModelUseCaseResponse; + static serializeBinaryToWriter(message: MultiDatasetVersionMetricsGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiDatasetVersionMetricsGroupResponse; + static deserializeBinaryFromReader(message: MultiDatasetVersionMetricsGroupResponse, reader: jspb.BinaryReader): MultiDatasetVersionMetricsGroupResponse; } -export namespace MultiModelUseCaseResponse { +export namespace MultiDatasetVersionMetricsGroupResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - usecasesList: Array, + datasetVersionMetricsGroupsList: Array, } } -export class MultiModelLanguageResponse extends jspb.Message { +export class SingleDatasetVersionResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelLanguageResponse; - - clearLanguagesList(): void; - getLanguagesList(): Array; - setLanguagesList(value: Array): MultiModelLanguageResponse; - addLanguages(value: string, index?: number): string; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleDatasetVersionResponse; + hasDatasetVersion(): boolean; + clearDatasetVersion(): void; + getDatasetVersion(): proto_clarifai_api_resources_pb.DatasetVersion | undefined; + setDatasetVersion(value?: proto_clarifai_api_resources_pb.DatasetVersion): SingleDatasetVersionResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelLanguageResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelLanguageResponse): MultiModelLanguageResponse.AsObject; + toObject(includeInstance?: boolean): SingleDatasetVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleDatasetVersionResponse): SingleDatasetVersionResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelLanguageResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelLanguageResponse; - static deserializeBinaryFromReader(message: MultiModelLanguageResponse, reader: jspb.BinaryReader): MultiModelLanguageResponse; + static serializeBinaryToWriter(message: SingleDatasetVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleDatasetVersionResponse; + static deserializeBinaryFromReader(message: SingleDatasetVersionResponse, reader: jspb.BinaryReader): SingleDatasetVersionResponse; } -export namespace MultiModelLanguageResponse { +export namespace SingleDatasetVersionResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - languagesList: Array, + datasetVersion?: proto_clarifai_api_resources_pb.DatasetVersion.AsObject, } } -export class PostModelsRequest extends jspb.Message { +export class GetDatasetInputsSearchAddJobRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelsRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetDatasetInputsSearchAddJobRequest; + getJobId(): string; + setJobId(value: string): GetDatasetInputsSearchAddJobRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetDatasetInputsSearchAddJobRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetDatasetInputsSearchAddJobRequest): GetDatasetInputsSearchAddJobRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetDatasetInputsSearchAddJobRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDatasetInputsSearchAddJobRequest; + static deserializeBinaryFromReader(message: GetDatasetInputsSearchAddJobRequest, reader: jspb.BinaryReader): GetDatasetInputsSearchAddJobRequest; +} - hasModel(): boolean; - clearModel(): void; - getModel(): proto_clarifai_api_resources_pb.Model | undefined; - setModel(value?: proto_clarifai_api_resources_pb.Model): PostModelsRequest; +export namespace GetDatasetInputsSearchAddJobRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + jobId: string, + } +} - clearModelsList(): void; - getModelsList(): Array; - setModelsList(value: Array): PostModelsRequest; - addModels(value?: proto_clarifai_api_resources_pb.Model, index?: number): proto_clarifai_api_resources_pb.Model; +export class SingleDatasetInputsSearchAddJobResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleDatasetInputsSearchAddJobResponse; + + hasJob(): boolean; + clearJob(): void; + getJob(): proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob | undefined; + setJob(value?: proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob): SingleDatasetInputsSearchAddJobResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostModelsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostModelsRequest): PostModelsRequest.AsObject; + toObject(includeInstance?: boolean): SingleDatasetInputsSearchAddJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleDatasetInputsSearchAddJobResponse): SingleDatasetInputsSearchAddJobResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostModelsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostModelsRequest; - static deserializeBinaryFromReader(message: PostModelsRequest, reader: jspb.BinaryReader): PostModelsRequest; + static serializeBinaryToWriter(message: SingleDatasetInputsSearchAddJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleDatasetInputsSearchAddJobResponse; + static deserializeBinaryFromReader(message: SingleDatasetInputsSearchAddJobResponse, reader: jspb.BinaryReader): SingleDatasetInputsSearchAddJobResponse; } -export namespace PostModelsRequest { +export namespace SingleDatasetInputsSearchAddJobResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - model?: proto_clarifai_api_resources_pb.Model.AsObject, - modelsList: Array, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + job?: proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.AsObject, } } -export class PatchModelsRequest extends jspb.Message { +export class PostModelOutputsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelsRequest; - - clearModelsList(): void; - getModelsList(): Array; - setModelsList(value: Array): PatchModelsRequest; - addModels(value?: proto_clarifai_api_resources_pb.Model, index?: number): proto_clarifai_api_resources_pb.Model; - - getAction(): string; - setAction(value: string): PatchModelsRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelOutputsRequest; + getModelId(): string; + setModelId(value: string): PostModelOutputsRequest; + getVersionId(): string; + setVersionId(value: string): PostModelOutputsRequest; + clearInputsList(): void; + getInputsList(): Array; + setInputsList(value: Array): PostModelOutputsRequest; + addInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; + hasModel(): boolean; + clearModel(): void; + getModel(): proto_clarifai_api_resources_pb.Model | undefined; + setModel(value?: proto_clarifai_api_resources_pb.Model): PostModelOutputsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchModelsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchModelsRequest): PatchModelsRequest.AsObject; + toObject(includeInstance?: boolean): PostModelOutputsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelOutputsRequest): PostModelOutputsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchModelsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchModelsRequest; - static deserializeBinaryFromReader(message: PatchModelsRequest, reader: jspb.BinaryReader): PatchModelsRequest; + static serializeBinaryToWriter(message: PostModelOutputsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelOutputsRequest; + static deserializeBinaryFromReader(message: PostModelOutputsRequest, reader: jspb.BinaryReader): PostModelOutputsRequest; } -export namespace PatchModelsRequest { +export namespace PostModelOutputsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelsList: Array, - action: string, + modelId: string, + versionId: string, + inputsList: Array, + model?: proto_clarifai_api_resources_pb.Model.AsObject, } } -export class DeleteModelRequest extends jspb.Message { +export class ListModelInputsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModelRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelInputsRequest; getModelId(): string; - setModelId(value: string): DeleteModelRequest; - + setModelId(value: string): ListModelInputsRequest; + getVersionId(): string; + setVersionId(value: string): ListModelInputsRequest; + getPage(): number; + setPage(value: number): ListModelInputsRequest; + getPerPage(): number; + setPerPage(value: number): ListModelInputsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteModelRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteModelRequest): DeleteModelRequest.AsObject; + toObject(includeInstance?: boolean): ListModelInputsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelInputsRequest): ListModelInputsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteModelRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteModelRequest; - static deserializeBinaryFromReader(message: DeleteModelRequest, reader: jspb.BinaryReader): DeleteModelRequest; + static serializeBinaryToWriter(message: ListModelInputsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelInputsRequest; + static deserializeBinaryFromReader(message: ListModelInputsRequest, reader: jspb.BinaryReader): ListModelInputsRequest; } -export namespace DeleteModelRequest { +export namespace ListModelInputsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, modelId: string, + versionId: string, + page: number, + perPage: number, } } -export class DeleteModelsRequest extends jspb.Message { +export class GetKeyRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModelsRequest; - - clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): DeleteModelsRequest; - addIds(value: string, index?: number): string; - - getDeleteAll(): boolean; - setDeleteAll(value: boolean): DeleteModelsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetKeyRequest; + getKeyId(): string; + setKeyId(value: string): GetKeyRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteModelsRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteModelsRequest): DeleteModelsRequest.AsObject; + toObject(includeInstance?: boolean): GetKeyRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetKeyRequest): GetKeyRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteModelsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteModelsRequest; - static deserializeBinaryFromReader(message: DeleteModelsRequest, reader: jspb.BinaryReader): DeleteModelsRequest; + static serializeBinaryToWriter(message: GetKeyRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetKeyRequest; + static deserializeBinaryFromReader(message: GetKeyRequest, reader: jspb.BinaryReader): GetKeyRequest; } -export namespace DeleteModelsRequest { +export namespace GetKeyRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - idsList: Array, - deleteAll: boolean, + keyId: string, } } -export class PostModelsSearchesRequest extends jspb.Message { +export class ListKeysRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelsSearchesRequest; - - - hasModelQuery(): boolean; - clearModelQuery(): void; - getModelQuery(): proto_clarifai_api_resources_pb.ModelQuery | undefined; - setModelQuery(value?: proto_clarifai_api_resources_pb.ModelQuery): PostModelsSearchesRequest; - - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): PostModelsSearchesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListKeysRequest; + getPage(): number; + setPage(value: number): ListKeysRequest; + getPerPage(): number; + setPerPage(value: number): ListKeysRequest; + getNotExpired(): boolean; + setNotExpired(value: boolean): ListKeysRequest; + clearScopesList(): void; + getScopesList(): Array; + setScopesList(value: Array): ListKeysRequest; + addScopes(value: string, index?: number): string; + clearEndpointsList(): void; + getEndpointsList(): Array; + setEndpointsList(value: Array): ListKeysRequest; + addEndpoints(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostModelsSearchesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostModelsSearchesRequest): PostModelsSearchesRequest.AsObject; + toObject(includeInstance?: boolean): ListKeysRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListKeysRequest): ListKeysRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostModelsSearchesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostModelsSearchesRequest; - static deserializeBinaryFromReader(message: PostModelsSearchesRequest, reader: jspb.BinaryReader): PostModelsSearchesRequest; + static serializeBinaryToWriter(message: ListKeysRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListKeysRequest; + static deserializeBinaryFromReader(message: ListKeysRequest, reader: jspb.BinaryReader): ListKeysRequest; } -export namespace PostModelsSearchesRequest { +export namespace ListKeysRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelQuery?: proto_clarifai_api_resources_pb.ModelQuery.AsObject, - pagination?: Pagination.AsObject, + page: number, + perPage: number, + notExpired: boolean, + scopesList: Array, + endpointsList: Array, } } -export class SingleModelResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelResponse; - - - hasModel(): boolean; - clearModel(): void; - getModel(): proto_clarifai_api_resources_pb.Model | undefined; - setModel(value?: proto_clarifai_api_resources_pb.Model): SingleModelResponse; +export class ListAppKeysRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAppKeysRequest; + getPage(): number; + setPage(value: number): ListAppKeysRequest; + getPerPage(): number; + setPerPage(value: number): ListAppKeysRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleModelResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleModelResponse): SingleModelResponse.AsObject; + toObject(includeInstance?: boolean): ListAppKeysRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListAppKeysRequest): ListAppKeysRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleModelResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleModelResponse; - static deserializeBinaryFromReader(message: SingleModelResponse, reader: jspb.BinaryReader): SingleModelResponse; + static serializeBinaryToWriter(message: ListAppKeysRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAppKeysRequest; + static deserializeBinaryFromReader(message: ListAppKeysRequest, reader: jspb.BinaryReader): ListAppKeysRequest; } -export namespace SingleModelResponse { - export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - model?: proto_clarifai_api_resources_pb.Model.AsObject, - } -} - -export class MultiModelResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelResponse; - - clearModelsList(): void; - getModelsList(): Array; - setModelsList(value: Array): MultiModelResponse; - addModels(value?: proto_clarifai_api_resources_pb.Model, index?: number): proto_clarifai_api_resources_pb.Model; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelResponse): MultiModelResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelResponse; - static deserializeBinaryFromReader(message: MultiModelResponse, reader: jspb.BinaryReader): MultiModelResponse; -} - -export namespace MultiModelResponse { - export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelsList: Array, - } -} - -export class PatchModelVersionsRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelVersionsRequest; - - getModelId(): string; - setModelId(value: string): PatchModelVersionsRequest; - - clearModelVersionsList(): void; - getModelVersionsList(): Array; - setModelVersionsList(value: Array): PatchModelVersionsRequest; - addModelVersions(value?: proto_clarifai_api_resources_pb.ModelVersion, index?: number): proto_clarifai_api_resources_pb.ModelVersion; - - getAction(): string; - setAction(value: string): PatchModelVersionsRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchModelVersionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchModelVersionsRequest): PatchModelVersionsRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchModelVersionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchModelVersionsRequest; - static deserializeBinaryFromReader(message: PatchModelVersionsRequest, reader: jspb.BinaryReader): PatchModelVersionsRequest; -} - -export namespace PatchModelVersionsRequest { +export namespace ListAppKeysRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - modelVersionsList: Array, - action: string, + page: number, + perPage: number, } } -export class GetModelVersionRequest extends jspb.Message { +export class PostKeysRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelVersionRequest; - - getModelId(): string; - setModelId(value: string): GetModelVersionRequest; - - getVersionId(): string; - setVersionId(value: string): GetModelVersionRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostKeysRequest; + clearKeysList(): void; + getKeysList(): Array; + setKeysList(value: Array): PostKeysRequest; + addKeys(value?: proto_clarifai_api_resources_pb.Key, index?: number): proto_clarifai_api_resources_pb.Key; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetModelVersionRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetModelVersionRequest): GetModelVersionRequest.AsObject; + toObject(includeInstance?: boolean): PostKeysRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostKeysRequest): PostKeysRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetModelVersionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetModelVersionRequest; - static deserializeBinaryFromReader(message: GetModelVersionRequest, reader: jspb.BinaryReader): GetModelVersionRequest; + static serializeBinaryToWriter(message: PostKeysRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostKeysRequest; + static deserializeBinaryFromReader(message: PostKeysRequest, reader: jspb.BinaryReader): PostKeysRequest; } -export namespace GetModelVersionRequest { +export namespace PostKeysRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - versionId: string, + keysList: Array, } } -export class ListModelVersionsRequest extends jspb.Message { +export class DeleteKeyRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelVersionsRequest; - - getModelId(): string; - setModelId(value: string): ListModelVersionsRequest; - - getPage(): number; - setPage(value: number): ListModelVersionsRequest; - - getPerPage(): number; - setPerPage(value: number): ListModelVersionsRequest; - - clearConceptIdsList(): void; - getConceptIdsList(): Array; - setConceptIdsList(value: Array): ListModelVersionsRequest; - addConceptIds(value: string, index?: number): string; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteKeyRequest; + getKeyId(): string; + setKeyId(value: string): DeleteKeyRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListModelVersionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListModelVersionsRequest): ListModelVersionsRequest.AsObject; + toObject(includeInstance?: boolean): DeleteKeyRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteKeyRequest): DeleteKeyRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListModelVersionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListModelVersionsRequest; - static deserializeBinaryFromReader(message: ListModelVersionsRequest, reader: jspb.BinaryReader): ListModelVersionsRequest; + static serializeBinaryToWriter(message: DeleteKeyRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteKeyRequest; + static deserializeBinaryFromReader(message: DeleteKeyRequest, reader: jspb.BinaryReader): DeleteKeyRequest; } -export namespace ListModelVersionsRequest { +export namespace DeleteKeyRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - page: number, - perPage: number, - conceptIdsList: Array, + keyId: string, } } -export class DeleteModelVersionRequest extends jspb.Message { +export class PatchKeysRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModelVersionRequest; - - getModelId(): string; - setModelId(value: string): DeleteModelVersionRequest; - - getVersionId(): string; - setVersionId(value: string): DeleteModelVersionRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchKeysRequest; + clearKeysList(): void; + getKeysList(): Array; + setKeysList(value: Array): PatchKeysRequest; + addKeys(value?: proto_clarifai_api_resources_pb.Key, index?: number): proto_clarifai_api_resources_pb.Key; + getAction(): string; + setAction(value: string): PatchKeysRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteModelVersionRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteModelVersionRequest): DeleteModelVersionRequest.AsObject; + toObject(includeInstance?: boolean): PatchKeysRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchKeysRequest): PatchKeysRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteModelVersionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteModelVersionRequest; - static deserializeBinaryFromReader(message: DeleteModelVersionRequest, reader: jspb.BinaryReader): DeleteModelVersionRequest; + static serializeBinaryToWriter(message: PatchKeysRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchKeysRequest; + static deserializeBinaryFromReader(message: PatchKeysRequest, reader: jspb.BinaryReader): PatchKeysRequest; } -export namespace DeleteModelVersionRequest { +export namespace PatchKeysRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - versionId: string, + keysList: Array, + action: string, } } -export class SingleModelVersionResponse extends jspb.Message { +export class SingleKeyResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelVersionResponse; - - - hasModelVersion(): boolean; - clearModelVersion(): void; - getModelVersion(): proto_clarifai_api_resources_pb.ModelVersion | undefined; - setModelVersion(value?: proto_clarifai_api_resources_pb.ModelVersion): SingleModelVersionResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleKeyResponse; + hasKey(): boolean; + clearKey(): void; + getKey(): proto_clarifai_api_resources_pb.Key | undefined; + setKey(value?: proto_clarifai_api_resources_pb.Key): SingleKeyResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleModelVersionResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleModelVersionResponse): SingleModelVersionResponse.AsObject; + toObject(includeInstance?: boolean): SingleKeyResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleKeyResponse): SingleKeyResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleModelVersionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleModelVersionResponse; - static deserializeBinaryFromReader(message: SingleModelVersionResponse, reader: jspb.BinaryReader): SingleModelVersionResponse; + static serializeBinaryToWriter(message: SingleKeyResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleKeyResponse; + static deserializeBinaryFromReader(message: SingleKeyResponse, reader: jspb.BinaryReader): SingleKeyResponse; } -export namespace SingleModelVersionResponse { +export namespace SingleKeyResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelVersion?: proto_clarifai_api_resources_pb.ModelVersion.AsObject, + key?: proto_clarifai_api_resources_pb.Key.AsObject, } } -export class MultiModelVersionResponse extends jspb.Message { +export class MultiKeyResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelVersionResponse; - - clearModelVersionsList(): void; - getModelVersionsList(): Array; - setModelVersionsList(value: Array): MultiModelVersionResponse; - addModelVersions(value?: proto_clarifai_api_resources_pb.ModelVersion, index?: number): proto_clarifai_api_resources_pb.ModelVersion; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiKeyResponse; + clearKeysList(): void; + getKeysList(): Array; + setKeysList(value: Array): MultiKeyResponse; + addKeys(value?: proto_clarifai_api_resources_pb.Key, index?: number): proto_clarifai_api_resources_pb.Key; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelVersionResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelVersionResponse): MultiModelVersionResponse.AsObject; + toObject(includeInstance?: boolean): MultiKeyResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiKeyResponse): MultiKeyResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelVersionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelVersionResponse; - static deserializeBinaryFromReader(message: MultiModelVersionResponse, reader: jspb.BinaryReader): MultiModelVersionResponse; + static serializeBinaryToWriter(message: MultiKeyResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiKeyResponse; + static deserializeBinaryFromReader(message: MultiKeyResponse, reader: jspb.BinaryReader): MultiKeyResponse; } -export namespace MultiModelVersionResponse { +export namespace MultiKeyResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelVersionsList: Array, + keysList: Array, } } -export class PostModelVersionsRequest extends jspb.Message { +export class GetModelRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelRequest; getModelId(): string; - setModelId(value: string): PostModelVersionsRequest; - - clearModelVersionsList(): void; - getModelVersionsList(): Array; - setModelVersionsList(value: Array): PostModelVersionsRequest; - addModelVersions(value?: proto_clarifai_api_resources_pb.ModelVersion, index?: number): proto_clarifai_api_resources_pb.ModelVersion; - - - hasSearch(): boolean; - clearSearch(): void; - getSearch(): proto_clarifai_api_resources_pb.Search | undefined; - setSearch(value?: proto_clarifai_api_resources_pb.Search): PostModelVersionsRequest; - - - hasTrainSearch(): boolean; - clearTrainSearch(): void; - getTrainSearch(): proto_clarifai_api_resources_pb.Search | undefined; - setTrainSearch(value?: proto_clarifai_api_resources_pb.Search): PostModelVersionsRequest; - - - hasTestSearch(): boolean; - clearTestSearch(): void; - getTestSearch(): proto_clarifai_api_resources_pb.Search | undefined; - setTestSearch(value?: proto_clarifai_api_resources_pb.Search): PostModelVersionsRequest; - - getEvaluateAfterTraining(): boolean; - setEvaluateAfterTraining(value: boolean): PostModelVersionsRequest; - - getDescription(): string; - setDescription(value: string): PostModelVersionsRequest; - - - hasDatasetVersion(): boolean; - clearDatasetVersion(): void; - getDatasetVersion(): proto_clarifai_api_resources_pb.DatasetVersion | undefined; - setDatasetVersion(value?: proto_clarifai_api_resources_pb.DatasetVersion): PostModelVersionsRequest; - + setModelId(value: string): GetModelRequest; + getVersionId(): string; + setVersionId(value: string): GetModelRequest; + getLanguage(): string; + setLanguage(value: string): GetModelRequest; + getTrainedBefore(): boolean; + setTrainedBefore(value: boolean): GetModelRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): GetModelRequest; + addAdditionalFields(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostModelVersionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostModelVersionsRequest): PostModelVersionsRequest.AsObject; + toObject(includeInstance?: boolean): GetModelRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModelRequest): GetModelRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostModelVersionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostModelVersionsRequest; - static deserializeBinaryFromReader(message: PostModelVersionsRequest, reader: jspb.BinaryReader): PostModelVersionsRequest; + static serializeBinaryToWriter(message: GetModelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModelRequest; + static deserializeBinaryFromReader(message: GetModelRequest, reader: jspb.BinaryReader): GetModelRequest; } -export namespace PostModelVersionsRequest { +export namespace GetModelRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, modelId: string, - modelVersionsList: Array, - search?: proto_clarifai_api_resources_pb.Search.AsObject, - trainSearch?: proto_clarifai_api_resources_pb.Search.AsObject, - testSearch?: proto_clarifai_api_resources_pb.Search.AsObject, - evaluateAfterTraining: boolean, - description: string, - datasetVersion?: proto_clarifai_api_resources_pb.DatasetVersion.AsObject, + versionId: string, + language: string, + trainedBefore: boolean, + additionalFieldsList: Array, } } -export class ModelVersionPublishRequest extends jspb.Message { - getVersionId(): string; - setVersionId(value: string): ModelVersionPublishRequest; +export class ListModelsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelsRequest; + getPage(): number; + setPage(value: number): ListModelsRequest; + getPerPage(): number; + setPerPage(value: number): ListModelsRequest; + getSortAscending(): boolean; + setSortAscending(value: boolean): ListModelsRequest; + + hasSortByName(): boolean; + clearSortByName(): void; + getSortByName(): boolean; + setSortByName(value: boolean): ListModelsRequest; + + hasSortByNumInputs(): boolean; + clearSortByNumInputs(): void; + getSortByNumInputs(): boolean; + setSortByNumInputs(value: boolean): ListModelsRequest; + + hasSortByModifiedAt(): boolean; + clearSortByModifiedAt(): void; + getSortByModifiedAt(): boolean; + setSortByModifiedAt(value: boolean): ListModelsRequest; + + hasSortByCreatedAt(): boolean; + clearSortByCreatedAt(): void; + getSortByCreatedAt(): boolean; + setSortByCreatedAt(value: boolean): ListModelsRequest; + + hasSortByStarCount(): boolean; + clearSortByStarCount(): void; + getSortByStarCount(): boolean; + setSortByStarCount(value: boolean): ListModelsRequest; + getQuery(): string; + setQuery(value: string): ListModelsRequest; + getName(): string; + setName(value: string): ListModelsRequest; + getFilterByUserId(): boolean; + setFilterByUserId(value: boolean): ListModelsRequest; + getModelTypeId(): string; + setModelTypeId(value: string): ListModelsRequest; + getTrainedOnly(): boolean; + setTrainedOnly(value: boolean): ListModelsRequest; + clearInputFieldsList(): void; + getInputFieldsList(): Array; + setInputFieldsList(value: Array): ListModelsRequest; + addInputFields(value: string, index?: number): string; + clearOutputFieldsList(): void; + getOutputFieldsList(): Array; + setOutputFieldsList(value: Array): ListModelsRequest; + addOutputFields(value: string, index?: number): string; + getLicense(): string; + setLicense(value: string): ListModelsRequest; + getFeaturedOnly(): boolean; + setFeaturedOnly(value: boolean): ListModelsRequest; + getStarredOnly(): boolean; + setStarredOnly(value: boolean): ListModelsRequest; + clearToolkitsList(): void; + getToolkitsList(): Array; + setToolkitsList(value: Array): ListModelsRequest; + addToolkits(value: string, index?: number): string; + clearUseCasesList(): void; + getUseCasesList(): Array; + setUseCasesList(value: Array): ListModelsRequest; + addUseCases(value: string, index?: number): string; + clearLanguagesList(): void; + getLanguagesList(): Array; + setLanguagesList(value: Array): ListModelsRequest; + addLanguages(value: string, index?: number): string; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): ListModelsRequest; + addAdditionalFields(value: string, index?: number): string; + getDontFetchFromMain(): boolean; + setDontFetchFromMain(value: boolean): ListModelsRequest; + getBookmark(): boolean; + setBookmark(value: boolean): ListModelsRequest; + getSortByCase(): ListModelsRequest.SortByCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ModelVersionPublishRequest.AsObject; - static toObject(includeInstance: boolean, msg: ModelVersionPublishRequest): ModelVersionPublishRequest.AsObject; + toObject(includeInstance?: boolean): ListModelsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelsRequest): ListModelsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ModelVersionPublishRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ModelVersionPublishRequest; - static deserializeBinaryFromReader(message: ModelVersionPublishRequest, reader: jspb.BinaryReader): ModelVersionPublishRequest; + static serializeBinaryToWriter(message: ListModelsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelsRequest; + static deserializeBinaryFromReader(message: ListModelsRequest, reader: jspb.BinaryReader): ListModelsRequest; } -export namespace ModelVersionPublishRequest { +export namespace ListModelsRequest { export type AsObject = { - versionId: string, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + sortAscending: boolean, + sortByName: boolean, + sortByNumInputs: boolean, + sortByModifiedAt: boolean, + sortByCreatedAt: boolean, + sortByStarCount: boolean, + query: string, + name: string, + filterByUserId: boolean, + modelTypeId: string, + trainedOnly: boolean, + inputFieldsList: Array, + outputFieldsList: Array, + license: string, + featuredOnly: boolean, + starredOnly: boolean, + toolkitsList: Array, + useCasesList: Array, + languagesList: Array, + additionalFieldsList: Array, + dontFetchFromMain: boolean, + bookmark: boolean, + } + + export enum SortByCase { + SORT_BY_NOT_SET = 0, + SORT_BY_NAME = 11, + SORT_BY_NUM_INPUTS = 12, + SORT_BY_MODIFIED_AT = 13, + SORT_BY_CREATED_AT = 24, + SORT_BY_STAR_COUNT = 25, } + } -export class PostModelVersionsPublishRequest extends jspb.Message { +export class GetResourceCountsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionsPublishRequest; - - getModelId(): string; - setModelId(value: string): PostModelVersionsPublishRequest; - - clearPublicationsList(): void; - getPublicationsList(): Array; - setPublicationsList(value: Array): PostModelVersionsPublishRequest; - addPublications(value?: ModelVersionPublishRequest, index?: number): ModelVersionPublishRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetResourceCountsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostModelVersionsPublishRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostModelVersionsPublishRequest): PostModelVersionsPublishRequest.AsObject; + toObject(includeInstance?: boolean): GetResourceCountsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetResourceCountsRequest): GetResourceCountsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostModelVersionsPublishRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostModelVersionsPublishRequest; - static deserializeBinaryFromReader(message: PostModelVersionsPublishRequest, reader: jspb.BinaryReader): PostModelVersionsPublishRequest; + static serializeBinaryToWriter(message: GetResourceCountsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetResourceCountsRequest; + static deserializeBinaryFromReader(message: GetResourceCountsRequest, reader: jspb.BinaryReader): GetResourceCountsRequest; } -export namespace PostModelVersionsPublishRequest { +export namespace GetResourceCountsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - publicationsList: Array, } } -export class ModelVersionUnpublishRequest extends jspb.Message { - getVersionId(): string; - setVersionId(value: string): ModelVersionUnpublishRequest; +export class GetResourceCountsResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): GetResourceCountsResponse; + getDatasets(): number; + setDatasets(value: number): GetResourceCountsResponse; + getModels(): number; + setModels(value: number): GetResourceCountsResponse; + getWorkflows(): number; + setWorkflows(value: number): GetResourceCountsResponse; + getModules(): number; + setModules(value: number): GetResourceCountsResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ModelVersionUnpublishRequest.AsObject; - static toObject(includeInstance: boolean, msg: ModelVersionUnpublishRequest): ModelVersionUnpublishRequest.AsObject; + toObject(includeInstance?: boolean): GetResourceCountsResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetResourceCountsResponse): GetResourceCountsResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ModelVersionUnpublishRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ModelVersionUnpublishRequest; - static deserializeBinaryFromReader(message: ModelVersionUnpublishRequest, reader: jspb.BinaryReader): ModelVersionUnpublishRequest; + static serializeBinaryToWriter(message: GetResourceCountsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetResourceCountsResponse; + static deserializeBinaryFromReader(message: GetResourceCountsResponse, reader: jspb.BinaryReader): GetResourceCountsResponse; } -export namespace ModelVersionUnpublishRequest { +export namespace GetResourceCountsResponse { export type AsObject = { - versionId: string, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + datasets: number, + models: number, + workflows: number, + modules: number, } } -export class PostModelVersionsUnPublishRequest extends jspb.Message { +export class PatchModelToolkitsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionsUnPublishRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelToolkitsRequest; getModelId(): string; - setModelId(value: string): PostModelVersionsUnPublishRequest; - - clearPublicationsList(): void; - getPublicationsList(): Array; - setPublicationsList(value: Array): PostModelVersionsUnPublishRequest; - addPublications(value?: ModelVersionUnpublishRequest, index?: number): ModelVersionUnpublishRequest; - + setModelId(value: string): PatchModelToolkitsRequest; + clearToolkitsList(): void; + getToolkitsList(): Array; + setToolkitsList(value: Array): PatchModelToolkitsRequest; + addToolkits(value: string, index?: number): string; + getAction(): string; + setAction(value: string): PatchModelToolkitsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostModelVersionsUnPublishRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostModelVersionsUnPublishRequest): PostModelVersionsUnPublishRequest.AsObject; + toObject(includeInstance?: boolean): PatchModelToolkitsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModelToolkitsRequest): PatchModelToolkitsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostModelVersionsUnPublishRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostModelVersionsUnPublishRequest; - static deserializeBinaryFromReader(message: PostModelVersionsUnPublishRequest, reader: jspb.BinaryReader): PostModelVersionsUnPublishRequest; + static serializeBinaryToWriter(message: PatchModelToolkitsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModelToolkitsRequest; + static deserializeBinaryFromReader(message: PatchModelToolkitsRequest, reader: jspb.BinaryReader): PatchModelToolkitsRequest; } -export namespace PostModelVersionsUnPublishRequest { +export namespace PatchModelToolkitsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, modelId: string, - publicationsList: Array, + toolkitsList: Array, + action: string, } } -export class PostModelVersionMetricsRequest extends jspb.Message { +export class PatchModelCheckConsentsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionMetricsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelCheckConsentsRequest; getModelId(): string; - setModelId(value: string): PostModelVersionMetricsRequest; - - getVersionId(): string; - setVersionId(value: string): PostModelVersionMetricsRequest; - - getMaxExamples(): number; - setMaxExamples(value: number): PostModelVersionMetricsRequest; - - - hasTestSearch(): boolean; - clearTestSearch(): void; - getTestSearch(): proto_clarifai_api_resources_pb.Search | undefined; - setTestSearch(value?: proto_clarifai_api_resources_pb.Search): PostModelVersionMetricsRequest; - + setModelId(value: string): PatchModelCheckConsentsRequest; + clearCheckConsentsList(): void; + getCheckConsentsList(): Array; + setCheckConsentsList(value: Array): PatchModelCheckConsentsRequest; + addCheckConsents(value: string, index?: number): string; + getAction(): string; + setAction(value: string): PatchModelCheckConsentsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostModelVersionMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostModelVersionMetricsRequest): PostModelVersionMetricsRequest.AsObject; + toObject(includeInstance?: boolean): PatchModelCheckConsentsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModelCheckConsentsRequest): PatchModelCheckConsentsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostModelVersionMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostModelVersionMetricsRequest; - static deserializeBinaryFromReader(message: PostModelVersionMetricsRequest, reader: jspb.BinaryReader): PostModelVersionMetricsRequest; + static serializeBinaryToWriter(message: PatchModelCheckConsentsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModelCheckConsentsRequest; + static deserializeBinaryFromReader(message: PatchModelCheckConsentsRequest, reader: jspb.BinaryReader): PatchModelCheckConsentsRequest; } -export namespace PostModelVersionMetricsRequest { +export namespace PatchModelCheckConsentsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, modelId: string, - versionId: string, - maxExamples: number, - testSearch?: proto_clarifai_api_resources_pb.Search.AsObject, + checkConsentsList: Array, + action: string, } } -export class GetModelVersionMetricsRequest extends jspb.Message { +export class PatchModelUseCasesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelVersionMetricsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelUseCasesRequest; getModelId(): string; - setModelId(value: string): GetModelVersionMetricsRequest; - - getVersionId(): string; - setVersionId(value: string): GetModelVersionMetricsRequest; - - - hasFields(): boolean; - clearFields(): void; - getFields(): proto_clarifai_api_resources_pb.FieldsValue | undefined; - setFields(value?: proto_clarifai_api_resources_pb.FieldsValue): GetModelVersionMetricsRequest; - + setModelId(value: string): PatchModelUseCasesRequest; + clearUsecasesList(): void; + getUsecasesList(): Array; + setUsecasesList(value: Array): PatchModelUseCasesRequest; + addUsecases(value: string, index?: number): string; + getAction(): string; + setAction(value: string): PatchModelUseCasesRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetModelVersionMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetModelVersionMetricsRequest): GetModelVersionMetricsRequest.AsObject; + toObject(includeInstance?: boolean): PatchModelUseCasesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModelUseCasesRequest): PatchModelUseCasesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetModelVersionMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetModelVersionMetricsRequest; - static deserializeBinaryFromReader(message: GetModelVersionMetricsRequest, reader: jspb.BinaryReader): GetModelVersionMetricsRequest; + static serializeBinaryToWriter(message: PatchModelUseCasesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModelUseCasesRequest; + static deserializeBinaryFromReader(message: PatchModelUseCasesRequest, reader: jspb.BinaryReader): PatchModelUseCasesRequest; } -export namespace GetModelVersionMetricsRequest { +export namespace PatchModelUseCasesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, modelId: string, - versionId: string, - fields?: proto_clarifai_api_resources_pb.FieldsValue.AsObject, + usecasesList: Array, + action: string, } } -export class GetModelTypeRequest extends jspb.Message { +export class PatchModelLanguagesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelTypeRequest; - - getModelTypeId(): string; - setModelTypeId(value: string): GetModelTypeRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelLanguagesRequest; + getModelId(): string; + setModelId(value: string): PatchModelLanguagesRequest; + clearLanguagesList(): void; + getLanguagesList(): Array; + setLanguagesList(value: Array): PatchModelLanguagesRequest; + addLanguages(value: string, index?: number): string; + getAction(): string; + setAction(value: string): PatchModelLanguagesRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetModelTypeRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetModelTypeRequest): GetModelTypeRequest.AsObject; + toObject(includeInstance?: boolean): PatchModelLanguagesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModelLanguagesRequest): PatchModelLanguagesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetModelTypeRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetModelTypeRequest; - static deserializeBinaryFromReader(message: GetModelTypeRequest, reader: jspb.BinaryReader): GetModelTypeRequest; + static serializeBinaryToWriter(message: PatchModelLanguagesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModelLanguagesRequest; + static deserializeBinaryFromReader(message: PatchModelLanguagesRequest, reader: jspb.BinaryReader): PatchModelLanguagesRequest; } -export namespace GetModelTypeRequest { +export namespace PatchModelLanguagesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelTypeId: string, + modelId: string, + languagesList: Array, + action: string, } } -export class ListModelTypesRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelTypesRequest; - - getPage(): number; - setPage(value: number): ListModelTypesRequest; - - getPerPage(): number; - setPerPage(value: number): ListModelTypesRequest; +export class MultiModelToolkitResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelToolkitResponse; + clearToolkitsList(): void; + getToolkitsList(): Array; + setToolkitsList(value: Array): MultiModelToolkitResponse; + addToolkits(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListModelTypesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListModelTypesRequest): ListModelTypesRequest.AsObject; + toObject(includeInstance?: boolean): MultiModelToolkitResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelToolkitResponse): MultiModelToolkitResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListModelTypesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListModelTypesRequest; - static deserializeBinaryFromReader(message: ListModelTypesRequest, reader: jspb.BinaryReader): ListModelTypesRequest; + static serializeBinaryToWriter(message: MultiModelToolkitResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelToolkitResponse; + static deserializeBinaryFromReader(message: MultiModelToolkitResponse, reader: jspb.BinaryReader): MultiModelToolkitResponse; } -export namespace ListModelTypesRequest { +export namespace MultiModelToolkitResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - page: number, - perPage: number, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + toolkitsList: Array, } } -export class ListOpenSourceLicensesRequest extends jspb.Message { +export class MultiModelCheckConsentResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelCheckConsentResponse; + clearCheckConsentsList(): void; + getCheckConsentsList(): Array; + setCheckConsentsList(value: Array): MultiModelCheckConsentResponse; + addCheckConsents(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListOpenSourceLicensesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListOpenSourceLicensesRequest): ListOpenSourceLicensesRequest.AsObject; + toObject(includeInstance?: boolean): MultiModelCheckConsentResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelCheckConsentResponse): MultiModelCheckConsentResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListOpenSourceLicensesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListOpenSourceLicensesRequest; - static deserializeBinaryFromReader(message: ListOpenSourceLicensesRequest, reader: jspb.BinaryReader): ListOpenSourceLicensesRequest; + static serializeBinaryToWriter(message: MultiModelCheckConsentResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelCheckConsentResponse; + static deserializeBinaryFromReader(message: MultiModelCheckConsentResponse, reader: jspb.BinaryReader): MultiModelCheckConsentResponse; } -export namespace ListOpenSourceLicensesRequest { +export namespace MultiModelCheckConsentResponse { export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + checkConsentsList: Array, } } -export class ListOpenSourceLicensesResponse extends jspb.Message { +export class MultiModelUseCaseResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): ListOpenSourceLicensesResponse; - - clearLicensesList(): void; - getLicensesList(): Array; - setLicensesList(value: Array): ListOpenSourceLicensesResponse; - addLicenses(value: string, index?: number): string; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelUseCaseResponse; + clearUsecasesList(): void; + getUsecasesList(): Array; + setUsecasesList(value: Array): MultiModelUseCaseResponse; + addUsecases(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListOpenSourceLicensesResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListOpenSourceLicensesResponse): ListOpenSourceLicensesResponse.AsObject; + toObject(includeInstance?: boolean): MultiModelUseCaseResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelUseCaseResponse): MultiModelUseCaseResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListOpenSourceLicensesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListOpenSourceLicensesResponse; - static deserializeBinaryFromReader(message: ListOpenSourceLicensesResponse, reader: jspb.BinaryReader): ListOpenSourceLicensesResponse; + static serializeBinaryToWriter(message: MultiModelUseCaseResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelUseCaseResponse; + static deserializeBinaryFromReader(message: MultiModelUseCaseResponse, reader: jspb.BinaryReader): MultiModelUseCaseResponse; } -export namespace ListOpenSourceLicensesResponse { +export namespace MultiModelUseCaseResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - licensesList: Array, + usecasesList: Array, } } -export class SingleModelTypeResponse extends jspb.Message { +export class MultiModelLanguageResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelTypeResponse; - - - hasModelType(): boolean; - clearModelType(): void; - getModelType(): proto_clarifai_api_resources_pb.ModelType | undefined; - setModelType(value?: proto_clarifai_api_resources_pb.ModelType): SingleModelTypeResponse; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelLanguageResponse; + clearLanguagesList(): void; + getLanguagesList(): Array; + setLanguagesList(value: Array): MultiModelLanguageResponse; + addLanguages(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleModelTypeResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleModelTypeResponse): SingleModelTypeResponse.AsObject; + toObject(includeInstance?: boolean): MultiModelLanguageResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelLanguageResponse): MultiModelLanguageResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleModelTypeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleModelTypeResponse; - static deserializeBinaryFromReader(message: SingleModelTypeResponse, reader: jspb.BinaryReader): SingleModelTypeResponse; + static serializeBinaryToWriter(message: MultiModelLanguageResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelLanguageResponse; + static deserializeBinaryFromReader(message: MultiModelLanguageResponse, reader: jspb.BinaryReader): MultiModelLanguageResponse; } -export namespace SingleModelTypeResponse { +export namespace MultiModelLanguageResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelType?: proto_clarifai_api_resources_pb.ModelType.AsObject, + languagesList: Array, } } -export class MultiModelTypeResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelTypeResponse; - - clearModelTypesList(): void; - getModelTypesList(): Array; - setModelTypesList(value: Array): MultiModelTypeResponse; - addModelTypes(value?: proto_clarifai_api_resources_pb.ModelType, index?: number): proto_clarifai_api_resources_pb.ModelType; - +export class PostModelsRequest extends jspb.Message { - hasModelImporters(): boolean; - clearModelImporters(): void; - getModelImporters(): proto_clarifai_api_resources_pb.ModelTypeField | undefined; - setModelImporters(value?: proto_clarifai_api_resources_pb.ModelTypeField): MultiModelTypeResponse; + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelsRequest; + hasModel(): boolean; + clearModel(): void; + getModel(): proto_clarifai_api_resources_pb.Model | undefined; + setModel(value?: proto_clarifai_api_resources_pb.Model): PostModelsRequest; + clearModelsList(): void; + getModelsList(): Array; + setModelsList(value: Array): PostModelsRequest; + addModels(value?: proto_clarifai_api_resources_pb.Model, index?: number): proto_clarifai_api_resources_pb.Model; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelTypeResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelTypeResponse): MultiModelTypeResponse.AsObject; + toObject(includeInstance?: boolean): PostModelsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelsRequest): PostModelsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelTypeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelTypeResponse; - static deserializeBinaryFromReader(message: MultiModelTypeResponse, reader: jspb.BinaryReader): MultiModelTypeResponse; + static serializeBinaryToWriter(message: PostModelsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelsRequest; + static deserializeBinaryFromReader(message: PostModelsRequest, reader: jspb.BinaryReader): PostModelsRequest; } -export namespace MultiModelTypeResponse { +export namespace PostModelsRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelTypesList: Array, - modelImporters?: proto_clarifai_api_resources_pb.ModelTypeField.AsObject, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + model?: proto_clarifai_api_resources_pb.Model.AsObject, + modelsList: Array, } } -export class GetModelVersionInputExampleRequest extends jspb.Message { +export class PatchModelsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelVersionInputExampleRequest; - - getModelId(): string; - setModelId(value: string): GetModelVersionInputExampleRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelsRequest; + clearModelsList(): void; + getModelsList(): Array; + setModelsList(value: Array): PatchModelsRequest; + addModels(value?: proto_clarifai_api_resources_pb.Model, index?: number): proto_clarifai_api_resources_pb.Model; + getAction(): string; + setAction(value: string): PatchModelsRequest; - getModelVersionId(): string; - setModelVersionId(value: string): GetModelVersionInputExampleRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchModelsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModelsRequest): PatchModelsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchModelsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModelsRequest; + static deserializeBinaryFromReader(message: PatchModelsRequest, reader: jspb.BinaryReader): PatchModelsRequest; +} - getExampleId(): string; - setExampleId(value: string): GetModelVersionInputExampleRequest; +export namespace PatchModelsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelsList: Array, + action: string, + } +} +export class IdUpdateSource extends jspb.Message { + getId(): string; + setId(value: string): IdUpdateSource; + getNewId(): string; + setNewId(value: string): IdUpdateSource; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetModelVersionInputExampleRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetModelVersionInputExampleRequest): GetModelVersionInputExampleRequest.AsObject; + toObject(includeInstance?: boolean): IdUpdateSource.AsObject; + static toObject(includeInstance: boolean, msg: IdUpdateSource): IdUpdateSource.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetModelVersionInputExampleRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetModelVersionInputExampleRequest; - static deserializeBinaryFromReader(message: GetModelVersionInputExampleRequest, reader: jspb.BinaryReader): GetModelVersionInputExampleRequest; + static serializeBinaryToWriter(message: IdUpdateSource, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IdUpdateSource; + static deserializeBinaryFromReader(message: IdUpdateSource, reader: jspb.BinaryReader): IdUpdateSource; } -export namespace GetModelVersionInputExampleRequest { +export namespace IdUpdateSource { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - modelVersionId: string, - exampleId: string, + id: string, + newId: string, } } -export class ListModelVersionInputExamplesRequest extends jspb.Message { +export class PatchModelIdsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelVersionInputExamplesRequest; - - getModelId(): string; - setModelId(value: string): ListModelVersionInputExamplesRequest; - - getModelVersionId(): string; - setModelVersionId(value: string): ListModelVersionInputExamplesRequest; - - getPage(): number; - setPage(value: number): ListModelVersionInputExamplesRequest; - - getPerPage(): number; - setPerPage(value: number): ListModelVersionInputExamplesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelIdsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): PatchModelIdsRequest; + addIds(value?: IdUpdateSource, index?: number): IdUpdateSource; + getAction(): string; + setAction(value: string): PatchModelIdsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListModelVersionInputExamplesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListModelVersionInputExamplesRequest): ListModelVersionInputExamplesRequest.AsObject; + toObject(includeInstance?: boolean): PatchModelIdsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModelIdsRequest): PatchModelIdsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListModelVersionInputExamplesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListModelVersionInputExamplesRequest; - static deserializeBinaryFromReader(message: ListModelVersionInputExamplesRequest, reader: jspb.BinaryReader): ListModelVersionInputExamplesRequest; + static serializeBinaryToWriter(message: PatchModelIdsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModelIdsRequest; + static deserializeBinaryFromReader(message: PatchModelIdsRequest, reader: jspb.BinaryReader): PatchModelIdsRequest; } -export namespace ListModelVersionInputExamplesRequest { +export namespace PatchModelIdsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - modelVersionId: string, - page: number, - perPage: number, + idsList: Array, + action: string, } } -export class SingleModelVersionInputExampleResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelVersionInputExampleResponse; - - - hasModelVersionInputExample(): boolean; - clearModelVersionInputExample(): void; - getModelVersionInputExample(): proto_clarifai_api_resources_pb.ModelVersionInputExample | undefined; - setModelVersionInputExample(value?: proto_clarifai_api_resources_pb.ModelVersionInputExample): SingleModelVersionInputExampleResponse; +export class DeleteModelRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModelRequest; + getModelId(): string; + setModelId(value: string): DeleteModelRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleModelVersionInputExampleResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleModelVersionInputExampleResponse): SingleModelVersionInputExampleResponse.AsObject; + toObject(includeInstance?: boolean): DeleteModelRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteModelRequest): DeleteModelRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleModelVersionInputExampleResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleModelVersionInputExampleResponse; - static deserializeBinaryFromReader(message: SingleModelVersionInputExampleResponse, reader: jspb.BinaryReader): SingleModelVersionInputExampleResponse; + static serializeBinaryToWriter(message: DeleteModelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteModelRequest; + static deserializeBinaryFromReader(message: DeleteModelRequest, reader: jspb.BinaryReader): DeleteModelRequest; } -export namespace SingleModelVersionInputExampleResponse { +export namespace DeleteModelRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelVersionInputExample?: proto_clarifai_api_resources_pb.ModelVersionInputExample.AsObject, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, } } -export class MultiModelVersionInputExampleResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelVersionInputExampleResponse; - - clearModelVersionInputExamplesList(): void; - getModelVersionInputExamplesList(): Array; - setModelVersionInputExamplesList(value: Array): MultiModelVersionInputExampleResponse; - addModelVersionInputExamples(value?: proto_clarifai_api_resources_pb.ModelVersionInputExample, index?: number): proto_clarifai_api_resources_pb.ModelVersionInputExample; +export class DeleteModelsRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModelsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteModelsRequest; + addIds(value: string, index?: number): string; + getDeleteAll(): boolean; + setDeleteAll(value: boolean): DeleteModelsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelVersionInputExampleResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelVersionInputExampleResponse): MultiModelVersionInputExampleResponse.AsObject; + toObject(includeInstance?: boolean): DeleteModelsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteModelsRequest): DeleteModelsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelVersionInputExampleResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelVersionInputExampleResponse; - static deserializeBinaryFromReader(message: MultiModelVersionInputExampleResponse, reader: jspb.BinaryReader): MultiModelVersionInputExampleResponse; + static serializeBinaryToWriter(message: DeleteModelsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteModelsRequest; + static deserializeBinaryFromReader(message: DeleteModelsRequest, reader: jspb.BinaryReader): DeleteModelsRequest; } -export namespace MultiModelVersionInputExampleResponse { +export namespace DeleteModelsRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelVersionInputExamplesList: Array, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, + deleteAll: boolean, } } -export class ListModelReferencesRequest extends jspb.Message { +export class PostModelsSearchesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelReferencesRequest; - - getModelId(): string; - setModelId(value: string): ListModelReferencesRequest; - - getPage(): number; - setPage(value: number): ListModelReferencesRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelsSearchesRequest; - getPerPage(): number; - setPerPage(value: number): ListModelReferencesRequest; + hasModelQuery(): boolean; + clearModelQuery(): void; + getModelQuery(): proto_clarifai_api_resources_pb.ModelQuery | undefined; + setModelQuery(value?: proto_clarifai_api_resources_pb.ModelQuery): PostModelsSearchesRequest; + hasPagination(): boolean; + clearPagination(): void; + getPagination(): Pagination | undefined; + setPagination(value?: Pagination): PostModelsSearchesRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListModelReferencesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListModelReferencesRequest): ListModelReferencesRequest.AsObject; + toObject(includeInstance?: boolean): PostModelsSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelsSearchesRequest): PostModelsSearchesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListModelReferencesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListModelReferencesRequest; - static deserializeBinaryFromReader(message: ListModelReferencesRequest, reader: jspb.BinaryReader): ListModelReferencesRequest; + static serializeBinaryToWriter(message: PostModelsSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelsSearchesRequest; + static deserializeBinaryFromReader(message: PostModelsSearchesRequest, reader: jspb.BinaryReader): PostModelsSearchesRequest; } -export namespace ListModelReferencesRequest { +export namespace PostModelsSearchesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - modelId: string, - page: number, - perPage: number, + modelQuery?: proto_clarifai_api_resources_pb.ModelQuery.AsObject, + pagination?: Pagination.AsObject, } } -export class MultiModelReferenceResponse extends jspb.Message { +export class SingleModelResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelReferenceResponse; - - clearModelReferencesList(): void; - getModelReferencesList(): Array; - setModelReferencesList(value: Array): MultiModelReferenceResponse; - addModelReferences(value?: proto_clarifai_api_resources_pb.ModelReference, index?: number): proto_clarifai_api_resources_pb.ModelReference; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelResponse; + hasModel(): boolean; + clearModel(): void; + getModel(): proto_clarifai_api_resources_pb.Model | undefined; + setModel(value?: proto_clarifai_api_resources_pb.Model): SingleModelResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiModelReferenceResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiModelReferenceResponse): MultiModelReferenceResponse.AsObject; + toObject(includeInstance?: boolean): SingleModelResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleModelResponse): SingleModelResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiModelReferenceResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiModelReferenceResponse; - static deserializeBinaryFromReader(message: MultiModelReferenceResponse, reader: jspb.BinaryReader): MultiModelReferenceResponse; + static serializeBinaryToWriter(message: SingleModelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleModelResponse; + static deserializeBinaryFromReader(message: SingleModelResponse, reader: jspb.BinaryReader): SingleModelResponse; } -export namespace MultiModelReferenceResponse { +export namespace SingleModelResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - modelReferencesList: Array, + model?: proto_clarifai_api_resources_pb.Model.AsObject, } } -export class MultiOutputResponse extends jspb.Message { +export class MultiModelResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiOutputResponse; - - clearOutputsList(): void; - getOutputsList(): Array; - setOutputsList(value: Array): MultiOutputResponse; - addOutputs(value?: proto_clarifai_api_resources_pb.Output, index?: number): proto_clarifai_api_resources_pb.Output; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelResponse; + clearModelsList(): void; + getModelsList(): Array; + setModelsList(value: Array): MultiModelResponse; + addModels(value?: proto_clarifai_api_resources_pb.Model, index?: number): proto_clarifai_api_resources_pb.Model; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiOutputResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiOutputResponse): MultiOutputResponse.AsObject; + toObject(includeInstance?: boolean): MultiModelResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelResponse): MultiModelResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiOutputResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiOutputResponse; - static deserializeBinaryFromReader(message: MultiOutputResponse, reader: jspb.BinaryReader): MultiOutputResponse; + static serializeBinaryToWriter(message: MultiModelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelResponse; + static deserializeBinaryFromReader(message: MultiModelResponse, reader: jspb.BinaryReader): MultiModelResponse; } -export namespace MultiOutputResponse { +export namespace MultiModelResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - outputsList: Array, + modelsList: Array, } } -export class ListScopesRequest extends jspb.Message { - getKeyType(): string; - setKeyType(value: string): ListScopesRequest; - +export class PatchModelVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListScopesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModelVersionsRequest; + getModelId(): string; + setModelId(value: string): PatchModelVersionsRequest; + clearModelVersionsList(): void; + getModelVersionsList(): Array; + setModelVersionsList(value: Array): PatchModelVersionsRequest; + addModelVersions(value?: proto_clarifai_api_resources_pb.ModelVersion, index?: number): proto_clarifai_api_resources_pb.ModelVersion; + getAction(): string; + setAction(value: string): PatchModelVersionsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListScopesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListScopesRequest): ListScopesRequest.AsObject; + toObject(includeInstance?: boolean): PatchModelVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModelVersionsRequest): PatchModelVersionsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListScopesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListScopesRequest; - static deserializeBinaryFromReader(message: ListScopesRequest, reader: jspb.BinaryReader): ListScopesRequest; + static serializeBinaryToWriter(message: PatchModelVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModelVersionsRequest; + static deserializeBinaryFromReader(message: PatchModelVersionsRequest, reader: jspb.BinaryReader): PatchModelVersionsRequest; } -export namespace ListScopesRequest { +export namespace PatchModelVersionsRequest { export type AsObject = { - keyType: string, userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + modelVersionsList: Array, + action: string, } } -export class MyScopesRequest extends jspb.Message { +export class GetModelVersionRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): MyScopesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelVersionRequest; + getModelId(): string; + setModelId(value: string): GetModelVersionRequest; + getVersionId(): string; + setVersionId(value: string): GetModelVersionRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyScopesRequest.AsObject; - static toObject(includeInstance: boolean, msg: MyScopesRequest): MyScopesRequest.AsObject; + toObject(includeInstance?: boolean): GetModelVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModelVersionRequest): GetModelVersionRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MyScopesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyScopesRequest; - static deserializeBinaryFromReader(message: MyScopesRequest, reader: jspb.BinaryReader): MyScopesRequest; + static serializeBinaryToWriter(message: GetModelVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModelVersionRequest; + static deserializeBinaryFromReader(message: GetModelVersionRequest, reader: jspb.BinaryReader): GetModelVersionRequest; } -export namespace MyScopesRequest { +export namespace GetModelVersionRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + versionId: string, } } -export class MyScopesUserRequest extends jspb.Message { +export class ListModelVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): MyScopesUserRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyScopesUserRequest.AsObject; - static toObject(includeInstance: boolean, msg: MyScopesUserRequest): MyScopesUserRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelVersionsRequest; + getModelId(): string; + setModelId(value: string): ListModelVersionsRequest; + getPage(): number; + setPage(value: number): ListModelVersionsRequest; + getPerPage(): number; + setPerPage(value: number): ListModelVersionsRequest; + clearConceptIdsList(): void; + getConceptIdsList(): Array; + setConceptIdsList(value: Array): ListModelVersionsRequest; + addConceptIds(value: string, index?: number): string; + getTrainedOnly(): boolean; + setTrainedOnly(value: boolean): ListModelVersionsRequest; + getSortAscending(): boolean; + setSortAscending(value: boolean): ListModelVersionsRequest; + + hasSortByStatusCode(): boolean; + clearSortByStatusCode(): void; + getSortByStatusCode(): boolean; + setSortByStatusCode(value: boolean): ListModelVersionsRequest; + + hasSortByNumInputs(): boolean; + clearSortByNumInputs(): void; + getSortByNumInputs(): boolean; + setSortByNumInputs(value: boolean): ListModelVersionsRequest; + + hasSortByDescription(): boolean; + clearSortByDescription(): void; + getSortByDescription(): boolean; + setSortByDescription(value: boolean): ListModelVersionsRequest; + + hasSortByCreatedAt(): boolean; + clearSortByCreatedAt(): void; + getSortByCreatedAt(): boolean; + setSortByCreatedAt(value: boolean): ListModelVersionsRequest; + + getSortByCase(): ListModelVersionsRequest.SortByCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListModelVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelVersionsRequest): ListModelVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListModelVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelVersionsRequest; + static deserializeBinaryFromReader(message: ListModelVersionsRequest, reader: jspb.BinaryReader): ListModelVersionsRequest; +} + +export namespace ListModelVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + page: number, + perPage: number, + conceptIdsList: Array, + trainedOnly: boolean, + sortAscending: boolean, + sortByStatusCode: boolean, + sortByNumInputs: boolean, + sortByDescription: boolean, + sortByCreatedAt: boolean, + } + + export enum SortByCase { + SORT_BY_NOT_SET = 0, + SORT_BY_STATUS_CODE = 8, + SORT_BY_NUM_INPUTS = 9, + SORT_BY_DESCRIPTION = 10, + SORT_BY_CREATED_AT = 11, + } + +} + +export class DeleteModelVersionRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModelVersionRequest; + getModelId(): string; + setModelId(value: string): DeleteModelVersionRequest; + getVersionId(): string; + setVersionId(value: string): DeleteModelVersionRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteModelVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteModelVersionRequest): DeleteModelVersionRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteModelVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteModelVersionRequest; + static deserializeBinaryFromReader(message: DeleteModelVersionRequest, reader: jspb.BinaryReader): DeleteModelVersionRequest; +} + +export namespace DeleteModelVersionRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + versionId: string, + } +} + +export class SingleModelVersionResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelVersionResponse; + + hasModelVersion(): boolean; + clearModelVersion(): void; + getModelVersion(): proto_clarifai_api_resources_pb.ModelVersion | undefined; + setModelVersion(value?: proto_clarifai_api_resources_pb.ModelVersion): SingleModelVersionResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleModelVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleModelVersionResponse): SingleModelVersionResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleModelVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleModelVersionResponse; + static deserializeBinaryFromReader(message: SingleModelVersionResponse, reader: jspb.BinaryReader): SingleModelVersionResponse; +} + +export namespace SingleModelVersionResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + modelVersion?: proto_clarifai_api_resources_pb.ModelVersion.AsObject, + } +} + +export class MultiModelVersionResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelVersionResponse; + clearModelVersionsList(): void; + getModelVersionsList(): Array; + setModelVersionsList(value: Array): MultiModelVersionResponse; + addModelVersions(value?: proto_clarifai_api_resources_pb.ModelVersion, index?: number): proto_clarifai_api_resources_pb.ModelVersion; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiModelVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelVersionResponse): MultiModelVersionResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiModelVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelVersionResponse; + static deserializeBinaryFromReader(message: MultiModelVersionResponse, reader: jspb.BinaryReader): MultiModelVersionResponse; +} + +export namespace MultiModelVersionResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + modelVersionsList: Array, + } +} + +export class PostModelVersionsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionsRequest; + getModelId(): string; + setModelId(value: string): PostModelVersionsRequest; + clearModelVersionsList(): void; + getModelVersionsList(): Array; + setModelVersionsList(value: Array): PostModelVersionsRequest; + addModelVersions(value?: proto_clarifai_api_resources_pb.ModelVersion, index?: number): proto_clarifai_api_resources_pb.ModelVersion; + getDescription(): string; + setDescription(value: string): PostModelVersionsRequest; + + hasEvalInfo(): boolean; + clearEvalInfo(): void; + getEvalInfo(): proto_clarifai_api_resources_pb.EvalInfo | undefined; + setEvalInfo(value?: proto_clarifai_api_resources_pb.EvalInfo): PostModelVersionsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostModelVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelVersionsRequest): PostModelVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostModelVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelVersionsRequest; + static deserializeBinaryFromReader(message: PostModelVersionsRequest, reader: jspb.BinaryReader): PostModelVersionsRequest; +} + +export namespace PostModelVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + modelVersionsList: Array, + description: string, + evalInfo?: proto_clarifai_api_resources_pb.EvalInfo.AsObject, + } +} + +export class PostWorkflowVersionsUnPublishRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowVersionsUnPublishRequest; + getWorkflowId(): string; + setWorkflowId(value: string): PostWorkflowVersionsUnPublishRequest; + clearPublicationsList(): void; + getPublicationsList(): Array; + setPublicationsList(value: Array): PostWorkflowVersionsUnPublishRequest; + addPublications(value?: WorkflowVersionUnPublishRequest, index?: number): WorkflowVersionUnPublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostWorkflowVersionsUnPublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostWorkflowVersionsUnPublishRequest): PostWorkflowVersionsUnPublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostWorkflowVersionsUnPublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostWorkflowVersionsUnPublishRequest; + static deserializeBinaryFromReader(message: PostWorkflowVersionsUnPublishRequest, reader: jspb.BinaryReader): PostWorkflowVersionsUnPublishRequest; +} + +export namespace PostWorkflowVersionsUnPublishRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + publicationsList: Array, + } +} + +export class PostWorkflowVersionsPublishRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowVersionsPublishRequest; + getWorkflowId(): string; + setWorkflowId(value: string): PostWorkflowVersionsPublishRequest; + clearPublicationsList(): void; + getPublicationsList(): Array; + setPublicationsList(value: Array): PostWorkflowVersionsPublishRequest; + addPublications(value?: WorkflowVersionPublishRequest, index?: number): WorkflowVersionPublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostWorkflowVersionsPublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostWorkflowVersionsPublishRequest): PostWorkflowVersionsPublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostWorkflowVersionsPublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostWorkflowVersionsPublishRequest; + static deserializeBinaryFromReader(message: PostWorkflowVersionsPublishRequest, reader: jspb.BinaryReader): PostWorkflowVersionsPublishRequest; +} + +export namespace PostWorkflowVersionsPublishRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + publicationsList: Array, + } +} + +export class WorkflowVersionPublishRequest extends jspb.Message { + getVersionId(): string; + setVersionId(value: string): WorkflowVersionPublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WorkflowVersionPublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: WorkflowVersionPublishRequest): WorkflowVersionPublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: WorkflowVersionPublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WorkflowVersionPublishRequest; + static deserializeBinaryFromReader(message: WorkflowVersionPublishRequest, reader: jspb.BinaryReader): WorkflowVersionPublishRequest; +} + +export namespace WorkflowVersionPublishRequest { + export type AsObject = { + versionId: string, + } +} + +export class WorkflowVersionUnPublishRequest extends jspb.Message { + getVersionId(): string; + setVersionId(value: string): WorkflowVersionUnPublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WorkflowVersionUnPublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: WorkflowVersionUnPublishRequest): WorkflowVersionUnPublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: WorkflowVersionUnPublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WorkflowVersionUnPublishRequest; + static deserializeBinaryFromReader(message: WorkflowVersionUnPublishRequest, reader: jspb.BinaryReader): WorkflowVersionUnPublishRequest; +} + +export namespace WorkflowVersionUnPublishRequest { + export type AsObject = { + versionId: string, + } +} + +export class ModelVersionPublishRequest extends jspb.Message { + getVersionId(): string; + setVersionId(value: string): ModelVersionPublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModelVersionPublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: ModelVersionPublishRequest): ModelVersionPublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModelVersionPublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModelVersionPublishRequest; + static deserializeBinaryFromReader(message: ModelVersionPublishRequest, reader: jspb.BinaryReader): ModelVersionPublishRequest; +} + +export namespace ModelVersionPublishRequest { + export type AsObject = { + versionId: string, + } +} + +export class PostModelVersionsPublishRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionsPublishRequest; + getModelId(): string; + setModelId(value: string): PostModelVersionsPublishRequest; + clearPublicationsList(): void; + getPublicationsList(): Array; + setPublicationsList(value: Array): PostModelVersionsPublishRequest; + addPublications(value?: ModelVersionPublishRequest, index?: number): ModelVersionPublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostModelVersionsPublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelVersionsPublishRequest): PostModelVersionsPublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostModelVersionsPublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelVersionsPublishRequest; + static deserializeBinaryFromReader(message: PostModelVersionsPublishRequest, reader: jspb.BinaryReader): PostModelVersionsPublishRequest; +} + +export namespace PostModelVersionsPublishRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + publicationsList: Array, + } +} + +export class ModelVersionUnpublishRequest extends jspb.Message { + getVersionId(): string; + setVersionId(value: string): ModelVersionUnpublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ModelVersionUnpublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: ModelVersionUnpublishRequest): ModelVersionUnpublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ModelVersionUnpublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ModelVersionUnpublishRequest; + static deserializeBinaryFromReader(message: ModelVersionUnpublishRequest, reader: jspb.BinaryReader): ModelVersionUnpublishRequest; +} + +export namespace ModelVersionUnpublishRequest { + export type AsObject = { + versionId: string, + } +} + +export class PostModelVersionsUnPublishRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionsUnPublishRequest; + getModelId(): string; + setModelId(value: string): PostModelVersionsUnPublishRequest; + clearPublicationsList(): void; + getPublicationsList(): Array; + setPublicationsList(value: Array): PostModelVersionsUnPublishRequest; + addPublications(value?: ModelVersionUnpublishRequest, index?: number): ModelVersionUnpublishRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostModelVersionsUnPublishRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelVersionsUnPublishRequest): PostModelVersionsUnPublishRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostModelVersionsUnPublishRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelVersionsUnPublishRequest; + static deserializeBinaryFromReader(message: PostModelVersionsUnPublishRequest, reader: jspb.BinaryReader): PostModelVersionsUnPublishRequest; +} + +export namespace PostModelVersionsUnPublishRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + publicationsList: Array, + } +} + +export class PostEvaluationsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostEvaluationsRequest; + clearEvalMetricsList(): void; + getEvalMetricsList(): Array; + setEvalMetricsList(value: Array): PostEvaluationsRequest; + addEvalMetrics(value?: proto_clarifai_api_resources_pb.EvalMetrics, index?: number): proto_clarifai_api_resources_pb.EvalMetrics; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostEvaluationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostEvaluationsRequest): PostEvaluationsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostEvaluationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostEvaluationsRequest; + static deserializeBinaryFromReader(message: PostEvaluationsRequest, reader: jspb.BinaryReader): PostEvaluationsRequest; +} + +export namespace PostEvaluationsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + evalMetricsList: Array, + } +} + +export class ListEvaluationsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListEvaluationsRequest; + getPage(): number; + setPage(value: number): ListEvaluationsRequest; + getPerPage(): number; + setPerPage(value: number): ListEvaluationsRequest; + getSortAscending(): boolean; + setSortAscending(value: boolean): ListEvaluationsRequest; + + hasSortByAppId(): boolean; + clearSortByAppId(): void; + getSortByAppId(): boolean; + setSortByAppId(value: boolean): ListEvaluationsRequest; + + hasSortByRocAuc(): boolean; + clearSortByRocAuc(): void; + getSortByRocAuc(): boolean; + setSortByRocAuc(value: boolean): ListEvaluationsRequest; + + hasSortByF1(): boolean; + clearSortByF1(): void; + getSortByF1(): boolean; + setSortByF1(value: boolean): ListEvaluationsRequest; + + hasSortByCreatedAt(): boolean; + clearSortByCreatedAt(): void; + getSortByCreatedAt(): boolean; + setSortByCreatedAt(value: boolean): ListEvaluationsRequest; + + hasSortByMeanAvgPrecision(): boolean; + clearSortByMeanAvgPrecision(): void; + getSortByMeanAvgPrecision(): boolean; + setSortByMeanAvgPrecision(value: boolean): ListEvaluationsRequest; + + hasSortByPrecision(): boolean; + clearSortByPrecision(): void; + getSortByPrecision(): boolean; + setSortByPrecision(value: boolean): ListEvaluationsRequest; + + hasSortByRecall(): boolean; + clearSortByRecall(): void; + getSortByRecall(): boolean; + setSortByRecall(value: boolean): ListEvaluationsRequest; + + getSortByCase(): ListEvaluationsRequest.SortByCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListEvaluationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListEvaluationsRequest): ListEvaluationsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListEvaluationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListEvaluationsRequest; + static deserializeBinaryFromReader(message: ListEvaluationsRequest, reader: jspb.BinaryReader): ListEvaluationsRequest; +} + +export namespace ListEvaluationsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + sortAscending: boolean, + sortByAppId: boolean, + sortByRocAuc: boolean, + sortByF1: boolean, + sortByCreatedAt: boolean, + sortByMeanAvgPrecision: boolean, + sortByPrecision: boolean, + sortByRecall: boolean, + } + + export enum SortByCase { + SORT_BY_NOT_SET = 0, + SORT_BY_APP_ID = 5, + SORT_BY_ROC_AUC = 6, + SORT_BY_F1 = 7, + SORT_BY_CREATED_AT = 8, + SORT_BY_MEAN_AVG_PRECISION = 9, + SORT_BY_PRECISION = 10, + SORT_BY_RECALL = 11, + } + +} + +export class GetEvaluationRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetEvaluationRequest; + getEvaluationId(): string; + setEvaluationId(value: string): GetEvaluationRequest; + + hasFields(): boolean; + clearFields(): void; + getFields(): proto_clarifai_api_resources_pb.FieldsValue | undefined; + setFields(value?: proto_clarifai_api_resources_pb.FieldsValue): GetEvaluationRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetEvaluationRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetEvaluationRequest): GetEvaluationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetEvaluationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetEvaluationRequest; + static deserializeBinaryFromReader(message: GetEvaluationRequest, reader: jspb.BinaryReader): GetEvaluationRequest; +} + +export namespace GetEvaluationRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + evaluationId: string, + fields?: proto_clarifai_api_resources_pb.FieldsValue.AsObject, + } +} + +export class PostModelVersionEvaluationsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionEvaluationsRequest; + getModelId(): string; + setModelId(value: string): PostModelVersionEvaluationsRequest; + getModelVersionId(): string; + setModelVersionId(value: string): PostModelVersionEvaluationsRequest; + clearEvalMetricsList(): void; + getEvalMetricsList(): Array; + setEvalMetricsList(value: Array): PostModelVersionEvaluationsRequest; + addEvalMetrics(value?: proto_clarifai_api_resources_pb.EvalMetrics, index?: number): proto_clarifai_api_resources_pb.EvalMetrics; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostModelVersionEvaluationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelVersionEvaluationsRequest): PostModelVersionEvaluationsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostModelVersionEvaluationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelVersionEvaluationsRequest; + static deserializeBinaryFromReader(message: PostModelVersionEvaluationsRequest, reader: jspb.BinaryReader): PostModelVersionEvaluationsRequest; +} + +export namespace PostModelVersionEvaluationsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + modelVersionId: string, + evalMetricsList: Array, + } +} + +export class ListModelVersionEvaluationsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelVersionEvaluationsRequest; + getModelId(): string; + setModelId(value: string): ListModelVersionEvaluationsRequest; + getModelVersionId(): string; + setModelVersionId(value: string): ListModelVersionEvaluationsRequest; + getPage(): number; + setPage(value: number): ListModelVersionEvaluationsRequest; + getPerPage(): number; + setPerPage(value: number): ListModelVersionEvaluationsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListModelVersionEvaluationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelVersionEvaluationsRequest): ListModelVersionEvaluationsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListModelVersionEvaluationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelVersionEvaluationsRequest; + static deserializeBinaryFromReader(message: ListModelVersionEvaluationsRequest, reader: jspb.BinaryReader): ListModelVersionEvaluationsRequest; +} + +export namespace ListModelVersionEvaluationsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + modelVersionId: string, + page: number, + perPage: number, + } +} + +export class GetModelVersionEvaluationRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelVersionEvaluationRequest; + getModelId(): string; + setModelId(value: string): GetModelVersionEvaluationRequest; + getModelVersionId(): string; + setModelVersionId(value: string): GetModelVersionEvaluationRequest; + getEvaluationId(): string; + setEvaluationId(value: string): GetModelVersionEvaluationRequest; + + hasFields(): boolean; + clearFields(): void; + getFields(): proto_clarifai_api_resources_pb.FieldsValue | undefined; + setFields(value?: proto_clarifai_api_resources_pb.FieldsValue): GetModelVersionEvaluationRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetModelVersionEvaluationRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModelVersionEvaluationRequest): GetModelVersionEvaluationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetModelVersionEvaluationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModelVersionEvaluationRequest; + static deserializeBinaryFromReader(message: GetModelVersionEvaluationRequest, reader: jspb.BinaryReader): GetModelVersionEvaluationRequest; +} + +export namespace GetModelVersionEvaluationRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + modelVersionId: string, + evaluationId: string, + fields?: proto_clarifai_api_resources_pb.FieldsValue.AsObject, + } +} + +export class SingleEvalMetricsResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleEvalMetricsResponse; + + hasEvalMetrics(): boolean; + clearEvalMetrics(): void; + getEvalMetrics(): proto_clarifai_api_resources_pb.EvalMetrics | undefined; + setEvalMetrics(value?: proto_clarifai_api_resources_pb.EvalMetrics): SingleEvalMetricsResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleEvalMetricsResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleEvalMetricsResponse): SingleEvalMetricsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleEvalMetricsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleEvalMetricsResponse; + static deserializeBinaryFromReader(message: SingleEvalMetricsResponse, reader: jspb.BinaryReader): SingleEvalMetricsResponse; +} + +export namespace SingleEvalMetricsResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + evalMetrics?: proto_clarifai_api_resources_pb.EvalMetrics.AsObject, + } +} + +export class MultiEvalMetricsResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiEvalMetricsResponse; + clearEvalMetricsList(): void; + getEvalMetricsList(): Array; + setEvalMetricsList(value: Array): MultiEvalMetricsResponse; + addEvalMetrics(value?: proto_clarifai_api_resources_pb.EvalMetrics, index?: number): proto_clarifai_api_resources_pb.EvalMetrics; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiEvalMetricsResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiEvalMetricsResponse): MultiEvalMetricsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiEvalMetricsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiEvalMetricsResponse; + static deserializeBinaryFromReader(message: MultiEvalMetricsResponse, reader: jspb.BinaryReader): MultiEvalMetricsResponse; +} + +export namespace MultiEvalMetricsResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + evalMetricsList: Array, + } +} + +export class PostModelVersionMetricsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModelVersionMetricsRequest; + getModelId(): string; + setModelId(value: string): PostModelVersionMetricsRequest; + getVersionId(): string; + setVersionId(value: string): PostModelVersionMetricsRequest; + + hasTestSearch(): boolean; + clearTestSearch(): void; + getTestSearch(): proto_clarifai_api_resources_pb.Search | undefined; + setTestSearch(value?: proto_clarifai_api_resources_pb.Search): PostModelVersionMetricsRequest; + + hasEvalInfo(): boolean; + clearEvalInfo(): void; + getEvalInfo(): proto_clarifai_api_resources_pb.EvalInfo | undefined; + setEvalInfo(value?: proto_clarifai_api_resources_pb.EvalInfo): PostModelVersionMetricsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostModelVersionMetricsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModelVersionMetricsRequest): PostModelVersionMetricsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostModelVersionMetricsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModelVersionMetricsRequest; + static deserializeBinaryFromReader(message: PostModelVersionMetricsRequest, reader: jspb.BinaryReader): PostModelVersionMetricsRequest; +} + +export namespace PostModelVersionMetricsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + versionId: string, + testSearch?: proto_clarifai_api_resources_pb.Search.AsObject, + evalInfo?: proto_clarifai_api_resources_pb.EvalInfo.AsObject, + } +} + +export class GetModelVersionMetricsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelVersionMetricsRequest; + getModelId(): string; + setModelId(value: string): GetModelVersionMetricsRequest; + getVersionId(): string; + setVersionId(value: string): GetModelVersionMetricsRequest; + + hasFields(): boolean; + clearFields(): void; + getFields(): proto_clarifai_api_resources_pb.FieldsValue | undefined; + setFields(value?: proto_clarifai_api_resources_pb.FieldsValue): GetModelVersionMetricsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetModelVersionMetricsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModelVersionMetricsRequest): GetModelVersionMetricsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetModelVersionMetricsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModelVersionMetricsRequest; + static deserializeBinaryFromReader(message: GetModelVersionMetricsRequest, reader: jspb.BinaryReader): GetModelVersionMetricsRequest; +} + +export namespace GetModelVersionMetricsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + versionId: string, + fields?: proto_clarifai_api_resources_pb.FieldsValue.AsObject, + } +} + +export class GetModelTypeRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelTypeRequest; + getModelTypeId(): string; + setModelTypeId(value: string): GetModelTypeRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetModelTypeRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModelTypeRequest): GetModelTypeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetModelTypeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModelTypeRequest; + static deserializeBinaryFromReader(message: GetModelTypeRequest, reader: jspb.BinaryReader): GetModelTypeRequest; +} + +export namespace GetModelTypeRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelTypeId: string, + } +} + +export class ListModelTypesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelTypesRequest; + getPage(): number; + setPage(value: number): ListModelTypesRequest; + getPerPage(): number; + setPerPage(value: number): ListModelTypesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListModelTypesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelTypesRequest): ListModelTypesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListModelTypesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelTypesRequest; + static deserializeBinaryFromReader(message: ListModelTypesRequest, reader: jspb.BinaryReader): ListModelTypesRequest; +} + +export namespace ListModelTypesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + } +} + +export class ListOpenSourceLicensesRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListOpenSourceLicensesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListOpenSourceLicensesRequest): ListOpenSourceLicensesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListOpenSourceLicensesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListOpenSourceLicensesRequest; + static deserializeBinaryFromReader(message: ListOpenSourceLicensesRequest, reader: jspb.BinaryReader): ListOpenSourceLicensesRequest; +} + +export namespace ListOpenSourceLicensesRequest { + export type AsObject = { + } +} + +export class ListOpenSourceLicensesResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): ListOpenSourceLicensesResponse; + clearLicensesList(): void; + getLicensesList(): Array; + setLicensesList(value: Array): ListOpenSourceLicensesResponse; + addLicenses(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListOpenSourceLicensesResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListOpenSourceLicensesResponse): ListOpenSourceLicensesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListOpenSourceLicensesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListOpenSourceLicensesResponse; + static deserializeBinaryFromReader(message: ListOpenSourceLicensesResponse, reader: jspb.BinaryReader): ListOpenSourceLicensesResponse; +} + +export namespace ListOpenSourceLicensesResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + licensesList: Array, + } +} + +export class SingleModelTypeResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelTypeResponse; + + hasModelType(): boolean; + clearModelType(): void; + getModelType(): proto_clarifai_api_resources_pb.ModelType | undefined; + setModelType(value?: proto_clarifai_api_resources_pb.ModelType): SingleModelTypeResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleModelTypeResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleModelTypeResponse): SingleModelTypeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleModelTypeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleModelTypeResponse; + static deserializeBinaryFromReader(message: SingleModelTypeResponse, reader: jspb.BinaryReader): SingleModelTypeResponse; +} + +export namespace SingleModelTypeResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + modelType?: proto_clarifai_api_resources_pb.ModelType.AsObject, + } +} + +export class MultiModelTypeResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelTypeResponse; + clearModelTypesList(): void; + getModelTypesList(): Array; + setModelTypesList(value: Array): MultiModelTypeResponse; + addModelTypes(value?: proto_clarifai_api_resources_pb.ModelType, index?: number): proto_clarifai_api_resources_pb.ModelType; + + hasModelImporters(): boolean; + clearModelImporters(): void; + getModelImporters(): proto_clarifai_api_resources_pb.ModelTypeField | undefined; + setModelImporters(value?: proto_clarifai_api_resources_pb.ModelTypeField): MultiModelTypeResponse; + clearTritonCondaEnvsInfoList(): void; + getTritonCondaEnvsInfoList(): Array; + setTritonCondaEnvsInfoList(value: Array): MultiModelTypeResponse; + addTritonCondaEnvsInfo(value?: proto_clarifai_api_resources_pb.TritonCondaEnvInfo, index?: number): proto_clarifai_api_resources_pb.TritonCondaEnvInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiModelTypeResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelTypeResponse): MultiModelTypeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiModelTypeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelTypeResponse; + static deserializeBinaryFromReader(message: MultiModelTypeResponse, reader: jspb.BinaryReader): MultiModelTypeResponse; +} + +export namespace MultiModelTypeResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + modelTypesList: Array, + modelImporters?: proto_clarifai_api_resources_pb.ModelTypeField.AsObject, + tritonCondaEnvsInfoList: Array, + } +} + +export class GetModelVersionInputExampleRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModelVersionInputExampleRequest; + getModelId(): string; + setModelId(value: string): GetModelVersionInputExampleRequest; + getModelVersionId(): string; + setModelVersionId(value: string): GetModelVersionInputExampleRequest; + getExampleId(): string; + setExampleId(value: string): GetModelVersionInputExampleRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetModelVersionInputExampleRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModelVersionInputExampleRequest): GetModelVersionInputExampleRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetModelVersionInputExampleRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModelVersionInputExampleRequest; + static deserializeBinaryFromReader(message: GetModelVersionInputExampleRequest, reader: jspb.BinaryReader): GetModelVersionInputExampleRequest; +} + +export namespace GetModelVersionInputExampleRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + modelVersionId: string, + exampleId: string, + } +} + +export class ListModelVersionInputExamplesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelVersionInputExamplesRequest; + getModelId(): string; + setModelId(value: string): ListModelVersionInputExamplesRequest; + getModelVersionId(): string; + setModelVersionId(value: string): ListModelVersionInputExamplesRequest; + getPage(): number; + setPage(value: number): ListModelVersionInputExamplesRequest; + getPerPage(): number; + setPerPage(value: number): ListModelVersionInputExamplesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListModelVersionInputExamplesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelVersionInputExamplesRequest): ListModelVersionInputExamplesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListModelVersionInputExamplesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelVersionInputExamplesRequest; + static deserializeBinaryFromReader(message: ListModelVersionInputExamplesRequest, reader: jspb.BinaryReader): ListModelVersionInputExamplesRequest; +} + +export namespace ListModelVersionInputExamplesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + modelVersionId: string, + page: number, + perPage: number, + } +} + +export class SingleModelVersionInputExampleResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModelVersionInputExampleResponse; + + hasModelVersionInputExample(): boolean; + clearModelVersionInputExample(): void; + getModelVersionInputExample(): proto_clarifai_api_resources_pb.ModelVersionInputExample | undefined; + setModelVersionInputExample(value?: proto_clarifai_api_resources_pb.ModelVersionInputExample): SingleModelVersionInputExampleResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleModelVersionInputExampleResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleModelVersionInputExampleResponse): SingleModelVersionInputExampleResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleModelVersionInputExampleResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleModelVersionInputExampleResponse; + static deserializeBinaryFromReader(message: SingleModelVersionInputExampleResponse, reader: jspb.BinaryReader): SingleModelVersionInputExampleResponse; +} + +export namespace SingleModelVersionInputExampleResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + modelVersionInputExample?: proto_clarifai_api_resources_pb.ModelVersionInputExample.AsObject, + } +} + +export class MultiModelVersionInputExampleResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelVersionInputExampleResponse; + clearModelVersionInputExamplesList(): void; + getModelVersionInputExamplesList(): Array; + setModelVersionInputExamplesList(value: Array): MultiModelVersionInputExampleResponse; + addModelVersionInputExamples(value?: proto_clarifai_api_resources_pb.ModelVersionInputExample, index?: number): proto_clarifai_api_resources_pb.ModelVersionInputExample; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiModelVersionInputExampleResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelVersionInputExampleResponse): MultiModelVersionInputExampleResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiModelVersionInputExampleResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelVersionInputExampleResponse; + static deserializeBinaryFromReader(message: MultiModelVersionInputExampleResponse, reader: jspb.BinaryReader): MultiModelVersionInputExampleResponse; +} + +export namespace MultiModelVersionInputExampleResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + modelVersionInputExamplesList: Array, + } +} + +export class ListModelReferencesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModelReferencesRequest; + getModelId(): string; + setModelId(value: string): ListModelReferencesRequest; + getPage(): number; + setPage(value: number): ListModelReferencesRequest; + getPerPage(): number; + setPerPage(value: number): ListModelReferencesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListModelReferencesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModelReferencesRequest): ListModelReferencesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListModelReferencesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModelReferencesRequest; + static deserializeBinaryFromReader(message: ListModelReferencesRequest, reader: jspb.BinaryReader): ListModelReferencesRequest; +} + +export namespace ListModelReferencesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + modelId: string, + page: number, + perPage: number, + } +} + +export class MultiModelReferenceResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModelReferenceResponse; + clearModelReferencesList(): void; + getModelReferencesList(): Array; + setModelReferencesList(value: Array): MultiModelReferenceResponse; + addModelReferences(value?: proto_clarifai_api_resources_pb.ModelReference, index?: number): proto_clarifai_api_resources_pb.ModelReference; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiModelReferenceResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModelReferenceResponse): MultiModelReferenceResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiModelReferenceResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModelReferenceResponse; + static deserializeBinaryFromReader(message: MultiModelReferenceResponse, reader: jspb.BinaryReader): MultiModelReferenceResponse; +} + +export namespace MultiModelReferenceResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + modelReferencesList: Array, + } +} + +export class MultiOutputResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiOutputResponse; + clearOutputsList(): void; + getOutputsList(): Array; + setOutputsList(value: Array): MultiOutputResponse; + addOutputs(value?: proto_clarifai_api_resources_pb.Output, index?: number): proto_clarifai_api_resources_pb.Output; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiOutputResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiOutputResponse): MultiOutputResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiOutputResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiOutputResponse; + static deserializeBinaryFromReader(message: MultiOutputResponse, reader: jspb.BinaryReader): MultiOutputResponse; +} + +export namespace MultiOutputResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + outputsList: Array, + } +} + +export class ListScopesRequest extends jspb.Message { + getKeyType(): string; + setKeyType(value: string): ListScopesRequest; + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListScopesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListScopesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListScopesRequest): ListScopesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListScopesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListScopesRequest; + static deserializeBinaryFromReader(message: ListScopesRequest, reader: jspb.BinaryReader): ListScopesRequest; +} + +export namespace ListScopesRequest { + export type AsObject = { + keyType: string, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + } +} + +export class MyScopesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): MyScopesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyScopesRequest.AsObject; + static toObject(includeInstance: boolean, msg: MyScopesRequest): MyScopesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MyScopesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyScopesRequest; + static deserializeBinaryFromReader(message: MyScopesRequest, reader: jspb.BinaryReader): MyScopesRequest; +} + +export namespace MyScopesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + } +} + +export class MyScopesUserRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): MyScopesUserRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyScopesUserRequest.AsObject; + static toObject(includeInstance: boolean, msg: MyScopesUserRequest): MyScopesUserRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: MyScopesUserRequest, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): MyScopesUserRequest; static deserializeBinaryFromReader(message: MyScopesUserRequest, reader: jspb.BinaryReader): MyScopesUserRequest; } -export namespace MyScopesUserRequest { +export namespace MyScopesUserRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + } +} + +export class MyScopesRootRequest extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MyScopesRootRequest.AsObject; + static toObject(includeInstance: boolean, msg: MyScopesRootRequest): MyScopesRootRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MyScopesRootRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MyScopesRootRequest; + static deserializeBinaryFromReader(message: MyScopesRootRequest, reader: jspb.BinaryReader): MyScopesRootRequest; +} + +export namespace MyScopesRootRequest { + export type AsObject = { + } +} + +export class MultiScopeDepsResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeDepsResponse; + clearScopeDepsList(): void; + getScopeDepsList(): Array; + setScopeDepsList(value: Array): MultiScopeDepsResponse; + addScopeDeps(value?: proto_clarifai_api_resources_pb.ScopeDeps, index?: number): proto_clarifai_api_resources_pb.ScopeDeps; + clearEndpointDepsList(): void; + getEndpointDepsList(): Array; + setEndpointDepsList(value: Array): MultiScopeDepsResponse; + addEndpointDeps(value?: proto_clarifai_api_resources_pb.EndpointDeps, index?: number): proto_clarifai_api_resources_pb.EndpointDeps; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiScopeDepsResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiScopeDepsResponse): MultiScopeDepsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiScopeDepsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiScopeDepsResponse; + static deserializeBinaryFromReader(message: MultiScopeDepsResponse, reader: jspb.BinaryReader): MultiScopeDepsResponse; +} + +export namespace MultiScopeDepsResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + scopeDepsList: Array, + endpointDepsList: Array, + } +} + +export class MultiScopeResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeResponse; + clearScopesList(): void; + getScopesList(): Array; + setScopesList(value: Array): MultiScopeResponse; + addScopes(value: string, index?: number): string; + + hasApp(): boolean; + clearApp(): void; + getApp(): proto_clarifai_api_resources_pb.App | undefined; + setApp(value?: proto_clarifai_api_resources_pb.App): MultiScopeResponse; + clearEndpointsList(): void; + getEndpointsList(): Array; + setEndpointsList(value: Array): MultiScopeResponse; + addEndpoints(value: string, index?: number): string; + getUserFeatureFlags(): string; + setUserFeatureFlags(value: string): MultiScopeResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiScopeResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiScopeResponse): MultiScopeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiScopeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiScopeResponse; + static deserializeBinaryFromReader(message: MultiScopeResponse, reader: jspb.BinaryReader): MultiScopeResponse; +} + +export namespace MultiScopeResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + scopesList: Array, + app?: proto_clarifai_api_resources_pb.App.AsObject, + endpointsList: Array, + userFeatureFlags: string, + } +} + +export class MultiScopeUserResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeUserResponse; + clearScopesList(): void; + getScopesList(): Array; + setScopesList(value: Array): MultiScopeUserResponse; + addScopes(value: string, index?: number): string; + clearEndpointsList(): void; + getEndpointsList(): Array; + setEndpointsList(value: Array): MultiScopeUserResponse; + addEndpoints(value: string, index?: number): string; + getUserFeatureFlags(): string; + setUserFeatureFlags(value: string): MultiScopeUserResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiScopeUserResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiScopeUserResponse): MultiScopeUserResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiScopeUserResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiScopeUserResponse; + static deserializeBinaryFromReader(message: MultiScopeUserResponse, reader: jspb.BinaryReader): MultiScopeUserResponse; +} + +export namespace MultiScopeUserResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + scopesList: Array, + endpointsList: Array, + userFeatureFlags: string, + } +} + +export class MultiScopeRootResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeRootResponse; + clearScopesList(): void; + getScopesList(): Array; + setScopesList(value: Array): MultiScopeRootResponse; + addScopes(value: string, index?: number): string; + clearEndpointsList(): void; + getEndpointsList(): Array; + setEndpointsList(value: Array): MultiScopeRootResponse; + addEndpoints(value: string, index?: number): string; + getUserFeatureFlags(): string; + setUserFeatureFlags(value: string): MultiScopeRootResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiScopeRootResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiScopeRootResponse): MultiScopeRootResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiScopeRootResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiScopeRootResponse; + static deserializeBinaryFromReader(message: MultiScopeRootResponse, reader: jspb.BinaryReader): MultiScopeRootResponse; +} + +export namespace MultiScopeRootResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + scopesList: Array, + endpointsList: Array, + userFeatureFlags: string, + } +} + +export class GetSearchRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetSearchRequest; + getId(): string; + setId(value: string): GetSearchRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSearchRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetSearchRequest): GetSearchRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSearchRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSearchRequest; + static deserializeBinaryFromReader(message: GetSearchRequest, reader: jspb.BinaryReader): GetSearchRequest; +} + +export namespace GetSearchRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + } +} + +export class ListSearchesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListSearchesRequest; + getPage(): number; + setPage(value: number): ListSearchesRequest; + getPerPage(): number; + setPerPage(value: number): ListSearchesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListSearchesRequest): ListSearchesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSearchesRequest; + static deserializeBinaryFromReader(message: ListSearchesRequest, reader: jspb.BinaryReader): ListSearchesRequest; +} + +export namespace ListSearchesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + } +} + +export class PostSearchesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostSearchesRequest; + + hasQuery(): boolean; + clearQuery(): void; + getQuery(): proto_clarifai_api_resources_pb.Query | undefined; + setQuery(value?: proto_clarifai_api_resources_pb.Query): PostSearchesRequest; + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): PostSearchesRequest; + addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): Pagination | undefined; + setPagination(value?: Pagination): PostSearchesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostSearchesRequest): PostSearchesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostSearchesRequest; + static deserializeBinaryFromReader(message: PostSearchesRequest, reader: jspb.BinaryReader): PostSearchesRequest; +} + +export namespace PostSearchesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + query?: proto_clarifai_api_resources_pb.Query.AsObject, + searchesList: Array, + pagination?: Pagination.AsObject, + } +} + +export class PatchInputsSearchesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchInputsSearchesRequest; + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): PatchInputsSearchesRequest; + addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + getAction(): string; + setAction(value: string): PatchInputsSearchesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchInputsSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchInputsSearchesRequest): PatchInputsSearchesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchInputsSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchInputsSearchesRequest; + static deserializeBinaryFromReader(message: PatchInputsSearchesRequest, reader: jspb.BinaryReader): PatchInputsSearchesRequest; +} + +export namespace PatchInputsSearchesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + searchesList: Array, + action: string, + } +} + +export class PatchAnnotationsSearchesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchAnnotationsSearchesRequest; + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): PatchAnnotationsSearchesRequest; + addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + getAction(): string; + setAction(value: string): PatchAnnotationsSearchesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchAnnotationsSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchAnnotationsSearchesRequest): PatchAnnotationsSearchesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchAnnotationsSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchAnnotationsSearchesRequest; + static deserializeBinaryFromReader(message: PatchAnnotationsSearchesRequest, reader: jspb.BinaryReader): PatchAnnotationsSearchesRequest; +} + +export namespace PatchAnnotationsSearchesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + searchesList: Array, + action: string, + } +} + +export class PatchSearchesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchSearchesRequest; + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): PatchSearchesRequest; + addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + getAction(): string; + setAction(value: string): PatchSearchesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchSearchesRequest): PatchSearchesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchSearchesRequest; + static deserializeBinaryFromReader(message: PatchSearchesRequest, reader: jspb.BinaryReader): PatchSearchesRequest; +} + +export namespace PatchSearchesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + searchesList: Array, + action: string, + } +} + +export class PostSearchesByIDRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostSearchesByIDRequest; + getId(): string; + setId(value: string): PostSearchesByIDRequest; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): Pagination | undefined; + setPagination(value?: Pagination): PostSearchesByIDRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostSearchesByIDRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostSearchesByIDRequest): PostSearchesByIDRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostSearchesByIDRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostSearchesByIDRequest; + static deserializeBinaryFromReader(message: PostSearchesByIDRequest, reader: jspb.BinaryReader): PostSearchesByIDRequest; +} + +export namespace PostSearchesByIDRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + pagination?: Pagination.AsObject, + } +} + +export class DeleteSearchRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteSearchRequest; + getId(): string; + setId(value: string): DeleteSearchRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSearchRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSearchRequest): DeleteSearchRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSearchRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSearchRequest; + static deserializeBinaryFromReader(message: DeleteSearchRequest, reader: jspb.BinaryReader): DeleteSearchRequest; +} + +export namespace DeleteSearchRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + } +} + +export class PostAnnotationsSearchesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationsSearchesRequest; + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): PostAnnotationsSearchesRequest; + addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): Pagination | undefined; + setPagination(value?: Pagination): PostAnnotationsSearchesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostAnnotationsSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostAnnotationsSearchesRequest): PostAnnotationsSearchesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostAnnotationsSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostAnnotationsSearchesRequest; + static deserializeBinaryFromReader(message: PostAnnotationsSearchesRequest, reader: jspb.BinaryReader): PostAnnotationsSearchesRequest; +} + +export namespace PostAnnotationsSearchesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + searchesList: Array, + pagination?: Pagination.AsObject, + } +} + +export class DeleteAnnotationSearchMetricsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteAnnotationSearchMetricsRequest; + getId(): string; + setId(value: string): DeleteAnnotationSearchMetricsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAnnotationSearchMetricsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAnnotationSearchMetricsRequest): DeleteAnnotationSearchMetricsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAnnotationSearchMetricsRequest; + static deserializeBinaryFromReader(message: DeleteAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): DeleteAnnotationSearchMetricsRequest; +} + +export namespace DeleteAnnotationSearchMetricsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + } +} + +export class PostInputsSearchesRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostInputsSearchesRequest; + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): PostInputsSearchesRequest; + addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + + hasPagination(): boolean; + clearPagination(): void; + getPagination(): Pagination | undefined; + setPagination(value?: Pagination): PostInputsSearchesRequest; + getOnlyCount(): boolean; + setOnlyCount(value: boolean): PostInputsSearchesRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostInputsSearchesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostInputsSearchesRequest): PostInputsSearchesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostInputsSearchesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostInputsSearchesRequest; + static deserializeBinaryFromReader(message: PostInputsSearchesRequest, reader: jspb.BinaryReader): PostInputsSearchesRequest; +} + +export namespace PostInputsSearchesRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + searchesList: Array, + pagination?: Pagination.AsObject, + onlyCount: boolean, + } +} + +export class SingleSearchResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleSearchResponse; + + hasSearch(): boolean; + clearSearch(): void; + getSearch(): proto_clarifai_api_resources_pb.Search | undefined; + setSearch(value?: proto_clarifai_api_resources_pb.Search): SingleSearchResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleSearchResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleSearchResponse): SingleSearchResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleSearchResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleSearchResponse; + static deserializeBinaryFromReader(message: SingleSearchResponse, reader: jspb.BinaryReader): SingleSearchResponse; +} + +export namespace SingleSearchResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + search?: proto_clarifai_api_resources_pb.Search.AsObject, + } +} + +export class MultiSearchResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiSearchResponse; + getId(): string; + setId(value: string): MultiSearchResponse; + clearHitsList(): void; + getHitsList(): Array; + setHitsList(value: Array): MultiSearchResponse; + addHits(value?: proto_clarifai_api_resources_pb.Hit, index?: number): proto_clarifai_api_resources_pb.Hit; + + hasQuery(): boolean; + clearQuery(): void; + getQuery(): proto_clarifai_api_resources_pb.Query | undefined; + setQuery(value?: proto_clarifai_api_resources_pb.Query): MultiSearchResponse; + clearSearchesList(): void; + getSearchesList(): Array; + setSearchesList(value: Array): MultiSearchResponse; + addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + clearHitCountsList(): void; + getHitCountsList(): Array; + setHitCountsList(value: Array): MultiSearchResponse; + addHitCounts(value?: proto_clarifai_api_resources_pb.HitCount, index?: number): proto_clarifai_api_resources_pb.HitCount; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiSearchResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiSearchResponse): MultiSearchResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiSearchResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiSearchResponse; + static deserializeBinaryFromReader(message: MultiSearchResponse, reader: jspb.BinaryReader): MultiSearchResponse; +} + +export namespace MultiSearchResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + id: string, + hitsList: Array, + query?: proto_clarifai_api_resources_pb.Query.AsObject, + searchesList: Array, + hitCountsList: Array, + } +} + +export class PostAnnotationSearchMetricsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationSearchMetricsRequest; + getId(): string; + setId(value: string): PostAnnotationSearchMetricsRequest; + + hasGroundTruth(): boolean; + clearGroundTruth(): void; + getGroundTruth(): proto_clarifai_api_resources_pb.Search | undefined; + setGroundTruth(value?: proto_clarifai_api_resources_pb.Search): PostAnnotationSearchMetricsRequest; + + hasSearchToEval(): boolean; + clearSearchToEval(): void; + getSearchToEval(): proto_clarifai_api_resources_pb.Search | undefined; + setSearchToEval(value?: proto_clarifai_api_resources_pb.Search): PostAnnotationSearchMetricsRequest; + + hasData(): boolean; + clearData(): void; + getData(): proto_clarifai_api_resources_pb.Data | undefined; + setData(value?: proto_clarifai_api_resources_pb.Data): PostAnnotationSearchMetricsRequest; + getEvaluationType(): proto_clarifai_api_resources_pb.EvaluationType; + setEvaluationType(value: proto_clarifai_api_resources_pb.EvaluationType): PostAnnotationSearchMetricsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostAnnotationSearchMetricsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostAnnotationSearchMetricsRequest): PostAnnotationSearchMetricsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostAnnotationSearchMetricsRequest; + static deserializeBinaryFromReader(message: PostAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): PostAnnotationSearchMetricsRequest; +} + +export namespace PostAnnotationSearchMetricsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + groundTruth?: proto_clarifai_api_resources_pb.Search.AsObject, + searchToEval?: proto_clarifai_api_resources_pb.Search.AsObject, + data?: proto_clarifai_api_resources_pb.Data.AsObject, + evaluationType: proto_clarifai_api_resources_pb.EvaluationType, + } +} + +export class GetAnnotationSearchMetricsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetAnnotationSearchMetricsRequest; + getId(): string; + setId(value: string): GetAnnotationSearchMetricsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAnnotationSearchMetricsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAnnotationSearchMetricsRequest): GetAnnotationSearchMetricsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAnnotationSearchMetricsRequest; + static deserializeBinaryFromReader(message: GetAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): GetAnnotationSearchMetricsRequest; +} + +export namespace GetAnnotationSearchMetricsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + } +} + +export class ListAnnotationSearchMetricsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAnnotationSearchMetricsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListAnnotationSearchMetricsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListAnnotationSearchMetricsRequest): ListAnnotationSearchMetricsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAnnotationSearchMetricsRequest; + static deserializeBinaryFromReader(message: ListAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): ListAnnotationSearchMetricsRequest; +} + +export namespace ListAnnotationSearchMetricsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + } +} + +export class MultiAnnotationSearchMetricsResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiAnnotationSearchMetricsResponse; + clearAnnotationSearchMetricsList(): void; + getAnnotationSearchMetricsList(): Array; + setAnnotationSearchMetricsList(value: Array): MultiAnnotationSearchMetricsResponse; + addAnnotationSearchMetrics(value?: proto_clarifai_api_resources_pb.AnnotationSearchMetrics, index?: number): proto_clarifai_api_resources_pb.AnnotationSearchMetrics; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiAnnotationSearchMetricsResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiAnnotationSearchMetricsResponse): MultiAnnotationSearchMetricsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiAnnotationSearchMetricsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiAnnotationSearchMetricsResponse; + static deserializeBinaryFromReader(message: MultiAnnotationSearchMetricsResponse, reader: jspb.BinaryReader): MultiAnnotationSearchMetricsResponse; +} + +export namespace MultiAnnotationSearchMetricsResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + annotationSearchMetricsList: Array, + } +} + +export class ListAnnotationFiltersRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAnnotationFiltersRequest; + getPage(): number; + setPage(value: number): ListAnnotationFiltersRequest; + getPerPage(): number; + setPerPage(value: number): ListAnnotationFiltersRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListAnnotationFiltersRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListAnnotationFiltersRequest): ListAnnotationFiltersRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListAnnotationFiltersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAnnotationFiltersRequest; + static deserializeBinaryFromReader(message: ListAnnotationFiltersRequest, reader: jspb.BinaryReader): ListAnnotationFiltersRequest; +} + +export namespace ListAnnotationFiltersRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + } +} + +export class GetAnnotationFilterRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetAnnotationFilterRequest; + getAnnotationFilterId(): string; + setAnnotationFilterId(value: string): GetAnnotationFilterRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAnnotationFilterRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAnnotationFilterRequest): GetAnnotationFilterRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAnnotationFilterRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAnnotationFilterRequest; + static deserializeBinaryFromReader(message: GetAnnotationFilterRequest, reader: jspb.BinaryReader): GetAnnotationFilterRequest; +} + +export namespace GetAnnotationFilterRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + annotationFilterId: string, + } +} + +export class PostAnnotationFiltersRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationFiltersRequest; + clearAnnotationFiltersList(): void; + getAnnotationFiltersList(): Array; + setAnnotationFiltersList(value: Array): PostAnnotationFiltersRequest; + addAnnotationFilters(value?: proto_clarifai_api_resources_pb.AnnotationFilter, index?: number): proto_clarifai_api_resources_pb.AnnotationFilter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostAnnotationFiltersRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostAnnotationFiltersRequest): PostAnnotationFiltersRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostAnnotationFiltersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostAnnotationFiltersRequest; + static deserializeBinaryFromReader(message: PostAnnotationFiltersRequest, reader: jspb.BinaryReader): PostAnnotationFiltersRequest; +} + +export namespace PostAnnotationFiltersRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + annotationFiltersList: Array, + } +} + +export class PatchAnnotationFiltersRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchAnnotationFiltersRequest; + clearAnnotationFiltersList(): void; + getAnnotationFiltersList(): Array; + setAnnotationFiltersList(value: Array): PatchAnnotationFiltersRequest; + addAnnotationFilters(value?: proto_clarifai_api_resources_pb.AnnotationFilter, index?: number): proto_clarifai_api_resources_pb.AnnotationFilter; + getAction(): string; + setAction(value: string): PatchAnnotationFiltersRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchAnnotationFiltersRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchAnnotationFiltersRequest): PatchAnnotationFiltersRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchAnnotationFiltersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchAnnotationFiltersRequest; + static deserializeBinaryFromReader(message: PatchAnnotationFiltersRequest, reader: jspb.BinaryReader): PatchAnnotationFiltersRequest; +} + +export namespace PatchAnnotationFiltersRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + annotationFiltersList: Array, + action: string, + } +} + +export class DeleteAnnotationFiltersRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteAnnotationFiltersRequest; + clearAnnotationFilterIdsList(): void; + getAnnotationFilterIdsList(): Array; + setAnnotationFilterIdsList(value: Array): DeleteAnnotationFiltersRequest; + addAnnotationFilterIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteAnnotationFiltersRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteAnnotationFiltersRequest): DeleteAnnotationFiltersRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteAnnotationFiltersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteAnnotationFiltersRequest; + static deserializeBinaryFromReader(message: DeleteAnnotationFiltersRequest, reader: jspb.BinaryReader): DeleteAnnotationFiltersRequest; +} + +export namespace DeleteAnnotationFiltersRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + annotationFilterIdsList: Array, + } +} + +export class MultiAnnotationFilterResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiAnnotationFilterResponse; + clearAnnotationFiltersList(): void; + getAnnotationFiltersList(): Array; + setAnnotationFiltersList(value: Array): MultiAnnotationFilterResponse; + addAnnotationFilters(value?: proto_clarifai_api_resources_pb.AnnotationFilter, index?: number): proto_clarifai_api_resources_pb.AnnotationFilter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiAnnotationFilterResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiAnnotationFilterResponse): MultiAnnotationFilterResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiAnnotationFilterResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiAnnotationFilterResponse; + static deserializeBinaryFromReader(message: MultiAnnotationFilterResponse, reader: jspb.BinaryReader): MultiAnnotationFilterResponse; +} + +export namespace MultiAnnotationFilterResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + annotationFiltersList: Array, + } +} + +export class SingleAnnotationFilterResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleAnnotationFilterResponse; + + hasAnnotationFilter(): boolean; + clearAnnotationFilter(): void; + getAnnotationFilter(): proto_clarifai_api_resources_pb.AnnotationFilter | undefined; + setAnnotationFilter(value?: proto_clarifai_api_resources_pb.AnnotationFilter): SingleAnnotationFilterResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleAnnotationFilterResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleAnnotationFilterResponse): SingleAnnotationFilterResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleAnnotationFilterResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleAnnotationFilterResponse; + static deserializeBinaryFromReader(message: SingleAnnotationFilterResponse, reader: jspb.BinaryReader): SingleAnnotationFilterResponse; +} + +export namespace SingleAnnotationFilterResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + annotationFilter?: proto_clarifai_api_resources_pb.AnnotationFilter.AsObject, + } +} + +export class GetUserRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetUserRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): GetUserRequest; + addAdditionalFields(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetUserRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetUserRequest): GetUserRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetUserRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetUserRequest; + static deserializeBinaryFromReader(message: GetUserRequest, reader: jspb.BinaryReader): GetUserRequest; +} + +export namespace GetUserRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + additionalFieldsList: Array, + } +} + +export class SingleUserResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleUserResponse; + + hasUser(): boolean; + clearUser(): void; + getUser(): proto_clarifai_api_resources_pb.User | undefined; + setUser(value?: proto_clarifai_api_resources_pb.User): SingleUserResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleUserResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleUserResponse): SingleUserResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleUserResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleUserResponse; + static deserializeBinaryFromReader(message: SingleUserResponse, reader: jspb.BinaryReader): SingleUserResponse; +} + +export namespace SingleUserResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + user?: proto_clarifai_api_resources_pb.User.AsObject, + } +} + +export class PostValidatePasswordRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostValidatePasswordRequest; + + hasPassword(): boolean; + clearPassword(): void; + getPassword(): proto_clarifai_api_resources_pb.Password | undefined; + setPassword(value?: proto_clarifai_api_resources_pb.Password): PostValidatePasswordRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostValidatePasswordRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostValidatePasswordRequest): PostValidatePasswordRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostValidatePasswordRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostValidatePasswordRequest; + static deserializeBinaryFromReader(message: PostValidatePasswordRequest, reader: jspb.BinaryReader): PostValidatePasswordRequest; +} + +export namespace PostValidatePasswordRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + password?: proto_clarifai_api_resources_pb.Password.AsObject, + } +} + +export class SinglePasswordValidationResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SinglePasswordValidationResponse; + + hasPasswordViolations(): boolean; + clearPasswordViolations(): void; + getPasswordViolations(): proto_clarifai_api_resources_pb.PasswordViolations | undefined; + setPasswordViolations(value?: proto_clarifai_api_resources_pb.PasswordViolations): SinglePasswordValidationResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SinglePasswordValidationResponse.AsObject; + static toObject(includeInstance: boolean, msg: SinglePasswordValidationResponse): SinglePasswordValidationResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SinglePasswordValidationResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SinglePasswordValidationResponse; + static deserializeBinaryFromReader(message: SinglePasswordValidationResponse, reader: jspb.BinaryReader): SinglePasswordValidationResponse; +} + +export namespace SinglePasswordValidationResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + passwordViolations?: proto_clarifai_api_resources_pb.PasswordViolations.AsObject, + } +} + +export class GetWorkflowRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetWorkflowRequest; + getWorkflowId(): string; + setWorkflowId(value: string): GetWorkflowRequest; + getFavorClarifaiWorkflows(): boolean; + setFavorClarifaiWorkflows(value: boolean): GetWorkflowRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): GetWorkflowRequest; + addAdditionalFields(value: string, index?: number): string; + getExcludeClarifaiWorkflows(): boolean; + setExcludeClarifaiWorkflows(value: boolean): GetWorkflowRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetWorkflowRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetWorkflowRequest): GetWorkflowRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetWorkflowRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetWorkflowRequest; + static deserializeBinaryFromReader(message: GetWorkflowRequest, reader: jspb.BinaryReader): GetWorkflowRequest; +} + +export namespace GetWorkflowRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + favorClarifaiWorkflows: boolean, + additionalFieldsList: Array, + excludeClarifaiWorkflows: boolean, + } +} + +export class ListWorkflowsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListWorkflowsRequest; + getPage(): number; + setPage(value: number): ListWorkflowsRequest; + getPerPage(): number; + setPerPage(value: number): ListWorkflowsRequest; + getSortAscending(): boolean; + setSortAscending(value: boolean): ListWorkflowsRequest; + + hasSortById(): boolean; + clearSortById(): void; + getSortById(): boolean; + setSortById(value: boolean): ListWorkflowsRequest; + + hasSortByModifiedAt(): boolean; + clearSortByModifiedAt(): void; + getSortByModifiedAt(): boolean; + setSortByModifiedAt(value: boolean): ListWorkflowsRequest; + + hasSortByCreatedAt(): boolean; + clearSortByCreatedAt(): void; + getSortByCreatedAt(): boolean; + setSortByCreatedAt(value: boolean): ListWorkflowsRequest; + + hasSortByStarCount(): boolean; + clearSortByStarCount(): void; + getSortByStarCount(): boolean; + setSortByStarCount(value: boolean): ListWorkflowsRequest; + getQuery(): string; + setQuery(value: string): ListWorkflowsRequest; + getId(): string; + setId(value: string): ListWorkflowsRequest; + getFeaturedOnly(): boolean; + setFeaturedOnly(value: boolean): ListWorkflowsRequest; + getStarredOnly(): boolean; + setStarredOnly(value: boolean): ListWorkflowsRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): ListWorkflowsRequest; + addAdditionalFields(value: string, index?: number): string; + getSearchTerm(): string; + setSearchTerm(value: string): ListWorkflowsRequest; + getBookmark(): boolean; + setBookmark(value: boolean): ListWorkflowsRequest; + + getSortByCase(): ListWorkflowsRequest.SortByCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListWorkflowsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListWorkflowsRequest): ListWorkflowsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListWorkflowsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListWorkflowsRequest; + static deserializeBinaryFromReader(message: ListWorkflowsRequest, reader: jspb.BinaryReader): ListWorkflowsRequest; +} + +export namespace ListWorkflowsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + sortAscending: boolean, + sortById: boolean, + sortByModifiedAt: boolean, + sortByCreatedAt: boolean, + sortByStarCount: boolean, + query: string, + id: string, + featuredOnly: boolean, + starredOnly: boolean, + additionalFieldsList: Array, + searchTerm: string, + bookmark: boolean, + } + + export enum SortByCase { + SORT_BY_NOT_SET = 0, + SORT_BY_ID = 6, + SORT_BY_MODIFIED_AT = 7, + SORT_BY_CREATED_AT = 13, + SORT_BY_STAR_COUNT = 14, + } + +} + +export class PostWorkflowsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowsRequest; + clearWorkflowsList(): void; + getWorkflowsList(): Array; + setWorkflowsList(value: Array): PostWorkflowsRequest; + addWorkflows(value?: proto_clarifai_api_resources_pb.Workflow, index?: number): proto_clarifai_api_resources_pb.Workflow; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostWorkflowsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostWorkflowsRequest): PostWorkflowsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostWorkflowsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostWorkflowsRequest; + static deserializeBinaryFromReader(message: PostWorkflowsRequest, reader: jspb.BinaryReader): PostWorkflowsRequest; +} + +export namespace PostWorkflowsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowsList: Array, + } +} + +export class PatchWorkflowsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchWorkflowsRequest; + clearWorkflowsList(): void; + getWorkflowsList(): Array; + setWorkflowsList(value: Array): PatchWorkflowsRequest; + addWorkflows(value?: proto_clarifai_api_resources_pb.Workflow, index?: number): proto_clarifai_api_resources_pb.Workflow; + getAction(): string; + setAction(value: string): PatchWorkflowsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchWorkflowsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchWorkflowsRequest): PatchWorkflowsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchWorkflowsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchWorkflowsRequest; + static deserializeBinaryFromReader(message: PatchWorkflowsRequest, reader: jspb.BinaryReader): PatchWorkflowsRequest; +} + +export namespace PatchWorkflowsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowsList: Array, + action: string, + } +} + +export class PatchWorkflowIdsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchWorkflowIdsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): PatchWorkflowIdsRequest; + addIds(value?: IdUpdateSource, index?: number): IdUpdateSource; + getAction(): string; + setAction(value: string): PatchWorkflowIdsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchWorkflowIdsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchWorkflowIdsRequest): PatchWorkflowIdsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchWorkflowIdsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchWorkflowIdsRequest; + static deserializeBinaryFromReader(message: PatchWorkflowIdsRequest, reader: jspb.BinaryReader): PatchWorkflowIdsRequest; +} + +export namespace PatchWorkflowIdsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, + action: string, + } +} + +export class DeleteWorkflowRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteWorkflowRequest; + getWorkflowId(): string; + setWorkflowId(value: string): DeleteWorkflowRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteWorkflowRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteWorkflowRequest): DeleteWorkflowRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteWorkflowRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteWorkflowRequest; + static deserializeBinaryFromReader(message: DeleteWorkflowRequest, reader: jspb.BinaryReader): DeleteWorkflowRequest; +} + +export namespace DeleteWorkflowRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + } +} + +export class DeleteWorkflowsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteWorkflowsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteWorkflowsRequest; + addIds(value: string, index?: number): string; + getDeleteAll(): boolean; + setDeleteAll(value: boolean): DeleteWorkflowsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteWorkflowsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteWorkflowsRequest): DeleteWorkflowsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteWorkflowsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteWorkflowsRequest; + static deserializeBinaryFromReader(message: DeleteWorkflowsRequest, reader: jspb.BinaryReader): DeleteWorkflowsRequest; +} + +export namespace DeleteWorkflowsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, + deleteAll: boolean, + } +} + +export class SingleWorkflowResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleWorkflowResponse; + + hasWorkflow(): boolean; + clearWorkflow(): void; + getWorkflow(): proto_clarifai_api_resources_pb.Workflow | undefined; + setWorkflow(value?: proto_clarifai_api_resources_pb.Workflow): SingleWorkflowResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleWorkflowResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleWorkflowResponse): SingleWorkflowResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleWorkflowResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleWorkflowResponse; + static deserializeBinaryFromReader(message: SingleWorkflowResponse, reader: jspb.BinaryReader): SingleWorkflowResponse; +} + +export namespace SingleWorkflowResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + workflow?: proto_clarifai_api_resources_pb.Workflow.AsObject, + } +} + +export class MultiWorkflowResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiWorkflowResponse; + clearWorkflowsList(): void; + getWorkflowsList(): Array; + setWorkflowsList(value: Array): MultiWorkflowResponse; + addWorkflows(value?: proto_clarifai_api_resources_pb.Workflow, index?: number): proto_clarifai_api_resources_pb.Workflow; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiWorkflowResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiWorkflowResponse): MultiWorkflowResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiWorkflowResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiWorkflowResponse; + static deserializeBinaryFromReader(message: MultiWorkflowResponse, reader: jspb.BinaryReader): MultiWorkflowResponse; +} + +export namespace MultiWorkflowResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + workflowsList: Array, + } +} + +export class PostWorkflowResultsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowResultsRequest; + getWorkflowId(): string; + setWorkflowId(value: string): PostWorkflowResultsRequest; + getVersionId(): string; + setVersionId(value: string): PostWorkflowResultsRequest; + clearInputsList(): void; + getInputsList(): Array; + setInputsList(value: Array): PostWorkflowResultsRequest; + addInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; + + hasOutputConfig(): boolean; + clearOutputConfig(): void; + getOutputConfig(): proto_clarifai_api_resources_pb.OutputConfig | undefined; + setOutputConfig(value?: proto_clarifai_api_resources_pb.OutputConfig): PostWorkflowResultsRequest; + getFavorClarifaiWorkflows(): boolean; + setFavorClarifaiWorkflows(value: boolean): PostWorkflowResultsRequest; + + hasWorkflowState(): boolean; + clearWorkflowState(): void; + getWorkflowState(): proto_clarifai_api_resources_pb.WorkflowState | undefined; + setWorkflowState(value?: proto_clarifai_api_resources_pb.WorkflowState): PostWorkflowResultsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostWorkflowResultsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostWorkflowResultsRequest): PostWorkflowResultsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostWorkflowResultsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsRequest; + static deserializeBinaryFromReader(message: PostWorkflowResultsRequest, reader: jspb.BinaryReader): PostWorkflowResultsRequest; +} + +export namespace PostWorkflowResultsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + versionId: string, + inputsList: Array, + outputConfig?: proto_clarifai_api_resources_pb.OutputConfig.AsObject, + favorClarifaiWorkflows: boolean, + workflowState?: proto_clarifai_api_resources_pb.WorkflowState.AsObject, + } +} + +export class PostWorkflowResultsResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): PostWorkflowResultsResponse; + + hasWorkflow(): boolean; + clearWorkflow(): void; + getWorkflow(): proto_clarifai_api_resources_pb.Workflow | undefined; + setWorkflow(value?: proto_clarifai_api_resources_pb.Workflow): PostWorkflowResultsResponse; + clearResultsList(): void; + getResultsList(): Array; + setResultsList(value: Array): PostWorkflowResultsResponse; + addResults(value?: proto_clarifai_api_resources_pb.WorkflowResult, index?: number): proto_clarifai_api_resources_pb.WorkflowResult; + + hasWorkflowState(): boolean; + clearWorkflowState(): void; + getWorkflowState(): proto_clarifai_api_resources_pb.WorkflowState | undefined; + setWorkflowState(value?: proto_clarifai_api_resources_pb.WorkflowState): PostWorkflowResultsResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostWorkflowResultsResponse.AsObject; + static toObject(includeInstance: boolean, msg: PostWorkflowResultsResponse): PostWorkflowResultsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostWorkflowResultsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsResponse; + static deserializeBinaryFromReader(message: PostWorkflowResultsResponse, reader: jspb.BinaryReader): PostWorkflowResultsResponse; +} + +export namespace PostWorkflowResultsResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + workflow?: proto_clarifai_api_resources_pb.Workflow.AsObject, + resultsList: Array, + workflowState?: proto_clarifai_api_resources_pb.WorkflowState.AsObject, + } +} + +export class PostWorkflowResultsSimilarityRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowResultsSimilarityRequest; + getWorkflowId(): string; + setWorkflowId(value: string): PostWorkflowResultsSimilarityRequest; + getVersionId(): string; + setVersionId(value: string): PostWorkflowResultsSimilarityRequest; + getModelVersionId(): string; + setModelVersionId(value: string): PostWorkflowResultsSimilarityRequest; + clearProbeInputsList(): void; + getProbeInputsList(): Array; + setProbeInputsList(value: Array): PostWorkflowResultsSimilarityRequest; + addProbeInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; + clearPoolInputsList(): void; + getPoolInputsList(): Array; + setPoolInputsList(value: Array): PostWorkflowResultsSimilarityRequest; + addPoolInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; + getFavorClarifaiWorkflows(): boolean; + setFavorClarifaiWorkflows(value: boolean): PostWorkflowResultsSimilarityRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostWorkflowResultsSimilarityRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostWorkflowResultsSimilarityRequest): PostWorkflowResultsSimilarityRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostWorkflowResultsSimilarityRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsSimilarityRequest; + static deserializeBinaryFromReader(message: PostWorkflowResultsSimilarityRequest, reader: jspb.BinaryReader): PostWorkflowResultsSimilarityRequest; +} + +export namespace PostWorkflowResultsSimilarityRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + versionId: string, + modelVersionId: string, + probeInputsList: Array, + poolInputsList: Array, + favorClarifaiWorkflows: boolean, + } +} + +export class PostWorkflowResultsSimilarityResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): PostWorkflowResultsSimilarityResponse; + clearResultsList(): void; + getResultsList(): Array; + setResultsList(value: Array): PostWorkflowResultsSimilarityResponse; + addResults(value?: proto_clarifai_api_resources_pb.WorkflowResultsSimilarity, index?: number): proto_clarifai_api_resources_pb.WorkflowResultsSimilarity; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostWorkflowResultsSimilarityResponse.AsObject; + static toObject(includeInstance: boolean, msg: PostWorkflowResultsSimilarityResponse): PostWorkflowResultsSimilarityResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostWorkflowResultsSimilarityResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsSimilarityResponse; + static deserializeBinaryFromReader(message: PostWorkflowResultsSimilarityResponse, reader: jspb.BinaryReader): PostWorkflowResultsSimilarityResponse; +} + +export namespace PostWorkflowResultsSimilarityResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + resultsList: Array, + } +} + +export class ListWorkflowVersionsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListWorkflowVersionsRequest; + getWorkflowId(): string; + setWorkflowId(value: string): ListWorkflowVersionsRequest; + getPage(): number; + setPage(value: number): ListWorkflowVersionsRequest; + getPerPage(): number; + setPerPage(value: number): ListWorkflowVersionsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListWorkflowVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListWorkflowVersionsRequest): ListWorkflowVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListWorkflowVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListWorkflowVersionsRequest; + static deserializeBinaryFromReader(message: ListWorkflowVersionsRequest, reader: jspb.BinaryReader): ListWorkflowVersionsRequest; +} + +export namespace ListWorkflowVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + page: number, + perPage: number, + } +} + +export class GetWorkflowVersionRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetWorkflowVersionRequest; + getWorkflowId(): string; + setWorkflowId(value: string): GetWorkflowVersionRequest; + getWorkflowVersionId(): string; + setWorkflowVersionId(value: string): GetWorkflowVersionRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetWorkflowVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetWorkflowVersionRequest): GetWorkflowVersionRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetWorkflowVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetWorkflowVersionRequest; + static deserializeBinaryFromReader(message: GetWorkflowVersionRequest, reader: jspb.BinaryReader): GetWorkflowVersionRequest; +} + +export namespace GetWorkflowVersionRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + workflowVersionId: string, + } +} + +export class DeleteWorkflowVersionsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteWorkflowVersionsRequest; + getWorkflowId(): string; + setWorkflowId(value: string): DeleteWorkflowVersionsRequest; + clearWorkflowVersionIdsList(): void; + getWorkflowVersionIdsList(): Array; + setWorkflowVersionIdsList(value: Array): DeleteWorkflowVersionsRequest; + addWorkflowVersionIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteWorkflowVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteWorkflowVersionsRequest): DeleteWorkflowVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteWorkflowVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteWorkflowVersionsRequest; + static deserializeBinaryFromReader(message: DeleteWorkflowVersionsRequest, reader: jspb.BinaryReader): DeleteWorkflowVersionsRequest; +} + +export namespace DeleteWorkflowVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + workflowVersionIdsList: Array, + } +} + +export class PatchWorkflowVersionsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchWorkflowVersionsRequest; + getWorkflowId(): string; + setWorkflowId(value: string): PatchWorkflowVersionsRequest; + clearWorkflowVersionsList(): void; + getWorkflowVersionsList(): Array; + setWorkflowVersionsList(value: Array): PatchWorkflowVersionsRequest; + addWorkflowVersions(value?: proto_clarifai_api_resources_pb.WorkflowVersion, index?: number): proto_clarifai_api_resources_pb.WorkflowVersion; + getAction(): string; + setAction(value: string): PatchWorkflowVersionsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchWorkflowVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchWorkflowVersionsRequest): PatchWorkflowVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchWorkflowVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchWorkflowVersionsRequest; + static deserializeBinaryFromReader(message: PatchWorkflowVersionsRequest, reader: jspb.BinaryReader): PatchWorkflowVersionsRequest; +} + +export namespace PatchWorkflowVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + workflowId: string, + workflowVersionsList: Array, + action: string, + } +} + +export class MultiWorkflowVersionResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiWorkflowVersionResponse; + clearWorkflowVersionsList(): void; + getWorkflowVersionsList(): Array; + setWorkflowVersionsList(value: Array): MultiWorkflowVersionResponse; + addWorkflowVersions(value?: proto_clarifai_api_resources_pb.WorkflowVersion, index?: number): proto_clarifai_api_resources_pb.WorkflowVersion; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiWorkflowVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiWorkflowVersionResponse): MultiWorkflowVersionResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiWorkflowVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiWorkflowVersionResponse; + static deserializeBinaryFromReader(message: MultiWorkflowVersionResponse, reader: jspb.BinaryReader): MultiWorkflowVersionResponse; +} + +export namespace MultiWorkflowVersionResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + workflowVersionsList: Array, + } +} + +export class SingleWorkflowVersionResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleWorkflowVersionResponse; + + hasWorkflowVersion(): boolean; + clearWorkflowVersion(): void; + getWorkflowVersion(): proto_clarifai_api_resources_pb.WorkflowVersion | undefined; + setWorkflowVersion(value?: proto_clarifai_api_resources_pb.WorkflowVersion): SingleWorkflowVersionResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleWorkflowVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleWorkflowVersionResponse): SingleWorkflowVersionResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleWorkflowVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleWorkflowVersionResponse; + static deserializeBinaryFromReader(message: SingleWorkflowVersionResponse, reader: jspb.BinaryReader): SingleWorkflowVersionResponse; +} + +export namespace SingleWorkflowVersionResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + workflowVersion?: proto_clarifai_api_resources_pb.WorkflowVersion.AsObject, + } +} + +export class PostAppDuplicationsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAppDuplicationsRequest; + clearAppDuplicationsList(): void; + getAppDuplicationsList(): Array; + setAppDuplicationsList(value: Array): PostAppDuplicationsRequest; + addAppDuplications(value?: proto_clarifai_api_resources_pb.AppDuplication, index?: number): proto_clarifai_api_resources_pb.AppDuplication; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostAppDuplicationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostAppDuplicationsRequest): PostAppDuplicationsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostAppDuplicationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostAppDuplicationsRequest; + static deserializeBinaryFromReader(message: PostAppDuplicationsRequest, reader: jspb.BinaryReader): PostAppDuplicationsRequest; +} + +export namespace PostAppDuplicationsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + appDuplicationsList: Array, + } +} + +export class GetAppDuplicationRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetAppDuplicationRequest; + getAppDuplicationId(): string; + setAppDuplicationId(value: string): GetAppDuplicationRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetAppDuplicationRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetAppDuplicationRequest): GetAppDuplicationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetAppDuplicationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetAppDuplicationRequest; + static deserializeBinaryFromReader(message: GetAppDuplicationRequest, reader: jspb.BinaryReader): GetAppDuplicationRequest; +} + +export namespace GetAppDuplicationRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + appDuplicationId: string, + } +} + +export class ListAppDuplicationsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAppDuplicationsRequest; + getPage(): number; + setPage(value: number): ListAppDuplicationsRequest; + getPerPage(): number; + setPerPage(value: number): ListAppDuplicationsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListAppDuplicationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListAppDuplicationsRequest): ListAppDuplicationsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListAppDuplicationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListAppDuplicationsRequest; + static deserializeBinaryFromReader(message: ListAppDuplicationsRequest, reader: jspb.BinaryReader): ListAppDuplicationsRequest; +} + +export namespace ListAppDuplicationsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + } +} + +export class MultiAppDuplicationsResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiAppDuplicationsResponse; + clearAppDuplicationsList(): void; + getAppDuplicationsList(): Array; + setAppDuplicationsList(value: Array): MultiAppDuplicationsResponse; + addAppDuplications(value?: proto_clarifai_api_resources_pb.AppDuplication, index?: number): proto_clarifai_api_resources_pb.AppDuplication; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiAppDuplicationsResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiAppDuplicationsResponse): MultiAppDuplicationsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiAppDuplicationsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiAppDuplicationsResponse; + static deserializeBinaryFromReader(message: MultiAppDuplicationsResponse, reader: jspb.BinaryReader): MultiAppDuplicationsResponse; +} + +export namespace MultiAppDuplicationsResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + appDuplicationsList: Array, + } +} + +export class SingleAppDuplicationResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleAppDuplicationResponse; + + hasAppDuplication(): boolean; + clearAppDuplication(): void; + getAppDuplication(): proto_clarifai_api_resources_pb.AppDuplication | undefined; + setAppDuplication(value?: proto_clarifai_api_resources_pb.AppDuplication): SingleAppDuplicationResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleAppDuplicationResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleAppDuplicationResponse): SingleAppDuplicationResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleAppDuplicationResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleAppDuplicationResponse; + static deserializeBinaryFromReader(message: SingleAppDuplicationResponse, reader: jspb.BinaryReader): SingleAppDuplicationResponse; +} + +export namespace SingleAppDuplicationResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + appDuplication?: proto_clarifai_api_resources_pb.AppDuplication.AsObject, + } +} + +export class PostTasksRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostTasksRequest; + clearTasksList(): void; + getTasksList(): Array; + setTasksList(value: Array): PostTasksRequest; + addTasks(value?: proto_clarifai_api_resources_pb.Task, index?: number): proto_clarifai_api_resources_pb.Task; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostTasksRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostTasksRequest): PostTasksRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostTasksRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostTasksRequest; + static deserializeBinaryFromReader(message: PostTasksRequest, reader: jspb.BinaryReader): PostTasksRequest; +} + +export namespace PostTasksRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + tasksList: Array, + } +} + +export class GetTaskRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetTaskRequest; + getTaskId(): string; + setTaskId(value: string): GetTaskRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): GetTaskRequest; + addAdditionalFields(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetTaskRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetTaskRequest): GetTaskRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetTaskRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTaskRequest; + static deserializeBinaryFromReader(message: GetTaskRequest, reader: jspb.BinaryReader): GetTaskRequest; +} + +export namespace GetTaskRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + taskId: string, + additionalFieldsList: Array, + } +} + +export class ListTasksRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListTasksRequest; + getPage(): number; + setPage(value: number): ListTasksRequest; + getPerPage(): number; + setPerPage(value: number): ListTasksRequest; + clearWorkerUserIdsList(): void; + getWorkerUserIdsList(): Array; + setWorkerUserIdsList(value: Array): ListTasksRequest; + addWorkerUserIds(value: string, index?: number): string; + clearReviewUserIdsList(): void; + getReviewUserIdsList(): Array; + setReviewUserIdsList(value: Array): ListTasksRequest; + addReviewUserIds(value: string, index?: number): string; + clearLabelOrderIdsList(): void; + getLabelOrderIdsList(): Array; + setLabelOrderIdsList(value: Array): ListTasksRequest; + addLabelOrderIds(value: string, index?: number): string; + getIncludingLabelOrderTasks(): boolean; + setIncludingLabelOrderTasks(value: boolean): ListTasksRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): ListTasksRequest; + addAdditionalFields(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListTasksRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListTasksRequest): ListTasksRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListTasksRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListTasksRequest; + static deserializeBinaryFromReader(message: ListTasksRequest, reader: jspb.BinaryReader): ListTasksRequest; +} + +export namespace ListTasksRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + workerUserIdsList: Array, + reviewUserIdsList: Array, + labelOrderIdsList: Array, + includingLabelOrderTasks: boolean, + additionalFieldsList: Array, + } +} + +export class PatchTasksRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchTasksRequest; + clearTasksList(): void; + getTasksList(): Array; + setTasksList(value: Array): PatchTasksRequest; + addTasks(value?: proto_clarifai_api_resources_pb.Task, index?: number): proto_clarifai_api_resources_pb.Task; + getAction(): string; + setAction(value: string): PatchTasksRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PatchTasksRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchTasksRequest): PatchTasksRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PatchTasksRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchTasksRequest; + static deserializeBinaryFromReader(message: PatchTasksRequest, reader: jspb.BinaryReader): PatchTasksRequest; +} + +export namespace PatchTasksRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + tasksList: Array, + action: string, } } -export class MyScopesRootRequest extends jspb.Message { +export class DeleteTasksRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteTasksRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteTasksRequest; + addIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MyScopesRootRequest.AsObject; - static toObject(includeInstance: boolean, msg: MyScopesRootRequest): MyScopesRootRequest.AsObject; + toObject(includeInstance?: boolean): DeleteTasksRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteTasksRequest): DeleteTasksRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MyScopesRootRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MyScopesRootRequest; - static deserializeBinaryFromReader(message: MyScopesRootRequest, reader: jspb.BinaryReader): MyScopesRootRequest; + static serializeBinaryToWriter(message: DeleteTasksRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteTasksRequest; + static deserializeBinaryFromReader(message: DeleteTasksRequest, reader: jspb.BinaryReader): DeleteTasksRequest; } -export namespace MyScopesRootRequest { +export namespace DeleteTasksRequest { export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, } } -export class MultiScopeDepsResponse extends jspb.Message { +export class MultiTaskResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeDepsResponse; - - clearScopeDepsList(): void; - getScopeDepsList(): Array; - setScopeDepsList(value: Array): MultiScopeDepsResponse; - addScopeDeps(value?: proto_clarifai_api_resources_pb.ScopeDeps, index?: number): proto_clarifai_api_resources_pb.ScopeDeps; - - clearEndpointDepsList(): void; - getEndpointDepsList(): Array; - setEndpointDepsList(value: Array): MultiScopeDepsResponse; - addEndpointDeps(value?: proto_clarifai_api_resources_pb.EndpointDeps, index?: number): proto_clarifai_api_resources_pb.EndpointDeps; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiTaskResponse; + clearTasksList(): void; + getTasksList(): Array; + setTasksList(value: Array): MultiTaskResponse; + addTasks(value?: proto_clarifai_api_resources_pb.Task, index?: number): proto_clarifai_api_resources_pb.Task; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiScopeDepsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiScopeDepsResponse): MultiScopeDepsResponse.AsObject; + toObject(includeInstance?: boolean): MultiTaskResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiTaskResponse): MultiTaskResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiScopeDepsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiScopeDepsResponse; - static deserializeBinaryFromReader(message: MultiScopeDepsResponse, reader: jspb.BinaryReader): MultiScopeDepsResponse; + static serializeBinaryToWriter(message: MultiTaskResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiTaskResponse; + static deserializeBinaryFromReader(message: MultiTaskResponse, reader: jspb.BinaryReader): MultiTaskResponse; } -export namespace MultiScopeDepsResponse { +export namespace MultiTaskResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - scopeDepsList: Array, - endpointDepsList: Array, + tasksList: Array, } } -export class MultiScopeResponse extends jspb.Message { +export class SingleTaskResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleTaskResponse; - clearScopesList(): void; - getScopesList(): Array; - setScopesList(value: Array): MultiScopeResponse; - addScopes(value: string, index?: number): string; + hasTask(): boolean; + clearTask(): void; + getTask(): proto_clarifai_api_resources_pb.Task | undefined; + setTask(value?: proto_clarifai_api_resources_pb.Task): SingleTaskResponse; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleTaskResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleTaskResponse): SingleTaskResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleTaskResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleTaskResponse; + static deserializeBinaryFromReader(message: SingleTaskResponse, reader: jspb.BinaryReader): SingleTaskResponse; +} - hasApp(): boolean; - clearApp(): void; - getApp(): proto_clarifai_api_resources_pb.App | undefined; - setApp(value?: proto_clarifai_api_resources_pb.App): MultiScopeResponse; +export namespace SingleTaskResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + task?: proto_clarifai_api_resources_pb.Task.AsObject, + } +} - clearEndpointsList(): void; - getEndpointsList(): Array; - setEndpointsList(value: Array): MultiScopeResponse; - addEndpoints(value: string, index?: number): string; +export class GetTaskCountRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetTaskCountRequest; + getTaskId(): string; + setTaskId(value: string): GetTaskCountRequest; + clearUserIdsList(): void; + getUserIdsList(): Array; + setUserIdsList(value: Array): GetTaskCountRequest; + addUserIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiScopeResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiScopeResponse): MultiScopeResponse.AsObject; + toObject(includeInstance?: boolean): GetTaskCountRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetTaskCountRequest): GetTaskCountRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiScopeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiScopeResponse; - static deserializeBinaryFromReader(message: MultiScopeResponse, reader: jspb.BinaryReader): MultiScopeResponse; + static serializeBinaryToWriter(message: GetTaskCountRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetTaskCountRequest; + static deserializeBinaryFromReader(message: GetTaskCountRequest, reader: jspb.BinaryReader): GetTaskCountRequest; } -export namespace MultiScopeResponse { +export namespace GetTaskCountRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - scopesList: Array, - app?: proto_clarifai_api_resources_pb.App.AsObject, - endpointsList: Array, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + taskId: string, + userIdsList: Array, } } -export class MultiScopeUserResponse extends jspb.Message { +export class SingleTaskCountResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeUserResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleTaskCountResponse; + getAppId(): string; + setAppId(value: string): SingleTaskCountResponse; + getTaskId(): string; + setTaskId(value: string): SingleTaskCountResponse; + clearCountsList(): void; + getCountsList(): Array; + setCountsList(value: Array): SingleTaskCountResponse; + addCounts(value?: proto_clarifai_api_resources_pb.TaskStatusCountPerUser, index?: number): proto_clarifai_api_resources_pb.TaskStatusCountPerUser; - clearScopesList(): void; - getScopesList(): Array; - setScopesList(value: Array): MultiScopeUserResponse; - addScopes(value: string, index?: number): string; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SingleTaskCountResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleTaskCountResponse): SingleTaskCountResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SingleTaskCountResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleTaskCountResponse; + static deserializeBinaryFromReader(message: SingleTaskCountResponse, reader: jspb.BinaryReader): SingleTaskCountResponse; +} - clearEndpointsList(): void; - getEndpointsList(): Array; - setEndpointsList(value: Array): MultiScopeUserResponse; - addEndpoints(value: string, index?: number): string; +export namespace SingleTaskCountResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + appId: string, + taskId: string, + countsList: Array, + } +} + +export class PostLabelOrdersRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostLabelOrdersRequest; + clearLabelOrdersList(): void; + getLabelOrdersList(): Array; + setLabelOrdersList(value: Array): PostLabelOrdersRequest; + addLabelOrders(value?: proto_clarifai_api_resources_pb.LabelOrder, index?: number): proto_clarifai_api_resources_pb.LabelOrder; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiScopeUserResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiScopeUserResponse): MultiScopeUserResponse.AsObject; + toObject(includeInstance?: boolean): PostLabelOrdersRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostLabelOrdersRequest): PostLabelOrdersRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiScopeUserResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiScopeUserResponse; - static deserializeBinaryFromReader(message: MultiScopeUserResponse, reader: jspb.BinaryReader): MultiScopeUserResponse; + static serializeBinaryToWriter(message: PostLabelOrdersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostLabelOrdersRequest; + static deserializeBinaryFromReader(message: PostLabelOrdersRequest, reader: jspb.BinaryReader): PostLabelOrdersRequest; } -export namespace MultiScopeUserResponse { +export namespace PostLabelOrdersRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - scopesList: Array, - endpointsList: Array, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + labelOrdersList: Array, } } -export class MultiScopeRootResponse extends jspb.Message { +export class GetLabelOrderRequest extends jspb.Message { - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiScopeRootResponse; + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetLabelOrderRequest; + getLabelOrderId(): string; + setLabelOrderId(value: string): GetLabelOrderRequest; - clearScopesList(): void; - getScopesList(): Array; - setScopesList(value: Array): MultiScopeRootResponse; - addScopes(value: string, index?: number): string; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetLabelOrderRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetLabelOrderRequest): GetLabelOrderRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetLabelOrderRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetLabelOrderRequest; + static deserializeBinaryFromReader(message: GetLabelOrderRequest, reader: jspb.BinaryReader): GetLabelOrderRequest; +} - clearEndpointsList(): void; - getEndpointsList(): Array; - setEndpointsList(value: Array): MultiScopeRootResponse; - addEndpoints(value: string, index?: number): string; +export namespace GetLabelOrderRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + labelOrderId: string, + } +} + +export class ListLabelOrdersRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListLabelOrdersRequest; + getPage(): number; + setPage(value: number): ListLabelOrdersRequest; + getPerPage(): number; + setPerPage(value: number): ListLabelOrdersRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiScopeRootResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiScopeRootResponse): MultiScopeRootResponse.AsObject; + toObject(includeInstance?: boolean): ListLabelOrdersRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListLabelOrdersRequest): ListLabelOrdersRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiScopeRootResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiScopeRootResponse; - static deserializeBinaryFromReader(message: MultiScopeRootResponse, reader: jspb.BinaryReader): MultiScopeRootResponse; + static serializeBinaryToWriter(message: ListLabelOrdersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListLabelOrdersRequest; + static deserializeBinaryFromReader(message: ListLabelOrdersRequest, reader: jspb.BinaryReader): ListLabelOrdersRequest; } -export namespace MultiScopeRootResponse { +export namespace ListLabelOrdersRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - scopesList: Array, - endpointsList: Array, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, } } -export class GetSearchRequest extends jspb.Message { +export class PatchLabelOrdersRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetSearchRequest; - - getId(): string; - setId(value: string): GetSearchRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchLabelOrdersRequest; + clearLabelOrdersList(): void; + getLabelOrdersList(): Array; + setLabelOrdersList(value: Array): PatchLabelOrdersRequest; + addLabelOrders(value?: proto_clarifai_api_resources_pb.LabelOrder, index?: number): proto_clarifai_api_resources_pb.LabelOrder; + getAction(): string; + setAction(value: string): PatchLabelOrdersRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetSearchRequest): GetSearchRequest.AsObject; + toObject(includeInstance?: boolean): PatchLabelOrdersRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchLabelOrdersRequest): PatchLabelOrdersRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetSearchRequest; - static deserializeBinaryFromReader(message: GetSearchRequest, reader: jspb.BinaryReader): GetSearchRequest; + static serializeBinaryToWriter(message: PatchLabelOrdersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchLabelOrdersRequest; + static deserializeBinaryFromReader(message: PatchLabelOrdersRequest, reader: jspb.BinaryReader): PatchLabelOrdersRequest; } -export namespace GetSearchRequest { +export namespace PatchLabelOrdersRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - id: string, + labelOrdersList: Array, + action: string, } } -export class ListSearchesRequest extends jspb.Message { +export class DeleteLabelOrdersRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListSearchesRequest; - - getPage(): number; - setPage(value: number): ListSearchesRequest; - - getPerPage(): number; - setPerPage(value: number): ListSearchesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteLabelOrdersRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteLabelOrdersRequest; + addIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListSearchesRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListSearchesRequest): ListSearchesRequest.AsObject; + toObject(includeInstance?: boolean): DeleteLabelOrdersRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteLabelOrdersRequest): DeleteLabelOrdersRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListSearchesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListSearchesRequest; - static deserializeBinaryFromReader(message: ListSearchesRequest, reader: jspb.BinaryReader): ListSearchesRequest; + static serializeBinaryToWriter(message: DeleteLabelOrdersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteLabelOrdersRequest; + static deserializeBinaryFromReader(message: DeleteLabelOrdersRequest, reader: jspb.BinaryReader): DeleteLabelOrdersRequest; } -export namespace ListSearchesRequest { +export namespace DeleteLabelOrdersRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - page: number, - perPage: number, + idsList: Array, } } -export class PostSearchesRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostSearchesRequest; +export class MultiLabelOrderResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiLabelOrderResponse; + clearLabelOrdersList(): void; + getLabelOrdersList(): Array; + setLabelOrdersList(value: Array): MultiLabelOrderResponse; + addLabelOrders(value?: proto_clarifai_api_resources_pb.LabelOrder, index?: number): proto_clarifai_api_resources_pb.LabelOrder; - hasQuery(): boolean; - clearQuery(): void; - getQuery(): proto_clarifai_api_resources_pb.Query | undefined; - setQuery(value?: proto_clarifai_api_resources_pb.Query): PostSearchesRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiLabelOrderResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiLabelOrderResponse): MultiLabelOrderResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiLabelOrderResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiLabelOrderResponse; + static deserializeBinaryFromReader(message: MultiLabelOrderResponse, reader: jspb.BinaryReader): MultiLabelOrderResponse; +} - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): PostSearchesRequest; - addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; +export namespace MultiLabelOrderResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + labelOrdersList: Array, + } +} +export class SingleLabelOrderResponse extends jspb.Message { - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): PostSearchesRequest; + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleLabelOrderResponse; + hasLabelOrder(): boolean; + clearLabelOrder(): void; + getLabelOrder(): proto_clarifai_api_resources_pb.LabelOrder | undefined; + setLabelOrder(value?: proto_clarifai_api_resources_pb.LabelOrder): SingleLabelOrderResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostSearchesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostSearchesRequest): PostSearchesRequest.AsObject; + toObject(includeInstance?: boolean): SingleLabelOrderResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleLabelOrderResponse): SingleLabelOrderResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostSearchesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostSearchesRequest; - static deserializeBinaryFromReader(message: PostSearchesRequest, reader: jspb.BinaryReader): PostSearchesRequest; + static serializeBinaryToWriter(message: SingleLabelOrderResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleLabelOrderResponse; + static deserializeBinaryFromReader(message: SingleLabelOrderResponse, reader: jspb.BinaryReader): SingleLabelOrderResponse; } -export namespace PostSearchesRequest { +export namespace SingleLabelOrderResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - query?: proto_clarifai_api_resources_pb.Query.AsObject, - searchesList: Array, - pagination?: Pagination.AsObject, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + labelOrder?: proto_clarifai_api_resources_pb.LabelOrder.AsObject, } } -export class PostSearchesByIDRequest extends jspb.Message { +export class PostCollectorsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostSearchesByIDRequest; - - getId(): string; - setId(value: string): PostSearchesByIDRequest; - - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): PostSearchesByIDRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostCollectorsRequest; + clearCollectorsList(): void; + getCollectorsList(): Array; + setCollectorsList(value: Array): PostCollectorsRequest; + addCollectors(value?: proto_clarifai_api_resources_pb.Collector, index?: number): proto_clarifai_api_resources_pb.Collector; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostSearchesByIDRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostSearchesByIDRequest): PostSearchesByIDRequest.AsObject; + toObject(includeInstance?: boolean): PostCollectorsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostCollectorsRequest): PostCollectorsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostSearchesByIDRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostSearchesByIDRequest; - static deserializeBinaryFromReader(message: PostSearchesByIDRequest, reader: jspb.BinaryReader): PostSearchesByIDRequest; + static serializeBinaryToWriter(message: PostCollectorsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostCollectorsRequest; + static deserializeBinaryFromReader(message: PostCollectorsRequest, reader: jspb.BinaryReader): PostCollectorsRequest; } -export namespace PostSearchesByIDRequest { +export namespace PostCollectorsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - id: string, - pagination?: Pagination.AsObject, + collectorsList: Array, } } -export class DeleteSearchRequest extends jspb.Message { +export class PatchCollectorsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteSearchRequest; - - getId(): string; - setId(value: string): DeleteSearchRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchCollectorsRequest; + clearCollectorsList(): void; + getCollectorsList(): Array; + setCollectorsList(value: Array): PatchCollectorsRequest; + addCollectors(value?: proto_clarifai_api_resources_pb.Collector, index?: number): proto_clarifai_api_resources_pb.Collector; + getAction(): string; + setAction(value: string): PatchCollectorsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteSearchRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteSearchRequest): DeleteSearchRequest.AsObject; + toObject(includeInstance?: boolean): PatchCollectorsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchCollectorsRequest): PatchCollectorsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteSearchRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteSearchRequest; - static deserializeBinaryFromReader(message: DeleteSearchRequest, reader: jspb.BinaryReader): DeleteSearchRequest; + static serializeBinaryToWriter(message: PatchCollectorsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchCollectorsRequest; + static deserializeBinaryFromReader(message: PatchCollectorsRequest, reader: jspb.BinaryReader): PatchCollectorsRequest; } -export namespace DeleteSearchRequest { +export namespace PatchCollectorsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - id: string, + collectorsList: Array, + action: string, } } -export class PostAnnotationsSearchesRequest extends jspb.Message { +export class DeleteCollectorsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationsSearchesRequest; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): PostAnnotationsSearchesRequest; - addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; - - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): PostAnnotationsSearchesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteCollectorsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteCollectorsRequest; + addIds(value: string, index?: number): string; + getDeleteAll(): boolean; + setDeleteAll(value: boolean): DeleteCollectorsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostAnnotationsSearchesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostAnnotationsSearchesRequest): PostAnnotationsSearchesRequest.AsObject; + toObject(includeInstance?: boolean): DeleteCollectorsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteCollectorsRequest): DeleteCollectorsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostAnnotationsSearchesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostAnnotationsSearchesRequest; - static deserializeBinaryFromReader(message: PostAnnotationsSearchesRequest, reader: jspb.BinaryReader): PostAnnotationsSearchesRequest; + static serializeBinaryToWriter(message: DeleteCollectorsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteCollectorsRequest; + static deserializeBinaryFromReader(message: DeleteCollectorsRequest, reader: jspb.BinaryReader): DeleteCollectorsRequest; } -export namespace PostAnnotationsSearchesRequest { +export namespace DeleteCollectorsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - searchesList: Array, - pagination?: Pagination.AsObject, + idsList: Array, + deleteAll: boolean, } } -export class DeleteAnnotationSearchMetricsRequest extends jspb.Message { +export class GetCollectorRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteAnnotationSearchMetricsRequest; - - getId(): string; - setId(value: string): DeleteAnnotationSearchMetricsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetCollectorRequest; + getCollectorId(): string; + setCollectorId(value: string): GetCollectorRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteAnnotationSearchMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteAnnotationSearchMetricsRequest): DeleteAnnotationSearchMetricsRequest.AsObject; + toObject(includeInstance?: boolean): GetCollectorRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetCollectorRequest): GetCollectorRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteAnnotationSearchMetricsRequest; - static deserializeBinaryFromReader(message: DeleteAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): DeleteAnnotationSearchMetricsRequest; + static serializeBinaryToWriter(message: GetCollectorRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetCollectorRequest; + static deserializeBinaryFromReader(message: GetCollectorRequest, reader: jspb.BinaryReader): GetCollectorRequest; } -export namespace DeleteAnnotationSearchMetricsRequest { +export namespace GetCollectorRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - id: string, + collectorId: string, } } -export class PostInputsSearchesRequest extends jspb.Message { +export class ListCollectorsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostInputsSearchesRequest; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): PostInputsSearchesRequest; - addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; - - - hasPagination(): boolean; - clearPagination(): void; - getPagination(): Pagination | undefined; - setPagination(value?: Pagination): PostInputsSearchesRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListCollectorsRequest; + getPage(): number; + setPage(value: number): ListCollectorsRequest; + getPerPage(): number; + setPerPage(value: number): ListCollectorsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostInputsSearchesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostInputsSearchesRequest): PostInputsSearchesRequest.AsObject; + toObject(includeInstance?: boolean): ListCollectorsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListCollectorsRequest): ListCollectorsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostInputsSearchesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostInputsSearchesRequest; - static deserializeBinaryFromReader(message: PostInputsSearchesRequest, reader: jspb.BinaryReader): PostInputsSearchesRequest; + static serializeBinaryToWriter(message: ListCollectorsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListCollectorsRequest; + static deserializeBinaryFromReader(message: ListCollectorsRequest, reader: jspb.BinaryReader): ListCollectorsRequest; } -export namespace PostInputsSearchesRequest { +export namespace ListCollectorsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - searchesList: Array, - pagination?: Pagination.AsObject, + page: number, + perPage: number, } } -export class SingleSearchResponse extends jspb.Message { +export class MultiCollectorResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleSearchResponse; - - - hasSearch(): boolean; - clearSearch(): void; - getSearch(): proto_clarifai_api_resources_pb.Search | undefined; - setSearch(value?: proto_clarifai_api_resources_pb.Search): SingleSearchResponse; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiCollectorResponse; + clearCollectorsList(): void; + getCollectorsList(): Array; + setCollectorsList(value: Array): MultiCollectorResponse; + addCollectors(value?: proto_clarifai_api_resources_pb.Collector, index?: number): proto_clarifai_api_resources_pb.Collector; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleSearchResponse): SingleSearchResponse.AsObject; + toObject(includeInstance?: boolean): MultiCollectorResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiCollectorResponse): MultiCollectorResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleSearchResponse; - static deserializeBinaryFromReader(message: SingleSearchResponse, reader: jspb.BinaryReader): SingleSearchResponse; + static serializeBinaryToWriter(message: MultiCollectorResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiCollectorResponse; + static deserializeBinaryFromReader(message: MultiCollectorResponse, reader: jspb.BinaryReader): MultiCollectorResponse; } -export namespace SingleSearchResponse { +export namespace MultiCollectorResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - search?: proto_clarifai_api_resources_pb.Search.AsObject, + collectorsList: Array, } } -export class MultiSearchResponse extends jspb.Message { +export class SingleCollectorResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiSearchResponse; - - getId(): string; - setId(value: string): MultiSearchResponse; - - clearHitsList(): void; - getHitsList(): Array; - setHitsList(value: Array): MultiSearchResponse; - addHits(value?: proto_clarifai_api_resources_pb.Hit, index?: number): proto_clarifai_api_resources_pb.Hit; - - - hasQuery(): boolean; - clearQuery(): void; - getQuery(): proto_clarifai_api_resources_pb.Query | undefined; - setQuery(value?: proto_clarifai_api_resources_pb.Query): MultiSearchResponse; - - clearSearchesList(): void; - getSearchesList(): Array; - setSearchesList(value: Array): MultiSearchResponse; - addSearches(value?: proto_clarifai_api_resources_pb.Search, index?: number): proto_clarifai_api_resources_pb.Search; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleCollectorResponse; + hasCollector(): boolean; + clearCollector(): void; + getCollector(): proto_clarifai_api_resources_pb.Collector | undefined; + setCollector(value?: proto_clarifai_api_resources_pb.Collector): SingleCollectorResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiSearchResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiSearchResponse): MultiSearchResponse.AsObject; + toObject(includeInstance?: boolean): SingleCollectorResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleCollectorResponse): SingleCollectorResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiSearchResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiSearchResponse; - static deserializeBinaryFromReader(message: MultiSearchResponse, reader: jspb.BinaryReader): MultiSearchResponse; + static serializeBinaryToWriter(message: SingleCollectorResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleCollectorResponse; + static deserializeBinaryFromReader(message: SingleCollectorResponse, reader: jspb.BinaryReader): SingleCollectorResponse; } -export namespace MultiSearchResponse { +export namespace SingleCollectorResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - id: string, - hitsList: Array, - query?: proto_clarifai_api_resources_pb.Query.AsObject, - searchesList: Array, + collector?: proto_clarifai_api_resources_pb.Collector.AsObject, } } -export class PostAnnotationSearchMetricsRequest extends jspb.Message { +export class PostStatValuesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationSearchMetricsRequest; - - getId(): string; - setId(value: string): PostAnnotationSearchMetricsRequest; - - - hasGroundTruth(): boolean; - clearGroundTruth(): void; - getGroundTruth(): proto_clarifai_api_resources_pb.Search | undefined; - setGroundTruth(value?: proto_clarifai_api_resources_pb.Search): PostAnnotationSearchMetricsRequest; - - - hasSearchToEval(): boolean; - clearSearchToEval(): void; - getSearchToEval(): proto_clarifai_api_resources_pb.Search | undefined; - setSearchToEval(value?: proto_clarifai_api_resources_pb.Search): PostAnnotationSearchMetricsRequest; - - - hasData(): boolean; - clearData(): void; - getData(): proto_clarifai_api_resources_pb.Data | undefined; - setData(value?: proto_clarifai_api_resources_pb.Data): PostAnnotationSearchMetricsRequest; - - getEvaluationType(): proto_clarifai_api_resources_pb.EvaluationType; - setEvaluationType(value: proto_clarifai_api_resources_pb.EvaluationType): PostAnnotationSearchMetricsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostStatValuesRequest; + clearStatValuesList(): void; + getStatValuesList(): Array; + setStatValuesList(value: Array): PostStatValuesRequest; + addStatValues(value?: proto_clarifai_api_resources_pb.StatValue, index?: number): proto_clarifai_api_resources_pb.StatValue; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostAnnotationSearchMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostAnnotationSearchMetricsRequest): PostAnnotationSearchMetricsRequest.AsObject; + toObject(includeInstance?: boolean): PostStatValuesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostStatValuesRequest): PostStatValuesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostAnnotationSearchMetricsRequest; - static deserializeBinaryFromReader(message: PostAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): PostAnnotationSearchMetricsRequest; + static serializeBinaryToWriter(message: PostStatValuesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostStatValuesRequest; + static deserializeBinaryFromReader(message: PostStatValuesRequest, reader: jspb.BinaryReader): PostStatValuesRequest; } -export namespace PostAnnotationSearchMetricsRequest { +export namespace PostStatValuesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - id: string, - groundTruth?: proto_clarifai_api_resources_pb.Search.AsObject, - searchToEval?: proto_clarifai_api_resources_pb.Search.AsObject, - data?: proto_clarifai_api_resources_pb.Data.AsObject, - evaluationType: proto_clarifai_api_resources_pb.EvaluationType, + statValuesList: Array, } } -export class GetAnnotationSearchMetricsRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetAnnotationSearchMetricsRequest; - - getId(): string; - setId(value: string): GetAnnotationSearchMetricsRequest; +export class MultiStatValueResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiStatValueResponse; + clearStatValuesList(): void; + getStatValuesList(): Array; + setStatValuesList(value: Array): MultiStatValueResponse; + addStatValues(value?: proto_clarifai_api_resources_pb.StatValue, index?: number): proto_clarifai_api_resources_pb.StatValue; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAnnotationSearchMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAnnotationSearchMetricsRequest): GetAnnotationSearchMetricsRequest.AsObject; + toObject(includeInstance?: boolean): MultiStatValueResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiStatValueResponse): MultiStatValueResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAnnotationSearchMetricsRequest; - static deserializeBinaryFromReader(message: GetAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): GetAnnotationSearchMetricsRequest; + static serializeBinaryToWriter(message: MultiStatValueResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiStatValueResponse; + static deserializeBinaryFromReader(message: MultiStatValueResponse, reader: jspb.BinaryReader): MultiStatValueResponse; } -export namespace GetAnnotationSearchMetricsRequest { +export namespace MultiStatValueResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - id: string, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + statValuesList: Array, } } -export class ListAnnotationSearchMetricsRequest extends jspb.Message { +export class PostStatValuesAggregateRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAnnotationSearchMetricsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostStatValuesAggregateRequest; + clearStatValueAggregateQueriesList(): void; + getStatValueAggregateQueriesList(): Array; + setStatValueAggregateQueriesList(value: Array): PostStatValuesAggregateRequest; + addStatValueAggregateQueries(value?: proto_clarifai_api_resources_pb.StatValueAggregateQuery, index?: number): proto_clarifai_api_resources_pb.StatValueAggregateQuery; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListAnnotationSearchMetricsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListAnnotationSearchMetricsRequest): ListAnnotationSearchMetricsRequest.AsObject; + toObject(includeInstance?: boolean): PostStatValuesAggregateRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostStatValuesAggregateRequest): PostStatValuesAggregateRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListAnnotationSearchMetricsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListAnnotationSearchMetricsRequest; - static deserializeBinaryFromReader(message: ListAnnotationSearchMetricsRequest, reader: jspb.BinaryReader): ListAnnotationSearchMetricsRequest; + static serializeBinaryToWriter(message: PostStatValuesAggregateRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostStatValuesAggregateRequest; + static deserializeBinaryFromReader(message: PostStatValuesAggregateRequest, reader: jspb.BinaryReader): PostStatValuesAggregateRequest; } -export namespace ListAnnotationSearchMetricsRequest { +export namespace PostStatValuesAggregateRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + statValueAggregateQueriesList: Array, } } -export class MultiAnnotationSearchMetricsResponse extends jspb.Message { +export class MultiStatValueAggregateResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiAnnotationSearchMetricsResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiStatValueAggregateResponse; + clearStatValueAggregateResultsList(): void; + getStatValueAggregateResultsList(): Array; + setStatValueAggregateResultsList(value: Array): MultiStatValueAggregateResponse; + addStatValueAggregateResults(value?: proto_clarifai_api_resources_pb.StatValueAggregateResult, index?: number): proto_clarifai_api_resources_pb.StatValueAggregateResult; - clearAnnotationSearchMetricsList(): void; - getAnnotationSearchMetricsList(): Array; - setAnnotationSearchMetricsList(value: Array): MultiAnnotationSearchMetricsResponse; - addAnnotationSearchMetrics(value?: proto_clarifai_api_resources_pb.AnnotationSearchMetrics, index?: number): proto_clarifai_api_resources_pb.AnnotationSearchMetrics; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MultiStatValueAggregateResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiStatValueAggregateResponse): MultiStatValueAggregateResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MultiStatValueAggregateResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiStatValueAggregateResponse; + static deserializeBinaryFromReader(message: MultiStatValueAggregateResponse, reader: jspb.BinaryReader): MultiStatValueAggregateResponse; +} + +export namespace MultiStatValueAggregateResponse { + export type AsObject = { + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + statValueAggregateResultsList: Array, + } +} + +export class PostTrendingMetricsViewRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostTrendingMetricsViewRequest; + getViewType(): string; + setViewType(value: string): PostTrendingMetricsViewRequest; + getObjectId(): string; + setObjectId(value: string): PostTrendingMetricsViewRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiAnnotationSearchMetricsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiAnnotationSearchMetricsResponse): MultiAnnotationSearchMetricsResponse.AsObject; + toObject(includeInstance?: boolean): PostTrendingMetricsViewRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostTrendingMetricsViewRequest): PostTrendingMetricsViewRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiAnnotationSearchMetricsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiAnnotationSearchMetricsResponse; - static deserializeBinaryFromReader(message: MultiAnnotationSearchMetricsResponse, reader: jspb.BinaryReader): MultiAnnotationSearchMetricsResponse; + static serializeBinaryToWriter(message: PostTrendingMetricsViewRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostTrendingMetricsViewRequest; + static deserializeBinaryFromReader(message: PostTrendingMetricsViewRequest, reader: jspb.BinaryReader): PostTrendingMetricsViewRequest; } -export namespace MultiAnnotationSearchMetricsResponse { +export namespace PostTrendingMetricsViewRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - annotationSearchMetricsList: Array, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + viewType: string, + objectId: string, } } -export class PostValidatePasswordRequest extends jspb.Message { +export class ListTrendingMetricsViewsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostValidatePasswordRequest; - - - hasPassword(): boolean; - clearPassword(): void; - getPassword(): proto_clarifai_api_resources_pb.Password | undefined; - setPassword(value?: proto_clarifai_api_resources_pb.Password): PostValidatePasswordRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListTrendingMetricsViewsRequest; + getViewType(): string; + setViewType(value: string): ListTrendingMetricsViewsRequest; + getPage(): number; + setPage(value: number): ListTrendingMetricsViewsRequest; + getPerPage(): number; + setPerPage(value: number): ListTrendingMetricsViewsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostValidatePasswordRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostValidatePasswordRequest): PostValidatePasswordRequest.AsObject; + toObject(includeInstance?: boolean): ListTrendingMetricsViewsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListTrendingMetricsViewsRequest): ListTrendingMetricsViewsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostValidatePasswordRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostValidatePasswordRequest; - static deserializeBinaryFromReader(message: PostValidatePasswordRequest, reader: jspb.BinaryReader): PostValidatePasswordRequest; + static serializeBinaryToWriter(message: ListTrendingMetricsViewsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListTrendingMetricsViewsRequest; + static deserializeBinaryFromReader(message: ListTrendingMetricsViewsRequest, reader: jspb.BinaryReader): ListTrendingMetricsViewsRequest; } -export namespace PostValidatePasswordRequest { +export namespace ListTrendingMetricsViewsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - password?: proto_clarifai_api_resources_pb.Password.AsObject, + viewType: string, + page: number, + perPage: number, } } -export class SinglePasswordValidationResponse extends jspb.Message { +export class MultiTrendingMetricsViewResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SinglePasswordValidationResponse; - - - hasPasswordViolations(): boolean; - clearPasswordViolations(): void; - getPasswordViolations(): proto_clarifai_api_resources_pb.PasswordViolations | undefined; - setPasswordViolations(value?: proto_clarifai_api_resources_pb.PasswordViolations): SinglePasswordValidationResponse; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiTrendingMetricsViewResponse; + clearMetricsList(): void; + getMetricsList(): Array; + setMetricsList(value: Array): MultiTrendingMetricsViewResponse; + addMetrics(value?: proto_clarifai_api_resources_pb.TrendingMetric, index?: number): proto_clarifai_api_resources_pb.TrendingMetric; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SinglePasswordValidationResponse.AsObject; - static toObject(includeInstance: boolean, msg: SinglePasswordValidationResponse): SinglePasswordValidationResponse.AsObject; + toObject(includeInstance?: boolean): MultiTrendingMetricsViewResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiTrendingMetricsViewResponse): MultiTrendingMetricsViewResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SinglePasswordValidationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SinglePasswordValidationResponse; - static deserializeBinaryFromReader(message: SinglePasswordValidationResponse, reader: jspb.BinaryReader): SinglePasswordValidationResponse; + static serializeBinaryToWriter(message: MultiTrendingMetricsViewResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiTrendingMetricsViewResponse; + static deserializeBinaryFromReader(message: MultiTrendingMetricsViewResponse, reader: jspb.BinaryReader): MultiTrendingMetricsViewResponse; } -export namespace SinglePasswordValidationResponse { +export namespace MultiTrendingMetricsViewResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - passwordViolations?: proto_clarifai_api_resources_pb.PasswordViolations.AsObject, + metricsList: Array, } } -export class GetWorkflowRequest extends jspb.Message { +export class GetModuleRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetWorkflowRequest; - - getWorkflowId(): string; - setWorkflowId(value: string): GetWorkflowRequest; - - getFavorClarifaiWorkflows(): boolean; - setFavorClarifaiWorkflows(value: boolean): GetWorkflowRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModuleRequest; + getModuleId(): string; + setModuleId(value: string): GetModuleRequest; clearAdditionalFieldsList(): void; getAdditionalFieldsList(): Array; - setAdditionalFieldsList(value: Array): GetWorkflowRequest; + setAdditionalFieldsList(value: Array): GetModuleRequest; addAdditionalFields(value: string, index?: number): string; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowRequest): GetWorkflowRequest.AsObject; + toObject(includeInstance?: boolean): GetModuleRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModuleRequest): GetModuleRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowRequest; - static deserializeBinaryFromReader(message: GetWorkflowRequest, reader: jspb.BinaryReader): GetWorkflowRequest; + static serializeBinaryToWriter(message: GetModuleRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModuleRequest; + static deserializeBinaryFromReader(message: GetModuleRequest, reader: jspb.BinaryReader): GetModuleRequest; } -export namespace GetWorkflowRequest { +export namespace GetModuleRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, - favorClarifaiWorkflows: boolean, + moduleId: string, additionalFieldsList: Array, } } -export class ListWorkflowsRequest extends jspb.Message { +export class ListModulesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListWorkflowsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModulesRequest; getPage(): number; - setPage(value: number): ListWorkflowsRequest; - + setPage(value: number): ListModulesRequest; getPerPage(): number; - setPerPage(value: number): ListWorkflowsRequest; - + setPerPage(value: number): ListModulesRequest; + getStarredOnly(): boolean; + setStarredOnly(value: boolean): ListModulesRequest; + clearAdditionalFieldsList(): void; + getAdditionalFieldsList(): Array; + setAdditionalFieldsList(value: Array): ListModulesRequest; + addAdditionalFields(value: string, index?: number): string; getSortAscending(): boolean; - setSortAscending(value: boolean): ListWorkflowsRequest; - + setSortAscending(value: boolean): ListModulesRequest; - hasSortById(): boolean; - clearSortById(): void; - getSortById(): boolean; - setSortById(value: boolean): ListWorkflowsRequest; + hasSortByCreatedAt(): boolean; + clearSortByCreatedAt(): void; + getSortByCreatedAt(): boolean; + setSortByCreatedAt(value: boolean): ListModulesRequest; + hasSortByStarCount(): boolean; + clearSortByStarCount(): void; + getSortByStarCount(): boolean; + setSortByStarCount(value: boolean): ListModulesRequest; hasSortByModifiedAt(): boolean; clearSortByModifiedAt(): void; getSortByModifiedAt(): boolean; - setSortByModifiedAt(value: boolean): ListWorkflowsRequest; - - getQuery(): string; - setQuery(value: string): ListWorkflowsRequest; - - getId(): string; - setId(value: string): ListWorkflowsRequest; - - getFeaturedOnly(): boolean; - setFeaturedOnly(value: boolean): ListWorkflowsRequest; - - getStarredOnly(): boolean; - setStarredOnly(value: boolean): ListWorkflowsRequest; - - clearAdditionalFieldsList(): void; - getAdditionalFieldsList(): Array; - setAdditionalFieldsList(value: Array): ListWorkflowsRequest; - addAdditionalFields(value: string, index?: number): string; + setSortByModifiedAt(value: boolean): ListModulesRequest; + getBookmark(): boolean; + setBookmark(value: boolean): ListModulesRequest; - - getSortByCase(): ListWorkflowsRequest.SortByCase; + getSortByCase(): ListModulesRequest.SortByCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListWorkflowsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListWorkflowsRequest): ListWorkflowsRequest.AsObject; + toObject(includeInstance?: boolean): ListModulesRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModulesRequest): ListModulesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListWorkflowsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListWorkflowsRequest; - static deserializeBinaryFromReader(message: ListWorkflowsRequest, reader: jspb.BinaryReader): ListWorkflowsRequest; + static serializeBinaryToWriter(message: ListModulesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModulesRequest; + static deserializeBinaryFromReader(message: ListModulesRequest, reader: jspb.BinaryReader): ListModulesRequest; } -export namespace ListWorkflowsRequest { +export namespace ListModulesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, page: number, perPage: number, - sortAscending: boolean, - sortById: boolean, - sortByModifiedAt: boolean, - query: string, - id: string, - featuredOnly: boolean, starredOnly: boolean, additionalFieldsList: Array, + sortAscending: boolean, + sortByCreatedAt: boolean, + sortByStarCount: boolean, + sortByModifiedAt: boolean, + bookmark: boolean, } export enum SortByCase { SORT_BY_NOT_SET = 0, - - SORT_BY_ID = 6, - - SORT_BY_MODIFIED_AT = 7, - + SORT_BY_CREATED_AT = 7, + SORT_BY_STAR_COUNT = 8, + SORT_BY_MODIFIED_AT = 9, } } -export class PostWorkflowsRequest extends jspb.Message { +export class PostModulesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowsRequest; - - clearWorkflowsList(): void; - getWorkflowsList(): Array; - setWorkflowsList(value: Array): PostWorkflowsRequest; - addWorkflows(value?: proto_clarifai_api_resources_pb.Workflow, index?: number): proto_clarifai_api_resources_pb.Workflow; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModulesRequest; + clearModulesList(): void; + getModulesList(): Array; + setModulesList(value: Array): PostModulesRequest; + addModules(value?: proto_clarifai_api_resources_pb.Module, index?: number): proto_clarifai_api_resources_pb.Module; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostWorkflowsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostWorkflowsRequest): PostWorkflowsRequest.AsObject; + toObject(includeInstance?: boolean): PostModulesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModulesRequest): PostModulesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostWorkflowsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostWorkflowsRequest; - static deserializeBinaryFromReader(message: PostWorkflowsRequest, reader: jspb.BinaryReader): PostWorkflowsRequest; + static serializeBinaryToWriter(message: PostModulesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModulesRequest; + static deserializeBinaryFromReader(message: PostModulesRequest, reader: jspb.BinaryReader): PostModulesRequest; } -export namespace PostWorkflowsRequest { +export namespace PostModulesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowsList: Array, + modulesList: Array, } } -export class PatchWorkflowsRequest extends jspb.Message { +export class PatchModulesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchWorkflowsRequest; - - clearWorkflowsList(): void; - getWorkflowsList(): Array; - setWorkflowsList(value: Array): PatchWorkflowsRequest; - addWorkflows(value?: proto_clarifai_api_resources_pb.Workflow, index?: number): proto_clarifai_api_resources_pb.Workflow; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchModulesRequest; + clearModulesList(): void; + getModulesList(): Array; + setModulesList(value: Array): PatchModulesRequest; + addModules(value?: proto_clarifai_api_resources_pb.Module, index?: number): proto_clarifai_api_resources_pb.Module; getAction(): string; - setAction(value: string): PatchWorkflowsRequest; - + setAction(value: string): PatchModulesRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchWorkflowsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchWorkflowsRequest): PatchWorkflowsRequest.AsObject; + toObject(includeInstance?: boolean): PatchModulesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PatchModulesRequest): PatchModulesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchWorkflowsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchWorkflowsRequest; - static deserializeBinaryFromReader(message: PatchWorkflowsRequest, reader: jspb.BinaryReader): PatchWorkflowsRequest; + static serializeBinaryToWriter(message: PatchModulesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PatchModulesRequest; + static deserializeBinaryFromReader(message: PatchModulesRequest, reader: jspb.BinaryReader): PatchModulesRequest; } -export namespace PatchWorkflowsRequest { +export namespace PatchModulesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowsList: Array, + modulesList: Array, action: string, } } -export class DeleteWorkflowRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteWorkflowRequest; - - getWorkflowId(): string; - setWorkflowId(value: string): DeleteWorkflowRequest; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteWorkflowRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteWorkflowRequest): DeleteWorkflowRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteWorkflowRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteWorkflowRequest; - static deserializeBinaryFromReader(message: DeleteWorkflowRequest, reader: jspb.BinaryReader): DeleteWorkflowRequest; -} - -export namespace DeleteWorkflowRequest { - export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, - } -} - -export class DeleteWorkflowsRequest extends jspb.Message { +export class DeleteModulesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteWorkflowsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModulesRequest; clearIdsList(): void; getIdsList(): Array; - setIdsList(value: Array): DeleteWorkflowsRequest; + setIdsList(value: Array): DeleteModulesRequest; addIds(value: string, index?: number): string; - getDeleteAll(): boolean; - setDeleteAll(value: boolean): DeleteWorkflowsRequest; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteWorkflowsRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteWorkflowsRequest): DeleteWorkflowsRequest.AsObject; + toObject(includeInstance?: boolean): DeleteModulesRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteModulesRequest): DeleteModulesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteWorkflowsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteWorkflowsRequest; - static deserializeBinaryFromReader(message: DeleteWorkflowsRequest, reader: jspb.BinaryReader): DeleteWorkflowsRequest; + static serializeBinaryToWriter(message: DeleteModulesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteModulesRequest; + static deserializeBinaryFromReader(message: DeleteModulesRequest, reader: jspb.BinaryReader): DeleteModulesRequest; } -export namespace DeleteWorkflowsRequest { +export namespace DeleteModulesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, idsList: Array, - deleteAll: boolean, } } -export class SingleWorkflowResponse extends jspb.Message { +export class SingleModuleResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleWorkflowResponse; - - - hasWorkflow(): boolean; - clearWorkflow(): void; - getWorkflow(): proto_clarifai_api_resources_pb.Workflow | undefined; - setWorkflow(value?: proto_clarifai_api_resources_pb.Workflow): SingleWorkflowResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModuleResponse; + hasModule(): boolean; + clearModule(): void; + getModule(): proto_clarifai_api_resources_pb.Module | undefined; + setModule(value?: proto_clarifai_api_resources_pb.Module): SingleModuleResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleWorkflowResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleWorkflowResponse): SingleWorkflowResponse.AsObject; + toObject(includeInstance?: boolean): SingleModuleResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleModuleResponse): SingleModuleResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleWorkflowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleWorkflowResponse; - static deserializeBinaryFromReader(message: SingleWorkflowResponse, reader: jspb.BinaryReader): SingleWorkflowResponse; + static serializeBinaryToWriter(message: SingleModuleResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleModuleResponse; + static deserializeBinaryFromReader(message: SingleModuleResponse, reader: jspb.BinaryReader): SingleModuleResponse; } -export namespace SingleWorkflowResponse { +export namespace SingleModuleResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - workflow?: proto_clarifai_api_resources_pb.Workflow.AsObject, + module?: proto_clarifai_api_resources_pb.Module.AsObject, } } -export class MultiWorkflowResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiWorkflowResponse; - - clearWorkflowsList(): void; - getWorkflowsList(): Array; - setWorkflowsList(value: Array): MultiWorkflowResponse; - addWorkflows(value?: proto_clarifai_api_resources_pb.Workflow, index?: number): proto_clarifai_api_resources_pb.Workflow; - +export class MultiModuleResponse extends jspb.Message { + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModuleResponse; + clearModulesList(): void; + getModulesList(): Array; + setModulesList(value: Array): MultiModuleResponse; + addModules(value?: proto_clarifai_api_resources_pb.Module, index?: number): proto_clarifai_api_resources_pb.Module; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiWorkflowResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiWorkflowResponse): MultiWorkflowResponse.AsObject; + toObject(includeInstance?: boolean): MultiModuleResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModuleResponse): MultiModuleResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiWorkflowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiWorkflowResponse; - static deserializeBinaryFromReader(message: MultiWorkflowResponse, reader: jspb.BinaryReader): MultiWorkflowResponse; + static serializeBinaryToWriter(message: MultiModuleResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModuleResponse; + static deserializeBinaryFromReader(message: MultiModuleResponse, reader: jspb.BinaryReader): MultiModuleResponse; } -export namespace MultiWorkflowResponse { +export namespace MultiModuleResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - workflowsList: Array, + modulesList: Array, } } -export class PostWorkflowResultsRequest extends jspb.Message { +export class GetModuleVersionRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowResultsRequest; - - getWorkflowId(): string; - setWorkflowId(value: string): PostWorkflowResultsRequest; - - getVersionId(): string; - setVersionId(value: string): PostWorkflowResultsRequest; - - clearInputsList(): void; - getInputsList(): Array; - setInputsList(value: Array): PostWorkflowResultsRequest; - addInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; - - - hasOutputConfig(): boolean; - clearOutputConfig(): void; - getOutputConfig(): proto_clarifai_api_resources_pb.OutputConfig | undefined; - setOutputConfig(value?: proto_clarifai_api_resources_pb.OutputConfig): PostWorkflowResultsRequest; - - getFavorClarifaiWorkflows(): boolean; - setFavorClarifaiWorkflows(value: boolean): PostWorkflowResultsRequest; - - - hasWorkflowState(): boolean; - clearWorkflowState(): void; - getWorkflowState(): proto_clarifai_api_resources_pb.WorkflowState | undefined; - setWorkflowState(value?: proto_clarifai_api_resources_pb.WorkflowState): PostWorkflowResultsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetModuleVersionRequest; + getModuleId(): string; + setModuleId(value: string): GetModuleVersionRequest; + getModuleVersionId(): string; + setModuleVersionId(value: string): GetModuleVersionRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostWorkflowResultsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostWorkflowResultsRequest): PostWorkflowResultsRequest.AsObject; + toObject(includeInstance?: boolean): GetModuleVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetModuleVersionRequest): GetModuleVersionRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostWorkflowResultsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsRequest; - static deserializeBinaryFromReader(message: PostWorkflowResultsRequest, reader: jspb.BinaryReader): PostWorkflowResultsRequest; + static serializeBinaryToWriter(message: GetModuleVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetModuleVersionRequest; + static deserializeBinaryFromReader(message: GetModuleVersionRequest, reader: jspb.BinaryReader): GetModuleVersionRequest; } -export namespace PostWorkflowResultsRequest { +export namespace GetModuleVersionRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, - versionId: string, - inputsList: Array, - outputConfig?: proto_clarifai_api_resources_pb.OutputConfig.AsObject, - favorClarifaiWorkflows: boolean, - workflowState?: proto_clarifai_api_resources_pb.WorkflowState.AsObject, + moduleId: string, + moduleVersionId: string, } } -export class PostWorkflowResultsResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): PostWorkflowResultsResponse; - +export class ListModuleVersionsRequest extends jspb.Message { - hasWorkflow(): boolean; - clearWorkflow(): void; - getWorkflow(): proto_clarifai_api_resources_pb.Workflow | undefined; - setWorkflow(value?: proto_clarifai_api_resources_pb.Workflow): PostWorkflowResultsResponse; + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListModuleVersionsRequest; + getModuleId(): string; + setModuleId(value: string): ListModuleVersionsRequest; + getPage(): number; + setPage(value: number): ListModuleVersionsRequest; + getPerPage(): number; + setPerPage(value: number): ListModuleVersionsRequest; - clearResultsList(): void; - getResultsList(): Array; - setResultsList(value: Array): PostWorkflowResultsResponse; - addResults(value?: proto_clarifai_api_resources_pb.WorkflowResult, index?: number): proto_clarifai_api_resources_pb.WorkflowResult; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListModuleVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListModuleVersionsRequest): ListModuleVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListModuleVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListModuleVersionsRequest; + static deserializeBinaryFromReader(message: ListModuleVersionsRequest, reader: jspb.BinaryReader): ListModuleVersionsRequest; +} +export namespace ListModuleVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + moduleId: string, + page: number, + perPage: number, + } +} - hasWorkflowState(): boolean; - clearWorkflowState(): void; - getWorkflowState(): proto_clarifai_api_resources_pb.WorkflowState | undefined; - setWorkflowState(value?: proto_clarifai_api_resources_pb.WorkflowState): PostWorkflowResultsResponse; +export class PostModuleVersionsRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostModuleVersionsRequest; + getModuleId(): string; + setModuleId(value: string): PostModuleVersionsRequest; + clearModuleVersionsList(): void; + getModuleVersionsList(): Array; + setModuleVersionsList(value: Array): PostModuleVersionsRequest; + addModuleVersions(value?: proto_clarifai_api_resources_pb.ModuleVersion, index?: number): proto_clarifai_api_resources_pb.ModuleVersion; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostWorkflowResultsResponse.AsObject; - static toObject(includeInstance: boolean, msg: PostWorkflowResultsResponse): PostWorkflowResultsResponse.AsObject; + toObject(includeInstance?: boolean): PostModuleVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostModuleVersionsRequest): PostModuleVersionsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostWorkflowResultsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsResponse; - static deserializeBinaryFromReader(message: PostWorkflowResultsResponse, reader: jspb.BinaryReader): PostWorkflowResultsResponse; + static serializeBinaryToWriter(message: PostModuleVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostModuleVersionsRequest; + static deserializeBinaryFromReader(message: PostModuleVersionsRequest, reader: jspb.BinaryReader): PostModuleVersionsRequest; } -export namespace PostWorkflowResultsResponse { +export namespace PostModuleVersionsRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - workflow?: proto_clarifai_api_resources_pb.Workflow.AsObject, - resultsList: Array, - workflowState?: proto_clarifai_api_resources_pb.WorkflowState.AsObject, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + moduleId: string, + moduleVersionsList: Array, } } -export class PostWorkflowResultsSimilarityRequest extends jspb.Message { +export class DeleteModuleVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostWorkflowResultsSimilarityRequest; - - getWorkflowId(): string; - setWorkflowId(value: string): PostWorkflowResultsSimilarityRequest; - - getVersionId(): string; - setVersionId(value: string): PostWorkflowResultsSimilarityRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteModuleVersionsRequest; + getModuleId(): string; + setModuleId(value: string): DeleteModuleVersionsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteModuleVersionsRequest; + addIds(value: string, index?: number): string; - getModelVersionId(): string; - setModelVersionId(value: string): PostWorkflowResultsSimilarityRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteModuleVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteModuleVersionsRequest): DeleteModuleVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteModuleVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteModuleVersionsRequest; + static deserializeBinaryFromReader(message: DeleteModuleVersionsRequest, reader: jspb.BinaryReader): DeleteModuleVersionsRequest; +} - clearProbeInputsList(): void; - getProbeInputsList(): Array; - setProbeInputsList(value: Array): PostWorkflowResultsSimilarityRequest; - addProbeInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; +export namespace DeleteModuleVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + moduleId: string, + idsList: Array, + } +} - clearPoolInputsList(): void; - getPoolInputsList(): Array; - setPoolInputsList(value: Array): PostWorkflowResultsSimilarityRequest; - addPoolInputs(value?: proto_clarifai_api_resources_pb.Input, index?: number): proto_clarifai_api_resources_pb.Input; +export class SingleModuleVersionResponse extends jspb.Message { - getFavorClarifaiWorkflows(): boolean; - setFavorClarifaiWorkflows(value: boolean): PostWorkflowResultsSimilarityRequest; + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleModuleVersionResponse; + hasModuleVersion(): boolean; + clearModuleVersion(): void; + getModuleVersion(): proto_clarifai_api_resources_pb.ModuleVersion | undefined; + setModuleVersion(value?: proto_clarifai_api_resources_pb.ModuleVersion): SingleModuleVersionResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostWorkflowResultsSimilarityRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostWorkflowResultsSimilarityRequest): PostWorkflowResultsSimilarityRequest.AsObject; + toObject(includeInstance?: boolean): SingleModuleVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleModuleVersionResponse): SingleModuleVersionResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostWorkflowResultsSimilarityRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsSimilarityRequest; - static deserializeBinaryFromReader(message: PostWorkflowResultsSimilarityRequest, reader: jspb.BinaryReader): PostWorkflowResultsSimilarityRequest; + static serializeBinaryToWriter(message: SingleModuleVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleModuleVersionResponse; + static deserializeBinaryFromReader(message: SingleModuleVersionResponse, reader: jspb.BinaryReader): SingleModuleVersionResponse; } -export namespace PostWorkflowResultsSimilarityRequest { +export namespace SingleModuleVersionResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, - versionId: string, - modelVersionId: string, - probeInputsList: Array, - poolInputsList: Array, - favorClarifaiWorkflows: boolean, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + moduleVersion?: proto_clarifai_api_resources_pb.ModuleVersion.AsObject, } } -export class PostWorkflowResultsSimilarityResponse extends jspb.Message { +export class MultiModuleVersionResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): PostWorkflowResultsSimilarityResponse; - - clearResultsList(): void; - getResultsList(): Array; - setResultsList(value: Array): PostWorkflowResultsSimilarityResponse; - addResults(value?: proto_clarifai_api_resources_pb.WorkflowResultsSimilarity, index?: number): proto_clarifai_api_resources_pb.WorkflowResultsSimilarity; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiModuleVersionResponse; + clearModuleVersionsList(): void; + getModuleVersionsList(): Array; + setModuleVersionsList(value: Array): MultiModuleVersionResponse; + addModuleVersions(value?: proto_clarifai_api_resources_pb.ModuleVersion, index?: number): proto_clarifai_api_resources_pb.ModuleVersion; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostWorkflowResultsSimilarityResponse.AsObject; - static toObject(includeInstance: boolean, msg: PostWorkflowResultsSimilarityResponse): PostWorkflowResultsSimilarityResponse.AsObject; + toObject(includeInstance?: boolean): MultiModuleVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiModuleVersionResponse): MultiModuleVersionResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostWorkflowResultsSimilarityResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostWorkflowResultsSimilarityResponse; - static deserializeBinaryFromReader(message: PostWorkflowResultsSimilarityResponse, reader: jspb.BinaryReader): PostWorkflowResultsSimilarityResponse; + static serializeBinaryToWriter(message: MultiModuleVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiModuleVersionResponse; + static deserializeBinaryFromReader(message: MultiModuleVersionResponse, reader: jspb.BinaryReader): MultiModuleVersionResponse; } -export namespace PostWorkflowResultsSimilarityResponse { +export namespace MultiModuleVersionResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - resultsList: Array, + moduleVersionsList: Array, } } -export class ListWorkflowVersionsRequest extends jspb.Message { +export class GetInstalledModuleVersionRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListWorkflowVersionsRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetInstalledModuleVersionRequest; + getInstalledModuleVersionId(): string; + setInstalledModuleVersionId(value: string): GetInstalledModuleVersionRequest; - getWorkflowId(): string; - setWorkflowId(value: string): ListWorkflowVersionsRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetInstalledModuleVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetInstalledModuleVersionRequest): GetInstalledModuleVersionRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetInstalledModuleVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetInstalledModuleVersionRequest; + static deserializeBinaryFromReader(message: GetInstalledModuleVersionRequest, reader: jspb.BinaryReader): GetInstalledModuleVersionRequest; +} - getPage(): number; - setPage(value: number): ListWorkflowVersionsRequest; +export namespace GetInstalledModuleVersionRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + installedModuleVersionId: string, + } +} - getPerPage(): number; - setPerPage(value: number): ListWorkflowVersionsRequest; +export class ListInstalledModuleVersionsRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListInstalledModuleVersionsRequest; + getPage(): number; + setPage(value: number): ListInstalledModuleVersionsRequest; + getPerPage(): number; + setPerPage(value: number): ListInstalledModuleVersionsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListWorkflowVersionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListWorkflowVersionsRequest): ListWorkflowVersionsRequest.AsObject; + toObject(includeInstance?: boolean): ListInstalledModuleVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListInstalledModuleVersionsRequest): ListInstalledModuleVersionsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListWorkflowVersionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListWorkflowVersionsRequest; - static deserializeBinaryFromReader(message: ListWorkflowVersionsRequest, reader: jspb.BinaryReader): ListWorkflowVersionsRequest; + static serializeBinaryToWriter(message: ListInstalledModuleVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListInstalledModuleVersionsRequest; + static deserializeBinaryFromReader(message: ListInstalledModuleVersionsRequest, reader: jspb.BinaryReader): ListInstalledModuleVersionsRequest; } -export namespace ListWorkflowVersionsRequest { +export namespace ListInstalledModuleVersionsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, page: number, perPage: number, } } -export class GetWorkflowVersionRequest extends jspb.Message { +export class PostInstalledModuleVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetWorkflowVersionRequest; - - getWorkflowId(): string; - setWorkflowId(value: string): GetWorkflowVersionRequest; - - getWorkflowVersionId(): string; - setWorkflowVersionId(value: string): GetWorkflowVersionRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostInstalledModuleVersionsRequest; + clearInstalledModuleVersionsList(): void; + getInstalledModuleVersionsList(): Array; + setInstalledModuleVersionsList(value: Array): PostInstalledModuleVersionsRequest; + addInstalledModuleVersions(value?: proto_clarifai_api_resources_pb.InstalledModuleVersion, index?: number): proto_clarifai_api_resources_pb.InstalledModuleVersion; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetWorkflowVersionRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetWorkflowVersionRequest): GetWorkflowVersionRequest.AsObject; + toObject(includeInstance?: boolean): PostInstalledModuleVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostInstalledModuleVersionsRequest): PostInstalledModuleVersionsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetWorkflowVersionRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetWorkflowVersionRequest; - static deserializeBinaryFromReader(message: GetWorkflowVersionRequest, reader: jspb.BinaryReader): GetWorkflowVersionRequest; + static serializeBinaryToWriter(message: PostInstalledModuleVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostInstalledModuleVersionsRequest; + static deserializeBinaryFromReader(message: PostInstalledModuleVersionsRequest, reader: jspb.BinaryReader): PostInstalledModuleVersionsRequest; } -export namespace GetWorkflowVersionRequest { +export namespace PostInstalledModuleVersionsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, - workflowVersionId: string, + installedModuleVersionsList: Array, } } -export class DeleteWorkflowVersionsRequest extends jspb.Message { +export class PostInstalledModuleVersionsKeyRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteWorkflowVersionsRequest; - - getWorkflowId(): string; - setWorkflowId(value: string): DeleteWorkflowVersionsRequest; - - clearWorkflowVersionIdsList(): void; - getWorkflowVersionIdsList(): Array; - setWorkflowVersionIdsList(value: Array): DeleteWorkflowVersionsRequest; - addWorkflowVersionIds(value: string, index?: number): string; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostInstalledModuleVersionsKeyRequest; + getInstalledModuleVersionId(): string; + setInstalledModuleVersionId(value: string): PostInstalledModuleVersionsKeyRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteWorkflowVersionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteWorkflowVersionsRequest): DeleteWorkflowVersionsRequest.AsObject; + toObject(includeInstance?: boolean): PostInstalledModuleVersionsKeyRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostInstalledModuleVersionsKeyRequest): PostInstalledModuleVersionsKeyRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteWorkflowVersionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteWorkflowVersionsRequest; - static deserializeBinaryFromReader(message: DeleteWorkflowVersionsRequest, reader: jspb.BinaryReader): DeleteWorkflowVersionsRequest; + static serializeBinaryToWriter(message: PostInstalledModuleVersionsKeyRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostInstalledModuleVersionsKeyRequest; + static deserializeBinaryFromReader(message: PostInstalledModuleVersionsKeyRequest, reader: jspb.BinaryReader): PostInstalledModuleVersionsKeyRequest; } -export namespace DeleteWorkflowVersionsRequest { +export namespace PostInstalledModuleVersionsKeyRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, - workflowVersionIdsList: Array, + installedModuleVersionId: string, } } -export class PatchWorkflowVersionsRequest extends jspb.Message { +export class DeleteInstalledModuleVersionsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchWorkflowVersionsRequest; - - getWorkflowId(): string; - setWorkflowId(value: string): PatchWorkflowVersionsRequest; - - clearWorkflowVersionsList(): void; - getWorkflowVersionsList(): Array; - setWorkflowVersionsList(value: Array): PatchWorkflowVersionsRequest; - addWorkflowVersions(value?: proto_clarifai_api_resources_pb.WorkflowVersion, index?: number): proto_clarifai_api_resources_pb.WorkflowVersion; - - getAction(): string; - setAction(value: string): PatchWorkflowVersionsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteInstalledModuleVersionsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteInstalledModuleVersionsRequest; + addIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchWorkflowVersionsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchWorkflowVersionsRequest): PatchWorkflowVersionsRequest.AsObject; + toObject(includeInstance?: boolean): DeleteInstalledModuleVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteInstalledModuleVersionsRequest): DeleteInstalledModuleVersionsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchWorkflowVersionsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchWorkflowVersionsRequest; - static deserializeBinaryFromReader(message: PatchWorkflowVersionsRequest, reader: jspb.BinaryReader): PatchWorkflowVersionsRequest; + static serializeBinaryToWriter(message: DeleteInstalledModuleVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteInstalledModuleVersionsRequest; + static deserializeBinaryFromReader(message: DeleteInstalledModuleVersionsRequest, reader: jspb.BinaryReader): DeleteInstalledModuleVersionsRequest; } -export namespace PatchWorkflowVersionsRequest { - export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - workflowId: string, - workflowVersionsList: Array, - action: string, +export namespace DeleteInstalledModuleVersionsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, } } -export class MultiWorkflowVersionResponse extends jspb.Message { +export class SingleInstalledModuleVersionResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiWorkflowVersionResponse; - - clearWorkflowVersionsList(): void; - getWorkflowVersionsList(): Array; - setWorkflowVersionsList(value: Array): MultiWorkflowVersionResponse; - addWorkflowVersions(value?: proto_clarifai_api_resources_pb.WorkflowVersion, index?: number): proto_clarifai_api_resources_pb.WorkflowVersion; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleInstalledModuleVersionResponse; + hasInstalledModuleVersion(): boolean; + clearInstalledModuleVersion(): void; + getInstalledModuleVersion(): proto_clarifai_api_resources_pb.InstalledModuleVersion | undefined; + setInstalledModuleVersion(value?: proto_clarifai_api_resources_pb.InstalledModuleVersion): SingleInstalledModuleVersionResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiWorkflowVersionResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiWorkflowVersionResponse): MultiWorkflowVersionResponse.AsObject; + toObject(includeInstance?: boolean): SingleInstalledModuleVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleInstalledModuleVersionResponse): SingleInstalledModuleVersionResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiWorkflowVersionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiWorkflowVersionResponse; - static deserializeBinaryFromReader(message: MultiWorkflowVersionResponse, reader: jspb.BinaryReader): MultiWorkflowVersionResponse; + static serializeBinaryToWriter(message: SingleInstalledModuleVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleInstalledModuleVersionResponse; + static deserializeBinaryFromReader(message: SingleInstalledModuleVersionResponse, reader: jspb.BinaryReader): SingleInstalledModuleVersionResponse; } -export namespace MultiWorkflowVersionResponse { +export namespace SingleInstalledModuleVersionResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - workflowVersionsList: Array, + installedModuleVersion?: proto_clarifai_api_resources_pb.InstalledModuleVersion.AsObject, } } -export class SingleWorkflowVersionResponse extends jspb.Message { +export class MultiInstalledModuleVersionResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleWorkflowVersionResponse; - - - hasWorkflowVersion(): boolean; - clearWorkflowVersion(): void; - getWorkflowVersion(): proto_clarifai_api_resources_pb.WorkflowVersion | undefined; - setWorkflowVersion(value?: proto_clarifai_api_resources_pb.WorkflowVersion): SingleWorkflowVersionResponse; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiInstalledModuleVersionResponse; + clearInstalledModuleVersionsList(): void; + getInstalledModuleVersionsList(): Array; + setInstalledModuleVersionsList(value: Array): MultiInstalledModuleVersionResponse; + addInstalledModuleVersions(value?: proto_clarifai_api_resources_pb.InstalledModuleVersion, index?: number): proto_clarifai_api_resources_pb.InstalledModuleVersion; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleWorkflowVersionResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleWorkflowVersionResponse): SingleWorkflowVersionResponse.AsObject; + toObject(includeInstance?: boolean): MultiInstalledModuleVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiInstalledModuleVersionResponse): MultiInstalledModuleVersionResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleWorkflowVersionResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleWorkflowVersionResponse; - static deserializeBinaryFromReader(message: SingleWorkflowVersionResponse, reader: jspb.BinaryReader): SingleWorkflowVersionResponse; + static serializeBinaryToWriter(message: MultiInstalledModuleVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiInstalledModuleVersionResponse; + static deserializeBinaryFromReader(message: MultiInstalledModuleVersionResponse, reader: jspb.BinaryReader): MultiInstalledModuleVersionResponse; } -export namespace SingleWorkflowVersionResponse { +export namespace MultiInstalledModuleVersionResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - workflowVersion?: proto_clarifai_api_resources_pb.WorkflowVersion.AsObject, + installedModuleVersionsList: Array, } } -export class PostAppDuplicationsRequest extends jspb.Message { +export class ListNextTaskAssignmentsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAppDuplicationsRequest; - - clearAppDuplicationsList(): void; - getAppDuplicationsList(): Array; - setAppDuplicationsList(value: Array): PostAppDuplicationsRequest; - addAppDuplications(value?: proto_clarifai_api_resources_pb.AppDuplication, index?: number): proto_clarifai_api_resources_pb.AppDuplication; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListNextTaskAssignmentsRequest; + getTaskId(): string; + setTaskId(value: string): ListNextTaskAssignmentsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostAppDuplicationsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostAppDuplicationsRequest): PostAppDuplicationsRequest.AsObject; + toObject(includeInstance?: boolean): ListNextTaskAssignmentsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListNextTaskAssignmentsRequest): ListNextTaskAssignmentsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostAppDuplicationsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostAppDuplicationsRequest; - static deserializeBinaryFromReader(message: PostAppDuplicationsRequest, reader: jspb.BinaryReader): PostAppDuplicationsRequest; + static serializeBinaryToWriter(message: ListNextTaskAssignmentsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListNextTaskAssignmentsRequest; + static deserializeBinaryFromReader(message: ListNextTaskAssignmentsRequest, reader: jspb.BinaryReader): ListNextTaskAssignmentsRequest; } -export namespace PostAppDuplicationsRequest { +export namespace ListNextTaskAssignmentsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - appDuplicationsList: Array, + taskId: string, } } -export class GetAppDuplicationRequest extends jspb.Message { +export class PostBulkOperationsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetAppDuplicationRequest; - - getAppDuplicationId(): string; - setAppDuplicationId(value: string): GetAppDuplicationRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostBulkOperationsRequest; + clearBulkOperationsList(): void; + getBulkOperationsList(): Array; + setBulkOperationsList(value: Array): PostBulkOperationsRequest; + addBulkOperations(value?: proto_clarifai_api_resources_pb.BulkOperation, index?: number): proto_clarifai_api_resources_pb.BulkOperation; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetAppDuplicationRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetAppDuplicationRequest): GetAppDuplicationRequest.AsObject; + toObject(includeInstance?: boolean): PostBulkOperationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostBulkOperationsRequest): PostBulkOperationsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetAppDuplicationRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetAppDuplicationRequest; - static deserializeBinaryFromReader(message: GetAppDuplicationRequest, reader: jspb.BinaryReader): GetAppDuplicationRequest; + static serializeBinaryToWriter(message: PostBulkOperationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostBulkOperationsRequest; + static deserializeBinaryFromReader(message: PostBulkOperationsRequest, reader: jspb.BinaryReader): PostBulkOperationsRequest; } -export namespace GetAppDuplicationRequest { +export namespace PostBulkOperationsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - appDuplicationId: string, + bulkOperationsList: Array, } } -export class ListAppDuplicationsRequest extends jspb.Message { +export class ListBulkOperationsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListAppDuplicationsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListBulkOperationsRequest; getPage(): number; - setPage(value: number): ListAppDuplicationsRequest; - + setPage(value: number): ListBulkOperationsRequest; getPerPage(): number; - setPerPage(value: number): ListAppDuplicationsRequest; - + setPerPage(value: number): ListBulkOperationsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListAppDuplicationsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListAppDuplicationsRequest): ListAppDuplicationsRequest.AsObject; + toObject(includeInstance?: boolean): ListBulkOperationsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListBulkOperationsRequest): ListBulkOperationsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListAppDuplicationsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListAppDuplicationsRequest; - static deserializeBinaryFromReader(message: ListAppDuplicationsRequest, reader: jspb.BinaryReader): ListAppDuplicationsRequest; + static serializeBinaryToWriter(message: ListBulkOperationsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListBulkOperationsRequest; + static deserializeBinaryFromReader(message: ListBulkOperationsRequest, reader: jspb.BinaryReader): ListBulkOperationsRequest; } -export namespace ListAppDuplicationsRequest { +export namespace ListBulkOperationsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, page: number, @@ -5610,1019 +8887,1046 @@ export namespace ListAppDuplicationsRequest { } } -export class MultiAppDuplicationsResponse extends jspb.Message { +export class GetBulkOperationRequest extends jspb.Message { - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiAppDuplicationsResponse; + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetBulkOperationRequest; + getId(): string; + setId(value: string): GetBulkOperationRequest; - clearAppDuplicationsList(): void; - getAppDuplicationsList(): Array; - setAppDuplicationsList(value: Array): MultiAppDuplicationsResponse; - addAppDuplications(value?: proto_clarifai_api_resources_pb.AppDuplication, index?: number): proto_clarifai_api_resources_pb.AppDuplication; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetBulkOperationRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetBulkOperationRequest): GetBulkOperationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetBulkOperationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetBulkOperationRequest; + static deserializeBinaryFromReader(message: GetBulkOperationRequest, reader: jspb.BinaryReader): GetBulkOperationRequest; +} + +export namespace GetBulkOperationRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + } +} + +export class CancelBulkOperationRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): CancelBulkOperationRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): CancelBulkOperationRequest; + addIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiAppDuplicationsResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiAppDuplicationsResponse): MultiAppDuplicationsResponse.AsObject; + toObject(includeInstance?: boolean): CancelBulkOperationRequest.AsObject; + static toObject(includeInstance: boolean, msg: CancelBulkOperationRequest): CancelBulkOperationRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiAppDuplicationsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiAppDuplicationsResponse; - static deserializeBinaryFromReader(message: MultiAppDuplicationsResponse, reader: jspb.BinaryReader): MultiAppDuplicationsResponse; + static serializeBinaryToWriter(message: CancelBulkOperationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CancelBulkOperationRequest; + static deserializeBinaryFromReader(message: CancelBulkOperationRequest, reader: jspb.BinaryReader): CancelBulkOperationRequest; } -export namespace MultiAppDuplicationsResponse { +export namespace CancelBulkOperationRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - appDuplicationsList: Array, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, } } -export class SingleAppDuplicationResponse extends jspb.Message { +export class DeleteBulkOperationRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteBulkOperationRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteBulkOperationRequest; + addIds(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteBulkOperationRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteBulkOperationRequest): DeleteBulkOperationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteBulkOperationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteBulkOperationRequest; + static deserializeBinaryFromReader(message: DeleteBulkOperationRequest, reader: jspb.BinaryReader): DeleteBulkOperationRequest; +} + +export namespace DeleteBulkOperationRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, + } +} + +export class SingleBulkOperationsResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleAppDuplicationResponse; - - - hasAppDuplication(): boolean; - clearAppDuplication(): void; - getAppDuplication(): proto_clarifai_api_resources_pb.AppDuplication | undefined; - setAppDuplication(value?: proto_clarifai_api_resources_pb.AppDuplication): SingleAppDuplicationResponse; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleBulkOperationsResponse; + hasBulkOperation(): boolean; + clearBulkOperation(): void; + getBulkOperation(): proto_clarifai_api_resources_pb.BulkOperation | undefined; + setBulkOperation(value?: proto_clarifai_api_resources_pb.BulkOperation): SingleBulkOperationsResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleAppDuplicationResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleAppDuplicationResponse): SingleAppDuplicationResponse.AsObject; + toObject(includeInstance?: boolean): SingleBulkOperationsResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleBulkOperationsResponse): SingleBulkOperationsResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleAppDuplicationResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleAppDuplicationResponse; - static deserializeBinaryFromReader(message: SingleAppDuplicationResponse, reader: jspb.BinaryReader): SingleAppDuplicationResponse; + static serializeBinaryToWriter(message: SingleBulkOperationsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleBulkOperationsResponse; + static deserializeBinaryFromReader(message: SingleBulkOperationsResponse, reader: jspb.BinaryReader): SingleBulkOperationsResponse; } -export namespace SingleAppDuplicationResponse { +export namespace SingleBulkOperationsResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - appDuplication?: proto_clarifai_api_resources_pb.AppDuplication.AsObject, + bulkOperation?: proto_clarifai_api_resources_pb.BulkOperation.AsObject, } } -export class PostTasksRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostTasksRequest; - - clearTasksList(): void; - getTasksList(): Array; - setTasksList(value: Array): PostTasksRequest; - addTasks(value?: proto_clarifai_api_resources_pb.Task, index?: number): proto_clarifai_api_resources_pb.Task; +export class MultiBulkOperationsResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiBulkOperationsResponse; + clearBulkOperationList(): void; + getBulkOperationList(): Array; + setBulkOperationList(value: Array): MultiBulkOperationsResponse; + addBulkOperation(value?: proto_clarifai_api_resources_pb.BulkOperation, index?: number): proto_clarifai_api_resources_pb.BulkOperation; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostTasksRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostTasksRequest): PostTasksRequest.AsObject; + toObject(includeInstance?: boolean): MultiBulkOperationsResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiBulkOperationsResponse): MultiBulkOperationsResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostTasksRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostTasksRequest; - static deserializeBinaryFromReader(message: PostTasksRequest, reader: jspb.BinaryReader): PostTasksRequest; + static serializeBinaryToWriter(message: MultiBulkOperationsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiBulkOperationsResponse; + static deserializeBinaryFromReader(message: MultiBulkOperationsResponse, reader: jspb.BinaryReader): MultiBulkOperationsResponse; } -export namespace PostTasksRequest { +export namespace MultiBulkOperationsResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - tasksList: Array, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + bulkOperationList: Array, } } -export class GetTaskRequest extends jspb.Message { +export class PutTaskAssignmentsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetTaskRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PutTaskAssignmentsRequest; getTaskId(): string; - setTaskId(value: string): GetTaskRequest; - + setTaskId(value: string): PutTaskAssignmentsRequest; + getInputId(): string; + setInputId(value: string): PutTaskAssignmentsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTaskRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTaskRequest): GetTaskRequest.AsObject; + toObject(includeInstance?: boolean): PutTaskAssignmentsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PutTaskAssignmentsRequest): PutTaskAssignmentsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetTaskRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTaskRequest; - static deserializeBinaryFromReader(message: GetTaskRequest, reader: jspb.BinaryReader): GetTaskRequest; + static serializeBinaryToWriter(message: PutTaskAssignmentsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PutTaskAssignmentsRequest; + static deserializeBinaryFromReader(message: PutTaskAssignmentsRequest, reader: jspb.BinaryReader): PutTaskAssignmentsRequest; } -export namespace GetTaskRequest { +export namespace PutTaskAssignmentsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, taskId: string, + inputId: string, } } -export class ListTasksRequest extends jspb.Message { +export class ListInputsAddJobsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListTasksRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListInputsAddJobsRequest; getPage(): number; - setPage(value: number): ListTasksRequest; - + setPage(value: number): ListInputsAddJobsRequest; getPerPage(): number; - setPerPage(value: number): ListTasksRequest; - - clearWorkerUserIdsList(): void; - getWorkerUserIdsList(): Array; - setWorkerUserIdsList(value: Array): ListTasksRequest; - addWorkerUserIds(value: string, index?: number): string; - - clearReviewUserIdsList(): void; - getReviewUserIdsList(): Array; - setReviewUserIdsList(value: Array): ListTasksRequest; - addReviewUserIds(value: string, index?: number): string; - - getIncludingLabelOrderTasks(): boolean; - setIncludingLabelOrderTasks(value: boolean): ListTasksRequest; - + setPerPage(value: number): ListInputsAddJobsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTasksRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListTasksRequest): ListTasksRequest.AsObject; + toObject(includeInstance?: boolean): ListInputsAddJobsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListInputsAddJobsRequest): ListInputsAddJobsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListTasksRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTasksRequest; - static deserializeBinaryFromReader(message: ListTasksRequest, reader: jspb.BinaryReader): ListTasksRequest; + static serializeBinaryToWriter(message: ListInputsAddJobsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListInputsAddJobsRequest; + static deserializeBinaryFromReader(message: ListInputsAddJobsRequest, reader: jspb.BinaryReader): ListInputsAddJobsRequest; } -export namespace ListTasksRequest { +export namespace ListInputsAddJobsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, page: number, perPage: number, - workerUserIdsList: Array, - reviewUserIdsList: Array, - includingLabelOrderTasks: boolean, } } -export class PatchTasksRequest extends jspb.Message { +export class GetInputsAddJobRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchTasksRequest; - - clearTasksList(): void; - getTasksList(): Array; - setTasksList(value: Array): PatchTasksRequest; - addTasks(value?: proto_clarifai_api_resources_pb.Task, index?: number): proto_clarifai_api_resources_pb.Task; - - getAction(): string; - setAction(value: string): PatchTasksRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetInputsAddJobRequest; + getId(): string; + setId(value: string): GetInputsAddJobRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchTasksRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchTasksRequest): PatchTasksRequest.AsObject; + toObject(includeInstance?: boolean): GetInputsAddJobRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetInputsAddJobRequest): GetInputsAddJobRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchTasksRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchTasksRequest; - static deserializeBinaryFromReader(message: PatchTasksRequest, reader: jspb.BinaryReader): PatchTasksRequest; + static serializeBinaryToWriter(message: GetInputsAddJobRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetInputsAddJobRequest; + static deserializeBinaryFromReader(message: GetInputsAddJobRequest, reader: jspb.BinaryReader): GetInputsAddJobRequest; } -export namespace PatchTasksRequest { +export namespace GetInputsAddJobRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - tasksList: Array, - action: string, + id: string, } } -export class DeleteTasksRequest extends jspb.Message { +export class CancelInputsAddJobRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteTasksRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): CancelInputsAddJobRequest; + getId(): string; + setId(value: string): CancelInputsAddJobRequest; - clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): DeleteTasksRequest; - addIds(value: string, index?: number): string; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CancelInputsAddJobRequest.AsObject; + static toObject(includeInstance: boolean, msg: CancelInputsAddJobRequest): CancelInputsAddJobRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CancelInputsAddJobRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CancelInputsAddJobRequest; + static deserializeBinaryFromReader(message: CancelInputsAddJobRequest, reader: jspb.BinaryReader): CancelInputsAddJobRequest; +} + +export namespace CancelInputsAddJobRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + id: string, + } +} + +export class MultiInputsAddJobResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiInputsAddJobResponse; + clearInputsAddJobsList(): void; + getInputsAddJobsList(): Array; + setInputsAddJobsList(value: Array): MultiInputsAddJobResponse; + addInputsAddJobs(value?: proto_clarifai_api_resources_pb.InputsAddJob, index?: number): proto_clarifai_api_resources_pb.InputsAddJob; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteTasksRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteTasksRequest): DeleteTasksRequest.AsObject; + toObject(includeInstance?: boolean): MultiInputsAddJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiInputsAddJobResponse): MultiInputsAddJobResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteTasksRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteTasksRequest; - static deserializeBinaryFromReader(message: DeleteTasksRequest, reader: jspb.BinaryReader): DeleteTasksRequest; + static serializeBinaryToWriter(message: MultiInputsAddJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiInputsAddJobResponse; + static deserializeBinaryFromReader(message: MultiInputsAddJobResponse, reader: jspb.BinaryReader): MultiInputsAddJobResponse; } -export namespace DeleteTasksRequest { +export namespace MultiInputsAddJobResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - idsList: Array, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + inputsAddJobsList: Array, } } -export class MultiTaskResponse extends jspb.Message { +export class SingleInputsAddJobResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiTaskResponse; - - clearTasksList(): void; - getTasksList(): Array; - setTasksList(value: Array): MultiTaskResponse; - addTasks(value?: proto_clarifai_api_resources_pb.Task, index?: number): proto_clarifai_api_resources_pb.Task; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleInputsAddJobResponse; + hasInputsAddJob(): boolean; + clearInputsAddJob(): void; + getInputsAddJob(): proto_clarifai_api_resources_pb.InputsAddJob | undefined; + setInputsAddJob(value?: proto_clarifai_api_resources_pb.InputsAddJob): SingleInputsAddJobResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiTaskResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiTaskResponse): MultiTaskResponse.AsObject; + toObject(includeInstance?: boolean): SingleInputsAddJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleInputsAddJobResponse): SingleInputsAddJobResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiTaskResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiTaskResponse; - static deserializeBinaryFromReader(message: MultiTaskResponse, reader: jspb.BinaryReader): MultiTaskResponse; + static serializeBinaryToWriter(message: SingleInputsAddJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleInputsAddJobResponse; + static deserializeBinaryFromReader(message: SingleInputsAddJobResponse, reader: jspb.BinaryReader): SingleInputsAddJobResponse; } -export namespace MultiTaskResponse { +export namespace SingleInputsAddJobResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - tasksList: Array, + inputsAddJob?: proto_clarifai_api_resources_pb.InputsAddJob.AsObject, } } -export class SingleTaskResponse extends jspb.Message { +export class PostUploadsRequest extends jspb.Message { - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleTaskResponse; + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostUploadsRequest; + clearUploadsList(): void; + getUploadsList(): Array; + setUploadsList(value: Array): PostUploadsRequest; + addUploads(value?: proto_clarifai_api_resources_pb.Upload, index?: number): proto_clarifai_api_resources_pb.Upload; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PostUploadsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostUploadsRequest): PostUploadsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PostUploadsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostUploadsRequest; + static deserializeBinaryFromReader(message: PostUploadsRequest, reader: jspb.BinaryReader): PostUploadsRequest; +} - hasTask(): boolean; - clearTask(): void; - getTask(): proto_clarifai_api_resources_pb.Task | undefined; - setTask(value?: proto_clarifai_api_resources_pb.Task): SingleTaskResponse; +export namespace PostUploadsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + uploadsList: Array, + } +} +export class DeleteUploadsRequest extends jspb.Message { + + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteUploadsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteUploadsRequest; + addIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleTaskResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleTaskResponse): SingleTaskResponse.AsObject; + toObject(includeInstance?: boolean): DeleteUploadsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteUploadsRequest): DeleteUploadsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleTaskResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleTaskResponse; - static deserializeBinaryFromReader(message: SingleTaskResponse, reader: jspb.BinaryReader): SingleTaskResponse; + static serializeBinaryToWriter(message: DeleteUploadsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteUploadsRequest; + static deserializeBinaryFromReader(message: DeleteUploadsRequest, reader: jspb.BinaryReader): DeleteUploadsRequest; } -export namespace SingleTaskResponse { +export namespace DeleteUploadsRequest { export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - task?: proto_clarifai_api_resources_pb.Task.AsObject, + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, } } -export class GetTaskCountRequest extends jspb.Message { +export class ListUploadsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetTaskCountRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListUploadsRequest; + getPage(): number; + setPage(value: number): ListUploadsRequest; + getPerPage(): number; + setPerPage(value: number): ListUploadsRequest; - getTaskId(): string; - setTaskId(value: string): GetTaskCountRequest; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListUploadsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListUploadsRequest): ListUploadsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListUploadsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListUploadsRequest; + static deserializeBinaryFromReader(message: ListUploadsRequest, reader: jspb.BinaryReader): ListUploadsRequest; +} - clearUserIdsList(): void; - getUserIdsList(): Array; - setUserIdsList(value: Array): GetTaskCountRequest; - addUserIds(value: string, index?: number): string; +export namespace ListUploadsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + page: number, + perPage: number, + } +} + +export class GetUploadRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetUploadRequest; + getUploadId(): string; + setUploadId(value: string): GetUploadRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetTaskCountRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetTaskCountRequest): GetTaskCountRequest.AsObject; + toObject(includeInstance?: boolean): GetUploadRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetUploadRequest): GetUploadRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetTaskCountRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetTaskCountRequest; - static deserializeBinaryFromReader(message: GetTaskCountRequest, reader: jspb.BinaryReader): GetTaskCountRequest; + static serializeBinaryToWriter(message: GetUploadRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetUploadRequest; + static deserializeBinaryFromReader(message: GetUploadRequest, reader: jspb.BinaryReader): GetUploadRequest; } -export namespace GetTaskCountRequest { +export namespace GetUploadRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - taskId: string, - userIdsList: Array, + uploadId: string, } } -export class SingleTaskCountResponse extends jspb.Message { +export class SingleUploadResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleTaskCountResponse; - - getAppId(): string; - setAppId(value: string): SingleTaskCountResponse; - - getTaskId(): string; - setTaskId(value: string): SingleTaskCountResponse; - - clearCountsList(): void; - getCountsList(): Array; - setCountsList(value: Array): SingleTaskCountResponse; - addCounts(value?: proto_clarifai_api_resources_pb.TaskStatusCountPerUser, index?: number): proto_clarifai_api_resources_pb.TaskStatusCountPerUser; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleUploadResponse; + hasUpload(): boolean; + clearUpload(): void; + getUpload(): proto_clarifai_api_resources_pb.Upload | undefined; + setUpload(value?: proto_clarifai_api_resources_pb.Upload): SingleUploadResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleTaskCountResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleTaskCountResponse): SingleTaskCountResponse.AsObject; + toObject(includeInstance?: boolean): SingleUploadResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleUploadResponse): SingleUploadResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleTaskCountResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleTaskCountResponse; - static deserializeBinaryFromReader(message: SingleTaskCountResponse, reader: jspb.BinaryReader): SingleTaskCountResponse; + static serializeBinaryToWriter(message: SingleUploadResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleUploadResponse; + static deserializeBinaryFromReader(message: SingleUploadResponse, reader: jspb.BinaryReader): SingleUploadResponse; } -export namespace SingleTaskCountResponse { +export namespace SingleUploadResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - appId: string, - taskId: string, - countsList: Array, + upload?: proto_clarifai_api_resources_pb.Upload.AsObject, } } -export class PostLabelOrdersRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostLabelOrdersRequest; - - clearLabelOrdersList(): void; - getLabelOrdersList(): Array; - setLabelOrdersList(value: Array): PostLabelOrdersRequest; - addLabelOrders(value?: proto_clarifai_api_resources_pb.LabelOrder, index?: number): proto_clarifai_api_resources_pb.LabelOrder; +export class MultiUploadResponse extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiUploadResponse; + clearUploadsList(): void; + getUploadsList(): Array; + setUploadsList(value: Array): MultiUploadResponse; + addUploads(value?: proto_clarifai_api_resources_pb.Upload, index?: number): proto_clarifai_api_resources_pb.Upload; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostLabelOrdersRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostLabelOrdersRequest): PostLabelOrdersRequest.AsObject; + toObject(includeInstance?: boolean): MultiUploadResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiUploadResponse): MultiUploadResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostLabelOrdersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostLabelOrdersRequest; - static deserializeBinaryFromReader(message: PostLabelOrdersRequest, reader: jspb.BinaryReader): PostLabelOrdersRequest; + static serializeBinaryToWriter(message: MultiUploadResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiUploadResponse; + static deserializeBinaryFromReader(message: MultiUploadResponse, reader: jspb.BinaryReader): MultiUploadResponse; } -export namespace PostLabelOrdersRequest { +export namespace MultiUploadResponse { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - labelOrdersList: Array, + status?: proto_clarifai_api_status_status_pb.Status.AsObject, + uploadsList: Array, } } -export class GetLabelOrderRequest extends jspb.Message { +export class PutUploadContentPartsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetLabelOrderRequest; - - getLabelOrderId(): string; - setLabelOrderId(value: string): GetLabelOrderRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PutUploadContentPartsRequest; + getUploadId(): string; + setUploadId(value: string): PutUploadContentPartsRequest; + clearContentPartsList(): void; + getContentPartsList(): Array; + setContentPartsList(value: Array): PutUploadContentPartsRequest; + addContentParts(value?: proto_clarifai_api_resources_pb.UploadContentPart, index?: number): proto_clarifai_api_resources_pb.UploadContentPart; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetLabelOrderRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetLabelOrderRequest): GetLabelOrderRequest.AsObject; + toObject(includeInstance?: boolean): PutUploadContentPartsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PutUploadContentPartsRequest): PutUploadContentPartsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetLabelOrderRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetLabelOrderRequest; - static deserializeBinaryFromReader(message: GetLabelOrderRequest, reader: jspb.BinaryReader): GetLabelOrderRequest; + static serializeBinaryToWriter(message: PutUploadContentPartsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PutUploadContentPartsRequest; + static deserializeBinaryFromReader(message: PutUploadContentPartsRequest, reader: jspb.BinaryReader): PutUploadContentPartsRequest; } -export namespace GetLabelOrderRequest { +export namespace PutUploadContentPartsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - labelOrderId: string, + uploadId: string, + contentPartsList: Array, } } -export class ListLabelOrdersRequest extends jspb.Message { +export class PostInputsDataSourcesRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListLabelOrdersRequest; - - getPage(): number; - setPage(value: number): ListLabelOrdersRequest; - - getPerPage(): number; - setPerPage(value: number): ListLabelOrdersRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostInputsDataSourcesRequest; + clearDataSourcesList(): void; + getDataSourcesList(): Array; + setDataSourcesList(value: Array): PostInputsDataSourcesRequest; + addDataSources(value?: proto_clarifai_api_resources_pb.InputsDataSource, index?: number): proto_clarifai_api_resources_pb.InputsDataSource; + getCallBackUrl(): string; + setCallBackUrl(value: string): PostInputsDataSourcesRequest; + getAppPat(): string; + setAppPat(value: string): PostInputsDataSourcesRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListLabelOrdersRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListLabelOrdersRequest): ListLabelOrdersRequest.AsObject; + toObject(includeInstance?: boolean): PostInputsDataSourcesRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostInputsDataSourcesRequest): PostInputsDataSourcesRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListLabelOrdersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListLabelOrdersRequest; - static deserializeBinaryFromReader(message: ListLabelOrdersRequest, reader: jspb.BinaryReader): ListLabelOrdersRequest; + static serializeBinaryToWriter(message: PostInputsDataSourcesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostInputsDataSourcesRequest; + static deserializeBinaryFromReader(message: PostInputsDataSourcesRequest, reader: jspb.BinaryReader): PostInputsDataSourcesRequest; } -export namespace ListLabelOrdersRequest { +export namespace PostInputsDataSourcesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - page: number, - perPage: number, + dataSourcesList: Array, + callBackUrl: string, + appPat: string, } } -export class PatchLabelOrdersRequest extends jspb.Message { +export class GetInputsExtractionJobRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchLabelOrdersRequest; - - clearLabelOrdersList(): void; - getLabelOrdersList(): Array; - setLabelOrdersList(value: Array): PatchLabelOrdersRequest; - addLabelOrders(value?: proto_clarifai_api_resources_pb.LabelOrder, index?: number): proto_clarifai_api_resources_pb.LabelOrder; - - getAction(): string; - setAction(value: string): PatchLabelOrdersRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetInputsExtractionJobRequest; + getInputsExtractionJobId(): string; + setInputsExtractionJobId(value: string): GetInputsExtractionJobRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchLabelOrdersRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchLabelOrdersRequest): PatchLabelOrdersRequest.AsObject; + toObject(includeInstance?: boolean): GetInputsExtractionJobRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetInputsExtractionJobRequest): GetInputsExtractionJobRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchLabelOrdersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchLabelOrdersRequest; - static deserializeBinaryFromReader(message: PatchLabelOrdersRequest, reader: jspb.BinaryReader): PatchLabelOrdersRequest; + static serializeBinaryToWriter(message: GetInputsExtractionJobRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetInputsExtractionJobRequest; + static deserializeBinaryFromReader(message: GetInputsExtractionJobRequest, reader: jspb.BinaryReader): GetInputsExtractionJobRequest; } -export namespace PatchLabelOrdersRequest { +export namespace GetInputsExtractionJobRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - labelOrdersList: Array, - action: string, + inputsExtractionJobId: string, } } -export class DeleteLabelOrdersRequest extends jspb.Message { +export class ListInputsExtractionJobsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteLabelOrdersRequest; - - clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): DeleteLabelOrdersRequest; - addIds(value: string, index?: number): string; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListInputsExtractionJobsRequest; + getPage(): number; + setPage(value: number): ListInputsExtractionJobsRequest; + getPerPage(): number; + setPerPage(value: number): ListInputsExtractionJobsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteLabelOrdersRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteLabelOrdersRequest): DeleteLabelOrdersRequest.AsObject; + toObject(includeInstance?: boolean): ListInputsExtractionJobsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListInputsExtractionJobsRequest): ListInputsExtractionJobsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteLabelOrdersRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteLabelOrdersRequest; - static deserializeBinaryFromReader(message: DeleteLabelOrdersRequest, reader: jspb.BinaryReader): DeleteLabelOrdersRequest; + static serializeBinaryToWriter(message: ListInputsExtractionJobsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListInputsExtractionJobsRequest; + static deserializeBinaryFromReader(message: ListInputsExtractionJobsRequest, reader: jspb.BinaryReader): ListInputsExtractionJobsRequest; } -export namespace DeleteLabelOrdersRequest { +export namespace ListInputsExtractionJobsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - idsList: Array, + page: number, + perPage: number, } } -export class MultiLabelOrderResponse extends jspb.Message { +export class SingleInputsExtractionJobResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiLabelOrderResponse; - - clearLabelOrdersList(): void; - getLabelOrdersList(): Array; - setLabelOrdersList(value: Array): MultiLabelOrderResponse; - addLabelOrders(value?: proto_clarifai_api_resources_pb.LabelOrder, index?: number): proto_clarifai_api_resources_pb.LabelOrder; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleInputsExtractionJobResponse; + hasInputsExtractionJob(): boolean; + clearInputsExtractionJob(): void; + getInputsExtractionJob(): proto_clarifai_api_resources_pb.InputsExtractionJob | undefined; + setInputsExtractionJob(value?: proto_clarifai_api_resources_pb.InputsExtractionJob): SingleInputsExtractionJobResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiLabelOrderResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiLabelOrderResponse): MultiLabelOrderResponse.AsObject; + toObject(includeInstance?: boolean): SingleInputsExtractionJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleInputsExtractionJobResponse): SingleInputsExtractionJobResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiLabelOrderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiLabelOrderResponse; - static deserializeBinaryFromReader(message: MultiLabelOrderResponse, reader: jspb.BinaryReader): MultiLabelOrderResponse; + static serializeBinaryToWriter(message: SingleInputsExtractionJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleInputsExtractionJobResponse; + static deserializeBinaryFromReader(message: SingleInputsExtractionJobResponse, reader: jspb.BinaryReader): SingleInputsExtractionJobResponse; } -export namespace MultiLabelOrderResponse { +export namespace SingleInputsExtractionJobResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - labelOrdersList: Array, + inputsExtractionJob?: proto_clarifai_api_resources_pb.InputsExtractionJob.AsObject, } } -export class SingleLabelOrderResponse extends jspb.Message { +export class MultiInputsExtractionJobResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleLabelOrderResponse; - - - hasLabelOrder(): boolean; - clearLabelOrder(): void; - getLabelOrder(): proto_clarifai_api_resources_pb.LabelOrder | undefined; - setLabelOrder(value?: proto_clarifai_api_resources_pb.LabelOrder): SingleLabelOrderResponse; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiInputsExtractionJobResponse; + clearInputsExtractionJobsList(): void; + getInputsExtractionJobsList(): Array; + setInputsExtractionJobsList(value: Array): MultiInputsExtractionJobResponse; + addInputsExtractionJobs(value?: proto_clarifai_api_resources_pb.InputsExtractionJob, index?: number): proto_clarifai_api_resources_pb.InputsExtractionJob; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleLabelOrderResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleLabelOrderResponse): SingleLabelOrderResponse.AsObject; + toObject(includeInstance?: boolean): MultiInputsExtractionJobResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiInputsExtractionJobResponse): MultiInputsExtractionJobResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleLabelOrderResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleLabelOrderResponse; - static deserializeBinaryFromReader(message: SingleLabelOrderResponse, reader: jspb.BinaryReader): SingleLabelOrderResponse; + static serializeBinaryToWriter(message: MultiInputsExtractionJobResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiInputsExtractionJobResponse; + static deserializeBinaryFromReader(message: MultiInputsExtractionJobResponse, reader: jspb.BinaryReader): MultiInputsExtractionJobResponse; } -export namespace SingleLabelOrderResponse { +export namespace MultiInputsExtractionJobResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - labelOrder?: proto_clarifai_api_resources_pb.LabelOrder.AsObject, + inputsExtractionJobsList: Array, } } -export class PostCollectorsRequest extends jspb.Message { +export class CancelInputsExtractionJobsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostCollectorsRequest; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): CancelInputsExtractionJobsRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): CancelInputsExtractionJobsRequest; + addIds(value: string, index?: number): string; - clearCollectorsList(): void; - getCollectorsList(): Array; - setCollectorsList(value: Array): PostCollectorsRequest; - addCollectors(value?: proto_clarifai_api_resources_pb.Collector, index?: number): proto_clarifai_api_resources_pb.Collector; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CancelInputsExtractionJobsRequest.AsObject; + static toObject(includeInstance: boolean, msg: CancelInputsExtractionJobsRequest): CancelInputsExtractionJobsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CancelInputsExtractionJobsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CancelInputsExtractionJobsRequest; + static deserializeBinaryFromReader(message: CancelInputsExtractionJobsRequest, reader: jspb.BinaryReader): CancelInputsExtractionJobsRequest; +} + +export namespace CancelInputsExtractionJobsRequest { + export type AsObject = { + userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, + idsList: Array, + } +} + +export class PostInputsUploadsRequest extends jspb.Message { + hasUserAppId(): boolean; + clearUserAppId(): void; + getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostInputsUploadsRequest; + clearInputsUploadsList(): void; + getInputsUploadsList(): Array; + setInputsUploadsList(value: Array): PostInputsUploadsRequest; + addInputsUploads(value?: proto_clarifai_api_resources_pb.InputsUpload, index?: number): proto_clarifai_api_resources_pb.InputsUpload; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostCollectorsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostCollectorsRequest): PostCollectorsRequest.AsObject; + toObject(includeInstance?: boolean): PostInputsUploadsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostInputsUploadsRequest): PostInputsUploadsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostCollectorsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostCollectorsRequest; - static deserializeBinaryFromReader(message: PostCollectorsRequest, reader: jspb.BinaryReader): PostCollectorsRequest; + static serializeBinaryToWriter(message: PostInputsUploadsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostInputsUploadsRequest; + static deserializeBinaryFromReader(message: PostInputsUploadsRequest, reader: jspb.BinaryReader): PostInputsUploadsRequest; } -export namespace PostCollectorsRequest { +export namespace PostInputsUploadsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - collectorsList: Array, + inputsUploadsList: Array, } } -export class PatchCollectorsRequest extends jspb.Message { +export class GetRunnerRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PatchCollectorsRequest; - - clearCollectorsList(): void; - getCollectorsList(): Array; - setCollectorsList(value: Array): PatchCollectorsRequest; - addCollectors(value?: proto_clarifai_api_resources_pb.Collector, index?: number): proto_clarifai_api_resources_pb.Collector; - - getAction(): string; - setAction(value: string): PatchCollectorsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetRunnerRequest; + getRunnerId(): string; + setRunnerId(value: string): GetRunnerRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PatchCollectorsRequest.AsObject; - static toObject(includeInstance: boolean, msg: PatchCollectorsRequest): PatchCollectorsRequest.AsObject; + toObject(includeInstance?: boolean): GetRunnerRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetRunnerRequest): GetRunnerRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PatchCollectorsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PatchCollectorsRequest; - static deserializeBinaryFromReader(message: PatchCollectorsRequest, reader: jspb.BinaryReader): PatchCollectorsRequest; + static serializeBinaryToWriter(message: GetRunnerRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetRunnerRequest; + static deserializeBinaryFromReader(message: GetRunnerRequest, reader: jspb.BinaryReader): GetRunnerRequest; } -export namespace PatchCollectorsRequest { +export namespace GetRunnerRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - collectorsList: Array, - action: string, + runnerId: string, } } -export class DeleteCollectorsRequest extends jspb.Message { +export class ListRunnersRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteCollectorsRequest; - - clearIdsList(): void; - getIdsList(): Array; - setIdsList(value: Array): DeleteCollectorsRequest; - addIds(value: string, index?: number): string; - - getDeleteAll(): boolean; - setDeleteAll(value: boolean): DeleteCollectorsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListRunnersRequest; + getPage(): number; + setPage(value: number): ListRunnersRequest; + getPerPage(): number; + setPerPage(value: number): ListRunnersRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DeleteCollectorsRequest.AsObject; - static toObject(includeInstance: boolean, msg: DeleteCollectorsRequest): DeleteCollectorsRequest.AsObject; + toObject(includeInstance?: boolean): ListRunnersRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListRunnersRequest): ListRunnersRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DeleteCollectorsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DeleteCollectorsRequest; - static deserializeBinaryFromReader(message: DeleteCollectorsRequest, reader: jspb.BinaryReader): DeleteCollectorsRequest; + static serializeBinaryToWriter(message: ListRunnersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListRunnersRequest; + static deserializeBinaryFromReader(message: ListRunnersRequest, reader: jspb.BinaryReader): ListRunnersRequest; } -export namespace DeleteCollectorsRequest { +export namespace ListRunnersRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - idsList: Array, - deleteAll: boolean, + page: number, + perPage: number, } } -export class GetCollectorRequest extends jspb.Message { +export class PostRunnersRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetCollectorRequest; - - getCollectorId(): string; - setCollectorId(value: string): GetCollectorRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostRunnersRequest; + clearRunnersList(): void; + getRunnersList(): Array; + setRunnersList(value: Array): PostRunnersRequest; + addRunners(value?: proto_clarifai_api_resources_pb.Runner, index?: number): proto_clarifai_api_resources_pb.Runner; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetCollectorRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetCollectorRequest): GetCollectorRequest.AsObject; + toObject(includeInstance?: boolean): PostRunnersRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostRunnersRequest): PostRunnersRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetCollectorRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetCollectorRequest; - static deserializeBinaryFromReader(message: GetCollectorRequest, reader: jspb.BinaryReader): GetCollectorRequest; + static serializeBinaryToWriter(message: PostRunnersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostRunnersRequest; + static deserializeBinaryFromReader(message: PostRunnersRequest, reader: jspb.BinaryReader): PostRunnersRequest; } -export namespace GetCollectorRequest { +export namespace PostRunnersRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - collectorId: string, + runnersList: Array, } } -export class ListCollectorsRequest extends jspb.Message { +export class DeleteRunnersRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListCollectorsRequest; - - getPage(): number; - setPage(value: number): ListCollectorsRequest; - - getPerPage(): number; - setPerPage(value: number): ListCollectorsRequest; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): DeleteRunnersRequest; + clearIdsList(): void; + getIdsList(): Array; + setIdsList(value: Array): DeleteRunnersRequest; + addIds(value: string, index?: number): string; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListCollectorsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListCollectorsRequest): ListCollectorsRequest.AsObject; + toObject(includeInstance?: boolean): DeleteRunnersRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteRunnersRequest): DeleteRunnersRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListCollectorsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListCollectorsRequest; - static deserializeBinaryFromReader(message: ListCollectorsRequest, reader: jspb.BinaryReader): ListCollectorsRequest; + static serializeBinaryToWriter(message: DeleteRunnersRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteRunnersRequest; + static deserializeBinaryFromReader(message: DeleteRunnersRequest, reader: jspb.BinaryReader): DeleteRunnersRequest; } -export namespace ListCollectorsRequest { +export namespace DeleteRunnersRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - page: number, - perPage: number, + idsList: Array, } } -export class MultiCollectorResponse extends jspb.Message { +export class SingleRunnerResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiCollectorResponse; - - clearCollectorsList(): void; - getCollectorsList(): Array; - setCollectorsList(value: Array): MultiCollectorResponse; - addCollectors(value?: proto_clarifai_api_resources_pb.Collector, index?: number): proto_clarifai_api_resources_pb.Collector; + setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleRunnerResponse; + hasRunner(): boolean; + clearRunner(): void; + getRunner(): proto_clarifai_api_resources_pb.Runner | undefined; + setRunner(value?: proto_clarifai_api_resources_pb.Runner): SingleRunnerResponse; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiCollectorResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiCollectorResponse): MultiCollectorResponse.AsObject; + toObject(includeInstance?: boolean): SingleRunnerResponse.AsObject; + static toObject(includeInstance: boolean, msg: SingleRunnerResponse): SingleRunnerResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiCollectorResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiCollectorResponse; - static deserializeBinaryFromReader(message: MultiCollectorResponse, reader: jspb.BinaryReader): MultiCollectorResponse; + static serializeBinaryToWriter(message: SingleRunnerResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SingleRunnerResponse; + static deserializeBinaryFromReader(message: SingleRunnerResponse, reader: jspb.BinaryReader): SingleRunnerResponse; } -export namespace MultiCollectorResponse { +export namespace SingleRunnerResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - collectorsList: Array, + runner?: proto_clarifai_api_resources_pb.Runner.AsObject, } } -export class SingleCollectorResponse extends jspb.Message { +export class MultiRunnerResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): SingleCollectorResponse; - - - hasCollector(): boolean; - clearCollector(): void; - getCollector(): proto_clarifai_api_resources_pb.Collector | undefined; - setCollector(value?: proto_clarifai_api_resources_pb.Collector): SingleCollectorResponse; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiRunnerResponse; + clearRunnersList(): void; + getRunnersList(): Array; + setRunnersList(value: Array): MultiRunnerResponse; + addRunners(value?: proto_clarifai_api_resources_pb.Runner, index?: number): proto_clarifai_api_resources_pb.Runner; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SingleCollectorResponse.AsObject; - static toObject(includeInstance: boolean, msg: SingleCollectorResponse): SingleCollectorResponse.AsObject; + toObject(includeInstance?: boolean): MultiRunnerResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiRunnerResponse): MultiRunnerResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SingleCollectorResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SingleCollectorResponse; - static deserializeBinaryFromReader(message: SingleCollectorResponse, reader: jspb.BinaryReader): SingleCollectorResponse; + static serializeBinaryToWriter(message: MultiRunnerResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiRunnerResponse; + static deserializeBinaryFromReader(message: MultiRunnerResponse, reader: jspb.BinaryReader): MultiRunnerResponse; } -export namespace SingleCollectorResponse { +export namespace MultiRunnerResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - collector?: proto_clarifai_api_resources_pb.Collector.AsObject, + runnersList: Array, } } -export class PostStatValuesRequest extends jspb.Message { +export class ListRunnerItemsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostStatValuesRequest; - - clearStatValuesList(): void; - getStatValuesList(): Array; - setStatValuesList(value: Array): PostStatValuesRequest; - addStatValues(value?: proto_clarifai_api_resources_pb.StatValue, index?: number): proto_clarifai_api_resources_pb.StatValue; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListRunnerItemsRequest; + getRunnerId(): string; + setRunnerId(value: string): ListRunnerItemsRequest; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostStatValuesRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostStatValuesRequest): PostStatValuesRequest.AsObject; + toObject(includeInstance?: boolean): ListRunnerItemsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListRunnerItemsRequest): ListRunnerItemsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostStatValuesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostStatValuesRequest; - static deserializeBinaryFromReader(message: PostStatValuesRequest, reader: jspb.BinaryReader): PostStatValuesRequest; + static serializeBinaryToWriter(message: ListRunnerItemsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListRunnerItemsRequest; + static deserializeBinaryFromReader(message: ListRunnerItemsRequest, reader: jspb.BinaryReader): ListRunnerItemsRequest; } -export namespace PostStatValuesRequest { +export namespace ListRunnerItemsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - statValuesList: Array, - } -} - -export class MultiStatValueResponse extends jspb.Message { - - hasStatus(): boolean; - clearStatus(): void; - getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiStatValueResponse; - - clearStatValuesList(): void; - getStatValuesList(): Array; - setStatValuesList(value: Array): MultiStatValueResponse; - addStatValues(value?: proto_clarifai_api_resources_pb.StatValue, index?: number): proto_clarifai_api_resources_pb.StatValue; - - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiStatValueResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiStatValueResponse): MultiStatValueResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiStatValueResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiStatValueResponse; - static deserializeBinaryFromReader(message: MultiStatValueResponse, reader: jspb.BinaryReader): MultiStatValueResponse; -} - -export namespace MultiStatValueResponse { - export type AsObject = { - status?: proto_clarifai_api_status_status_pb.Status.AsObject, - statValuesList: Array, + runnerId: string, } } -export class PostStatValuesAggregateRequest extends jspb.Message { +export class PostRunnerItemOutputsRequest extends jspb.Message { hasUserAppId(): boolean; clearUserAppId(): void; getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostStatValuesAggregateRequest; - - clearStatValueAggregateQueriesList(): void; - getStatValueAggregateQueriesList(): Array; - setStatValueAggregateQueriesList(value: Array): PostStatValuesAggregateRequest; - addStatValueAggregateQueries(value?: proto_clarifai_api_resources_pb.StatValueAggregateQuery, index?: number): proto_clarifai_api_resources_pb.StatValueAggregateQuery; - + setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostRunnerItemOutputsRequest; + getRunnerId(): string; + setRunnerId(value: string): PostRunnerItemOutputsRequest; + getItemId(): string; + setItemId(value: string): PostRunnerItemOutputsRequest; + clearRunnerItemOutputsList(): void; + getRunnerItemOutputsList(): Array; + setRunnerItemOutputsList(value: Array): PostRunnerItemOutputsRequest; + addRunnerItemOutputs(value?: RunnerItemOutput, index?: number): RunnerItemOutput; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostStatValuesAggregateRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostStatValuesAggregateRequest): PostStatValuesAggregateRequest.AsObject; + toObject(includeInstance?: boolean): PostRunnerItemOutputsRequest.AsObject; + static toObject(includeInstance: boolean, msg: PostRunnerItemOutputsRequest): PostRunnerItemOutputsRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostStatValuesAggregateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostStatValuesAggregateRequest; - static deserializeBinaryFromReader(message: PostStatValuesAggregateRequest, reader: jspb.BinaryReader): PostStatValuesAggregateRequest; + static serializeBinaryToWriter(message: PostRunnerItemOutputsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PostRunnerItemOutputsRequest; + static deserializeBinaryFromReader(message: PostRunnerItemOutputsRequest, reader: jspb.BinaryReader): PostRunnerItemOutputsRequest; } -export namespace PostStatValuesAggregateRequest { +export namespace PostRunnerItemOutputsRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - statValueAggregateQueriesList: Array, + runnerId: string, + itemId: string, + runnerItemOutputsList: Array, } } -export class MultiStatValueAggregateResponse extends jspb.Message { +export class MultiRunnerItemResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiStatValueAggregateResponse; - - clearStatValueAggregateResultsList(): void; - getStatValueAggregateResultsList(): Array; - setStatValueAggregateResultsList(value: Array): MultiStatValueAggregateResponse; - addStatValueAggregateResults(value?: proto_clarifai_api_resources_pb.StatValueAggregateResult, index?: number): proto_clarifai_api_resources_pb.StatValueAggregateResult; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiRunnerItemResponse; + clearItemsList(): void; + getItemsList(): Array; + setItemsList(value: Array): MultiRunnerItemResponse; + addItems(value?: RunnerItem, index?: number): RunnerItem; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiStatValueAggregateResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiStatValueAggregateResponse): MultiStatValueAggregateResponse.AsObject; + toObject(includeInstance?: boolean): MultiRunnerItemResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiRunnerItemResponse): MultiRunnerItemResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiStatValueAggregateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiStatValueAggregateResponse; - static deserializeBinaryFromReader(message: MultiStatValueAggregateResponse, reader: jspb.BinaryReader): MultiStatValueAggregateResponse; + static serializeBinaryToWriter(message: MultiRunnerItemResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiRunnerItemResponse; + static deserializeBinaryFromReader(message: MultiRunnerItemResponse, reader: jspb.BinaryReader): MultiRunnerItemResponse; } -export namespace MultiStatValueAggregateResponse { +export namespace MultiRunnerItemResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - statValueAggregateResultsList: Array, + itemsList: Array, } } -export class PostTrendingMetricsViewRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostTrendingMetricsViewRequest; - - getViewType(): string; - setViewType(value: string): PostTrendingMetricsViewRequest; - - getObjectId(): string; - setObjectId(value: string): PostTrendingMetricsViewRequest; +export class RunnerItem extends jspb.Message { + getId(): string; + setId(value: string): RunnerItem; + getDescription(): string; + setDescription(value: string): RunnerItem; + hasPostModelOutputsRequest(): boolean; + clearPostModelOutputsRequest(): void; + getPostModelOutputsRequest(): PostModelOutputsRequest | undefined; + setPostModelOutputsRequest(value?: PostModelOutputsRequest): RunnerItem; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): PostTrendingMetricsViewRequest.AsObject; - static toObject(includeInstance: boolean, msg: PostTrendingMetricsViewRequest): PostTrendingMetricsViewRequest.AsObject; + toObject(includeInstance?: boolean): RunnerItem.AsObject; + static toObject(includeInstance: boolean, msg: RunnerItem): RunnerItem.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: PostTrendingMetricsViewRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): PostTrendingMetricsViewRequest; - static deserializeBinaryFromReader(message: PostTrendingMetricsViewRequest, reader: jspb.BinaryReader): PostTrendingMetricsViewRequest; + static serializeBinaryToWriter(message: RunnerItem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RunnerItem; + static deserializeBinaryFromReader(message: RunnerItem, reader: jspb.BinaryReader): RunnerItem; } -export namespace PostTrendingMetricsViewRequest { +export namespace RunnerItem { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - viewType: string, - objectId: string, + id: string, + description: string, + postModelOutputsRequest?: PostModelOutputsRequest.AsObject, } } -export class ListTrendingMetricsViewsRequest extends jspb.Message { - - hasUserAppId(): boolean; - clearUserAppId(): void; - getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; - setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListTrendingMetricsViewsRequest; - - getViewType(): string; - setViewType(value: string): ListTrendingMetricsViewsRequest; - - getPage(): number; - setPage(value: number): ListTrendingMetricsViewsRequest; - - getPerPage(): number; - setPerPage(value: number): ListTrendingMetricsViewsRequest; +export class RunnerItemOutput extends jspb.Message { + hasMultiOutputResponse(): boolean; + clearMultiOutputResponse(): void; + getMultiOutputResponse(): MultiOutputResponse | undefined; + setMultiOutputResponse(value?: MultiOutputResponse): RunnerItemOutput; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListTrendingMetricsViewsRequest.AsObject; - static toObject(includeInstance: boolean, msg: ListTrendingMetricsViewsRequest): ListTrendingMetricsViewsRequest.AsObject; + toObject(includeInstance?: boolean): RunnerItemOutput.AsObject; + static toObject(includeInstance: boolean, msg: RunnerItemOutput): RunnerItemOutput.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListTrendingMetricsViewsRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListTrendingMetricsViewsRequest; - static deserializeBinaryFromReader(message: ListTrendingMetricsViewsRequest, reader: jspb.BinaryReader): ListTrendingMetricsViewsRequest; + static serializeBinaryToWriter(message: RunnerItemOutput, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RunnerItemOutput; + static deserializeBinaryFromReader(message: RunnerItemOutput, reader: jspb.BinaryReader): RunnerItemOutput; } -export namespace ListTrendingMetricsViewsRequest { +export namespace RunnerItemOutput { export type AsObject = { - userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, - viewType: string, - page: number, - perPage: number, + multiOutputResponse?: MultiOutputResponse.AsObject, } } -export class MultiTrendingMetricsViewResponse extends jspb.Message { +export class MultiRunnerItemOutputResponse extends jspb.Message { hasStatus(): boolean; clearStatus(): void; getStatus(): proto_clarifai_api_status_status_pb.Status | undefined; - setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiTrendingMetricsViewResponse; - - clearMetricsList(): void; - getMetricsList(): Array; - setMetricsList(value: Array): MultiTrendingMetricsViewResponse; - addMetrics(value?: proto_clarifai_api_resources_pb.TrendingMetric, index?: number): proto_clarifai_api_resources_pb.TrendingMetric; - + setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiRunnerItemOutputResponse; + clearRunnerItemOutputsList(): void; + getRunnerItemOutputsList(): Array; + setRunnerItemOutputsList(value: Array): MultiRunnerItemOutputResponse; + addRunnerItemOutputs(value?: RunnerItemOutput, index?: number): RunnerItemOutput; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MultiTrendingMetricsViewResponse.AsObject; - static toObject(includeInstance: boolean, msg: MultiTrendingMetricsViewResponse): MultiTrendingMetricsViewResponse.AsObject; + toObject(includeInstance?: boolean): MultiRunnerItemOutputResponse.AsObject; + static toObject(includeInstance: boolean, msg: MultiRunnerItemOutputResponse): MultiRunnerItemOutputResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MultiTrendingMetricsViewResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MultiTrendingMetricsViewResponse; - static deserializeBinaryFromReader(message: MultiTrendingMetricsViewResponse, reader: jspb.BinaryReader): MultiTrendingMetricsViewResponse; + static serializeBinaryToWriter(message: MultiRunnerItemOutputResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MultiRunnerItemOutputResponse; + static deserializeBinaryFromReader(message: MultiRunnerItemOutputResponse, reader: jspb.BinaryReader): MultiRunnerItemOutputResponse; } -export namespace MultiTrendingMetricsViewResponse { +export namespace MultiRunnerItemOutputResponse { export type AsObject = { status?: proto_clarifai_api_status_status_pb.Status.AsObject, - metricsList: Array, + runnerItemOutputsList: Array, } } diff --git a/proto/clarifai/api/service_pb.js b/proto/clarifai/api/service_pb.js index ae5f7b1..4ee4e66 100644 --- a/proto/clarifai/api/service_pb.js +++ b/proto/clarifai/api/service_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var proto_clarifai_api_resources_pb = require('../../../proto/clarifai/api/resources_pb.js'); goog.object.extend(proto, proto_clarifai_api_resources_pb); @@ -34,88 +41,146 @@ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_ goog.object.extend(proto, google_protobuf_struct_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); +goog.exportSymbol('proto.clarifai.api.CancelBulkOperationRequest', null, global); +goog.exportSymbol('proto.clarifai.api.CancelInputsAddJobRequest', null, global); +goog.exportSymbol('proto.clarifai.api.CancelInputsExtractionJobsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteAnnotationFiltersRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteAnnotationRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteAnnotationSearchMetricsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteAnnotationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteAppRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteBulkOperationRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteCollaboratorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteCollectorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteConceptRelationsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteDatasetInputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteDatasetVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteDatasetsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteInputRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteInputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteInstalledModuleVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteKeyRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteLabelOrdersRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteModelRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteModelVersionRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteModelsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteModuleVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteModulesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteRunnersRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteSearchRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteTasksRequest', null, global); +goog.exportSymbol('proto.clarifai.api.DeleteUploadsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteWorkflowRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteWorkflowVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.DeleteWorkflowsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetAnnotationFilterRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetAnnotationRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetAnnotationSearchMetricsRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetAppDuplicationRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetAppRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetBulkOperationRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetCollectorRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetConceptCountsRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetConceptLanguageRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetConceptRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetDatasetInputRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetDatasetInputsSearchAddJobRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetDatasetRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetDatasetVersionRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetEvaluationRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetInputCountRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetInputRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetInputSamplesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetInputsAddJobRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetInputsExtractionJobRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetInstalledModuleVersionRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetKeyRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetLabelOrderRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetModelRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetModelTypeRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetModelVersionEvaluationRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetModelVersionInputExampleRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetModelVersionMetricsRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetModelVersionRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetModuleRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetModuleVersionRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetResourceCountsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetResourceCountsResponse', null, global); +goog.exportSymbol('proto.clarifai.api.GetRunnerRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetSearchRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetStatusCodeRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetTaskCountRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetTaskRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetUploadRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetUserRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetVideoManifestRequest', null, global); +goog.exportSymbol('proto.clarifai.api.GetVideoManifestResponse', null, global); goog.exportSymbol('proto.clarifai.api.GetWorkflowRequest', null, global); goog.exportSymbol('proto.clarifai.api.GetWorkflowVersionRequest', null, global); +goog.exportSymbol('proto.clarifai.api.IdUpdateSource', null, global); +goog.exportSymbol('proto.clarifai.api.ListAnnotationFiltersRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListAnnotationSearchMetricsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListAnnotationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListAppDuplicationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListAppKeysRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListAppsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListAppsRequest.SortByCase', null, global); +goog.exportSymbol('proto.clarifai.api.ListBulkOperationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListCollaborationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListCollaboratorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListCollectorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListConceptLanguagesRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListConceptRelationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListConceptsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListDatasetInputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListDatasetVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListDatasetsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListDatasetsRequest.SortByCase', null, global); +goog.exportSymbol('proto.clarifai.api.ListEvaluationsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListEvaluationsRequest.SortByCase', null, global); +goog.exportSymbol('proto.clarifai.api.ListInputsAddJobsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListInputsExtractionJobsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListInputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListInstalledModuleVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListKeysRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListKnowledgeGraphsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListLabelOrdersRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListModelConceptsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListModelInputsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListModelReferencesRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListModelTypesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListModelVersionEvaluationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListModelVersionInputExamplesRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListModelVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListModelVersionsRequest.SortByCase', null, global); goog.exportSymbol('proto.clarifai.api.ListModelsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListModelsRequest.SortByCase', null, global); +goog.exportSymbol('proto.clarifai.api.ListModuleVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListModulesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListModulesRequest.SortByCase', null, global); +goog.exportSymbol('proto.clarifai.api.ListNextTaskAssignmentsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListOpenSourceLicensesRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListOpenSourceLicensesResponse', null, global); +goog.exportSymbol('proto.clarifai.api.ListRunnerItemsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListRunnersRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListScopesRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListSearchesRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListStatusCodesRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListTasksRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListTrendingMetricsViewsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.ListUploadsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListWorkflowVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest', null, global); goog.exportSymbol('proto.clarifai.api.ListWorkflowsRequest.SortByCase', null, global); goog.exportSymbol('proto.clarifai.api.ModelVersionPublishRequest', null, global); goog.exportSymbol('proto.clarifai.api.ModelVersionUnpublishRequest', null, global); +goog.exportSymbol('proto.clarifai.api.MultiAnnotationFilterResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiAnnotationResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiAnnotationSearchMetricsResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiAppDuplicationsResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiAppResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiBulkOperationsResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiCollaborationsResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiCollaboratorsResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiCollectorResponse', null, global); @@ -124,11 +189,21 @@ goog.exportSymbol('proto.clarifai.api.MultiConceptLanguageResponse', null, globa goog.exportSymbol('proto.clarifai.api.MultiConceptMappingJobResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiConceptRelationResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiConceptResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiDatasetInputResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiDatasetResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiDatasetVersionExportResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiDatasetVersionResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiEvalMetricsResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiInputAnnotationResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiInputResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiInputsAddJobResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiInputsExtractionJobResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiInstalledModuleVersionResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiKeyResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiKnowledgeGraphResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiLabelOrderResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiModelCheckConsentResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiModelLanguageResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiModelReferenceResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiModelResponse', null, global); @@ -137,7 +212,12 @@ goog.exportSymbol('proto.clarifai.api.MultiModelTypeResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiModelUseCaseResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiModelVersionInputExampleResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiModelVersionResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiModuleResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiModuleVersionResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiOutputResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiRunnerItemOutputResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiRunnerItemResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiRunnerResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiScopeDepsResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiScopeResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiScopeRootResponse', null, global); @@ -148,6 +228,7 @@ goog.exportSymbol('proto.clarifai.api.MultiStatValueResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiStatusCodeResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiTaskResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiTrendingMetricsViewResponse', null, global); +goog.exportSymbol('proto.clarifai.api.MultiUploadResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiWorkflowResponse', null, global); goog.exportSymbol('proto.clarifai.api.MultiWorkflowVersionResponse', null, global); goog.exportSymbol('proto.clarifai.api.MyScopesRequest', null, global); @@ -155,31 +236,45 @@ goog.exportSymbol('proto.clarifai.api.MyScopesRootRequest', null, global); goog.exportSymbol('proto.clarifai.api.MyScopesUserRequest', null, global); goog.exportSymbol('proto.clarifai.api.OrganizationInvitationStatus', null, global); goog.exportSymbol('proto.clarifai.api.Pagination', null, global); +goog.exportSymbol('proto.clarifai.api.PatchAnnotationFiltersRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchAnnotationsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchAnnotationsSearchesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchAnnotationsStatusRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchAnnotationsStatusResponse', null, global); +goog.exportSymbol('proto.clarifai.api.PatchAppRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchAppsIdsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchAppsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchCollaboratorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchCollectorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchConceptLanguagesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchConceptsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchDatasetVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchDatasetsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchInputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchInputsSearchesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchKeysRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchLabelOrdersRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchModelCheckConsentsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchModelIdsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchModelLanguagesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchModelToolkitsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchModelUseCasesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchModelVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchModelsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchModulesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchSearchesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchTasksRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PatchWorkflowIdsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchWorkflowVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PatchWorkflowsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostAnnotationFiltersRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostAnnotationSearchMetricsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostAnnotationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostAnnotationsSearchesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostAppDuplicationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostAppsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostAppsSearchesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostBulkOperationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostCollaboratorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostCollectorsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostConceptLanguagesRequest', null, global); @@ -187,52 +282,90 @@ goog.exportSymbol('proto.clarifai.api.PostConceptMappingJobsRequest', null, glob goog.exportSymbol('proto.clarifai.api.PostConceptRelationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostConceptsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostConceptsSearchesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostDatasetInputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostDatasetVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostDatasetsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostEvaluationsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostInputsDataSourcesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostInputsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostInputsSearchesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostInputsUploadsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostInstalledModuleVersionsKeyRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostInstalledModuleVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostKeysRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostKnowledgeGraphsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostLabelOrdersRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostModelOutputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostModelVersionEvaluationsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostModelVersionMetricsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostModelVersionsPublishRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostModelVersionsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostModelVersionsUnPublishRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostModelsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostModelsSearchesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostModuleVersionsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostModulesRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostRunnerItemOutputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostRunnersRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostSearchesByIDRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostSearchesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostStatValuesAggregateRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostStatValuesRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostTasksRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostTrendingMetricsViewRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostUploadsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostValidatePasswordRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsResponse', null, global); goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsSimilarityRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostWorkflowResultsSimilarityResponse', null, global); +goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsPublishRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PostWorkflowVersionsUnPublishRequest', null, global); goog.exportSymbol('proto.clarifai.api.PostWorkflowsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PutDatasetVersionExportsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PutTaskAssignmentsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.PutUploadContentPartsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.RunnerItem', null, global); +goog.exportSymbol('proto.clarifai.api.RunnerItemOutput', null, global); +goog.exportSymbol('proto.clarifai.api.SingleAnnotationFilterResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleAnnotationResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleAppDuplicationResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleAppResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleBulkOperationsResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleCollectorResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleConceptLanguageResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleConceptResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleDatasetInputResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleDatasetResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleDatasetVersionResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleEvalMetricsResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleInputCountResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleInputResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleInputsAddJobResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleInputsExtractionJobResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleInstalledModuleVersionResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleKeyResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleLabelOrderResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleModelResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleModelTypeResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleModelVersionInputExampleResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleModelVersionResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleModuleResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleModuleVersionResponse', null, global); goog.exportSymbol('proto.clarifai.api.SinglePasswordValidationResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleRunnerResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleSearchResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleStatusCodeResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleTaskCountResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleTaskResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleUploadResponse', null, global); +goog.exportSymbol('proto.clarifai.api.SingleUserResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleWorkflowResponse', null, global); goog.exportSymbol('proto.clarifai.api.SingleWorkflowVersionResponse', null, global); goog.exportSymbol('proto.clarifai.api.StreamInputsRequest', null, global); +goog.exportSymbol('proto.clarifai.api.WorkflowVersionPublishRequest', null, global); +goog.exportSymbol('proto.clarifai.api.WorkflowVersionUnPublishRequest', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -569,6 +702,48 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.PatchAppsRequest.displayName = 'proto.clarifai.api.PatchAppsRequest'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchAppRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.PatchAppRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchAppRequest.displayName = 'proto.clarifai.api.PatchAppRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchAppsIdsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchAppsIdsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchAppsIdsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchAppsIdsRequest.displayName = 'proto.clarifai.api.PatchAppsIdsRequest'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -905,6 +1080,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.ListConceptsRequest.displayName = 'proto.clarifai.api.ListConceptsRequest'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListModelConceptsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListModelConceptsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListModelConceptsRequest.displayName = 'proto.clarifai.api.ListModelConceptsRequest'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1388,6 +1584,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.GetInputRequest.displayName = 'proto.clarifai.api.GetInputRequest'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetVideoManifestRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetVideoManifestRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetVideoManifestRequest.displayName = 'proto.clarifai.api.GetVideoManifestRequest'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1556,6 +1773,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.SingleInputResponse.displayName = 'proto.clarifai.api.SingleInputResponse'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetVideoManifestResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetVideoManifestResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetVideoManifestResponse.displayName = 'proto.clarifai.api.GetVideoManifestResponse'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1650,16 +1888,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostModelOutputsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelOutputsRequest.repeatedFields_, null); +proto.clarifai.api.ListDatasetsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListDatasetsRequest.repeatedFields_, proto.clarifai.api.ListDatasetsRequest.oneofGroups_); }; -goog.inherits(proto.clarifai.api.PostModelOutputsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListDatasetsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostModelOutputsRequest.displayName = 'proto.clarifai.api.PostModelOutputsRequest'; + proto.clarifai.api.ListDatasetsRequest.displayName = 'proto.clarifai.api.ListDatasetsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1671,16 +1909,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListModelInputsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.GetDatasetRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetDatasetRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListModelInputsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetDatasetRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListModelInputsRequest.displayName = 'proto.clarifai.api.ListModelInputsRequest'; + proto.clarifai.api.GetDatasetRequest.displayName = 'proto.clarifai.api.GetDatasetRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1692,16 +1930,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetKeyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostDatasetsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostDatasetsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetKeyRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostDatasetsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetKeyRequest.displayName = 'proto.clarifai.api.GetKeyRequest'; + proto.clarifai.api.PostDatasetsRequest.displayName = 'proto.clarifai.api.PostDatasetsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1713,16 +1951,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PatchDatasetsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchDatasetsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListKeysRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PatchDatasetsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListKeysRequest.displayName = 'proto.clarifai.api.ListKeysRequest'; + proto.clarifai.api.PatchDatasetsRequest.displayName = 'proto.clarifai.api.PatchDatasetsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1734,16 +1972,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListAppKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.DeleteDatasetsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteDatasetsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListAppKeysRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteDatasetsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListAppKeysRequest.displayName = 'proto.clarifai.api.ListAppKeysRequest'; + proto.clarifai.api.DeleteDatasetsRequest.displayName = 'proto.clarifai.api.DeleteDatasetsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1755,16 +1993,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostKeysRequest.repeatedFields_, null); +proto.clarifai.api.MultiDatasetResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiDatasetResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostKeysRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiDatasetResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostKeysRequest.displayName = 'proto.clarifai.api.PostKeysRequest'; + proto.clarifai.api.MultiDatasetResponse.displayName = 'proto.clarifai.api.MultiDatasetResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1776,16 +2014,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteKeyRequest = function(opt_data) { +proto.clarifai.api.SingleDatasetResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.DeleteKeyRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleDatasetResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteKeyRequest.displayName = 'proto.clarifai.api.DeleteKeyRequest'; + proto.clarifai.api.SingleDatasetResponse.displayName = 'proto.clarifai.api.SingleDatasetResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1797,16 +2035,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchKeysRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchKeysRequest.repeatedFields_, null); +proto.clarifai.api.ListDatasetInputsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchKeysRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListDatasetInputsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchKeysRequest.displayName = 'proto.clarifai.api.PatchKeysRequest'; + proto.clarifai.api.ListDatasetInputsRequest.displayName = 'proto.clarifai.api.ListDatasetInputsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1818,16 +2056,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleKeyResponse = function(opt_data) { +proto.clarifai.api.GetDatasetInputRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleKeyResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetDatasetInputRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleKeyResponse.displayName = 'proto.clarifai.api.SingleKeyResponse'; + proto.clarifai.api.GetDatasetInputRequest.displayName = 'proto.clarifai.api.GetDatasetInputRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1839,16 +2077,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiKeyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiKeyResponse.repeatedFields_, null); +proto.clarifai.api.PostDatasetInputsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostDatasetInputsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiKeyResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PostDatasetInputsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiKeyResponse.displayName = 'proto.clarifai.api.MultiKeyResponse'; + proto.clarifai.api.PostDatasetInputsRequest.displayName = 'proto.clarifai.api.PostDatasetInputsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1860,16 +2098,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetModelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetModelRequest.repeatedFields_, null); +proto.clarifai.api.DeleteDatasetInputsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteDatasetInputsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetModelRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteDatasetInputsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetModelRequest.displayName = 'proto.clarifai.api.GetModelRequest'; + proto.clarifai.api.DeleteDatasetInputsRequest.displayName = 'proto.clarifai.api.DeleteDatasetInputsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1881,16 +2119,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListModelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListModelsRequest.repeatedFields_, proto.clarifai.api.ListModelsRequest.oneofGroups_); +proto.clarifai.api.MultiDatasetInputResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiDatasetInputResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListModelsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiDatasetInputResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListModelsRequest.displayName = 'proto.clarifai.api.ListModelsRequest'; + proto.clarifai.api.MultiDatasetInputResponse.displayName = 'proto.clarifai.api.MultiDatasetInputResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1902,16 +2140,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchModelToolkitsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelToolkitsRequest.repeatedFields_, null); +proto.clarifai.api.SingleDatasetInputResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchModelToolkitsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleDatasetInputResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchModelToolkitsRequest.displayName = 'proto.clarifai.api.PatchModelToolkitsRequest'; + proto.clarifai.api.SingleDatasetInputResponse.displayName = 'proto.clarifai.api.SingleDatasetInputResponse'; } /** * Generated by JsPbCodeGenerator. @@ -1923,16 +2161,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchModelUseCasesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelUseCasesRequest.repeatedFields_, null); +proto.clarifai.api.ListDatasetVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchModelUseCasesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListDatasetVersionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchModelUseCasesRequest.displayName = 'proto.clarifai.api.PatchModelUseCasesRequest'; + proto.clarifai.api.ListDatasetVersionsRequest.displayName = 'proto.clarifai.api.ListDatasetVersionsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1944,16 +2182,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchModelLanguagesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelLanguagesRequest.repeatedFields_, null); +proto.clarifai.api.GetDatasetVersionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchModelLanguagesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetDatasetVersionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchModelLanguagesRequest.displayName = 'proto.clarifai.api.PatchModelLanguagesRequest'; + proto.clarifai.api.GetDatasetVersionRequest.displayName = 'proto.clarifai.api.GetDatasetVersionRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1965,16 +2203,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelToolkitResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelToolkitResponse.repeatedFields_, null); +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiModelToolkitResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelToolkitResponse.displayName = 'proto.clarifai.api.MultiModelToolkitResponse'; + proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.displayName = 'proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -1986,16 +2224,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelUseCaseResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelUseCaseResponse.repeatedFields_, null); +proto.clarifai.api.PostDatasetVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostDatasetVersionsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiModelUseCaseResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PostDatasetVersionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelUseCaseResponse.displayName = 'proto.clarifai.api.MultiModelUseCaseResponse'; + proto.clarifai.api.PostDatasetVersionsRequest.displayName = 'proto.clarifai.api.PostDatasetVersionsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2007,16 +2245,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelLanguageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelLanguageResponse.repeatedFields_, null); +proto.clarifai.api.PatchDatasetVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchDatasetVersionsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiModelLanguageResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PatchDatasetVersionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelLanguageResponse.displayName = 'proto.clarifai.api.MultiModelLanguageResponse'; + proto.clarifai.api.PatchDatasetVersionsRequest.displayName = 'proto.clarifai.api.PatchDatasetVersionsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2028,16 +2266,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostModelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelsRequest.repeatedFields_, null); +proto.clarifai.api.DeleteDatasetVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteDatasetVersionsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostModelsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteDatasetVersionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostModelsRequest.displayName = 'proto.clarifai.api.PostModelsRequest'; + proto.clarifai.api.DeleteDatasetVersionsRequest.displayName = 'proto.clarifai.api.DeleteDatasetVersionsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2049,16 +2287,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchModelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelsRequest.repeatedFields_, null); +proto.clarifai.api.PutDatasetVersionExportsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PutDatasetVersionExportsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PatchModelsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PutDatasetVersionExportsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchModelsRequest.displayName = 'proto.clarifai.api.PatchModelsRequest'; + proto.clarifai.api.PutDatasetVersionExportsRequest.displayName = 'proto.clarifai.api.PutDatasetVersionExportsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2070,16 +2308,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteModelRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiDatasetVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiDatasetVersionResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.DeleteModelRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiDatasetVersionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteModelRequest.displayName = 'proto.clarifai.api.DeleteModelRequest'; + proto.clarifai.api.MultiDatasetVersionResponse.displayName = 'proto.clarifai.api.MultiDatasetVersionResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2091,16 +2329,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteModelsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteModelsRequest.repeatedFields_, null); +proto.clarifai.api.MultiDatasetVersionExportResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiDatasetVersionExportResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.DeleteModelsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiDatasetVersionExportResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteModelsRequest.displayName = 'proto.clarifai.api.DeleteModelsRequest'; + proto.clarifai.api.MultiDatasetVersionExportResponse.displayName = 'proto.clarifai.api.MultiDatasetVersionExportResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2112,16 +2350,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostModelsSearchesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostModelsSearchesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostModelsSearchesRequest.displayName = 'proto.clarifai.api.PostModelsSearchesRequest'; + proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.displayName = 'proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2133,16 +2371,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleModelResponse = function(opt_data) { +proto.clarifai.api.SingleDatasetVersionResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleModelResponse, jspb.Message); +goog.inherits(proto.clarifai.api.SingleDatasetVersionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleModelResponse.displayName = 'proto.clarifai.api.SingleModelResponse'; + proto.clarifai.api.SingleDatasetVersionResponse.displayName = 'proto.clarifai.api.SingleDatasetVersionResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2154,16 +2392,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelResponse.repeatedFields_, null); +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiModelResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetDatasetInputsSearchAddJobRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelResponse.displayName = 'proto.clarifai.api.MultiModelResponse'; + proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.displayName = 'proto.clarifai.api.GetDatasetInputsSearchAddJobRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2175,16 +2413,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchModelVersionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelVersionsRequest.repeatedFields_, null); +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchModelVersionsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchModelVersionsRequest.displayName = 'proto.clarifai.api.PatchModelVersionsRequest'; + proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.displayName = 'proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2196,16 +2434,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetModelVersionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostModelOutputsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelOutputsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetModelVersionRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelOutputsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetModelVersionRequest.displayName = 'proto.clarifai.api.GetModelVersionRequest'; + proto.clarifai.api.PostModelOutputsRequest.displayName = 'proto.clarifai.api.PostModelOutputsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2217,16 +2455,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListModelVersionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListModelVersionsRequest.repeatedFields_, null); +proto.clarifai.api.ListModelInputsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListModelVersionsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListModelInputsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListModelVersionsRequest.displayName = 'proto.clarifai.api.ListModelVersionsRequest'; + proto.clarifai.api.ListModelInputsRequest.displayName = 'proto.clarifai.api.ListModelInputsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2238,16 +2476,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteModelVersionRequest = function(opt_data) { +proto.clarifai.api.GetKeyRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.DeleteModelVersionRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetKeyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteModelVersionRequest.displayName = 'proto.clarifai.api.DeleteModelVersionRequest'; + proto.clarifai.api.GetKeyRequest.displayName = 'proto.clarifai.api.GetKeyRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2259,16 +2497,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleModelVersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.ListKeysRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListKeysRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.SingleModelVersionResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ListKeysRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleModelVersionResponse.displayName = 'proto.clarifai.api.SingleModelVersionResponse'; + proto.clarifai.api.ListKeysRequest.displayName = 'proto.clarifai.api.ListKeysRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2280,16 +2518,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelVersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelVersionResponse.repeatedFields_, null); +proto.clarifai.api.ListAppKeysRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiModelVersionResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ListAppKeysRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelVersionResponse.displayName = 'proto.clarifai.api.MultiModelVersionResponse'; + proto.clarifai.api.ListAppKeysRequest.displayName = 'proto.clarifai.api.ListAppKeysRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2301,16 +2539,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostModelVersionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelVersionsRequest.repeatedFields_, null); +proto.clarifai.api.PostKeysRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostKeysRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostModelVersionsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostKeysRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostModelVersionsRequest.displayName = 'proto.clarifai.api.PostModelVersionsRequest'; + proto.clarifai.api.PostKeysRequest.displayName = 'proto.clarifai.api.PostKeysRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2322,16 +2560,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ModelVersionPublishRequest = function(opt_data) { +proto.clarifai.api.DeleteKeyRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ModelVersionPublishRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteKeyRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ModelVersionPublishRequest.displayName = 'proto.clarifai.api.ModelVersionPublishRequest'; + proto.clarifai.api.DeleteKeyRequest.displayName = 'proto.clarifai.api.DeleteKeyRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2343,16 +2581,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostModelVersionsPublishRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelVersionsPublishRequest.repeatedFields_, null); +proto.clarifai.api.PatchKeysRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchKeysRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostModelVersionsPublishRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PatchKeysRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostModelVersionsPublishRequest.displayName = 'proto.clarifai.api.PostModelVersionsPublishRequest'; + proto.clarifai.api.PatchKeysRequest.displayName = 'proto.clarifai.api.PatchKeysRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2364,16 +2602,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ModelVersionUnpublishRequest = function(opt_data) { +proto.clarifai.api.SingleKeyResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ModelVersionUnpublishRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleKeyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ModelVersionUnpublishRequest.displayName = 'proto.clarifai.api.ModelVersionUnpublishRequest'; + proto.clarifai.api.SingleKeyResponse.displayName = 'proto.clarifai.api.SingleKeyResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2385,16 +2623,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostModelVersionsUnPublishRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelVersionsUnPublishRequest.repeatedFields_, null); +proto.clarifai.api.MultiKeyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiKeyResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostModelVersionsUnPublishRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiKeyResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostModelVersionsUnPublishRequest.displayName = 'proto.clarifai.api.PostModelVersionsUnPublishRequest'; + proto.clarifai.api.MultiKeyResponse.displayName = 'proto.clarifai.api.MultiKeyResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2406,16 +2644,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostModelVersionMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.GetModelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetModelRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostModelVersionMetricsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetModelRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostModelVersionMetricsRequest.displayName = 'proto.clarifai.api.PostModelVersionMetricsRequest'; + proto.clarifai.api.GetModelRequest.displayName = 'proto.clarifai.api.GetModelRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2427,16 +2665,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetModelVersionMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.ListModelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListModelsRequest.repeatedFields_, proto.clarifai.api.ListModelsRequest.oneofGroups_); }; -goog.inherits(proto.clarifai.api.GetModelVersionMetricsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListModelsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetModelVersionMetricsRequest.displayName = 'proto.clarifai.api.GetModelVersionMetricsRequest'; + proto.clarifai.api.ListModelsRequest.displayName = 'proto.clarifai.api.ListModelsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2448,16 +2686,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetModelTypeRequest = function(opt_data) { +proto.clarifai.api.GetResourceCountsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.GetModelTypeRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetResourceCountsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetModelTypeRequest.displayName = 'proto.clarifai.api.GetModelTypeRequest'; + proto.clarifai.api.GetResourceCountsRequest.displayName = 'proto.clarifai.api.GetResourceCountsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2469,16 +2707,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListModelTypesRequest = function(opt_data) { +proto.clarifai.api.GetResourceCountsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListModelTypesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetResourceCountsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListModelTypesRequest.displayName = 'proto.clarifai.api.ListModelTypesRequest'; + proto.clarifai.api.GetResourceCountsResponse.displayName = 'proto.clarifai.api.GetResourceCountsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2490,16 +2728,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListOpenSourceLicensesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PatchModelToolkitsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelToolkitsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListOpenSourceLicensesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PatchModelToolkitsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListOpenSourceLicensesRequest.displayName = 'proto.clarifai.api.ListOpenSourceLicensesRequest'; + proto.clarifai.api.PatchModelToolkitsRequest.displayName = 'proto.clarifai.api.PatchModelToolkitsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2511,16 +2749,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListOpenSourceLicensesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListOpenSourceLicensesResponse.repeatedFields_, null); +proto.clarifai.api.PatchModelCheckConsentsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelCheckConsentsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListOpenSourceLicensesResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PatchModelCheckConsentsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListOpenSourceLicensesResponse.displayName = 'proto.clarifai.api.ListOpenSourceLicensesResponse'; + proto.clarifai.api.PatchModelCheckConsentsRequest.displayName = 'proto.clarifai.api.PatchModelCheckConsentsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2532,16 +2770,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleModelTypeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PatchModelUseCasesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelUseCasesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.SingleModelTypeResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PatchModelUseCasesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleModelTypeResponse.displayName = 'proto.clarifai.api.SingleModelTypeResponse'; + proto.clarifai.api.PatchModelUseCasesRequest.displayName = 'proto.clarifai.api.PatchModelUseCasesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2553,16 +2791,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelTypeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelTypeResponse.repeatedFields_, null); +proto.clarifai.api.PatchModelLanguagesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelLanguagesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiModelTypeResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PatchModelLanguagesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelTypeResponse.displayName = 'proto.clarifai.api.MultiModelTypeResponse'; + proto.clarifai.api.PatchModelLanguagesRequest.displayName = 'proto.clarifai.api.PatchModelLanguagesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2574,16 +2812,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetModelVersionInputExampleRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiModelToolkitResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelToolkitResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetModelVersionInputExampleRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelToolkitResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetModelVersionInputExampleRequest.displayName = 'proto.clarifai.api.GetModelVersionInputExampleRequest'; + proto.clarifai.api.MultiModelToolkitResponse.displayName = 'proto.clarifai.api.MultiModelToolkitResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2595,16 +2833,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListModelVersionInputExamplesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiModelCheckConsentResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelCheckConsentResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListModelVersionInputExamplesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelCheckConsentResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListModelVersionInputExamplesRequest.displayName = 'proto.clarifai.api.ListModelVersionInputExamplesRequest'; + proto.clarifai.api.MultiModelCheckConsentResponse.displayName = 'proto.clarifai.api.MultiModelCheckConsentResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2616,16 +2854,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleModelVersionInputExampleResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiModelUseCaseResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelUseCaseResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.SingleModelVersionInputExampleResponse, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelUseCaseResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleModelVersionInputExampleResponse.displayName = 'proto.clarifai.api.SingleModelVersionInputExampleResponse'; + proto.clarifai.api.MultiModelUseCaseResponse.displayName = 'proto.clarifai.api.MultiModelUseCaseResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2637,16 +2875,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelVersionInputExampleResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelVersionInputExampleResponse.repeatedFields_, null); +proto.clarifai.api.MultiModelLanguageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelLanguageResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiModelVersionInputExampleResponse, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelLanguageResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelVersionInputExampleResponse.displayName = 'proto.clarifai.api.MultiModelVersionInputExampleResponse'; + proto.clarifai.api.MultiModelLanguageResponse.displayName = 'proto.clarifai.api.MultiModelLanguageResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2658,16 +2896,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListModelReferencesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostModelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListModelReferencesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListModelReferencesRequest.displayName = 'proto.clarifai.api.ListModelReferencesRequest'; + proto.clarifai.api.PostModelsRequest.displayName = 'proto.clarifai.api.PostModelsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2679,16 +2917,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiModelReferenceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelReferenceResponse.repeatedFields_, null); +proto.clarifai.api.PatchModelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiModelReferenceResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PatchModelsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiModelReferenceResponse.displayName = 'proto.clarifai.api.MultiModelReferenceResponse'; + proto.clarifai.api.PatchModelsRequest.displayName = 'proto.clarifai.api.PatchModelsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2700,16 +2938,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiOutputResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiOutputResponse.repeatedFields_, null); +proto.clarifai.api.IdUpdateSource = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiOutputResponse, jspb.Message); +goog.inherits(proto.clarifai.api.IdUpdateSource, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiOutputResponse.displayName = 'proto.clarifai.api.MultiOutputResponse'; + proto.clarifai.api.IdUpdateSource.displayName = 'proto.clarifai.api.IdUpdateSource'; } /** * Generated by JsPbCodeGenerator. @@ -2721,16 +2959,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListScopesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PatchModelIdsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelIdsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListScopesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PatchModelIdsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListScopesRequest.displayName = 'proto.clarifai.api.ListScopesRequest'; + proto.clarifai.api.PatchModelIdsRequest.displayName = 'proto.clarifai.api.PatchModelIdsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2742,16 +2980,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MyScopesRequest = function(opt_data) { +proto.clarifai.api.DeleteModelRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MyScopesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteModelRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MyScopesRequest.displayName = 'proto.clarifai.api.MyScopesRequest'; + proto.clarifai.api.DeleteModelRequest.displayName = 'proto.clarifai.api.DeleteModelRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2763,16 +3001,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MyScopesUserRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.DeleteModelsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteModelsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MyScopesUserRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteModelsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MyScopesUserRequest.displayName = 'proto.clarifai.api.MyScopesUserRequest'; + proto.clarifai.api.DeleteModelsRequest.displayName = 'proto.clarifai.api.DeleteModelsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2784,16 +3022,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MyScopesRootRequest = function(opt_data) { +proto.clarifai.api.PostModelsSearchesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MyScopesRootRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelsSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MyScopesRootRequest.displayName = 'proto.clarifai.api.MyScopesRootRequest'; + proto.clarifai.api.PostModelsSearchesRequest.displayName = 'proto.clarifai.api.PostModelsSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2805,16 +3043,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiScopeDepsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeDepsResponse.repeatedFields_, null); +proto.clarifai.api.SingleModelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiScopeDepsResponse, jspb.Message); +goog.inherits(proto.clarifai.api.SingleModelResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiScopeDepsResponse.displayName = 'proto.clarifai.api.MultiScopeDepsResponse'; + proto.clarifai.api.SingleModelResponse.displayName = 'proto.clarifai.api.SingleModelResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2826,16 +3064,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiScopeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeResponse.repeatedFields_, null); +proto.clarifai.api.MultiModelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiScopeResponse, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiScopeResponse.displayName = 'proto.clarifai.api.MultiScopeResponse'; + proto.clarifai.api.MultiModelResponse.displayName = 'proto.clarifai.api.MultiModelResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2847,16 +3085,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiScopeUserResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeUserResponse.repeatedFields_, null); +proto.clarifai.api.PatchModelVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModelVersionsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiScopeUserResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PatchModelVersionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiScopeUserResponse.displayName = 'proto.clarifai.api.MultiScopeUserResponse'; + proto.clarifai.api.PatchModelVersionsRequest.displayName = 'proto.clarifai.api.PatchModelVersionsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2868,16 +3106,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiScopeRootResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeRootResponse.repeatedFields_, null); +proto.clarifai.api.GetModelVersionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiScopeRootResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetModelVersionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiScopeRootResponse.displayName = 'proto.clarifai.api.MultiScopeRootResponse'; + proto.clarifai.api.GetModelVersionRequest.displayName = 'proto.clarifai.api.GetModelVersionRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2889,16 +3127,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.ListModelVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListModelVersionsRequest.repeatedFields_, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_); }; -goog.inherits(proto.clarifai.api.GetSearchRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListModelVersionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetSearchRequest.displayName = 'proto.clarifai.api.GetSearchRequest'; + proto.clarifai.api.ListModelVersionsRequest.displayName = 'proto.clarifai.api.ListModelVersionsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2910,16 +3148,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListSearchesRequest = function(opt_data) { +proto.clarifai.api.DeleteModelVersionRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListSearchesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteModelVersionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListSearchesRequest.displayName = 'proto.clarifai.api.ListSearchesRequest'; + proto.clarifai.api.DeleteModelVersionRequest.displayName = 'proto.clarifai.api.DeleteModelVersionRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2931,16 +3169,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostSearchesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostSearchesRequest.repeatedFields_, null); +proto.clarifai.api.SingleModelVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostSearchesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleModelVersionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostSearchesRequest.displayName = 'proto.clarifai.api.PostSearchesRequest'; + proto.clarifai.api.SingleModelVersionResponse.displayName = 'proto.clarifai.api.SingleModelVersionResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2952,16 +3190,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostSearchesByIDRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiModelVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelVersionResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostSearchesByIDRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelVersionResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostSearchesByIDRequest.displayName = 'proto.clarifai.api.PostSearchesByIDRequest'; + proto.clarifai.api.MultiModelVersionResponse.displayName = 'proto.clarifai.api.MultiModelVersionResponse'; } /** * Generated by JsPbCodeGenerator. @@ -2973,16 +3211,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteSearchRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostModelVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelVersionsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.DeleteSearchRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelVersionsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteSearchRequest.displayName = 'proto.clarifai.api.DeleteSearchRequest'; + proto.clarifai.api.PostModelVersionsRequest.displayName = 'proto.clarifai.api.PostModelVersionsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -2994,16 +3232,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostAnnotationsSearchesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAnnotationsSearchesRequest.repeatedFields_, null); +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostAnnotationsSearchesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostWorkflowVersionsUnPublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.PostAnnotationsSearchesRequest'; + proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.displayName = 'proto.clarifai.api.PostWorkflowVersionsUnPublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3015,16 +3253,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostWorkflowVersionsPublishRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowVersionsPublishRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.DeleteAnnotationSearchMetricsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostWorkflowVersionsPublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.DeleteAnnotationSearchMetricsRequest'; + proto.clarifai.api.PostWorkflowVersionsPublishRequest.displayName = 'proto.clarifai.api.PostWorkflowVersionsPublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3036,16 +3274,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostInputsSearchesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostInputsSearchesRequest.repeatedFields_, null); +proto.clarifai.api.WorkflowVersionPublishRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostInputsSearchesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.WorkflowVersionPublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostInputsSearchesRequest.displayName = 'proto.clarifai.api.PostInputsSearchesRequest'; + proto.clarifai.api.WorkflowVersionPublishRequest.displayName = 'proto.clarifai.api.WorkflowVersionPublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3057,16 +3295,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleSearchResponse = function(opt_data) { +proto.clarifai.api.WorkflowVersionUnPublishRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleSearchResponse, jspb.Message); +goog.inherits(proto.clarifai.api.WorkflowVersionUnPublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleSearchResponse.displayName = 'proto.clarifai.api.SingleSearchResponse'; + proto.clarifai.api.WorkflowVersionUnPublishRequest.displayName = 'proto.clarifai.api.WorkflowVersionUnPublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3078,16 +3316,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiSearchResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiSearchResponse.repeatedFields_, null); +proto.clarifai.api.ModelVersionPublishRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiSearchResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ModelVersionPublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiSearchResponse.displayName = 'proto.clarifai.api.MultiSearchResponse'; + proto.clarifai.api.ModelVersionPublishRequest.displayName = 'proto.clarifai.api.ModelVersionPublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3099,16 +3337,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostModelVersionsPublishRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelVersionsPublishRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostAnnotationSearchMetricsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelVersionsPublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.PostAnnotationSearchMetricsRequest'; + proto.clarifai.api.PostModelVersionsPublishRequest.displayName = 'proto.clarifai.api.PostModelVersionsPublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3120,16 +3358,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest = function(opt_data) { +proto.clarifai.api.ModelVersionUnpublishRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.GetAnnotationSearchMetricsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ModelVersionUnpublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.GetAnnotationSearchMetricsRequest'; + proto.clarifai.api.ModelVersionUnpublishRequest.displayName = 'proto.clarifai.api.ModelVersionUnpublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3141,16 +3379,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostModelVersionsUnPublishRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelVersionsUnPublishRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListAnnotationSearchMetricsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelVersionsUnPublishRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.ListAnnotationSearchMetricsRequest'; + proto.clarifai.api.PostModelVersionsUnPublishRequest.displayName = 'proto.clarifai.api.PostModelVersionsUnPublishRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3162,16 +3400,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAnnotationSearchMetricsResponse.repeatedFields_, null); +proto.clarifai.api.PostEvaluationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostEvaluationsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiAnnotationSearchMetricsResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PostEvaluationsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiAnnotationSearchMetricsResponse.displayName = 'proto.clarifai.api.MultiAnnotationSearchMetricsResponse'; + proto.clarifai.api.PostEvaluationsRequest.displayName = 'proto.clarifai.api.PostEvaluationsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3183,16 +3421,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostValidatePasswordRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.ListEvaluationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_); }; -goog.inherits(proto.clarifai.api.PostValidatePasswordRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListEvaluationsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostValidatePasswordRequest.displayName = 'proto.clarifai.api.PostValidatePasswordRequest'; + proto.clarifai.api.ListEvaluationsRequest.displayName = 'proto.clarifai.api.ListEvaluationsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3204,16 +3442,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SinglePasswordValidationResponse = function(opt_data) { +proto.clarifai.api.GetEvaluationRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SinglePasswordValidationResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetEvaluationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SinglePasswordValidationResponse.displayName = 'proto.clarifai.api.SinglePasswordValidationResponse'; + proto.clarifai.api.GetEvaluationRequest.displayName = 'proto.clarifai.api.GetEvaluationRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3225,16 +3463,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetWorkflowRequest.repeatedFields_, null); +proto.clarifai.api.PostModelVersionEvaluationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModelVersionEvaluationsRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetWorkflowRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelVersionEvaluationsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetWorkflowRequest.displayName = 'proto.clarifai.api.GetWorkflowRequest'; + proto.clarifai.api.PostModelVersionEvaluationsRequest.displayName = 'proto.clarifai.api.PostModelVersionEvaluationsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3246,16 +3484,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListWorkflowsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListWorkflowsRequest.repeatedFields_, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_); +proto.clarifai.api.ListModelVersionEvaluationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListWorkflowsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListModelVersionEvaluationsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListWorkflowsRequest.displayName = 'proto.clarifai.api.ListWorkflowsRequest'; + proto.clarifai.api.ListModelVersionEvaluationsRequest.displayName = 'proto.clarifai.api.ListModelVersionEvaluationsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3267,16 +3505,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostWorkflowsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowsRequest.repeatedFields_, null); +proto.clarifai.api.GetModelVersionEvaluationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostWorkflowsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetModelVersionEvaluationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostWorkflowsRequest.displayName = 'proto.clarifai.api.PostWorkflowsRequest'; + proto.clarifai.api.GetModelVersionEvaluationRequest.displayName = 'proto.clarifai.api.GetModelVersionEvaluationRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3288,16 +3526,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchWorkflowsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchWorkflowsRequest.repeatedFields_, null); +proto.clarifai.api.SingleEvalMetricsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchWorkflowsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleEvalMetricsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchWorkflowsRequest.displayName = 'proto.clarifai.api.PatchWorkflowsRequest'; + proto.clarifai.api.SingleEvalMetricsResponse.displayName = 'proto.clarifai.api.SingleEvalMetricsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3309,16 +3547,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteWorkflowRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiEvalMetricsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiEvalMetricsResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.DeleteWorkflowRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiEvalMetricsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteWorkflowRequest.displayName = 'proto.clarifai.api.DeleteWorkflowRequest'; + proto.clarifai.api.MultiEvalMetricsResponse.displayName = 'proto.clarifai.api.MultiEvalMetricsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3330,16 +3568,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteWorkflowsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteWorkflowsRequest.repeatedFields_, null); +proto.clarifai.api.PostModelVersionMetricsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.DeleteWorkflowsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostModelVersionMetricsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteWorkflowsRequest.displayName = 'proto.clarifai.api.DeleteWorkflowsRequest'; + proto.clarifai.api.PostModelVersionMetricsRequest.displayName = 'proto.clarifai.api.PostModelVersionMetricsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3351,16 +3589,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleWorkflowResponse = function(opt_data) { +proto.clarifai.api.GetModelVersionMetricsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleWorkflowResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetModelVersionMetricsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleWorkflowResponse.displayName = 'proto.clarifai.api.SingleWorkflowResponse'; + proto.clarifai.api.GetModelVersionMetricsRequest.displayName = 'proto.clarifai.api.GetModelVersionMetricsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3372,16 +3610,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiWorkflowResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiWorkflowResponse.repeatedFields_, null); +proto.clarifai.api.GetModelTypeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiWorkflowResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetModelTypeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiWorkflowResponse.displayName = 'proto.clarifai.api.MultiWorkflowResponse'; + proto.clarifai.api.GetModelTypeRequest.displayName = 'proto.clarifai.api.GetModelTypeRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3393,16 +3631,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostWorkflowResultsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsRequest.repeatedFields_, null); +proto.clarifai.api.ListModelTypesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostWorkflowResultsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListModelTypesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostWorkflowResultsRequest.displayName = 'proto.clarifai.api.PostWorkflowResultsRequest'; + proto.clarifai.api.ListModelTypesRequest.displayName = 'proto.clarifai.api.ListModelTypesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3414,16 +3652,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostWorkflowResultsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsResponse.repeatedFields_, null); +proto.clarifai.api.ListOpenSourceLicensesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostWorkflowResultsResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ListOpenSourceLicensesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostWorkflowResultsResponse.displayName = 'proto.clarifai.api.PostWorkflowResultsResponse'; + proto.clarifai.api.ListOpenSourceLicensesRequest.displayName = 'proto.clarifai.api.ListOpenSourceLicensesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3435,16 +3673,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsSimilarityRequest.repeatedFields_, null); +proto.clarifai.api.ListOpenSourceLicensesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListOpenSourceLicensesResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostWorkflowResultsSimilarityRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListOpenSourceLicensesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostWorkflowResultsSimilarityRequest.displayName = 'proto.clarifai.api.PostWorkflowResultsSimilarityRequest'; + proto.clarifai.api.ListOpenSourceLicensesResponse.displayName = 'proto.clarifai.api.ListOpenSourceLicensesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3456,16 +3694,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsSimilarityResponse.repeatedFields_, null); +proto.clarifai.api.SingleModelTypeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostWorkflowResultsSimilarityResponse, jspb.Message); +goog.inherits(proto.clarifai.api.SingleModelTypeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostWorkflowResultsSimilarityResponse.displayName = 'proto.clarifai.api.PostWorkflowResultsSimilarityResponse'; + proto.clarifai.api.SingleModelTypeResponse.displayName = 'proto.clarifai.api.SingleModelTypeResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3477,16 +3715,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListWorkflowVersionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiModelTypeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelTypeResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListWorkflowVersionsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelTypeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListWorkflowVersionsRequest.displayName = 'proto.clarifai.api.ListWorkflowVersionsRequest'; + proto.clarifai.api.MultiModelTypeResponse.displayName = 'proto.clarifai.api.MultiModelTypeResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3498,16 +3736,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetWorkflowVersionRequest = function(opt_data) { +proto.clarifai.api.GetModelVersionInputExampleRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.GetWorkflowVersionRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetModelVersionInputExampleRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetWorkflowVersionRequest.displayName = 'proto.clarifai.api.GetWorkflowVersionRequest'; + proto.clarifai.api.GetModelVersionInputExampleRequest.displayName = 'proto.clarifai.api.GetModelVersionInputExampleRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3519,16 +3757,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteWorkflowVersionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteWorkflowVersionsRequest.repeatedFields_, null); +proto.clarifai.api.ListModelVersionInputExamplesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.DeleteWorkflowVersionsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListModelVersionInputExamplesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteWorkflowVersionsRequest.displayName = 'proto.clarifai.api.DeleteWorkflowVersionsRequest'; + proto.clarifai.api.ListModelVersionInputExamplesRequest.displayName = 'proto.clarifai.api.ListModelVersionInputExamplesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3540,16 +3778,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchWorkflowVersionsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchWorkflowVersionsRequest.repeatedFields_, null); +proto.clarifai.api.SingleModelVersionInputExampleResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchWorkflowVersionsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleModelVersionInputExampleResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchWorkflowVersionsRequest.displayName = 'proto.clarifai.api.PatchWorkflowVersionsRequest'; + proto.clarifai.api.SingleModelVersionInputExampleResponse.displayName = 'proto.clarifai.api.SingleModelVersionInputExampleResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3561,16 +3799,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiWorkflowVersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiWorkflowVersionResponse.repeatedFields_, null); +proto.clarifai.api.MultiModelVersionInputExampleResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelVersionInputExampleResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiWorkflowVersionResponse, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelVersionInputExampleResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiWorkflowVersionResponse.displayName = 'proto.clarifai.api.MultiWorkflowVersionResponse'; + proto.clarifai.api.MultiModelVersionInputExampleResponse.displayName = 'proto.clarifai.api.MultiModelVersionInputExampleResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3582,16 +3820,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleWorkflowVersionResponse = function(opt_data) { +proto.clarifai.api.ListModelReferencesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleWorkflowVersionResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ListModelReferencesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleWorkflowVersionResponse.displayName = 'proto.clarifai.api.SingleWorkflowVersionResponse'; + proto.clarifai.api.ListModelReferencesRequest.displayName = 'proto.clarifai.api.ListModelReferencesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3603,16 +3841,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostAppDuplicationsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAppDuplicationsRequest.repeatedFields_, null); +proto.clarifai.api.MultiModelReferenceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModelReferenceResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostAppDuplicationsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiModelReferenceResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostAppDuplicationsRequest.displayName = 'proto.clarifai.api.PostAppDuplicationsRequest'; + proto.clarifai.api.MultiModelReferenceResponse.displayName = 'proto.clarifai.api.MultiModelReferenceResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3624,16 +3862,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetAppDuplicationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiOutputResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiOutputResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetAppDuplicationRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiOutputResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetAppDuplicationRequest.displayName = 'proto.clarifai.api.GetAppDuplicationRequest'; + proto.clarifai.api.MultiOutputResponse.displayName = 'proto.clarifai.api.MultiOutputResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3645,16 +3883,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListAppDuplicationsRequest = function(opt_data) { +proto.clarifai.api.ListScopesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListAppDuplicationsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListScopesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListAppDuplicationsRequest.displayName = 'proto.clarifai.api.ListAppDuplicationsRequest'; + proto.clarifai.api.ListScopesRequest.displayName = 'proto.clarifai.api.ListScopesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3666,16 +3904,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiAppDuplicationsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAppDuplicationsResponse.repeatedFields_, null); +proto.clarifai.api.MyScopesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiAppDuplicationsResponse, jspb.Message); +goog.inherits(proto.clarifai.api.MyScopesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiAppDuplicationsResponse.displayName = 'proto.clarifai.api.MultiAppDuplicationsResponse'; + proto.clarifai.api.MyScopesRequest.displayName = 'proto.clarifai.api.MyScopesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3687,16 +3925,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleAppDuplicationResponse = function(opt_data) { +proto.clarifai.api.MyScopesUserRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleAppDuplicationResponse, jspb.Message); +goog.inherits(proto.clarifai.api.MyScopesUserRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleAppDuplicationResponse.displayName = 'proto.clarifai.api.SingleAppDuplicationResponse'; + proto.clarifai.api.MyScopesUserRequest.displayName = 'proto.clarifai.api.MyScopesUserRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3708,16 +3946,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostTasksRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostTasksRequest.repeatedFields_, null); +proto.clarifai.api.MyScopesRootRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostTasksRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MyScopesRootRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostTasksRequest.displayName = 'proto.clarifai.api.PostTasksRequest'; + proto.clarifai.api.MyScopesRootRequest.displayName = 'proto.clarifai.api.MyScopesRootRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3729,16 +3967,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetTaskRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiScopeDepsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeDepsResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetTaskRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiScopeDepsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetTaskRequest.displayName = 'proto.clarifai.api.GetTaskRequest'; + proto.clarifai.api.MultiScopeDepsResponse.displayName = 'proto.clarifai.api.MultiScopeDepsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3750,16 +3988,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListTasksRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListTasksRequest.repeatedFields_, null); +proto.clarifai.api.MultiScopeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.ListTasksRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiScopeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListTasksRequest.displayName = 'proto.clarifai.api.ListTasksRequest'; + proto.clarifai.api.MultiScopeResponse.displayName = 'proto.clarifai.api.MultiScopeResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3771,16 +4009,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchTasksRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchTasksRequest.repeatedFields_, null); +proto.clarifai.api.MultiScopeUserResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeUserResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PatchTasksRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiScopeUserResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchTasksRequest.displayName = 'proto.clarifai.api.PatchTasksRequest'; + proto.clarifai.api.MultiScopeUserResponse.displayName = 'proto.clarifai.api.MultiScopeUserResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3792,16 +4030,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteTasksRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteTasksRequest.repeatedFields_, null); +proto.clarifai.api.MultiScopeRootResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiScopeRootResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.DeleteTasksRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiScopeRootResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteTasksRequest.displayName = 'proto.clarifai.api.DeleteTasksRequest'; + proto.clarifai.api.MultiScopeRootResponse.displayName = 'proto.clarifai.api.MultiScopeRootResponse'; } /** * Generated by JsPbCodeGenerator. @@ -3813,16 +4051,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiTaskResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTaskResponse.repeatedFields_, null); +proto.clarifai.api.GetSearchRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiTaskResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetSearchRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiTaskResponse.displayName = 'proto.clarifai.api.MultiTaskResponse'; + proto.clarifai.api.GetSearchRequest.displayName = 'proto.clarifai.api.GetSearchRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3834,16 +4072,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleTaskResponse = function(opt_data) { +proto.clarifai.api.ListSearchesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleTaskResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ListSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleTaskResponse.displayName = 'proto.clarifai.api.SingleTaskResponse'; + proto.clarifai.api.ListSearchesRequest.displayName = 'proto.clarifai.api.ListSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3855,16 +4093,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetTaskCountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetTaskCountRequest.repeatedFields_, null); +proto.clarifai.api.PostSearchesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostSearchesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetTaskCountRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetTaskCountRequest.displayName = 'proto.clarifai.api.GetTaskCountRequest'; + proto.clarifai.api.PostSearchesRequest.displayName = 'proto.clarifai.api.PostSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3876,16 +4114,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleTaskCountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.SingleTaskCountResponse.repeatedFields_, null); +proto.clarifai.api.PatchInputsSearchesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchInputsSearchesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.SingleTaskCountResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PatchInputsSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleTaskCountResponse.displayName = 'proto.clarifai.api.SingleTaskCountResponse'; + proto.clarifai.api.PatchInputsSearchesRequest.displayName = 'proto.clarifai.api.PatchInputsSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3897,16 +4135,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostLabelOrdersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostLabelOrdersRequest.repeatedFields_, null); +proto.clarifai.api.PatchAnnotationsSearchesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchAnnotationsSearchesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostLabelOrdersRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PatchAnnotationsSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostLabelOrdersRequest.displayName = 'proto.clarifai.api.PostLabelOrdersRequest'; + proto.clarifai.api.PatchAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.PatchAnnotationsSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3918,16 +4156,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetLabelOrderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PatchSearchesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchSearchesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.GetLabelOrderRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PatchSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetLabelOrderRequest.displayName = 'proto.clarifai.api.GetLabelOrderRequest'; + proto.clarifai.api.PatchSearchesRequest.displayName = 'proto.clarifai.api.PatchSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3939,16 +4177,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListLabelOrdersRequest = function(opt_data) { +proto.clarifai.api.PostSearchesByIDRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListLabelOrdersRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostSearchesByIDRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListLabelOrdersRequest.displayName = 'proto.clarifai.api.ListLabelOrdersRequest'; + proto.clarifai.api.PostSearchesByIDRequest.displayName = 'proto.clarifai.api.PostSearchesByIDRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3960,16 +4198,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchLabelOrdersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchLabelOrdersRequest.repeatedFields_, null); +proto.clarifai.api.DeleteSearchRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PatchLabelOrdersRequest, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteSearchRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchLabelOrdersRequest.displayName = 'proto.clarifai.api.PatchLabelOrdersRequest'; + proto.clarifai.api.DeleteSearchRequest.displayName = 'proto.clarifai.api.DeleteSearchRequest'; } /** * Generated by JsPbCodeGenerator. @@ -3981,16 +4219,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteLabelOrdersRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteLabelOrdersRequest.repeatedFields_, null); +proto.clarifai.api.PostAnnotationsSearchesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAnnotationsSearchesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.DeleteLabelOrdersRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostAnnotationsSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteLabelOrdersRequest.displayName = 'proto.clarifai.api.DeleteLabelOrdersRequest'; + proto.clarifai.api.PostAnnotationsSearchesRequest.displayName = 'proto.clarifai.api.PostAnnotationsSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4002,16 +4240,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiLabelOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiLabelOrderResponse.repeatedFields_, null); +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.MultiLabelOrderResponse, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteAnnotationSearchMetricsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiLabelOrderResponse.displayName = 'proto.clarifai.api.MultiLabelOrderResponse'; + proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.DeleteAnnotationSearchMetricsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4023,16 +4261,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleLabelOrderResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.PostInputsSearchesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostInputsSearchesRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.SingleLabelOrderResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PostInputsSearchesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleLabelOrderResponse.displayName = 'proto.clarifai.api.SingleLabelOrderResponse'; + proto.clarifai.api.PostInputsSearchesRequest.displayName = 'proto.clarifai.api.PostInputsSearchesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4044,16 +4282,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostCollectorsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostCollectorsRequest.repeatedFields_, null); +proto.clarifai.api.SingleSearchResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostCollectorsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleSearchResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostCollectorsRequest.displayName = 'proto.clarifai.api.PostCollectorsRequest'; + proto.clarifai.api.SingleSearchResponse.displayName = 'proto.clarifai.api.SingleSearchResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4065,16 +4303,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PatchCollectorsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchCollectorsRequest.repeatedFields_, null); +proto.clarifai.api.MultiSearchResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiSearchResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PatchCollectorsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiSearchResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PatchCollectorsRequest.displayName = 'proto.clarifai.api.PatchCollectorsRequest'; + proto.clarifai.api.MultiSearchResponse.displayName = 'proto.clarifai.api.MultiSearchResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4086,16 +4324,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.DeleteCollectorsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteCollectorsRequest.repeatedFields_, null); +proto.clarifai.api.PostAnnotationSearchMetricsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.DeleteCollectorsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PostAnnotationSearchMetricsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.DeleteCollectorsRequest.displayName = 'proto.clarifai.api.DeleteCollectorsRequest'; + proto.clarifai.api.PostAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.PostAnnotationSearchMetricsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4107,16 +4345,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.GetCollectorRequest = function(opt_data) { +proto.clarifai.api.GetAnnotationSearchMetricsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.GetCollectorRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetAnnotationSearchMetricsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.GetCollectorRequest.displayName = 'proto.clarifai.api.GetCollectorRequest'; + proto.clarifai.api.GetAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.GetAnnotationSearchMetricsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4128,16 +4366,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListCollectorsRequest = function(opt_data) { +proto.clarifai.api.ListAnnotationSearchMetricsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListCollectorsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.ListAnnotationSearchMetricsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListCollectorsRequest.displayName = 'proto.clarifai.api.ListCollectorsRequest'; + proto.clarifai.api.ListAnnotationSearchMetricsRequest.displayName = 'proto.clarifai.api.ListAnnotationSearchMetricsRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4149,16 +4387,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiCollectorResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiCollectorResponse.repeatedFields_, null); +proto.clarifai.api.MultiAnnotationSearchMetricsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAnnotationSearchMetricsResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiCollectorResponse, jspb.Message); +goog.inherits(proto.clarifai.api.MultiAnnotationSearchMetricsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiCollectorResponse.displayName = 'proto.clarifai.api.MultiCollectorResponse'; + proto.clarifai.api.MultiAnnotationSearchMetricsResponse.displayName = 'proto.clarifai.api.MultiAnnotationSearchMetricsResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4170,16 +4408,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.SingleCollectorResponse = function(opt_data) { +proto.clarifai.api.ListAnnotationFiltersRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.SingleCollectorResponse, jspb.Message); +goog.inherits(proto.clarifai.api.ListAnnotationFiltersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.SingleCollectorResponse.displayName = 'proto.clarifai.api.SingleCollectorResponse'; + proto.clarifai.api.ListAnnotationFiltersRequest.displayName = 'proto.clarifai.api.ListAnnotationFiltersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4191,16 +4429,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostStatValuesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostStatValuesRequest.repeatedFields_, null); +proto.clarifai.api.GetAnnotationFilterRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.PostStatValuesRequest, jspb.Message); +goog.inherits(proto.clarifai.api.GetAnnotationFilterRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostStatValuesRequest.displayName = 'proto.clarifai.api.PostStatValuesRequest'; + proto.clarifai.api.GetAnnotationFilterRequest.displayName = 'proto.clarifai.api.GetAnnotationFilterRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4212,16 +4450,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiStatValueResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiStatValueResponse.repeatedFields_, null); +proto.clarifai.api.PostAnnotationFiltersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAnnotationFiltersRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiStatValueResponse, jspb.Message); +goog.inherits(proto.clarifai.api.PostAnnotationFiltersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiStatValueResponse.displayName = 'proto.clarifai.api.MultiStatValueResponse'; + proto.clarifai.api.PostAnnotationFiltersRequest.displayName = 'proto.clarifai.api.PostAnnotationFiltersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4233,16 +4471,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostStatValuesAggregateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostStatValuesAggregateRequest.repeatedFields_, null); +proto.clarifai.api.PatchAnnotationFiltersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchAnnotationFiltersRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostStatValuesAggregateRequest, jspb.Message); +goog.inherits(proto.clarifai.api.PatchAnnotationFiltersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostStatValuesAggregateRequest.displayName = 'proto.clarifai.api.PostStatValuesAggregateRequest'; + proto.clarifai.api.PatchAnnotationFiltersRequest.displayName = 'proto.clarifai.api.PatchAnnotationFiltersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4254,16 +4492,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiStatValueAggregateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiStatValueAggregateResponse.repeatedFields_, null); +proto.clarifai.api.DeleteAnnotationFiltersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteAnnotationFiltersRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiStatValueAggregateResponse, jspb.Message); +goog.inherits(proto.clarifai.api.DeleteAnnotationFiltersRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiStatValueAggregateResponse.displayName = 'proto.clarifai.api.MultiStatValueAggregateResponse'; + proto.clarifai.api.DeleteAnnotationFiltersRequest.displayName = 'proto.clarifai.api.DeleteAnnotationFiltersRequest'; } /** * Generated by JsPbCodeGenerator. @@ -4275,16 +4513,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.PostTrendingMetricsViewRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.clarifai.api.MultiAnnotationFilterResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAnnotationFilterResponse.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.PostTrendingMetricsViewRequest, jspb.Message); +goog.inherits(proto.clarifai.api.MultiAnnotationFilterResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.PostTrendingMetricsViewRequest.displayName = 'proto.clarifai.api.PostTrendingMetricsViewRequest'; + proto.clarifai.api.MultiAnnotationFilterResponse.displayName = 'proto.clarifai.api.MultiAnnotationFilterResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4296,16 +4534,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.ListTrendingMetricsViewsRequest = function(opt_data) { +proto.clarifai.api.SingleAnnotationFilterResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.clarifai.api.ListTrendingMetricsViewsRequest, jspb.Message); +goog.inherits(proto.clarifai.api.SingleAnnotationFilterResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.ListTrendingMetricsViewsRequest.displayName = 'proto.clarifai.api.ListTrendingMetricsViewsRequest'; + proto.clarifai.api.SingleAnnotationFilterResponse.displayName = 'proto.clarifai.api.SingleAnnotationFilterResponse'; } /** * Generated by JsPbCodeGenerator. @@ -4317,134 +4555,31120 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.clarifai.api.MultiTrendingMetricsViewResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_, null); +proto.clarifai.api.GetUserRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetUserRequest.repeatedFields_, null); }; -goog.inherits(proto.clarifai.api.MultiTrendingMetricsViewResponse, jspb.Message); +goog.inherits(proto.clarifai.api.GetUserRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.clarifai.api.MultiTrendingMetricsViewResponse.displayName = 'proto.clarifai.api.MultiTrendingMetricsViewResponse'; + proto.clarifai.api.GetUserRequest.displayName = 'proto.clarifai.api.GetUserRequest'; } - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Pagination.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.Pagination.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleUserResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.clarifai.api.SingleUserResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleUserResponse.displayName = 'proto.clarifai.api.SingleUserResponse'; +} /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.Pagination} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Pagination.toObject = function(includeInstance, msg) { - var f, obj = { - page: jspb.Message.getFieldWithDefault(msg, 1, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.PostValidatePasswordRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; +goog.inherits(proto.clarifai.api.PostValidatePasswordRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostValidatePasswordRequest.displayName = 'proto.clarifai.api.PostValidatePasswordRequest'; } - - /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.Pagination} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Pagination.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.Pagination; - return proto.clarifai.api.Pagination.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.SinglePasswordValidationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - +goog.inherits(proto.clarifai.api.SinglePasswordValidationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SinglePasswordValidationResponse.displayName = 'proto.clarifai.api.SinglePasswordValidationResponse'; +} /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.Pagination} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.Pagination} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Pagination.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.GetWorkflowRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetWorkflowRequest.repeatedFields_, null); }; - - +goog.inherits(proto.clarifai.api.GetWorkflowRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetWorkflowRequest.displayName = 'proto.clarifai.api.GetWorkflowRequest'; +} /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.clarifai.api.Pagination.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.Pagination.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ListWorkflowsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListWorkflowsRequest.repeatedFields_, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_); }; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. +goog.inherits(proto.clarifai.api.ListWorkflowsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListWorkflowsRequest.displayName = 'proto.clarifai.api.ListWorkflowsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostWorkflowsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostWorkflowsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostWorkflowsRequest.displayName = 'proto.clarifai.api.PostWorkflowsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchWorkflowsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchWorkflowsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchWorkflowsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchWorkflowsRequest.displayName = 'proto.clarifai.api.PatchWorkflowsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchWorkflowIdsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchWorkflowIdsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchWorkflowIdsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchWorkflowIdsRequest.displayName = 'proto.clarifai.api.PatchWorkflowIdsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteWorkflowRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.DeleteWorkflowRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteWorkflowRequest.displayName = 'proto.clarifai.api.DeleteWorkflowRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteWorkflowsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteWorkflowsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteWorkflowsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteWorkflowsRequest.displayName = 'proto.clarifai.api.DeleteWorkflowsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleWorkflowResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleWorkflowResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleWorkflowResponse.displayName = 'proto.clarifai.api.SingleWorkflowResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiWorkflowResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiWorkflowResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiWorkflowResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiWorkflowResponse.displayName = 'proto.clarifai.api.MultiWorkflowResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostWorkflowResultsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostWorkflowResultsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostWorkflowResultsRequest.displayName = 'proto.clarifai.api.PostWorkflowResultsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostWorkflowResultsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostWorkflowResultsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostWorkflowResultsResponse.displayName = 'proto.clarifai.api.PostWorkflowResultsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsSimilarityRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostWorkflowResultsSimilarityRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostWorkflowResultsSimilarityRequest.displayName = 'proto.clarifai.api.PostWorkflowResultsSimilarityRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostWorkflowResultsSimilarityResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostWorkflowResultsSimilarityResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostWorkflowResultsSimilarityResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostWorkflowResultsSimilarityResponse.displayName = 'proto.clarifai.api.PostWorkflowResultsSimilarityResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListWorkflowVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListWorkflowVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListWorkflowVersionsRequest.displayName = 'proto.clarifai.api.ListWorkflowVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetWorkflowVersionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetWorkflowVersionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetWorkflowVersionRequest.displayName = 'proto.clarifai.api.GetWorkflowVersionRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteWorkflowVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteWorkflowVersionsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteWorkflowVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteWorkflowVersionsRequest.displayName = 'proto.clarifai.api.DeleteWorkflowVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchWorkflowVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchWorkflowVersionsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchWorkflowVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchWorkflowVersionsRequest.displayName = 'proto.clarifai.api.PatchWorkflowVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiWorkflowVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiWorkflowVersionResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiWorkflowVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiWorkflowVersionResponse.displayName = 'proto.clarifai.api.MultiWorkflowVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleWorkflowVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleWorkflowVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleWorkflowVersionResponse.displayName = 'proto.clarifai.api.SingleWorkflowVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostAppDuplicationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostAppDuplicationsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostAppDuplicationsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostAppDuplicationsRequest.displayName = 'proto.clarifai.api.PostAppDuplicationsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetAppDuplicationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetAppDuplicationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetAppDuplicationRequest.displayName = 'proto.clarifai.api.GetAppDuplicationRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListAppDuplicationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListAppDuplicationsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListAppDuplicationsRequest.displayName = 'proto.clarifai.api.ListAppDuplicationsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiAppDuplicationsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiAppDuplicationsResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiAppDuplicationsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiAppDuplicationsResponse.displayName = 'proto.clarifai.api.MultiAppDuplicationsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleAppDuplicationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleAppDuplicationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleAppDuplicationResponse.displayName = 'proto.clarifai.api.SingleAppDuplicationResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostTasksRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostTasksRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostTasksRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostTasksRequest.displayName = 'proto.clarifai.api.PostTasksRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetTaskRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetTaskRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.GetTaskRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetTaskRequest.displayName = 'proto.clarifai.api.GetTaskRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListTasksRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListTasksRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.ListTasksRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListTasksRequest.displayName = 'proto.clarifai.api.ListTasksRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchTasksRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchTasksRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchTasksRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchTasksRequest.displayName = 'proto.clarifai.api.PatchTasksRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteTasksRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteTasksRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteTasksRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteTasksRequest.displayName = 'proto.clarifai.api.DeleteTasksRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiTaskResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTaskResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiTaskResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiTaskResponse.displayName = 'proto.clarifai.api.MultiTaskResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleTaskResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleTaskResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleTaskResponse.displayName = 'proto.clarifai.api.SingleTaskResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetTaskCountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetTaskCountRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.GetTaskCountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetTaskCountRequest.displayName = 'proto.clarifai.api.GetTaskCountRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleTaskCountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.SingleTaskCountResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.SingleTaskCountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleTaskCountResponse.displayName = 'proto.clarifai.api.SingleTaskCountResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostLabelOrdersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostLabelOrdersRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostLabelOrdersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostLabelOrdersRequest.displayName = 'proto.clarifai.api.PostLabelOrdersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetLabelOrderRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetLabelOrderRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetLabelOrderRequest.displayName = 'proto.clarifai.api.GetLabelOrderRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListLabelOrdersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListLabelOrdersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListLabelOrdersRequest.displayName = 'proto.clarifai.api.ListLabelOrdersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchLabelOrdersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchLabelOrdersRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchLabelOrdersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchLabelOrdersRequest.displayName = 'proto.clarifai.api.PatchLabelOrdersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteLabelOrdersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteLabelOrdersRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteLabelOrdersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteLabelOrdersRequest.displayName = 'proto.clarifai.api.DeleteLabelOrdersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiLabelOrderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiLabelOrderResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiLabelOrderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiLabelOrderResponse.displayName = 'proto.clarifai.api.MultiLabelOrderResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleLabelOrderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleLabelOrderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleLabelOrderResponse.displayName = 'proto.clarifai.api.SingleLabelOrderResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostCollectorsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostCollectorsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostCollectorsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostCollectorsRequest.displayName = 'proto.clarifai.api.PostCollectorsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchCollectorsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchCollectorsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchCollectorsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchCollectorsRequest.displayName = 'proto.clarifai.api.PatchCollectorsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteCollectorsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteCollectorsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteCollectorsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteCollectorsRequest.displayName = 'proto.clarifai.api.DeleteCollectorsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetCollectorRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetCollectorRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetCollectorRequest.displayName = 'proto.clarifai.api.GetCollectorRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListCollectorsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListCollectorsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListCollectorsRequest.displayName = 'proto.clarifai.api.ListCollectorsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiCollectorResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiCollectorResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiCollectorResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiCollectorResponse.displayName = 'proto.clarifai.api.MultiCollectorResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleCollectorResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleCollectorResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleCollectorResponse.displayName = 'proto.clarifai.api.SingleCollectorResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostStatValuesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostStatValuesRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostStatValuesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostStatValuesRequest.displayName = 'proto.clarifai.api.PostStatValuesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiStatValueResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiStatValueResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiStatValueResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiStatValueResponse.displayName = 'proto.clarifai.api.MultiStatValueResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostStatValuesAggregateRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostStatValuesAggregateRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostStatValuesAggregateRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostStatValuesAggregateRequest.displayName = 'proto.clarifai.api.PostStatValuesAggregateRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiStatValueAggregateResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiStatValueAggregateResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiStatValueAggregateResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiStatValueAggregateResponse.displayName = 'proto.clarifai.api.MultiStatValueAggregateResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostTrendingMetricsViewRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.PostTrendingMetricsViewRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostTrendingMetricsViewRequest.displayName = 'proto.clarifai.api.PostTrendingMetricsViewRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListTrendingMetricsViewsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListTrendingMetricsViewsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListTrendingMetricsViewsRequest.displayName = 'proto.clarifai.api.ListTrendingMetricsViewsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiTrendingMetricsViewResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiTrendingMetricsViewResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiTrendingMetricsViewResponse.displayName = 'proto.clarifai.api.MultiTrendingMetricsViewResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetModuleRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.GetModuleRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.GetModuleRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetModuleRequest.displayName = 'proto.clarifai.api.GetModuleRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListModulesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.ListModulesRequest.repeatedFields_, proto.clarifai.api.ListModulesRequest.oneofGroups_); +}; +goog.inherits(proto.clarifai.api.ListModulesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListModulesRequest.displayName = 'proto.clarifai.api.ListModulesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostModulesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModulesRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostModulesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostModulesRequest.displayName = 'proto.clarifai.api.PostModulesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PatchModulesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PatchModulesRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PatchModulesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PatchModulesRequest.displayName = 'proto.clarifai.api.PatchModulesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteModulesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteModulesRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteModulesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteModulesRequest.displayName = 'proto.clarifai.api.DeleteModulesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleModuleResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleModuleResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleModuleResponse.displayName = 'proto.clarifai.api.SingleModuleResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiModuleResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModuleResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiModuleResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiModuleResponse.displayName = 'proto.clarifai.api.MultiModuleResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetModuleVersionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetModuleVersionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetModuleVersionRequest.displayName = 'proto.clarifai.api.GetModuleVersionRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListModuleVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListModuleVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListModuleVersionsRequest.displayName = 'proto.clarifai.api.ListModuleVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostModuleVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostModuleVersionsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostModuleVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostModuleVersionsRequest.displayName = 'proto.clarifai.api.PostModuleVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteModuleVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteModuleVersionsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteModuleVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteModuleVersionsRequest.displayName = 'proto.clarifai.api.DeleteModuleVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleModuleVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleModuleVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleModuleVersionResponse.displayName = 'proto.clarifai.api.SingleModuleVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiModuleVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiModuleVersionResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiModuleVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiModuleVersionResponse.displayName = 'proto.clarifai.api.MultiModuleVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetInstalledModuleVersionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetInstalledModuleVersionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetInstalledModuleVersionRequest.displayName = 'proto.clarifai.api.GetInstalledModuleVersionRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListInstalledModuleVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListInstalledModuleVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListInstalledModuleVersionsRequest.displayName = 'proto.clarifai.api.ListInstalledModuleVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostInstalledModuleVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostInstalledModuleVersionsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostInstalledModuleVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostInstalledModuleVersionsRequest.displayName = 'proto.clarifai.api.PostInstalledModuleVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.PostInstalledModuleVersionsKeyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.displayName = 'proto.clarifai.api.PostInstalledModuleVersionsKeyRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteInstalledModuleVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteInstalledModuleVersionsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteInstalledModuleVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteInstalledModuleVersionsRequest.displayName = 'proto.clarifai.api.DeleteInstalledModuleVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleInstalledModuleVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleInstalledModuleVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleInstalledModuleVersionResponse.displayName = 'proto.clarifai.api.SingleInstalledModuleVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiInstalledModuleVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiInstalledModuleVersionResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiInstalledModuleVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiInstalledModuleVersionResponse.displayName = 'proto.clarifai.api.MultiInstalledModuleVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListNextTaskAssignmentsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListNextTaskAssignmentsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListNextTaskAssignmentsRequest.displayName = 'proto.clarifai.api.ListNextTaskAssignmentsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostBulkOperationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostBulkOperationsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostBulkOperationsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostBulkOperationsRequest.displayName = 'proto.clarifai.api.PostBulkOperationsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListBulkOperationsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListBulkOperationsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListBulkOperationsRequest.displayName = 'proto.clarifai.api.ListBulkOperationsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetBulkOperationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetBulkOperationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetBulkOperationRequest.displayName = 'proto.clarifai.api.GetBulkOperationRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.CancelBulkOperationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.CancelBulkOperationRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.CancelBulkOperationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.CancelBulkOperationRequest.displayName = 'proto.clarifai.api.CancelBulkOperationRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteBulkOperationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteBulkOperationRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteBulkOperationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteBulkOperationRequest.displayName = 'proto.clarifai.api.DeleteBulkOperationRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleBulkOperationsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleBulkOperationsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleBulkOperationsResponse.displayName = 'proto.clarifai.api.SingleBulkOperationsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiBulkOperationsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiBulkOperationsResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiBulkOperationsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiBulkOperationsResponse.displayName = 'proto.clarifai.api.MultiBulkOperationsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PutTaskAssignmentsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.PutTaskAssignmentsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PutTaskAssignmentsRequest.displayName = 'proto.clarifai.api.PutTaskAssignmentsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListInputsAddJobsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListInputsAddJobsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListInputsAddJobsRequest.displayName = 'proto.clarifai.api.ListInputsAddJobsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetInputsAddJobRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetInputsAddJobRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetInputsAddJobRequest.displayName = 'proto.clarifai.api.GetInputsAddJobRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.CancelInputsAddJobRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.CancelInputsAddJobRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.CancelInputsAddJobRequest.displayName = 'proto.clarifai.api.CancelInputsAddJobRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiInputsAddJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiInputsAddJobResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiInputsAddJobResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiInputsAddJobResponse.displayName = 'proto.clarifai.api.MultiInputsAddJobResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleInputsAddJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleInputsAddJobResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleInputsAddJobResponse.displayName = 'proto.clarifai.api.SingleInputsAddJobResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostUploadsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostUploadsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostUploadsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostUploadsRequest.displayName = 'proto.clarifai.api.PostUploadsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteUploadsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteUploadsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteUploadsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteUploadsRequest.displayName = 'proto.clarifai.api.DeleteUploadsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListUploadsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListUploadsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListUploadsRequest.displayName = 'proto.clarifai.api.ListUploadsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetUploadRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetUploadRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetUploadRequest.displayName = 'proto.clarifai.api.GetUploadRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleUploadResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleUploadResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleUploadResponse.displayName = 'proto.clarifai.api.SingleUploadResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiUploadResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiUploadResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiUploadResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiUploadResponse.displayName = 'proto.clarifai.api.MultiUploadResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PutUploadContentPartsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PutUploadContentPartsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PutUploadContentPartsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PutUploadContentPartsRequest.displayName = 'proto.clarifai.api.PutUploadContentPartsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostInputsDataSourcesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostInputsDataSourcesRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostInputsDataSourcesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostInputsDataSourcesRequest.displayName = 'proto.clarifai.api.PostInputsDataSourcesRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetInputsExtractionJobRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetInputsExtractionJobRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetInputsExtractionJobRequest.displayName = 'proto.clarifai.api.GetInputsExtractionJobRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListInputsExtractionJobsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListInputsExtractionJobsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListInputsExtractionJobsRequest.displayName = 'proto.clarifai.api.ListInputsExtractionJobsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleInputsExtractionJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleInputsExtractionJobResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleInputsExtractionJobResponse.displayName = 'proto.clarifai.api.SingleInputsExtractionJobResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiInputsExtractionJobResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiInputsExtractionJobResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiInputsExtractionJobResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiInputsExtractionJobResponse.displayName = 'proto.clarifai.api.MultiInputsExtractionJobResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.CancelInputsExtractionJobsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.CancelInputsExtractionJobsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.CancelInputsExtractionJobsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.CancelInputsExtractionJobsRequest.displayName = 'proto.clarifai.api.CancelInputsExtractionJobsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostInputsUploadsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostInputsUploadsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostInputsUploadsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostInputsUploadsRequest.displayName = 'proto.clarifai.api.PostInputsUploadsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.GetRunnerRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.GetRunnerRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.GetRunnerRequest.displayName = 'proto.clarifai.api.GetRunnerRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListRunnersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListRunnersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListRunnersRequest.displayName = 'proto.clarifai.api.ListRunnersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostRunnersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostRunnersRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostRunnersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostRunnersRequest.displayName = 'proto.clarifai.api.PostRunnersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.DeleteRunnersRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.DeleteRunnersRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.DeleteRunnersRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.DeleteRunnersRequest.displayName = 'proto.clarifai.api.DeleteRunnersRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.SingleRunnerResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.SingleRunnerResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.SingleRunnerResponse.displayName = 'proto.clarifai.api.SingleRunnerResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiRunnerResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiRunnerResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiRunnerResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiRunnerResponse.displayName = 'proto.clarifai.api.MultiRunnerResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.ListRunnerItemsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ListRunnerItemsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ListRunnerItemsRequest.displayName = 'proto.clarifai.api.ListRunnerItemsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.PostRunnerItemOutputsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.PostRunnerItemOutputsRequest.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.PostRunnerItemOutputsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.PostRunnerItemOutputsRequest.displayName = 'proto.clarifai.api.PostRunnerItemOutputsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiRunnerItemResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiRunnerItemResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiRunnerItemResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiRunnerItemResponse.displayName = 'proto.clarifai.api.MultiRunnerItemResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.RunnerItem = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.RunnerItem, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.RunnerItem.displayName = 'proto.clarifai.api.RunnerItem'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.RunnerItemOutput = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.RunnerItemOutput, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.RunnerItemOutput.displayName = 'proto.clarifai.api.RunnerItemOutput'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.MultiRunnerItemOutputResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.api.MultiRunnerItemOutputResponse.repeatedFields_, null); +}; +goog.inherits(proto.clarifai.api.MultiRunnerItemOutputResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.MultiRunnerItemOutputResponse.displayName = 'proto.clarifai.api.MultiRunnerItemOutputResponse'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.Pagination.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.Pagination.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.Pagination} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.Pagination.toObject = function(includeInstance, msg) { + var f, obj = { + page: jspb.Message.getFieldWithDefault(msg, 1, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.Pagination} + */ +proto.clarifai.api.Pagination.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.Pagination; + return proto.clarifai.api.Pagination.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.Pagination} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.Pagination} + */ +proto.clarifai.api.Pagination.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.Pagination.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.Pagination.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. * @param {!proto.clarifai.api.Pagination} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.Pagination.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.Pagination.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } +}; + + +/** + * optional uint32 page = 1; + * @return {number} + */ +proto.clarifai.api.Pagination.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Pagination} returns this + */ +proto.clarifai.api.Pagination.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint32 per_page = 2; + * @return {number} + */ +proto.clarifai.api.Pagination.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.Pagination} returns this + */ +proto.clarifai.api.Pagination.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetAnnotationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetAnnotationRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetAnnotationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetAnnotationRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + annotationId: jspb.Message.getFieldWithDefault(msg, 2, ""), + inputId: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetAnnotationRequest} + */ +proto.clarifai.api.GetAnnotationRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetAnnotationRequest; + return proto.clarifai.api.GetAnnotationRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetAnnotationRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetAnnotationRequest} + */ +proto.clarifai.api.GetAnnotationRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setAnnotationId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetAnnotationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetAnnotationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetAnnotationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetAnnotationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAnnotationId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetAnnotationRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetAnnotationRequest} returns this +*/ +proto.clarifai.api.GetAnnotationRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetAnnotationRequest} returns this + */ +proto.clarifai.api.GetAnnotationRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetAnnotationRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string annotation_id = 2; + * @return {string} + */ +proto.clarifai.api.GetAnnotationRequest.prototype.getAnnotationId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetAnnotationRequest} returns this + */ +proto.clarifai.api.GetAnnotationRequest.prototype.setAnnotationId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string input_id = 3; + * @return {string} + */ +proto.clarifai.api.GetAnnotationRequest.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetAnnotationRequest} returns this + */ +proto.clarifai.api.GetAnnotationRequest.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListAnnotationsRequest.repeatedFields_ = [2,3,9,10,5]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListAnnotationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListAnnotationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListAnnotationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + userIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, + statusesList: jspb.Message.toObjectList(msg.getStatusesList(), + proto_clarifai_api_status_status_pb.Status.toObject, includeInstance), + listAllAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + returnModelOutput: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + page: jspb.Message.getFieldWithDefault(msg, 7, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 8, 0), + taskId: jspb.Message.getFieldWithDefault(msg, 11, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListAnnotationsRequest} + */ +proto.clarifai.api.ListAnnotationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListAnnotationsRequest; + return proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListAnnotationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListAnnotationsRequest} + */ +proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addInputIds(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.addUserIds(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.addModelVersionIds(value); + break; + case 5: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.addStatuses(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setListAllAnnotations(value); + break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setReturnModelOutput(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 11: + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListAnnotationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getInputIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 9, + f + ); + } + f = message.getModelVersionIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 10, + f + ); + } + f = message.getStatusesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getListAllAnnotations(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getReturnModelOutput(); + if (f) { + writer.writeBool( + 12, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 7, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 8, + f + ); + } + f = message.getTaskId(); + if (f.length > 0) { + writer.writeString( + 11, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this +*/ +proto.clarifai.api.ListAnnotationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string ids = 2; + * @return {!Array} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + +/** + * repeated string input_ids = 3; + * @return {!Array} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getInputIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setInputIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.addInputIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.clearInputIdsList = function() { + return this.setInputIdsList([]); +}; + + +/** + * repeated string user_ids = 9; + * @return {!Array} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 9, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); +}; + + +/** + * repeated string model_version_ids = 10; + * @return {!Array} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getModelVersionIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setModelVersionIdsList = function(value) { + return jspb.Message.setField(this, 10, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.addModelVersionIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.clearModelVersionIdsList = function() { + return this.setModelVersionIdsList([]); +}; + + +/** + * repeated status.Status statuses = 5; + * @return {!Array} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getStatusesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this +*/ +proto.clarifai.api.ListAnnotationsRequest.prototype.setStatusesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.clarifai.api.status.Status=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.status.Status} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.addStatuses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.status.Status, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.clearStatusesList = function() { + return this.setStatusesList([]); +}; + + +/** + * optional bool list_all_annotations = 6; + * @return {boolean} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getListAllAnnotations = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setListAllAnnotations = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional bool return_model_output = 12; + * @return {boolean} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getReturnModelOutput = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setReturnModelOutput = function(value) { + return jspb.Message.setProto3BooleanField(this, 12, value); +}; + + +/** + * optional uint32 page = 7; + * @return {number} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint32 per_page = 8; + * @return {number} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional string task_id = 11; + * @return {string} + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + */ +proto.clarifai.api.ListAnnotationsRequest.prototype.setTaskId = function(value) { + return jspb.Message.setProto3StringField(this, 11, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostAnnotationsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostAnnotationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostAnnotationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostAnnotationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + annotationsList: jspb.Message.toObjectList(msg.getAnnotationsList(), + proto_clarifai_api_resources_pb.Annotation.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostAnnotationsRequest} + */ +proto.clarifai.api.PostAnnotationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostAnnotationsRequest; + return proto.clarifai.api.PostAnnotationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostAnnotationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostAnnotationsRequest} + */ +proto.clarifai.api.PostAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Annotation; + reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); + msg.addAnnotations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostAnnotationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostAnnotationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAnnotationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this +*/ +proto.clarifai.api.PostAnnotationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Annotation annotations = 2; + * @return {!Array} + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.getAnnotationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this +*/ +proto.clarifai.api.PostAnnotationsRequest.prototype.setAnnotationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Annotation=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Annotation} + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.addAnnotations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Annotation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this + */ +proto.clarifai.api.PostAnnotationsRequest.prototype.clearAnnotationsList = function() { + return this.setAnnotationsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchAnnotationsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAnnotationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchAnnotationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAnnotationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + annotationsList: jspb.Message.toObjectList(msg.getAnnotationsList(), + proto_clarifai_api_resources_pb.Annotation.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, ""), + deleteIfEmptyData: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchAnnotationsRequest} + */ +proto.clarifai.api.PatchAnnotationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchAnnotationsRequest; + return proto.clarifai.api.PatchAnnotationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchAnnotationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchAnnotationsRequest} + */ +proto.clarifai.api.PatchAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Annotation; + reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); + msg.addAnnotations(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeleteIfEmptyData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchAnnotationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchAnnotationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAnnotationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getDeleteIfEmptyData(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this +*/ +proto.clarifai.api.PatchAnnotationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Annotation annotations = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.getAnnotationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this +*/ +proto.clarifai.api.PatchAnnotationsRequest.prototype.setAnnotationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Annotation=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Annotation} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.addAnnotations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Annotation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.clearAnnotationsList = function() { + return this.setAnnotationsList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bool delete_if_empty_data = 4; + * @return {boolean} + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.getDeleteIfEmptyData = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsRequest.prototype.setDeleteIfEmptyData = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAnnotationsStatusRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchAnnotationsStatusRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + statusCode: jspb.Message.getFieldWithDefault(msg, 2, 0), + userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + taskId: jspb.Message.getFieldWithDefault(msg, 4, ""), + action: jspb.Message.getFieldWithDefault(msg, 5, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchAnnotationsStatusRequest; + return proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchAnnotationsStatusRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum()); + msg.setStatusCode(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addUserIds(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchAnnotationsStatusRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getStatusCode(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getTaskId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this +*/ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional status.StatusCode status_code = 2; + * @return {!proto.clarifai.api.status.StatusCode} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function() { + return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.clarifai.api.status.StatusCode} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * repeated string user_ids = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); +}; + + +/** + * optional string task_id = 4; + * @return {string} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setTaskId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional string action = 5; + * @return {string} + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAnnotationsStatusResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + updatedCount: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchAnnotationsStatusResponse; + return proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addUserIds(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setUpdatedCount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getUpdatedCount(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this +*/ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string user_ids = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); +}; + + +/** + * optional uint32 updated_count = 3; + * @return {number} + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUpdatedCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + */ +proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUpdatedCount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteAnnotationRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteAnnotationRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + inputId: jspb.Message.getFieldWithDefault(msg, 2, ""), + annotationId: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteAnnotationRequest} + */ +proto.clarifai.api.DeleteAnnotationRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteAnnotationRequest; + return proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteAnnotationRequest} + */ +proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAnnotationId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteAnnotationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAnnotationId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this +*/ +proto.clarifai.api.DeleteAnnotationRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string input_id = 2; + * @return {string} + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string annotation_id = 3; + * @return {string} + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.getAnnotationId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteAnnotationsRequest.repeatedFields_ = [2,3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteAnnotationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteAnnotationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} + */ +proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteAnnotationsRequest; + return proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} + */ +proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addInputIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteAnnotationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getInputIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this +*/ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string ids = 2; + * @return {!Array} + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + +/** + * repeated string input_ids = 3; + * @return {!Array} + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.getInputIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.setInputIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.addInputIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearInputIdsList = function() { + return this.setInputIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleAnnotationResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleAnnotationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleAnnotationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + annotation: (f = msg.getAnnotation()) && proto_clarifai_api_resources_pb.Annotation.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleAnnotationResponse} + */ +proto.clarifai.api.SingleAnnotationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleAnnotationResponse; + return proto.clarifai.api.SingleAnnotationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleAnnotationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleAnnotationResponse} + */ +proto.clarifai.api.SingleAnnotationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Annotation; + reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); + msg.setAnnotation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleAnnotationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleAnnotationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleAnnotationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getAnnotation(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this +*/ +proto.clarifai.api.SingleAnnotationResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Annotation annotation = 2; + * @return {?proto.clarifai.api.Annotation} + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.getAnnotation = function() { + return /** @type{?proto.clarifai.api.Annotation} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Annotation|undefined} value + * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this +*/ +proto.clarifai.api.SingleAnnotationResponse.prototype.setAnnotation = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.clearAnnotation = function() { + return this.setAnnotation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleAnnotationResponse.prototype.hasAnnotation = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiAnnotationResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiAnnotationResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiAnnotationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiAnnotationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + annotationsList: jspb.Message.toObjectList(msg.getAnnotationsList(), + proto_clarifai_api_resources_pb.Annotation.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiAnnotationResponse} + */ +proto.clarifai.api.MultiAnnotationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiAnnotationResponse; + return proto.clarifai.api.MultiAnnotationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiAnnotationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiAnnotationResponse} + */ +proto.clarifai.api.MultiAnnotationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Annotation; + reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); + msg.addAnnotations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiAnnotationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiAnnotationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiAnnotationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getAnnotationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this +*/ +proto.clarifai.api.MultiAnnotationResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Annotation annotations = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.getAnnotationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this +*/ +proto.clarifai.api.MultiAnnotationResponse.prototype.setAnnotationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Annotation=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Annotation} + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.addAnnotations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Annotation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this + */ +proto.clarifai.api.MultiAnnotationResponse.prototype.clearAnnotationsList = function() { + return this.setAnnotationsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.GetAppRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetAppRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetAppRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetAppRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetAppRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetAppRequest} + */ +proto.clarifai.api.GetAppRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetAppRequest; + return proto.clarifai.api.GetAppRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetAppRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetAppRequest} + */ +proto.clarifai.api.GetAppRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetAppRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetAppRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetAppRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetAppRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetAppRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetAppRequest} returns this +*/ +proto.clarifai.api.GetAppRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetAppRequest} returns this + */ +proto.clarifai.api.GetAppRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetAppRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string additional_fields = 2; + * @return {!Array} + */ +proto.clarifai.api.GetAppRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.GetAppRequest} returns this + */ +proto.clarifai.api.GetAppRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetAppRequest} returns this + */ +proto.clarifai.api.GetAppRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetAppRequest} returns this + */ +proto.clarifai.api.GetAppRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListAppsRequest.repeatedFields_ = [10]; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.ListAppsRequest.oneofGroups_ = [[6,7,12,13]]; + +/** + * @enum {number} + */ +proto.clarifai.api.ListAppsRequest.SortByCase = { + SORT_BY_NOT_SET: 0, + SORT_BY_NAME: 6, + SORT_BY_MODIFIED_AT: 7, + SORT_BY_CREATED_AT: 12, + SORT_BY_STAR_COUNT: 13 +}; + +/** + * @return {proto.clarifai.api.ListAppsRequest.SortByCase} + */ +proto.clarifai.api.ListAppsRequest.prototype.getSortByCase = function() { + return /** @type {proto.clarifai.api.ListAppsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListAppsRequest.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListAppsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListAppsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListAppsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListAppsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + sortByName: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + query: jspb.Message.getFieldWithDefault(msg, 8, ""), + name: jspb.Message.getFieldWithDefault(msg, 4, ""), + featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListAppsRequest} + */ +proto.clarifai.api.ListAppsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListAppsRequest; + return proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListAppsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListAppsRequest} + */ +proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortAscending(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByName(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByModifiedAt(value); + break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByCreatedAt(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByStarCount(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setQuery(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFeaturedOnly(value); + break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setStarredOnly(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListAppsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListAppsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getSortAscending(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBool( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeBool( + 12, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeBool( + 13, + f + ); + } + f = message.getQuery(); + if (f.length > 0) { + writer.writeString( + 8, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFeaturedOnly(); + if (f) { + writer.writeBool( + 9, + f + ); + } + f = message.getStarredOnly(); + if (f) { + writer.writeBool( + 11, + f + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 10, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListAppsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this +*/ +proto.clarifai.api.ListAppsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListAppsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListAppsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool sort_ascending = 5; + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.getSortAscending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setSortAscending = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional bool sort_by_name = 6; + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.getSortByName = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setSortByName = function(value) { + return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.clearSortByName = function() { + return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.hasSortByName = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional bool sort_by_modified_at = 7; + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.getSortByModifiedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setSortByModifiedAt = function(value) { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.clearSortByModifiedAt = function() { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.hasSortByModifiedAt = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bool sort_by_created_at = 12; + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.getSortByCreatedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setSortByCreatedAt = function(value) { + return jspb.Message.setOneofField(this, 12, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.clearSortByCreatedAt = function() { + return jspb.Message.setOneofField(this, 12, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.hasSortByCreatedAt = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional bool sort_by_star_count = 13; + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.getSortByStarCount = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setSortByStarCount = function(value) { + return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.clearSortByStarCount = function() { + return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.hasSortByStarCount = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional string query = 8; + * @return {string} + */ +proto.clarifai.api.ListAppsRequest.prototype.getQuery = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setQuery = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); +}; + + +/** + * optional string name = 4; + * @return {string} + */ +proto.clarifai.api.ListAppsRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional bool featured_only = 9; + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.getFeaturedOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setFeaturedOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); +}; + + +/** + * optional bool starred_only = 11; + * @return {boolean} + */ +proto.clarifai.api.ListAppsRequest.prototype.getStarredOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setStarredOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 11, value); +}; + + +/** + * repeated string additional_fields = 10; + * @return {!Array} + */ +proto.clarifai.api.ListAppsRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 10, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostAppsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostAppsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostAppsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostAppsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostAppsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + appsList: jspb.Message.toObjectList(msg.getAppsList(), + proto_clarifai_api_resources_pb.App.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostAppsRequest} + */ +proto.clarifai.api.PostAppsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostAppsRequest; + return proto.clarifai.api.PostAppsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostAppsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostAppsRequest} + */ +proto.clarifai.api.PostAppsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.App; + reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); + msg.addApps(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostAppsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostAppsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostAppsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostAppsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAppsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostAppsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostAppsRequest} returns this +*/ +proto.clarifai.api.PostAppsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAppsRequest} returns this + */ +proto.clarifai.api.PostAppsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostAppsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated App apps = 2; + * @return {!Array} + */ +proto.clarifai.api.PostAppsRequest.prototype.getAppsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostAppsRequest} returns this +*/ +proto.clarifai.api.PostAppsRequest.prototype.setAppsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.App=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.App} + */ +proto.clarifai.api.PostAppsRequest.prototype.addApps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.App, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostAppsRequest} returns this + */ +proto.clarifai.api.PostAppsRequest.prototype.clearAppsList = function() { + return this.setAppsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteAppRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteAppRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteAppRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteAppRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteAppRequest} + */ +proto.clarifai.api.DeleteAppRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteAppRequest; + return proto.clarifai.api.DeleteAppRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteAppRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteAppRequest} + */ +proto.clarifai.api.DeleteAppRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteAppRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteAppRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteAppRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteAppRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteAppRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteAppRequest} returns this +*/ +proto.clarifai.api.DeleteAppRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteAppRequest} returns this + */ +proto.clarifai.api.DeleteAppRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteAppRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchAppsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchAppsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAppsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchAppsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAppsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + appsList: jspb.Message.toObjectList(msg.getAppsList(), + proto_clarifai_api_resources_pb.App.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, ""), + metadataAction: (f = msg.getMetadataAction()) && proto_clarifai_api_resources_pb.PatchAction.toObject(includeInstance, f), + reindex: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchAppsRequest} + */ +proto.clarifai.api.PatchAppsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchAppsRequest; + return proto.clarifai.api.PatchAppsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchAppsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchAppsRequest} + */ +proto.clarifai.api.PatchAppsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.App; + reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); + msg.addApps(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.PatchAction; + reader.readMessage(value,proto_clarifai_api_resources_pb.PatchAction.deserializeBinaryFromReader); + msg.setMetadataAction(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setReindex(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchAppsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchAppsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchAppsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAppsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAppsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getMetadataAction(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto_clarifai_api_resources_pb.PatchAction.serializeBinaryToWriter + ); + } + f = message.getReindex(); + if (f) { + writer.writeBool( + 5, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchAppsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchAppsRequest} returns this +*/ +proto.clarifai.api.PatchAppsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAppsRequest} returns this + */ +proto.clarifai.api.PatchAppsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAppsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated App apps = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchAppsRequest.prototype.getAppsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchAppsRequest} returns this +*/ +proto.clarifai.api.PatchAppsRequest.prototype.setAppsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.App=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.App} + */ +proto.clarifai.api.PatchAppsRequest.prototype.addApps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.App, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchAppsRequest} returns this + */ +proto.clarifai.api.PatchAppsRequest.prototype.clearAppsList = function() { + return this.setAppsList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchAppsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAppsRequest} returns this + */ +proto.clarifai.api.PatchAppsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional PatchAction metadata_action = 4; + * @return {?proto.clarifai.api.PatchAction} + */ +proto.clarifai.api.PatchAppsRequest.prototype.getMetadataAction = function() { + return /** @type{?proto.clarifai.api.PatchAction} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.PatchAction, 4)); +}; + + +/** + * @param {?proto.clarifai.api.PatchAction|undefined} value + * @return {!proto.clarifai.api.PatchAppsRequest} returns this +*/ +proto.clarifai.api.PatchAppsRequest.prototype.setMetadataAction = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAppsRequest} returns this + */ +proto.clarifai.api.PatchAppsRequest.prototype.clearMetadataAction = function() { + return this.setMetadataAction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAppsRequest.prototype.hasMetadataAction = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bool reindex = 5; + * @return {boolean} + */ +proto.clarifai.api.PatchAppsRequest.prototype.getReindex = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.PatchAppsRequest} returns this + */ +proto.clarifai.api.PatchAppsRequest.prototype.setReindex = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchAppRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAppRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchAppRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAppRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + app: (f = msg.getApp()) && proto_clarifai_api_resources_pb.App.toObject(includeInstance, f), + action: jspb.Message.getFieldWithDefault(msg, 3, ""), + metadataAction: (f = msg.getMetadataAction()) && proto_clarifai_api_resources_pb.PatchAction.toObject(includeInstance, f), + reindex: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchAppRequest} + */ +proto.clarifai.api.PatchAppRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchAppRequest; + return proto.clarifai.api.PatchAppRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchAppRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchAppRequest} + */ +proto.clarifai.api.PatchAppRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.App; + reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); + msg.setApp(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.PatchAction; + reader.readMessage(value,proto_clarifai_api_resources_pb.PatchAction.deserializeBinaryFromReader); + msg.setMetadataAction(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setReindex(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchAppRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchAppRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchAppRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAppRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getApp(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getMetadataAction(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto_clarifai_api_resources_pb.PatchAction.serializeBinaryToWriter + ); + } + f = message.getReindex(); + if (f) { + writer.writeBool( + 5, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchAppRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchAppRequest} returns this +*/ +proto.clarifai.api.PatchAppRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAppRequest} returns this + */ +proto.clarifai.api.PatchAppRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAppRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional App app = 2; + * @return {?proto.clarifai.api.App} + */ +proto.clarifai.api.PatchAppRequest.prototype.getApp = function() { + return /** @type{?proto.clarifai.api.App} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +}; + + +/** + * @param {?proto.clarifai.api.App|undefined} value + * @return {!proto.clarifai.api.PatchAppRequest} returns this +*/ +proto.clarifai.api.PatchAppRequest.prototype.setApp = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAppRequest} returns this + */ +proto.clarifai.api.PatchAppRequest.prototype.clearApp = function() { + return this.setApp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAppRequest.prototype.hasApp = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchAppRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAppRequest} returns this + */ +proto.clarifai.api.PatchAppRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional PatchAction metadata_action = 4; + * @return {?proto.clarifai.api.PatchAction} + */ +proto.clarifai.api.PatchAppRequest.prototype.getMetadataAction = function() { + return /** @type{?proto.clarifai.api.PatchAction} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.PatchAction, 4)); +}; + + +/** + * @param {?proto.clarifai.api.PatchAction|undefined} value + * @return {!proto.clarifai.api.PatchAppRequest} returns this +*/ +proto.clarifai.api.PatchAppRequest.prototype.setMetadataAction = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAppRequest} returns this + */ +proto.clarifai.api.PatchAppRequest.prototype.clearMetadataAction = function() { + return this.setMetadataAction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAppRequest.prototype.hasMetadataAction = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bool reindex = 5; + * @return {boolean} + */ +proto.clarifai.api.PatchAppRequest.prototype.getReindex = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.PatchAppRequest} returns this + */ +proto.clarifai.api.PatchAppRequest.prototype.setReindex = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchAppsIdsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAppsIdsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchAppsIdsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAppsIdsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: jspb.Message.toObjectList(msg.getIdsList(), + proto.clarifai.api.IdUpdateSource.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchAppsIdsRequest} + */ +proto.clarifai.api.PatchAppsIdsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchAppsIdsRequest; + return proto.clarifai.api.PatchAppsIdsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchAppsIdsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchAppsIdsRequest} + */ +proto.clarifai.api.PatchAppsIdsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 3: + var value = new proto.clarifai.api.IdUpdateSource; + reader.readMessage(value,proto.clarifai.api.IdUpdateSource.deserializeBinaryFromReader); + msg.addIds(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchAppsIdsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchAppsIdsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchAppsIdsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.clarifai.api.IdUpdateSource.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchAppsIdsRequest} returns this +*/ +proto.clarifai.api.PatchAppsIdsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchAppsIdsRequest} returns this + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated IdUpdateSource ids = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.getIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.IdUpdateSource, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchAppsIdsRequest} returns this +*/ +proto.clarifai.api.PatchAppsIdsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.IdUpdateSource=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.IdUpdateSource} + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.addIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.IdUpdateSource, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchAppsIdsRequest} returns this + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchAppsIdsRequest} returns this + */ +proto.clarifai.api.PatchAppsIdsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostAppsSearchesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostAppsSearchesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostAppsSearchesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + appQuery: (f = msg.getAppQuery()) && proto_clarifai_api_resources_pb.AppQuery.toObject(includeInstance, f), + pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostAppsSearchesRequest} + */ +proto.clarifai.api.PostAppsSearchesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostAppsSearchesRequest; + return proto.clarifai.api.PostAppsSearchesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostAppsSearchesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostAppsSearchesRequest} + */ +proto.clarifai.api.PostAppsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.AppQuery; + reader.readMessage(value,proto_clarifai_api_resources_pb.AppQuery.deserializeBinaryFromReader); + msg.setAppQuery(value); + break; + case 3: + var value = new proto.clarifai.api.Pagination; + reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostAppsSearchesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostAppsSearchesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostAppsSearchesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAppQuery(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.AppQuery.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Pagination.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this +*/ +proto.clarifai.api.PostAppsSearchesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional AppQuery app_query = 2; + * @return {?proto.clarifai.api.AppQuery} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.getAppQuery = function() { + return /** @type{?proto.clarifai.api.AppQuery} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.AppQuery, 2)); +}; + + +/** + * @param {?proto.clarifai.api.AppQuery|undefined} value + * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this +*/ +proto.clarifai.api.PostAppsSearchesRequest.prototype.setAppQuery = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.clearAppQuery = function() { + return this.setAppQuery(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.hasAppQuery = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Pagination pagination = 3; + * @return {?proto.clarifai.api.Pagination} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.getPagination = function() { + return /** @type{?proto.clarifai.api.Pagination} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Pagination|undefined} value + * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this +*/ +proto.clarifai.api.PostAppsSearchesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostAppsSearchesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleAppResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleAppResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleAppResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleAppResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + app: (f = msg.getApp()) && proto_clarifai_api_resources_pb.App.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleAppResponse} + */ +proto.clarifai.api.SingleAppResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleAppResponse; + return proto.clarifai.api.SingleAppResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleAppResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleAppResponse} + */ +proto.clarifai.api.SingleAppResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.App; + reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); + msg.setApp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleAppResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleAppResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleAppResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleAppResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getApp(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleAppResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleAppResponse} returns this +*/ +proto.clarifai.api.SingleAppResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleAppResponse} returns this + */ +proto.clarifai.api.SingleAppResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleAppResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional App app = 2; + * @return {?proto.clarifai.api.App} + */ +proto.clarifai.api.SingleAppResponse.prototype.getApp = function() { + return /** @type{?proto.clarifai.api.App} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +}; + + +/** + * @param {?proto.clarifai.api.App|undefined} value + * @return {!proto.clarifai.api.SingleAppResponse} returns this +*/ +proto.clarifai.api.SingleAppResponse.prototype.setApp = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleAppResponse} returns this + */ +proto.clarifai.api.SingleAppResponse.prototype.clearApp = function() { + return this.setApp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleAppResponse.prototype.hasApp = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiAppResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiAppResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiAppResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiAppResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiAppResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + appsList: jspb.Message.toObjectList(msg.getAppsList(), + proto_clarifai_api_resources_pb.App.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiAppResponse} + */ +proto.clarifai.api.MultiAppResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiAppResponse; + return proto.clarifai.api.MultiAppResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiAppResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiAppResponse} + */ +proto.clarifai.api.MultiAppResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.App; + reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); + msg.addApps(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiAppResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiAppResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiAppResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiAppResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getAppsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiAppResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiAppResponse} returns this +*/ +proto.clarifai.api.MultiAppResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiAppResponse} returns this + */ +proto.clarifai.api.MultiAppResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiAppResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated App apps = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiAppResponse.prototype.getAppsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiAppResponse} returns this +*/ +proto.clarifai.api.MultiAppResponse.prototype.setAppsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.App=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.App} + */ +proto.clarifai.api.MultiAppResponse.prototype.addApps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.App, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiAppResponse} returns this + */ +proto.clarifai.api.MultiAppResponse.prototype.clearAppsList = function() { + return this.setAppsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListCollaboratorsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListCollaboratorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListCollaboratorsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + listAllCollaborators: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListCollaboratorsRequest} + */ +proto.clarifai.api.ListCollaboratorsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListCollaboratorsRequest; + return proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListCollaboratorsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListCollaboratorsRequest} + */ +proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setListAllCollaborators(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListCollaboratorsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListCollaboratorsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getListAllCollaborators(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this +*/ +proto.clarifai.api.ListCollaboratorsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool list_all_collaborators = 2; + * @return {boolean} + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.getListAllCollaborators = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.setListAllCollaborators = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional uint32 page = 3; + * @return {number} + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint32 per_page = 4; + * @return {number} + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this + */ +proto.clarifai.api.ListCollaboratorsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostCollaboratorsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostCollaboratorsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostCollaboratorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostCollaboratorsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), + proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostCollaboratorsRequest} + */ +proto.clarifai.api.PostCollaboratorsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostCollaboratorsRequest; + return proto.clarifai.api.PostCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostCollaboratorsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostCollaboratorsRequest} + */ +proto.clarifai.api.PostCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Collaborator; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collaborator.deserializeBinaryFromReader); + msg.addCollaborators(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostCollaboratorsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostCollaboratorsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getCollaboratorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Collaborator.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this +*/ +proto.clarifai.api.PostCollaboratorsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Collaborator collaborators = 2; + * @return {!Array} + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.getCollaboratorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaborator, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this +*/ +proto.clarifai.api.PostCollaboratorsRequest.prototype.setCollaboratorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Collaborator=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaborator} + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.addCollaborators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaborator, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this + */ +proto.clarifai.api.PostCollaboratorsRequest.prototype.clearCollaboratorsList = function() { + return this.setCollaboratorsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchCollaboratorsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchCollaboratorsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchCollaboratorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchCollaboratorsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), + proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchCollaboratorsRequest} + */ +proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchCollaboratorsRequest; + return proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchCollaboratorsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchCollaboratorsRequest} + */ +proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Collaborator; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collaborator.deserializeBinaryFromReader); + msg.addCollaborators(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchCollaboratorsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchCollaboratorsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getCollaboratorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Collaborator.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this +*/ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Collaborator collaborators = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.getCollaboratorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaborator, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this +*/ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.setCollaboratorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Collaborator=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaborator} + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.addCollaborators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaborator, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.clearCollaboratorsList = function() { + return this.setCollaboratorsList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this + */ +proto.clarifai.api.PatchCollaboratorsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteCollaboratorsRequest.repeatedFields_ = [2,3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteCollaboratorsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteCollaboratorsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteCollaboratorsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + collaboratorIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + userEmailsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteCollaboratorsRequest; + return proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteCollaboratorsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addCollaboratorIds(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addUserEmails(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteCollaboratorsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteCollaboratorsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getCollaboratorIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getUserEmailsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this +*/ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string collaborator_ids = 2; + * @return {!Array} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.getCollaboratorIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.setCollaboratorIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.addCollaboratorIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearCollaboratorIdsList = function() { + return this.setCollaboratorIdsList([]); +}; + + +/** + * repeated string user_emails = 3; + * @return {!Array} + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.getUserEmailsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.setUserEmailsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.addUserEmails = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + */ +proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearUserEmailsList = function() { + return this.setUserEmailsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiCollaboratorsResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiCollaboratorsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiCollaboratorsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiCollaboratorsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), + proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiCollaboratorsResponse} + */ +proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiCollaboratorsResponse; + return proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiCollaboratorsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiCollaboratorsResponse} + */ +proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Collaborator; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collaborator.deserializeBinaryFromReader); + msg.addCollaborators(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiCollaboratorsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiCollaboratorsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiCollaboratorsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getCollaboratorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Collaborator.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this +*/ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Collaborator collaborators = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.getCollaboratorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaborator, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this +*/ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.setCollaboratorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Collaborator=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaborator} + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.addCollaborators = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaborator, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this + */ +proto.clarifai.api.MultiCollaboratorsResponse.prototype.clearCollaboratorsList = function() { + return this.setCollaboratorsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListCollaborationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListCollaborationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListCollaborationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListCollaborationsRequest} + */ +proto.clarifai.api.ListCollaborationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListCollaborationsRequest; + return proto.clarifai.api.ListCollaborationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListCollaborationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListCollaborationsRequest} + */ +proto.clarifai.api.ListCollaborationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListCollaborationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListCollaborationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListCollaborationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this +*/ +proto.clarifai.api.ListCollaborationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this + */ +proto.clarifai.api.ListCollaborationsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiCollaborationsResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiCollaborationsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiCollaborationsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiCollaborationsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + collaborationsList: jspb.Message.toObjectList(msg.getCollaborationsList(), + proto_clarifai_api_resources_pb.Collaboration.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiCollaborationsResponse} + */ +proto.clarifai.api.MultiCollaborationsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiCollaborationsResponse; + return proto.clarifai.api.MultiCollaborationsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiCollaborationsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiCollaborationsResponse} + */ +proto.clarifai.api.MultiCollaborationsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Collaboration; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collaboration.deserializeBinaryFromReader); + msg.addCollaborations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiCollaborationsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiCollaborationsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiCollaborationsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getCollaborationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Collaboration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this +*/ +proto.clarifai.api.MultiCollaborationsResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Collaboration collaborations = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.getCollaborationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaboration, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this +*/ +proto.clarifai.api.MultiCollaborationsResponse.prototype.setCollaborationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Collaboration=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Collaboration} + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.addCollaborations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaboration, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this + */ +proto.clarifai.api.MultiCollaborationsResponse.prototype.clearCollaborationsList = function() { + return this.setCollaborationsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetStatusCodeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + statusCodeId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetStatusCodeRequest} + */ +proto.clarifai.api.GetStatusCodeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetStatusCodeRequest; + return proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetStatusCodeRequest} + */ +proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setStatusCodeId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetStatusCodeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatusCodeId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string status_code_id = 1; + * @return {string} + */ +proto.clarifai.api.GetStatusCodeRequest.prototype.getStatusCodeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetStatusCodeRequest} returns this + */ +proto.clarifai.api.GetStatusCodeRequest.prototype.setStatusCodeId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListStatusCodesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListStatusCodesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListStatusCodesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListStatusCodesRequest} + */ +proto.clarifai.api.ListStatusCodesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListStatusCodesRequest; + return proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListStatusCodesRequest} + */ +proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListStatusCodesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListStatusCodesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleStatusCodeResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleStatusCodeResponse} + */ +proto.clarifai.api.SingleStatusCodeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleStatusCodeResponse; + return proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleStatusCodeResponse} + */ +proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleStatusCodeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleStatusCodeResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this +*/ +proto.clarifai.api.SingleStatusCodeResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this + */ +proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleStatusCodeResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiStatusCodeResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiStatusCodeResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + statusesList: jspb.Message.toObjectList(msg.getStatusesList(), + proto_clarifai_api_status_status_pb.Status.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiStatusCodeResponse} + */ +proto.clarifai.api.MultiStatusCodeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiStatusCodeResponse; + return proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiStatusCodeResponse} + */ +proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.addStatuses(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiStatusCodeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getStatusesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this +*/ +proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated status.Status statuses = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatusesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this +*/ +proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatusesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.status.Status=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.addStatuses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.status.Status, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this + */ +proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatusesList = function() { + return this.setStatusesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetConceptRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetConceptRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetConceptRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetConceptRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetConceptRequest} + */ +proto.clarifai.api.GetConceptRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetConceptRequest; + return proto.clarifai.api.GetConceptRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetConceptRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetConceptRequest} + */ +proto.clarifai.api.GetConceptRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetConceptRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetConceptRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetConceptRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetConceptRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetConceptRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetConceptRequest} returns this +*/ +proto.clarifai.api.GetConceptRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetConceptRequest} returns this + */ +proto.clarifai.api.GetConceptRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetConceptRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.GetConceptRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetConceptRequest} returns this + */ +proto.clarifai.api.GetConceptRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListConceptsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListConceptsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListConceptsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListConceptsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListConceptsRequest} + */ +proto.clarifai.api.ListConceptsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListConceptsRequest; + return proto.clarifai.api.ListConceptsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListConceptsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListConceptsRequest} + */ +proto.clarifai.api.ListConceptsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListConceptsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListConceptsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListConceptsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListConceptsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListConceptsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListConceptsRequest} returns this +*/ +proto.clarifai.api.ListConceptsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListConceptsRequest} returns this + */ +proto.clarifai.api.ListConceptsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListConceptsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListConceptsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListConceptsRequest} returns this + */ +proto.clarifai.api.ListConceptsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListConceptsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListConceptsRequest} returns this + */ +proto.clarifai.api.ListConceptsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelConceptsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListModelConceptsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListModelConceptsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + page: jspb.Message.getFieldWithDefault(msg, 4, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListModelConceptsRequest} + */ +proto.clarifai.api.ListModelConceptsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListModelConceptsRequest; + return proto.clarifai.api.ListModelConceptsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListModelConceptsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListModelConceptsRequest} + */ +proto.clarifai.api.ListModelConceptsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListModelConceptsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListModelConceptsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListModelConceptsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this +*/ +proto.clarifai.api.ListModelConceptsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string version_id = 3; + * @return {string} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint32 page = 4; + * @return {number} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint32 per_page = 5; + * @return {number} + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelConceptsRequest} returns this + */ +proto.clarifai.api.ListModelConceptsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostConceptsSearchesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostConceptsSearchesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptsSearchesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptQuery: (f = msg.getConceptQuery()) && proto_clarifai_api_resources_pb.ConceptQuery.toObject(includeInstance, f), + pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} + */ +proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostConceptsSearchesRequest; + return proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostConceptsSearchesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} + */ +proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ConceptQuery; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptQuery.deserializeBinaryFromReader); + msg.setConceptQuery(value); + break; + case 3: + var value = new proto.clarifai.api.Pagination; + reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostConceptsSearchesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostConceptsSearchesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptsSearchesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptQuery(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.ConceptQuery.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Pagination.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this +*/ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ConceptQuery concept_query = 2; + * @return {?proto.clarifai.api.ConceptQuery} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.getConceptQuery = function() { + return /** @type{?proto.clarifai.api.ConceptQuery} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ConceptQuery, 2)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptQuery|undefined} value + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this +*/ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.setConceptQuery = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearConceptQuery = function() { + return this.setConceptQuery(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasConceptQuery = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Pagination pagination = 3; + * @return {?proto.clarifai.api.Pagination} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.getPagination = function() { + return /** @type{?proto.clarifai.api.Pagination} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Pagination|undefined} value + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this +*/ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostConceptsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostConceptsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostConceptsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostConceptsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), + proto_clarifai_api_resources_pb.Concept.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostConceptsRequest} + */ +proto.clarifai.api.PostConceptsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostConceptsRequest; + return proto.clarifai.api.PostConceptsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostConceptsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostConceptsRequest} + */ +proto.clarifai.api.PostConceptsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Concept; + reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); + msg.addConcepts(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostConceptsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostConceptsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostConceptsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostConceptsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostConceptsRequest} returns this +*/ +proto.clarifai.api.PostConceptsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptsRequest} returns this + */ +proto.clarifai.api.PostConceptsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Concept concepts = 2; + * @return {!Array} + */ +proto.clarifai.api.PostConceptsRequest.prototype.getConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostConceptsRequest} returns this +*/ +proto.clarifai.api.PostConceptsRequest.prototype.setConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Concept=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Concept} + */ +proto.clarifai.api.PostConceptsRequest.prototype.addConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Concept, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostConceptsRequest} returns this + */ +proto.clarifai.api.PostConceptsRequest.prototype.clearConceptsList = function() { + return this.setConceptsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchConceptsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchConceptsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchConceptsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchConceptsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchConceptsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), + proto_clarifai_api_resources_pb.Concept.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchConceptsRequest} + */ +proto.clarifai.api.PatchConceptsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchConceptsRequest; + return proto.clarifai.api.PatchConceptsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchConceptsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchConceptsRequest} + */ +proto.clarifai.api.PatchConceptsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Concept; + reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); + msg.addConcepts(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchConceptsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchConceptsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchConceptsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchConceptsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchConceptsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchConceptsRequest} returns this +*/ +proto.clarifai.api.PatchConceptsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchConceptsRequest} returns this + */ +proto.clarifai.api.PatchConceptsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchConceptsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Concept concepts = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchConceptsRequest.prototype.getConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchConceptsRequest} returns this +*/ +proto.clarifai.api.PatchConceptsRequest.prototype.setConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Concept=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Concept} + */ +proto.clarifai.api.PatchConceptsRequest.prototype.addConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Concept, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchConceptsRequest} returns this + */ +proto.clarifai.api.PatchConceptsRequest.prototype.clearConceptsList = function() { + return this.setConceptsList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchConceptsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchConceptsRequest} returns this + */ +proto.clarifai.api.PatchConceptsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetConceptCountsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetConceptCountsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetConceptCountsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetConceptCountsRequest} + */ +proto.clarifai.api.GetConceptCountsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetConceptCountsRequest; + return proto.clarifai.api.GetConceptCountsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetConceptCountsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetConceptCountsRequest} + */ +proto.clarifai.api.GetConceptCountsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetConceptCountsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetConceptCountsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetConceptCountsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this +*/ +proto.clarifai.api.GetConceptCountsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this + */ +proto.clarifai.api.GetConceptCountsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleConceptResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleConceptResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleConceptResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleConceptResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + concept: (f = msg.getConcept()) && proto_clarifai_api_resources_pb.Concept.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleConceptResponse} + */ +proto.clarifai.api.SingleConceptResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleConceptResponse; + return proto.clarifai.api.SingleConceptResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleConceptResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleConceptResponse} + */ +proto.clarifai.api.SingleConceptResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Concept; + reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); + msg.setConcept(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleConceptResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleConceptResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleConceptResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleConceptResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getConcept(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleConceptResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleConceptResponse} returns this +*/ +proto.clarifai.api.SingleConceptResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleConceptResponse} returns this + */ +proto.clarifai.api.SingleConceptResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleConceptResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Concept concept = 2; + * @return {?proto.clarifai.api.Concept} + */ +proto.clarifai.api.SingleConceptResponse.prototype.getConcept = function() { + return /** @type{?proto.clarifai.api.Concept} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Concept|undefined} value + * @return {!proto.clarifai.api.SingleConceptResponse} returns this +*/ +proto.clarifai.api.SingleConceptResponse.prototype.setConcept = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleConceptResponse} returns this + */ +proto.clarifai.api.SingleConceptResponse.prototype.clearConcept = function() { + return this.setConcept(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleConceptResponse.prototype.hasConcept = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiConceptResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiConceptResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiConceptResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiConceptResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), + proto_clarifai_api_resources_pb.Concept.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiConceptResponse} + */ +proto.clarifai.api.MultiConceptResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiConceptResponse; + return proto.clarifai.api.MultiConceptResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiConceptResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiConceptResponse} + */ +proto.clarifai.api.MultiConceptResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Concept; + reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); + msg.addConcepts(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiConceptResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiConceptResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiConceptResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getConceptsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiConceptResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiConceptResponse} returns this +*/ +proto.clarifai.api.MultiConceptResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiConceptResponse} returns this + */ +proto.clarifai.api.MultiConceptResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiConceptResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Concept concepts = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiConceptResponse.prototype.getConceptsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiConceptResponse} returns this +*/ +proto.clarifai.api.MultiConceptResponse.prototype.setConceptsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Concept=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Concept} + */ +proto.clarifai.api.MultiConceptResponse.prototype.addConcepts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Concept, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiConceptResponse} returns this + */ +proto.clarifai.api.MultiConceptResponse.prototype.clearConceptsList = function() { + return this.setConceptsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiConceptCountResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiConceptCountResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiConceptCountResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptCountResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + conceptCountsList: jspb.Message.toObjectList(msg.getConceptCountsList(), + proto_clarifai_api_resources_pb.ConceptCount.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiConceptCountResponse} + */ +proto.clarifai.api.MultiConceptCountResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiConceptCountResponse; + return proto.clarifai.api.MultiConceptCountResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiConceptCountResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiConceptCountResponse} + */ +proto.clarifai.api.MultiConceptCountResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ConceptCount; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptCount.deserializeBinaryFromReader); + msg.addConceptCounts(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiConceptCountResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiConceptCountResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptCountResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getConceptCountsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.ConceptCount.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this +*/ +proto.clarifai.api.MultiConceptCountResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated ConceptCount concept_counts = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.getConceptCountsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptCount, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this +*/ +proto.clarifai.api.MultiConceptCountResponse.prototype.setConceptCountsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ConceptCount=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptCount} + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.addConceptCounts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptCount, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this + */ +proto.clarifai.api.MultiConceptCountResponse.prototype.clearConceptCountsList = function() { + return this.setConceptCountsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListConceptRelationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListConceptRelationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListConceptRelationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), + predicate: jspb.Message.getFieldWithDefault(msg, 3, ""), + knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 4, ""), + page: jspb.Message.getFieldWithDefault(msg, 5, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 6, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListConceptRelationsRequest} + */ +proto.clarifai.api.ListConceptRelationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListConceptRelationsRequest; + return proto.clarifai.api.ListConceptRelationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListConceptRelationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListConceptRelationsRequest} + */ +proto.clarifai.api.ListConceptRelationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPredicate(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setKnowledgeGraphId(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListConceptRelationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListConceptRelationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListConceptRelationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPredicate(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getKnowledgeGraphId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 6, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this +*/ +proto.clarifai.api.ListConceptRelationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string predicate = 3; + * @return {string} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.getPredicate = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.setPredicate = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string knowledge_graph_id = 4; + * @return {string} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.getKnowledgeGraphId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.setKnowledgeGraphId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional uint32 page = 5; + * @return {number} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint32 per_page = 6; + * @return {number} + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + */ +proto.clarifai.api.ListConceptRelationsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostConceptRelationsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostConceptRelationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostConceptRelationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptRelationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), + conceptRelationsList: jspb.Message.toObjectList(msg.getConceptRelationsList(), + proto_clarifai_api_resources_pb.ConceptRelation.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostConceptRelationsRequest} + */ +proto.clarifai.api.PostConceptRelationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostConceptRelationsRequest; + return proto.clarifai.api.PostConceptRelationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostConceptRelationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostConceptRelationsRequest} + */ +proto.clarifai.api.PostConceptRelationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.ConceptRelation; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptRelation.deserializeBinaryFromReader); + msg.addConceptRelations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostConceptRelationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostConceptRelationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptRelationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getConceptRelationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.ConceptRelation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this +*/ +proto.clarifai.api.PostConceptRelationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated ConceptRelation concept_relations = 3; + * @return {!Array} + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.getConceptRelationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptRelation, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this +*/ +proto.clarifai.api.PostConceptRelationsRequest.prototype.setConceptRelationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.ConceptRelation=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptRelation} + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.addConceptRelations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ConceptRelation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this + */ +proto.clarifai.api.PostConceptRelationsRequest.prototype.clearConceptRelationsList = function() { + return this.setConceptRelationsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteConceptRelationsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteConceptRelationsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteConceptRelationsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteConceptRelationsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), + idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteConceptRelationsRequest; + return proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteConceptRelationsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteConceptRelationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteConceptRelationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteConceptRelationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this +*/ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string ids = 3; + * @return {!Array} + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + */ +proto.clarifai.api.DeleteConceptRelationsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListKnowledgeGraphsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListKnowledgeGraphsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListKnowledgeGraphsRequest; + return proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListKnowledgeGraphsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListKnowledgeGraphsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListKnowledgeGraphsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} returns this +*/ +proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} returns this + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostKnowledgeGraphsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostKnowledgeGraphsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + knowledgeGraphsList: jspb.Message.toObjectList(msg.getKnowledgeGraphsList(), + proto_clarifai_api_resources_pb.KnowledgeGraph.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostKnowledgeGraphsRequest; + return proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostKnowledgeGraphsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.KnowledgeGraph; + reader.readMessage(value,proto_clarifai_api_resources_pb.KnowledgeGraph.deserializeBinaryFromReader); + msg.addKnowledgeGraphs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostKnowledgeGraphsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostKnowledgeGraphsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getKnowledgeGraphsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.KnowledgeGraph.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this +*/ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated KnowledgeGraph knowledge_graphs = 2; + * @return {!Array} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.getKnowledgeGraphsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.KnowledgeGraph, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this +*/ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.setKnowledgeGraphsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.KnowledgeGraph=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.KnowledgeGraph} + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.addKnowledgeGraphs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.KnowledgeGraph, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this + */ +proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.clearKnowledgeGraphsList = function() { + return this.setKnowledgeGraphsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostConceptMappingJobsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostConceptMappingJobsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptMappingJobsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptMappingJobsList: jspb.Message.toObjectList(msg.getConceptMappingJobsList(), + proto_clarifai_api_resources_pb.ConceptMappingJob.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostConceptMappingJobsRequest; + return proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ConceptMappingJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptMappingJob.deserializeBinaryFromReader); + msg.addConceptMappingJobs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostConceptMappingJobsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptMappingJobsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptMappingJobsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.ConceptMappingJob.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this +*/ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated ConceptMappingJob concept_mapping_jobs = 2; + * @return {!Array} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.getConceptMappingJobsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptMappingJob, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this +*/ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.setConceptMappingJobsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ConceptMappingJob=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptMappingJob} + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.addConceptMappingJobs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptMappingJob, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this + */ +proto.clarifai.api.PostConceptMappingJobsRequest.prototype.clearConceptMappingJobsList = function() { + return this.setConceptMappingJobsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiConceptRelationResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiConceptRelationResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiConceptRelationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptRelationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + conceptRelationsList: jspb.Message.toObjectList(msg.getConceptRelationsList(), + proto_clarifai_api_resources_pb.ConceptRelation.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiConceptRelationResponse} + */ +proto.clarifai.api.MultiConceptRelationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiConceptRelationResponse; + return proto.clarifai.api.MultiConceptRelationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiConceptRelationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiConceptRelationResponse} + */ +proto.clarifai.api.MultiConceptRelationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ConceptRelation; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptRelation.deserializeBinaryFromReader); + msg.addConceptRelations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiConceptRelationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiConceptRelationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptRelationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getConceptRelationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.ConceptRelation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this +*/ +proto.clarifai.api.MultiConceptRelationResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated ConceptRelation concept_relations = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.getConceptRelationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptRelation, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this +*/ +proto.clarifai.api.MultiConceptRelationResponse.prototype.setConceptRelationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ConceptRelation=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptRelation} + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.addConceptRelations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptRelation, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this + */ +proto.clarifai.api.MultiConceptRelationResponse.prototype.clearConceptRelationsList = function() { + return this.setConceptRelationsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiKnowledgeGraphResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiKnowledgeGraphResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + knowledgeGraphsList: jspb.Message.toObjectList(msg.getKnowledgeGraphsList(), + proto_clarifai_api_resources_pb.KnowledgeGraph.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiKnowledgeGraphResponse; + return proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiKnowledgeGraphResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.KnowledgeGraph; + reader.readMessage(value,proto_clarifai_api_resources_pb.KnowledgeGraph.deserializeBinaryFromReader); + msg.addKnowledgeGraphs(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiKnowledgeGraphResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiKnowledgeGraphResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getKnowledgeGraphsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.KnowledgeGraph.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this +*/ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated KnowledgeGraph knowledge_graphs = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.getKnowledgeGraphsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.KnowledgeGraph, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this +*/ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.setKnowledgeGraphsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.KnowledgeGraph=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.KnowledgeGraph} + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.addKnowledgeGraphs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.KnowledgeGraph, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this + */ +proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.clearKnowledgeGraphsList = function() { + return this.setKnowledgeGraphsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiConceptMappingJobResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiConceptMappingJobResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiConceptMappingJobResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptMappingJobResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} + */ +proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiConceptMappingJobResponse; + return proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiConceptMappingJobResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} + */ +proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiConceptMappingJobResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiConceptMappingJobResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptMappingJobResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this +*/ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string ids = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this + */ +proto.clarifai.api.MultiConceptMappingJobResponse.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetConceptLanguageRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetConceptLanguageRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetConceptLanguageRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), + language: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetConceptLanguageRequest} + */ +proto.clarifai.api.GetConceptLanguageRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetConceptLanguageRequest; + return proto.clarifai.api.GetConceptLanguageRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetConceptLanguageRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetConceptLanguageRequest} + */ +proto.clarifai.api.GetConceptLanguageRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetConceptLanguageRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetConceptLanguageRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetConceptLanguageRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this +*/ +proto.clarifai.api.GetConceptLanguageRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string language = 3; + * @return {string} + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this + */ +proto.clarifai.api.GetConceptLanguageRequest.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListConceptLanguagesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListConceptLanguagesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListConceptLanguagesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListConceptLanguagesRequest} + */ +proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListConceptLanguagesRequest; + return proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListConceptLanguagesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListConceptLanguagesRequest} + */ +proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListConceptLanguagesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListConceptLanguagesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListConceptLanguagesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this +*/ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint32 page = 3; + * @return {number} + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint32 per_page = 4; + * @return {number} + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + */ +proto.clarifai.api.ListConceptLanguagesRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchConceptLanguagesRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchConceptLanguagesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchConceptLanguagesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchConceptLanguagesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), + conceptLanguagesList: jspb.Message.toObjectList(msg.getConceptLanguagesList(), + proto_clarifai_api_resources_pb.ConceptLanguage.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchConceptLanguagesRequest; + return proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchConceptLanguagesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.ConceptLanguage; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); + msg.addConceptLanguages(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchConceptLanguagesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchConceptLanguagesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchConceptLanguagesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getConceptLanguagesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this +*/ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated ConceptLanguage concept_languages = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getConceptLanguagesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this +*/ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setConceptLanguagesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.ConceptLanguage=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptLanguage} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.addConceptLanguages = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ConceptLanguage, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.clearConceptLanguagesList = function() { + return this.setConceptLanguagesList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + */ +proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostConceptLanguagesRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostConceptLanguagesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostConceptLanguagesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptLanguagesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), + conceptLanguagesList: jspb.Message.toObjectList(msg.getConceptLanguagesList(), + proto_clarifai_api_resources_pb.ConceptLanguage.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostConceptLanguagesRequest} + */ +proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostConceptLanguagesRequest; + return proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostConceptLanguagesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostConceptLanguagesRequest} + */ +proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setConceptId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.ConceptLanguage; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); + msg.addConceptLanguages(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostConceptLanguagesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostConceptLanguagesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostConceptLanguagesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getConceptId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getConceptLanguagesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this +*/ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string concept_id = 2; + * @return {string} + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.getConceptId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.setConceptId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated ConceptLanguage concept_languages = 3; + * @return {!Array} + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.getConceptLanguagesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this +*/ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.setConceptLanguagesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.ConceptLanguage=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptLanguage} + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.addConceptLanguages = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ConceptLanguage, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this + */ +proto.clarifai.api.PostConceptLanguagesRequest.prototype.clearConceptLanguagesList = function() { + return this.setConceptLanguagesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleConceptLanguageResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleConceptLanguageResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleConceptLanguageResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + conceptLanguage: (f = msg.getConceptLanguage()) && proto_clarifai_api_resources_pb.ConceptLanguage.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleConceptLanguageResponse} + */ +proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleConceptLanguageResponse; + return proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleConceptLanguageResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleConceptLanguageResponse} + */ +proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ConceptLanguage; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); + msg.setConceptLanguage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleConceptLanguageResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleConceptLanguageResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleConceptLanguageResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getConceptLanguage(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this +*/ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ConceptLanguage concept_language = 2; + * @return {?proto.clarifai.api.ConceptLanguage} + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.getConceptLanguage = function() { + return /** @type{?proto.clarifai.api.ConceptLanguage} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 2)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptLanguage|undefined} value + * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this +*/ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.setConceptLanguage = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.clearConceptLanguage = function() { + return this.setConceptLanguage(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleConceptLanguageResponse.prototype.hasConceptLanguage = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiConceptLanguageResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiConceptLanguageResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiConceptLanguageResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptLanguageResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + conceptLanguagesList: jspb.Message.toObjectList(msg.getConceptLanguagesList(), + proto_clarifai_api_resources_pb.ConceptLanguage.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiConceptLanguageResponse} + */ +proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiConceptLanguageResponse; + return proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiConceptLanguageResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiConceptLanguageResponse} + */ +proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ConceptLanguage; + reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); + msg.addConceptLanguages(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiConceptLanguageResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiConceptLanguageResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiConceptLanguageResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getConceptLanguagesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this +*/ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated ConceptLanguage concept_languages = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.getConceptLanguagesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this +*/ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.setConceptLanguagesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ConceptLanguage=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ConceptLanguage} + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.addConceptLanguages = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptLanguage, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this + */ +proto.clarifai.api.MultiConceptLanguageResponse.prototype.clearConceptLanguagesList = function() { + return this.setConceptLanguagesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetInputRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetInputRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetInputRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetInputRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + inputId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetInputRequest} + */ +proto.clarifai.api.GetInputRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetInputRequest; + return proto.clarifai.api.GetInputRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetInputRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetInputRequest} + */ +proto.clarifai.api.GetInputRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetInputRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetInputRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetInputRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetInputRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetInputRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetInputRequest} returns this +*/ +proto.clarifai.api.GetInputRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetInputRequest} returns this + */ +proto.clarifai.api.GetInputRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetInputRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string input_id = 2; + * @return {string} + */ +proto.clarifai.api.GetInputRequest.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetInputRequest} returns this + */ +proto.clarifai.api.GetInputRequest.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetVideoManifestRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetVideoManifestRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetVideoManifestRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetVideoManifestRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + inputId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetVideoManifestRequest} + */ +proto.clarifai.api.GetVideoManifestRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetVideoManifestRequest; + return proto.clarifai.api.GetVideoManifestRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetVideoManifestRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetVideoManifestRequest} + */ +proto.clarifai.api.GetVideoManifestRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetVideoManifestRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetVideoManifestRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetVideoManifestRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetVideoManifestRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetVideoManifestRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetVideoManifestRequest} returns this +*/ +proto.clarifai.api.GetVideoManifestRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetVideoManifestRequest} returns this + */ +proto.clarifai.api.GetVideoManifestRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetVideoManifestRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string input_id = 2; + * @return {string} + */ +proto.clarifai.api.GetVideoManifestRequest.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetVideoManifestRequest} returns this + */ +proto.clarifai.api.GetVideoManifestRequest.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.GetInputSamplesRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetInputSamplesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetInputSamplesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetInputSamplesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + taskId: jspb.Message.getFieldWithDefault(msg, 2, ""), + userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetInputSamplesRequest} + */ +proto.clarifai.api.GetInputSamplesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetInputSamplesRequest; + return proto.clarifai.api.GetInputSamplesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetInputSamplesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetInputSamplesRequest} + */ +proto.clarifai.api.GetInputSamplesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addUserIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetInputSamplesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetInputSamplesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetInputSamplesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getTaskId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this +*/ +proto.clarifai.api.GetInputSamplesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string task_id = 2; + * @return {string} + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.setTaskId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string user_ids = 3; + * @return {!Array} + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + */ +proto.clarifai.api.GetInputSamplesRequest.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListInputsRequest.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListInputsRequest} + */ +proto.clarifai.api.ListInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListInputsRequest; + return proto.clarifai.api.ListInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListInputsRequest} + */ +proto.clarifai.api.ListInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 5: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListInputsRequest} returns this +*/ +proto.clarifai.api.ListInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListInputsRequest} returns this + */ +proto.clarifai.api.ListInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListInputsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListInputsRequest} returns this + */ +proto.clarifai.api.ListInputsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListInputsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListInputsRequest} returns this + */ +proto.clarifai.api.ListInputsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional status.Status status = 5; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.ListInputsRequest.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.ListInputsRequest} returns this +*/ +proto.clarifai.api.ListInputsRequest.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListInputsRequest} returns this + */ +proto.clarifai.api.ListInputsRequest.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListInputsRequest.prototype.hasStatus = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * repeated string ids = 4; + * @return {!Array} + */ +proto.clarifai.api.ListInputsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListInputsRequest} returns this + */ +proto.clarifai.api.ListInputsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListInputsRequest} returns this + */ +proto.clarifai.api.ListInputsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListInputsRequest} returns this + */ +proto.clarifai.api.ListInputsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.StreamInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.StreamInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.StreamInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.StreamInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + perPage: jspb.Message.getFieldWithDefault(msg, 2, 0), + lastId: jspb.Message.getFieldWithDefault(msg, 3, ""), + orderById: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + descending: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.StreamInputsRequest} + */ +proto.clarifai.api.StreamInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.StreamInputsRequest; + return proto.clarifai.api.StreamInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.StreamInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.StreamInputsRequest} + */ +proto.clarifai.api.StreamInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setLastId(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setOrderById(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDescending(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.StreamInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.StreamInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.StreamInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.StreamInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getLastId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getOrderById(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getDescending(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.StreamInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.StreamInputsRequest} returns this +*/ +proto.clarifai.api.StreamInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.StreamInputsRequest} returns this + */ +proto.clarifai.api.StreamInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.StreamInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 per_page = 2; + * @return {number} + */ +proto.clarifai.api.StreamInputsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.StreamInputsRequest} returns this + */ +proto.clarifai.api.StreamInputsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional string last_id = 3; + * @return {string} + */ +proto.clarifai.api.StreamInputsRequest.prototype.getLastId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.StreamInputsRequest} returns this + */ +proto.clarifai.api.StreamInputsRequest.prototype.setLastId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional bool order_by_id = 5; + * @return {boolean} + */ +proto.clarifai.api.StreamInputsRequest.prototype.getOrderById = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.StreamInputsRequest} returns this + */ +proto.clarifai.api.StreamInputsRequest.prototype.setOrderById = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional bool descending = 4; + * @return {boolean} + */ +proto.clarifai.api.StreamInputsRequest.prototype.getDescending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.StreamInputsRequest} returns this + */ +proto.clarifai.api.StreamInputsRequest.prototype.setDescending = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostInputsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto_clarifai_api_resources_pb.Input.toObject, includeInstance), + inputsAddJobId: jspb.Message.getFieldWithDefault(msg, 3, ""), + inputIdConflictResolution: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostInputsRequest} + */ +proto.clarifai.api.PostInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostInputsRequest; + return proto.clarifai.api.PostInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostInputsRequest} + */ +proto.clarifai.api.PostInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.addInputs(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setInputsAddJobId(value); + break; + case 4: + var value = /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (reader.readEnum()); + msg.setInputIdConflictResolution(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } + f = message.getInputsAddJobId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getInputIdConflictResolution(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostInputsRequest} returns this +*/ +proto.clarifai.api.PostInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostInputsRequest} returns this + */ +proto.clarifai.api.PostInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Input inputs = 2; + * @return {!Array} + */ +proto.clarifai.api.PostInputsRequest.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostInputsRequest} returns this +*/ +proto.clarifai.api.PostInputsRequest.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.PostInputsRequest.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Input, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostInputsRequest} returns this + */ +proto.clarifai.api.PostInputsRequest.prototype.clearInputsList = function() { + return this.setInputsList([]); +}; + + +/** + * optional string inputs_add_job_id = 3; + * @return {string} + */ +proto.clarifai.api.PostInputsRequest.prototype.getInputsAddJobId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostInputsRequest} returns this + */ +proto.clarifai.api.PostInputsRequest.prototype.setInputsAddJobId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional InputIDConflictResolution input_id_conflict_resolution = 4; + * @return {!proto.clarifai.api.InputIDConflictResolution} + */ +proto.clarifai.api.PostInputsRequest.prototype.getInputIdConflictResolution = function() { + return /** @type {!proto.clarifai.api.InputIDConflictResolution} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.clarifai.api.InputIDConflictResolution} value + * @return {!proto.clarifai.api.PostInputsRequest} returns this + */ +proto.clarifai.api.PostInputsRequest.prototype.setInputIdConflictResolution = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchInputsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto_clarifai_api_resources_pb.Input.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchInputsRequest} + */ +proto.clarifai.api.PatchInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchInputsRequest; + return proto.clarifai.api.PatchInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchInputsRequest} + */ +proto.clarifai.api.PatchInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.addInputs(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchInputsRequest} returns this +*/ +proto.clarifai.api.PatchInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchInputsRequest} returns this + */ +proto.clarifai.api.PatchInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Input inputs = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchInputsRequest.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchInputsRequest} returns this +*/ +proto.clarifai.api.PatchInputsRequest.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.PatchInputsRequest.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Input, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchInputsRequest} returns this + */ +proto.clarifai.api.PatchInputsRequest.prototype.clearInputsList = function() { + return this.setInputsList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchInputsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchInputsRequest} returns this + */ +proto.clarifai.api.PatchInputsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteInputRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteInputRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteInputRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteInputRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + inputId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteInputRequest} + */ +proto.clarifai.api.DeleteInputRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteInputRequest; + return proto.clarifai.api.DeleteInputRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteInputRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteInputRequest} + */ +proto.clarifai.api.DeleteInputRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteInputRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteInputRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteInputRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteInputRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteInputRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteInputRequest} returns this +*/ +proto.clarifai.api.DeleteInputRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteInputRequest} returns this + */ +proto.clarifai.api.DeleteInputRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteInputRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string input_id = 2; + * @return {string} + */ +proto.clarifai.api.DeleteInputRequest.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DeleteInputRequest} returns this + */ +proto.clarifai.api.DeleteInputRequest.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteInputsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteInputsRequest} + */ +proto.clarifai.api.DeleteInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteInputsRequest; + return proto.clarifai.api.DeleteInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteInputsRequest} + */ +proto.clarifai.api.DeleteInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteInputsRequest} returns this +*/ +proto.clarifai.api.DeleteInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + */ +proto.clarifai.api.DeleteInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string ids = 2; + * @return {!Array} + */ +proto.clarifai.api.DeleteInputsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + */ +proto.clarifai.api.DeleteInputsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + */ +proto.clarifai.api.DeleteInputsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + */ +proto.clarifai.api.DeleteInputsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleInputResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleInputResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleInputResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleInputResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + input: (f = msg.getInput()) && proto_clarifai_api_resources_pb.Input.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleInputResponse} + */ +proto.clarifai.api.SingleInputResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleInputResponse; + return proto.clarifai.api.SingleInputResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleInputResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleInputResponse} + */ +proto.clarifai.api.SingleInputResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.setInput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleInputResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleInputResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleInputResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleInputResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getInput(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleInputResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleInputResponse} returns this +*/ +proto.clarifai.api.SingleInputResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleInputResponse} returns this + */ +proto.clarifai.api.SingleInputResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleInputResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Input input = 2; + * @return {?proto.clarifai.api.Input} + */ +proto.clarifai.api.SingleInputResponse.prototype.getInput = function() { + return /** @type{?proto.clarifai.api.Input} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Input|undefined} value + * @return {!proto.clarifai.api.SingleInputResponse} returns this +*/ +proto.clarifai.api.SingleInputResponse.prototype.setInput = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleInputResponse} returns this + */ +proto.clarifai.api.SingleInputResponse.prototype.clearInput = function() { + return this.setInput(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleInputResponse.prototype.hasInput = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetVideoManifestResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetVideoManifestResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetVideoManifestResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetVideoManifestResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + manifestUrl: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetVideoManifestResponse} + */ +proto.clarifai.api.GetVideoManifestResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetVideoManifestResponse; + return proto.clarifai.api.GetVideoManifestResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetVideoManifestResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetVideoManifestResponse} + */ +proto.clarifai.api.GetVideoManifestResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setManifestUrl(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetVideoManifestResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetVideoManifestResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetVideoManifestResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetVideoManifestResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getManifestUrl(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.GetVideoManifestResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.GetVideoManifestResponse} returns this +*/ +proto.clarifai.api.GetVideoManifestResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetVideoManifestResponse} returns this + */ +proto.clarifai.api.GetVideoManifestResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetVideoManifestResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string manifest_url = 2; + * @return {string} + */ +proto.clarifai.api.GetVideoManifestResponse.prototype.getManifestUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetVideoManifestResponse} returns this + */ +proto.clarifai.api.GetVideoManifestResponse.prototype.setManifestUrl = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiInputResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiInputResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiInputResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiInputResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiInputResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto_clarifai_api_resources_pb.Input.toObject, includeInstance), + inputsAddJob: (f = msg.getInputsAddJob()) && proto_clarifai_api_resources_pb.InputsAddJob.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiInputResponse} + */ +proto.clarifai.api.MultiInputResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiInputResponse; + return proto.clarifai.api.MultiInputResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiInputResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiInputResponse} + */ +proto.clarifai.api.MultiInputResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.addInputs(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.InputsAddJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputsAddJob.deserializeBinaryFromReader); + msg.setInputsAddJob(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiInputResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiInputResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiInputResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiInputResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } + f = message.getInputsAddJob(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto_clarifai_api_resources_pb.InputsAddJob.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiInputResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiInputResponse} returns this +*/ +proto.clarifai.api.MultiInputResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiInputResponse} returns this + */ +proto.clarifai.api.MultiInputResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiInputResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Input inputs = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiInputResponse.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiInputResponse} returns this +*/ +proto.clarifai.api.MultiInputResponse.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.MultiInputResponse.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Input, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiInputResponse} returns this + */ +proto.clarifai.api.MultiInputResponse.prototype.clearInputsList = function() { + return this.setInputsList([]); +}; + + +/** + * optional InputsAddJob inputs_add_job = 3; + * @return {?proto.clarifai.api.InputsAddJob} + */ +proto.clarifai.api.MultiInputResponse.prototype.getInputsAddJob = function() { + return /** @type{?proto.clarifai.api.InputsAddJob} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InputsAddJob, 3)); +}; + + +/** + * @param {?proto.clarifai.api.InputsAddJob|undefined} value + * @return {!proto.clarifai.api.MultiInputResponse} returns this +*/ +proto.clarifai.api.MultiInputResponse.prototype.setInputsAddJob = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiInputResponse} returns this + */ +proto.clarifai.api.MultiInputResponse.prototype.clearInputsAddJob = function() { + return this.setInputsAddJob(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiInputResponse.prototype.hasInputsAddJob = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiInputAnnotationResponse.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiInputAnnotationResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiInputAnnotationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiInputAnnotationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + hitsList: jspb.Message.toObjectList(msg.getHitsList(), + proto_clarifai_api_resources_pb.Hit.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiInputAnnotationResponse} + */ +proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiInputAnnotationResponse; + return proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiInputAnnotationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiInputAnnotationResponse} + */ +proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.Hit; + reader.readMessage(value,proto_clarifai_api_resources_pb.Hit.deserializeBinaryFromReader); + msg.addHits(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiInputAnnotationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiInputAnnotationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiInputAnnotationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getHitsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.Hit.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this +*/ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Hit hits = 3; + * @return {!Array} + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.getHitsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Hit, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this +*/ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.setHitsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.Hit=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Hit} + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.addHits = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Hit, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this + */ +proto.clarifai.api.MultiInputAnnotationResponse.prototype.clearHitsList = function() { + return this.setHitsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleInputCountResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleInputCountResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleInputCountResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleInputCountResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + counts: (f = msg.getCounts()) && proto_clarifai_api_resources_pb.InputCount.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleInputCountResponse} + */ +proto.clarifai.api.SingleInputCountResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleInputCountResponse; + return proto.clarifai.api.SingleInputCountResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleInputCountResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleInputCountResponse} + */ +proto.clarifai.api.SingleInputCountResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.InputCount; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputCount.deserializeBinaryFromReader); + msg.setCounts(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleInputCountResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleInputCountResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleInputCountResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleInputCountResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getCounts(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.InputCount.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleInputCountResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleInputCountResponse} returns this +*/ +proto.clarifai.api.SingleInputCountResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleInputCountResponse} returns this + */ +proto.clarifai.api.SingleInputCountResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleInputCountResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional InputCount counts = 2; + * @return {?proto.clarifai.api.InputCount} + */ +proto.clarifai.api.SingleInputCountResponse.prototype.getCounts = function() { + return /** @type{?proto.clarifai.api.InputCount} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InputCount, 2)); +}; + + +/** + * @param {?proto.clarifai.api.InputCount|undefined} value + * @return {!proto.clarifai.api.SingleInputCountResponse} returns this +*/ +proto.clarifai.api.SingleInputCountResponse.prototype.setCounts = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleInputCountResponse} returns this + */ +proto.clarifai.api.SingleInputCountResponse.prototype.clearCounts = function() { + return this.setCounts(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleInputCountResponse.prototype.hasCounts = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetInputCountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetInputCountRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetInputCountRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetInputCountRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetInputCountRequest} + */ +proto.clarifai.api.GetInputCountRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetInputCountRequest; + return proto.clarifai.api.GetInputCountRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetInputCountRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetInputCountRequest} + */ +proto.clarifai.api.GetInputCountRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetInputCountRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetInputCountRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetInputCountRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetInputCountRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetInputCountRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetInputCountRequest} returns this +*/ +proto.clarifai.api.GetInputCountRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetInputCountRequest} returns this + */ +proto.clarifai.api.GetInputCountRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetInputCountRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListDatasetsRequest.repeatedFields_ = [5]; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.ListDatasetsRequest.oneofGroups_ = [[7,8,9]]; + +/** + * @enum {number} + */ +proto.clarifai.api.ListDatasetsRequest.SortByCase = { + SORT_BY_NOT_SET: 0, + SORT_BY_CREATED_AT: 7, + SORT_BY_STAR_COUNT: 8, + SORT_BY_MODIFIED_AT: 9 +}; + +/** + * @return {proto.clarifai.api.ListDatasetsRequest.SortByCase} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getSortByCase = function() { + return /** @type {proto.clarifai.api.ListDatasetsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListDatasetsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListDatasetsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListDatasetsRequest} + */ +proto.clarifai.api.ListDatasetsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListDatasetsRequest; + return proto.clarifai.api.ListDatasetsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListDatasetsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListDatasetsRequest} + */ +proto.clarifai.api.ListDatasetsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setStarredOnly(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortAscending(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByCreatedAt(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByStarCount(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByModifiedAt(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBookmark(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListDatasetsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListDatasetsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getStarredOnly(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getSortAscending(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBool( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool( + 8, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeBool( + 9, + f + ); + } + f = message.getBookmark(); + if (f) { + writer.writeBool( + 10, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this +*/ +proto.clarifai.api.ListDatasetsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool starred_only = 4; + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getStarredOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setStarredOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * repeated string additional_fields = 5; + * @return {!Array} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + +/** + * optional bool sort_ascending = 6; + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getSortAscending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setSortAscending = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); +}; + + +/** + * optional bool sort_by_created_at = 7; + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getSortByCreatedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setSortByCreatedAt = function(value) { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.clearSortByCreatedAt = function() { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.hasSortByCreatedAt = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bool sort_by_star_count = 8; + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getSortByStarCount = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setSortByStarCount = function(value) { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.clearSortByStarCount = function() { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.hasSortByStarCount = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional bool sort_by_modified_at = 9; + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getSortByModifiedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setSortByModifiedAt = function(value) { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.clearSortByModifiedAt = function() { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.hasSortByModifiedAt = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional bool bookmark = 10; + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getBookmark = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setBookmark = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.GetDatasetRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetDatasetRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetDatasetRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetDatasetRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetDatasetRequest} + */ +proto.clarifai.api.GetDatasetRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetDatasetRequest; + return proto.clarifai.api.GetDatasetRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetDatasetRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetDatasetRequest} + */ +proto.clarifai.api.GetDatasetRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetDatasetRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetDatasetRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetDatasetRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetDatasetRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetDatasetRequest} returns this +*/ +proto.clarifai.api.GetDatasetRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetDatasetRequest} returns this + */ +proto.clarifai.api.GetDatasetRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetDatasetRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.GetDatasetRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetDatasetRequest} returns this + */ +proto.clarifai.api.GetDatasetRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string additional_fields = 3; + * @return {!Array} + */ +proto.clarifai.api.GetDatasetRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.GetDatasetRequest} returns this + */ +proto.clarifai.api.GetDatasetRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetDatasetRequest} returns this + */ +proto.clarifai.api.GetDatasetRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetDatasetRequest} returns this + */ +proto.clarifai.api.GetDatasetRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostDatasetsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostDatasetsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostDatasetsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostDatasetsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostDatasetsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetsList: jspb.Message.toObjectList(msg.getDatasetsList(), + proto_clarifai_api_resources_pb.Dataset.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostDatasetsRequest} + */ +proto.clarifai.api.PostDatasetsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostDatasetsRequest; + return proto.clarifai.api.PostDatasetsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostDatasetsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostDatasetsRequest} + */ +proto.clarifai.api.PostDatasetsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Dataset; + reader.readMessage(value,proto_clarifai_api_resources_pb.Dataset.deserializeBinaryFromReader); + msg.addDatasets(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostDatasetsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostDatasetsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostDatasetsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostDatasetsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Dataset.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostDatasetsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostDatasetsRequest} returns this +*/ +proto.clarifai.api.PostDatasetsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostDatasetsRequest} returns this + */ +proto.clarifai.api.PostDatasetsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostDatasetsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Dataset datasets = 2; + * @return {!Array} + */ +proto.clarifai.api.PostDatasetsRequest.prototype.getDatasetsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Dataset, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostDatasetsRequest} returns this +*/ +proto.clarifai.api.PostDatasetsRequest.prototype.setDatasetsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Dataset=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Dataset} + */ +proto.clarifai.api.PostDatasetsRequest.prototype.addDatasets = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Dataset, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostDatasetsRequest} returns this + */ +proto.clarifai.api.PostDatasetsRequest.prototype.clearDatasetsList = function() { + return this.setDatasetsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchDatasetsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchDatasetsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchDatasetsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchDatasetsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetsList: jspb.Message.toObjectList(msg.getDatasetsList(), + proto_clarifai_api_resources_pb.Dataset.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchDatasetsRequest} + */ +proto.clarifai.api.PatchDatasetsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchDatasetsRequest; + return proto.clarifai.api.PatchDatasetsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchDatasetsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchDatasetsRequest} + */ +proto.clarifai.api.PatchDatasetsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Dataset; + reader.readMessage(value,proto_clarifai_api_resources_pb.Dataset.deserializeBinaryFromReader); + msg.addDatasets(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchDatasetsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchDatasetsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchDatasetsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Dataset.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchDatasetsRequest} returns this +*/ +proto.clarifai.api.PatchDatasetsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchDatasetsRequest} returns this + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Dataset datasets = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.getDatasetsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Dataset, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchDatasetsRequest} returns this +*/ +proto.clarifai.api.PatchDatasetsRequest.prototype.setDatasetsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Dataset=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Dataset} + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.addDatasets = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Dataset, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchDatasetsRequest} returns this + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.clearDatasetsList = function() { + return this.setDatasetsList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchDatasetsRequest} returns this + */ +proto.clarifai.api.PatchDatasetsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteDatasetsRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteDatasetsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteDatasetsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteDatasetsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteDatasetsRequest} + */ +proto.clarifai.api.DeleteDatasetsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteDatasetsRequest; + return proto.clarifai.api.DeleteDatasetsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteDatasetsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteDatasetsRequest} + */ +proto.clarifai.api.DeleteDatasetsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addDatasetIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteDatasetsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteDatasetsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteDatasetsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteDatasetsRequest} returns this +*/ +proto.clarifai.api.DeleteDatasetsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteDatasetsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string dataset_ids = 2; + * @return {!Array} + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.getDatasetIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteDatasetsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.setDatasetIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteDatasetsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.addDatasetIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteDatasetsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetsRequest.prototype.clearDatasetIdsList = function() { + return this.setDatasetIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiDatasetResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiDatasetResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiDatasetResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiDatasetResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetsList: jspb.Message.toObjectList(msg.getDatasetsList(), + proto_clarifai_api_resources_pb.Dataset.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiDatasetResponse} + */ +proto.clarifai.api.MultiDatasetResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiDatasetResponse; + return proto.clarifai.api.MultiDatasetResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiDatasetResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiDatasetResponse} + */ +proto.clarifai.api.MultiDatasetResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Dataset; + reader.readMessage(value,proto_clarifai_api_resources_pb.Dataset.deserializeBinaryFromReader); + msg.addDatasets(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiDatasetResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiDatasetResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiDatasetResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Dataset.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiDatasetResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiDatasetResponse} returns this +*/ +proto.clarifai.api.MultiDatasetResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiDatasetResponse} returns this + */ +proto.clarifai.api.MultiDatasetResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiDatasetResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Dataset datasets = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiDatasetResponse.prototype.getDatasetsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Dataset, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiDatasetResponse} returns this +*/ +proto.clarifai.api.MultiDatasetResponse.prototype.setDatasetsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Dataset=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Dataset} + */ +proto.clarifai.api.MultiDatasetResponse.prototype.addDatasets = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Dataset, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiDatasetResponse} returns this + */ +proto.clarifai.api.MultiDatasetResponse.prototype.clearDatasetsList = function() { + return this.setDatasetsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleDatasetResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleDatasetResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleDatasetResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + dataset: (f = msg.getDataset()) && proto_clarifai_api_resources_pb.Dataset.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleDatasetResponse} + */ +proto.clarifai.api.SingleDatasetResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleDatasetResponse; + return proto.clarifai.api.SingleDatasetResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleDatasetResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleDatasetResponse} + */ +proto.clarifai.api.SingleDatasetResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Dataset; + reader.readMessage(value,proto_clarifai_api_resources_pb.Dataset.deserializeBinaryFromReader); + msg.setDataset(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleDatasetResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleDatasetResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleDatasetResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDataset(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Dataset.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleDatasetResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleDatasetResponse} returns this +*/ +proto.clarifai.api.SingleDatasetResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetResponse} returns this + */ +proto.clarifai.api.SingleDatasetResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Dataset dataset = 2; + * @return {?proto.clarifai.api.Dataset} + */ +proto.clarifai.api.SingleDatasetResponse.prototype.getDataset = function() { + return /** @type{?proto.clarifai.api.Dataset} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Dataset, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Dataset|undefined} value + * @return {!proto.clarifai.api.SingleDatasetResponse} returns this +*/ +proto.clarifai.api.SingleDatasetResponse.prototype.setDataset = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetResponse} returns this + */ +proto.clarifai.api.SingleDatasetResponse.prototype.clearDataset = function() { + return this.setDataset(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetResponse.prototype.hasDataset = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListDatasetInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListDatasetInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListDatasetInputsRequest} + */ +proto.clarifai.api.ListDatasetInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListDatasetInputsRequest; + return proto.clarifai.api.ListDatasetInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListDatasetInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListDatasetInputsRequest} + */ +proto.clarifai.api.ListDatasetInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListDatasetInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListDatasetInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListDatasetInputsRequest} returns this +*/ +proto.clarifai.api.ListDatasetInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListDatasetInputsRequest} returns this + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListDatasetInputsRequest} returns this + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint32 page = 3; + * @return {number} + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetInputsRequest} returns this + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint32 per_page = 4; + * @return {number} + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetInputsRequest} returns this + */ +proto.clarifai.api.ListDatasetInputsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetDatasetInputRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetDatasetInputRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetInputRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + inputId: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetDatasetInputRequest} + */ +proto.clarifai.api.GetDatasetInputRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetDatasetInputRequest; + return proto.clarifai.api.GetDatasetInputRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetDatasetInputRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetDatasetInputRequest} + */ +proto.clarifai.api.GetDatasetInputRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetDatasetInputRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetDatasetInputRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetInputRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetDatasetInputRequest} returns this +*/ +proto.clarifai.api.GetDatasetInputRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetDatasetInputRequest} returns this + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetDatasetInputRequest} returns this + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string input_id = 3; + * @return {string} + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetDatasetInputRequest} returns this + */ +proto.clarifai.api.GetDatasetInputRequest.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostDatasetInputsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostDatasetInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostDatasetInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostDatasetInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + datasetInputsList: jspb.Message.toObjectList(msg.getDatasetInputsList(), + proto_clarifai_api_resources_pb.DatasetInput.toObject, includeInstance), + search: (f = msg.getSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostDatasetInputsRequest} + */ +proto.clarifai.api.PostDatasetInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostDatasetInputsRequest; + return proto.clarifai.api.PostDatasetInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostDatasetInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostDatasetInputsRequest} + */ +proto.clarifai.api.PostDatasetInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.DatasetInput; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInput.deserializeBinaryFromReader); + msg.addDatasetInputs(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.setSearch(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostDatasetInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostDatasetInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostDatasetInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDatasetInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.DatasetInput.serializeBinaryToWriter + ); + } + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostDatasetInputsRequest} returns this +*/ +proto.clarifai.api.PostDatasetInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostDatasetInputsRequest} returns this + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostDatasetInputsRequest} returns this + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated DatasetInput dataset_inputs = 3; + * @return {!Array} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.getDatasetInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetInput, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostDatasetInputsRequest} returns this +*/ +proto.clarifai.api.PostDatasetInputsRequest.prototype.setDatasetInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetInput=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetInput} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.addDatasetInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.DatasetInput, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostDatasetInputsRequest} returns this + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.clearDatasetInputsList = function() { + return this.setDatasetInputsList([]); +}; + + +/** + * optional Search search = 4; + * @return {?proto.clarifai.api.Search} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.getSearch = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 4)); +}; + + +/** + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.PostDatasetInputsRequest} returns this +*/ +proto.clarifai.api.PostDatasetInputsRequest.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostDatasetInputsRequest} returns this + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.clearSearch = function() { + return this.setSearch(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostDatasetInputsRequest.prototype.hasSearch = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteDatasetInputsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteDatasetInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteDatasetInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteDatasetInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteDatasetInputsRequest; + return proto.clarifai.api.DeleteDatasetInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteDatasetInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addInputIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteDatasetInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteDatasetInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteDatasetInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getInputIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} returns this +*/ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string input_ids = 3; + * @return {!Array} + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.getInputIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.setInputIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.addInputIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteDatasetInputsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetInputsRequest.prototype.clearInputIdsList = function() { + return this.setInputIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiDatasetInputResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiDatasetInputResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiDatasetInputResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetInputResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetInputsList: jspb.Message.toObjectList(msg.getDatasetInputsList(), + proto_clarifai_api_resources_pb.DatasetInput.toObject, includeInstance), + datasetInputsSearchAddJob: (f = msg.getDatasetInputsSearchAddJob()) && proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiDatasetInputResponse} + */ +proto.clarifai.api.MultiDatasetInputResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiDatasetInputResponse; + return proto.clarifai.api.MultiDatasetInputResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiDatasetInputResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiDatasetInputResponse} + */ +proto.clarifai.api.MultiDatasetInputResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.DatasetInput; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInput.deserializeBinaryFromReader); + msg.addDatasetInputs(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.deserializeBinaryFromReader); + msg.setDatasetInputsSearchAddJob(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiDatasetInputResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiDatasetInputResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetInputResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.DatasetInput.serializeBinaryToWriter + ); + } + f = message.getDatasetInputsSearchAddJob(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this +*/ +proto.clarifai.api.MultiDatasetInputResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated DatasetInput dataset_inputs = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.getDatasetInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetInput, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this +*/ +proto.clarifai.api.MultiDatasetInputResponse.prototype.setDatasetInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetInput=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetInput} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.addDatasetInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.DatasetInput, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.clearDatasetInputsList = function() { + return this.setDatasetInputsList([]); +}; + + +/** + * optional DatasetInputsSearchAddJob dataset_inputs_search_add_job = 3; + * @return {?proto.clarifai.api.DatasetInputsSearchAddJob} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.getDatasetInputsSearchAddJob = function() { + return /** @type{?proto.clarifai.api.DatasetInputsSearchAddJob} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob, 3)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetInputsSearchAddJob|undefined} value + * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this +*/ +proto.clarifai.api.MultiDatasetInputResponse.prototype.setDatasetInputsSearchAddJob = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiDatasetInputResponse} returns this + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.clearDatasetInputsSearchAddJob = function() { + return this.setDatasetInputsSearchAddJob(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiDatasetInputResponse.prototype.hasDatasetInputsSearchAddJob = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleDatasetInputResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleDatasetInputResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetInputResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetInput: (f = msg.getDatasetInput()) && proto_clarifai_api_resources_pb.DatasetInput.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleDatasetInputResponse} + */ +proto.clarifai.api.SingleDatasetInputResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleDatasetInputResponse; + return proto.clarifai.api.SingleDatasetInputResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleDatasetInputResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleDatasetInputResponse} + */ +proto.clarifai.api.SingleDatasetInputResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.DatasetInput; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInput.deserializeBinaryFromReader); + msg.setDatasetInput(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleDatasetInputResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleDatasetInputResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetInputResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetInput(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.DatasetInput.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleDatasetInputResponse} returns this +*/ +proto.clarifai.api.SingleDatasetInputResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetInputResponse} returns this + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DatasetInput dataset_input = 2; + * @return {?proto.clarifai.api.DatasetInput} + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.getDatasetInput = function() { + return /** @type{?proto.clarifai.api.DatasetInput} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetInput, 2)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetInput|undefined} value + * @return {!proto.clarifai.api.SingleDatasetInputResponse} returns this +*/ +proto.clarifai.api.SingleDatasetInputResponse.prototype.setDatasetInput = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetInputResponse} returns this + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.clearDatasetInput = function() { + return this.setDatasetInput(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetInputResponse.prototype.hasDatasetInput = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListDatasetVersionsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListDatasetVersionsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetVersionsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListDatasetVersionsRequest} + */ +proto.clarifai.api.ListDatasetVersionsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListDatasetVersionsRequest; + return proto.clarifai.api.ListDatasetVersionsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListDatasetVersionsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListDatasetVersionsRequest} + */ +proto.clarifai.api.ListDatasetVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListDatasetVersionsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListDatasetVersionsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetVersionsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this +*/ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional uint32 page = 3; + * @return {number} + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint32 per_page = 4; + * @return {number} + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetVersionsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetDatasetVersionRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetDatasetVersionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetVersionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + datasetVersionId: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetDatasetVersionRequest} + */ +proto.clarifai.api.GetDatasetVersionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetDatasetVersionRequest; + return proto.clarifai.api.GetDatasetVersionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetDatasetVersionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetDatasetVersionRequest} + */ +proto.clarifai.api.GetDatasetVersionRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetVersionId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetDatasetVersionRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetDatasetVersionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetVersionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDatasetVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetDatasetVersionRequest} returns this +*/ +proto.clarifai.api.GetDatasetVersionRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetDatasetVersionRequest} returns this + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetDatasetVersionRequest} returns this + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string dataset_version_id = 3; + * @return {string} + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.getDatasetVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetDatasetVersionRequest} returns this + */ +proto.clarifai.api.GetDatasetVersionRequest.prototype.setDatasetVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.repeatedFields_ = [6,7,8]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + datasetVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + page: jspb.Message.getFieldWithDefault(msg, 4, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 5, 0), + parentPathsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, + typesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f, + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + google_protobuf_struct_pb.Value.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest; + return proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetVersionId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addParentPaths(value); + break; + case 7: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addTypes(values[i]); + } + break; + case 8: + var value = new google_protobuf_struct_pb.Value; + reader.readMessage(value,google_protobuf_struct_pb.Value.deserializeBinaryFromReader); + msg.addValues(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDatasetVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } + f = message.getParentPathsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } + f = message.getTypesList(); + if (f.length > 0) { + writer.writePackedEnum( + 7, + f + ); + } + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 8, + f, + google_protobuf_struct_pb.Value.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this +*/ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string dataset_version_id = 3; + * @return {string} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getDatasetVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setDatasetVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint32 page = 4; + * @return {number} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint32 per_page = 5; + * @return {number} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * repeated string parent_paths = 6; + * @return {!Array} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getParentPathsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setParentPathsList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.addParentPaths = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.clearParentPathsList = function() { + return this.setParentPathsList([]); +}; + + +/** + * repeated DatasetVersionMetricsGroupType types = 7; + * @return {!Array} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getTypesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setTypesList = function(value) { + return jspb.Message.setField(this, 7, value || []); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersionMetricsGroupType} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.addTypes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.clearTypesList = function() { + return this.setTypesList([]); +}; + + +/** + * repeated google.protobuf.Value values = 8; + * @return {!Array} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb.Value, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this +*/ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 8, value); +}; + + +/** + * @param {!proto.google.protobuf.Value=} opt_value + * @param {number=} opt_index + * @return {!proto.google.protobuf.Value} + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.google.protobuf.Value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest} returns this + */ +proto.clarifai.api.ListDatasetVersionMetricsGroupsRequest.prototype.clearValuesList = function() { + return this.setValuesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostDatasetVersionsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostDatasetVersionsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostDatasetVersionsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostDatasetVersionsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + datasetVersionsList: jspb.Message.toObjectList(msg.getDatasetVersionsList(), + proto_clarifai_api_resources_pb.DatasetVersion.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostDatasetVersionsRequest} + */ +proto.clarifai.api.PostDatasetVersionsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostDatasetVersionsRequest; + return proto.clarifai.api.PostDatasetVersionsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostDatasetVersionsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostDatasetVersionsRequest} + */ +proto.clarifai.api.PostDatasetVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.DatasetVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersion.deserializeBinaryFromReader); + msg.addDatasetVersions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostDatasetVersionsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostDatasetVersionsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostDatasetVersionsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDatasetVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.DatasetVersion.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostDatasetVersionsRequest} returns this +*/ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostDatasetVersionsRequest} returns this + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostDatasetVersionsRequest} returns this + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated DatasetVersion dataset_versions = 3; + * @return {!Array} + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.getDatasetVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersion, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostDatasetVersionsRequest} returns this +*/ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.setDatasetVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersion=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetVersion} + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.addDatasetVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.DatasetVersion, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostDatasetVersionsRequest} returns this + */ +proto.clarifai.api.PostDatasetVersionsRequest.prototype.clearDatasetVersionsList = function() { + return this.setDatasetVersionsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchDatasetVersionsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchDatasetVersionsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchDatasetVersionsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchDatasetVersionsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + datasetVersionsList: jspb.Message.toObjectList(msg.getDatasetVersionsList(), + proto_clarifai_api_resources_pb.DatasetVersion.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchDatasetVersionsRequest; + return proto.clarifai.api.PatchDatasetVersionsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchDatasetVersionsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.DatasetVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersion.deserializeBinaryFromReader); + msg.addDatasetVersions(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchDatasetVersionsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchDatasetVersionsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchDatasetVersionsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDatasetVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.DatasetVersion.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} returns this +*/ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} returns this + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} returns this + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated DatasetVersion dataset_versions = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.getDatasetVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersion, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} returns this +*/ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.setDatasetVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersion=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetVersion} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.addDatasetVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.DatasetVersion, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} returns this + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.clearDatasetVersionsList = function() { + return this.setDatasetVersionsList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchDatasetVersionsRequest} returns this + */ +proto.clarifai.api.PatchDatasetVersionsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteDatasetVersionsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteDatasetVersionsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + datasetVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteDatasetVersionsRequest; + return proto.clarifai.api.DeleteDatasetVersionsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteDatasetVersionsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addDatasetVersionIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteDatasetVersionsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteDatasetVersionsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDatasetVersionIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} returns this +*/ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string dataset_version_ids = 3; + * @return {!Array} + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.getDatasetVersionIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.setDatasetVersionIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.addDatasetVersionIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteDatasetVersionsRequest} returns this + */ +proto.clarifai.api.DeleteDatasetVersionsRequest.prototype.clearDatasetVersionIdsList = function() { + return this.setDatasetVersionIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PutDatasetVersionExportsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PutDatasetVersionExportsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + datasetId: jspb.Message.getFieldWithDefault(msg, 2, ""), + datasetVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + exportsList: jspb.Message.toObjectList(msg.getExportsList(), + proto_clarifai_api_resources_pb.DatasetVersionExport.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PutDatasetVersionExportsRequest; + return proto.clarifai.api.PutDatasetVersionExportsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PutDatasetVersionExportsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDatasetVersionId(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.DatasetVersionExport; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersionExport.deserializeBinaryFromReader); + msg.addExports(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PutDatasetVersionExportsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PutDatasetVersionExportsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getDatasetId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getDatasetVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getExportsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto_clarifai_api_resources_pb.DatasetVersionExport.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} returns this +*/ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} returns this + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string dataset_id = 2; + * @return {string} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.getDatasetId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} returns this + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.setDatasetId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string dataset_version_id = 3; + * @return {string} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.getDatasetVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} returns this + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.setDatasetVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated DatasetVersionExport exports = 4; + * @return {!Array} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.getExportsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersionExport, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} returns this +*/ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.setExportsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersionExport=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetVersionExport} + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.addExports = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.DatasetVersionExport, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PutDatasetVersionExportsRequest} returns this + */ +proto.clarifai.api.PutDatasetVersionExportsRequest.prototype.clearExportsList = function() { + return this.setExportsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiDatasetVersionResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiDatasetVersionResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiDatasetVersionResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetVersionResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetVersionsList: jspb.Message.toObjectList(msg.getDatasetVersionsList(), + proto_clarifai_api_resources_pb.DatasetVersion.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiDatasetVersionResponse} + */ +proto.clarifai.api.MultiDatasetVersionResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiDatasetVersionResponse; + return proto.clarifai.api.MultiDatasetVersionResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiDatasetVersionResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiDatasetVersionResponse} + */ +proto.clarifai.api.MultiDatasetVersionResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.DatasetVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersion.deserializeBinaryFromReader); + msg.addDatasetVersions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiDatasetVersionResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiDatasetVersionResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetVersionResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.DatasetVersion.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiDatasetVersionResponse} returns this +*/ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiDatasetVersionResponse} returns this + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated DatasetVersion dataset_versions = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.getDatasetVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersion, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiDatasetVersionResponse} returns this +*/ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.setDatasetVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersion=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetVersion} + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.addDatasetVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.DatasetVersion, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiDatasetVersionResponse} returns this + */ +proto.clarifai.api.MultiDatasetVersionResponse.prototype.clearDatasetVersionsList = function() { + return this.setDatasetVersionsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiDatasetVersionExportResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiDatasetVersionExportResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + exportsList: jspb.Message.toObjectList(msg.getExportsList(), + proto_clarifai_api_resources_pb.DatasetVersionExport.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiDatasetVersionExportResponse} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiDatasetVersionExportResponse; + return proto.clarifai.api.MultiDatasetVersionExportResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiDatasetVersionExportResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiDatasetVersionExportResponse} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.DatasetVersionExport; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersionExport.deserializeBinaryFromReader); + msg.addExports(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiDatasetVersionExportResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiDatasetVersionExportResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getExportsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.DatasetVersionExport.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiDatasetVersionExportResponse} returns this +*/ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiDatasetVersionExportResponse} returns this + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated DatasetVersionExport exports = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.getExportsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersionExport, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiDatasetVersionExportResponse} returns this +*/ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.setExportsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersionExport=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetVersionExport} + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.addExports = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.DatasetVersionExport, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiDatasetVersionExportResponse} returns this + */ +proto.clarifai.api.MultiDatasetVersionExportResponse.prototype.clearExportsList = function() { + return this.setExportsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetVersionMetricsGroupsList: jspb.Message.toObjectList(msg.getDatasetVersionMetricsGroupsList(), + proto_clarifai_api_resources_pb.DatasetVersionMetricsGroup.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse; + return proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.DatasetVersionMetricsGroup; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersionMetricsGroup.deserializeBinaryFromReader); + msg.addDatasetVersionMetricsGroups(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetVersionMetricsGroupsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.DatasetVersionMetricsGroup.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} returns this +*/ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} returns this + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated DatasetVersionMetricsGroup dataset_version_metrics_groups = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.getDatasetVersionMetricsGroupsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersionMetricsGroup, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} returns this +*/ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.setDatasetVersionMetricsGroupsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.DatasetVersionMetricsGroup=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DatasetVersionMetricsGroup} + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.addDatasetVersionMetricsGroups = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.DatasetVersionMetricsGroup, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse} returns this + */ +proto.clarifai.api.MultiDatasetVersionMetricsGroupResponse.prototype.clearDatasetVersionMetricsGroupsList = function() { + return this.setDatasetVersionMetricsGroupsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleDatasetVersionResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleDatasetVersionResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetVersionResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasetVersion: (f = msg.getDatasetVersion()) && proto_clarifai_api_resources_pb.DatasetVersion.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleDatasetVersionResponse} + */ +proto.clarifai.api.SingleDatasetVersionResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleDatasetVersionResponse; + return proto.clarifai.api.SingleDatasetVersionResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleDatasetVersionResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleDatasetVersionResponse} + */ +proto.clarifai.api.SingleDatasetVersionResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.DatasetVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersion.deserializeBinaryFromReader); + msg.setDatasetVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleDatasetVersionResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleDatasetVersionResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetVersionResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasetVersion(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.DatasetVersion.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleDatasetVersionResponse} returns this +*/ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetVersionResponse} returns this + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DatasetVersion dataset_version = 2; + * @return {?proto.clarifai.api.DatasetVersion} + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.getDatasetVersion = function() { + return /** @type{?proto.clarifai.api.DatasetVersion} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersion, 2)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetVersion|undefined} value + * @return {!proto.clarifai.api.SingleDatasetVersionResponse} returns this +*/ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.setDatasetVersion = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetVersionResponse} returns this + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.clearDatasetVersion = function() { + return this.setDatasetVersion(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetVersionResponse.prototype.hasDatasetVersion = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + jobId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetDatasetInputsSearchAddJobRequest; + return proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setJobId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getJobId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this +*/ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string job_id = 2; + * @return {string} + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.getJobId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetDatasetInputsSearchAddJobRequest} returns this + */ +proto.clarifai.api.GetDatasetInputsSearchAddJobRequest.prototype.setJobId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + job: (f = msg.getJob()) && proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse; + return proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.deserializeBinaryFromReader); + msg.setJob(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getJob(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this +*/ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DatasetInputsSearchAddJob job = 2; + * @return {?proto.clarifai.api.DatasetInputsSearchAddJob} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.getJob = function() { + return /** @type{?proto.clarifai.api.DatasetInputsSearchAddJob} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetInputsSearchAddJob, 2)); +}; + + +/** + * @param {?proto.clarifai.api.DatasetInputsSearchAddJob|undefined} value + * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this +*/ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.setJob = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse} returns this + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.clearJob = function() { + return this.setJob(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleDatasetInputsSearchAddJobResponse.prototype.hasJob = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostModelOutputsRequest.repeatedFields_ = [4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelOutputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostModelOutputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto_clarifai_api_resources_pb.Input.toObject, includeInstance), + model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostModelOutputsRequest} + */ +proto.clarifai.api.PostModelOutputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostModelOutputsRequest; + return proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostModelOutputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostModelOutputsRequest} + */ +proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.addInputs(value); + break; + case 5: + var value = new proto_clarifai_api_resources_pb.Model; + reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); + msg.setModel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostModelOutputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } + f = message.getModel(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this +*/ +proto.clarifai.api.PostModelOutputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string version_id = 3; + * @return {string} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated Input inputs = 4; + * @return {!Array} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this +*/ +proto.clarifai.api.PostModelOutputsRequest.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Input, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.clearInputsList = function() { + return this.setInputsList([]); +}; + + +/** + * optional Model model = 5; + * @return {?proto.clarifai.api.Model} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 5)); +}; + + +/** + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this +*/ +proto.clarifai.api.PostModelOutputsRequest.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.clearModel = function() { + return this.setModel(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostModelOutputsRequest.prototype.hasModel = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelInputsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListModelInputsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListModelInputsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + page: jspb.Message.getFieldWithDefault(msg, 4, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListModelInputsRequest} + */ +proto.clarifai.api.ListModelInputsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListModelInputsRequest; + return proto.clarifai.api.ListModelInputsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListModelInputsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListModelInputsRequest} + */ +proto.clarifai.api.ListModelInputsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListModelInputsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListModelInputsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListModelInputsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 5, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListModelInputsRequest} returns this +*/ +proto.clarifai.api.ListModelInputsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + */ +proto.clarifai.api.ListModelInputsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + */ +proto.clarifai.api.ListModelInputsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string version_id = 3; + * @return {string} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + */ +proto.clarifai.api.ListModelInputsRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint32 page = 4; + * @return {number} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + */ +proto.clarifai.api.ListModelInputsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint32 per_page = 5; + * @return {number} + */ +proto.clarifai.api.ListModelInputsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + */ +proto.clarifai.api.ListModelInputsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetKeyRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetKeyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetKeyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + keyId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetKeyRequest} + */ +proto.clarifai.api.GetKeyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetKeyRequest; + return proto.clarifai.api.GetKeyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetKeyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetKeyRequest} + */ +proto.clarifai.api.GetKeyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetKeyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetKeyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetKeyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetKeyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getKeyId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetKeyRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetKeyRequest} returns this +*/ +proto.clarifai.api.GetKeyRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetKeyRequest} returns this + */ +proto.clarifai.api.GetKeyRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetKeyRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string key_id = 2; + * @return {string} + */ +proto.clarifai.api.GetKeyRequest.prototype.getKeyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetKeyRequest} returns this + */ +proto.clarifai.api.GetKeyRequest.prototype.setKeyId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListKeysRequest.repeatedFields_ = [5,6]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListKeysRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListKeysRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListKeysRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListKeysRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + notExpired: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + scopesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + endpointsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListKeysRequest} + */ +proto.clarifai.api.ListKeysRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListKeysRequest; + return proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListKeysRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListKeysRequest} + */ +proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNotExpired(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addScopes(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.addEndpoints(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListKeysRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListKeysRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListKeysRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListKeysRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getNotExpired(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getScopesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getEndpointsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 6, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListKeysRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListKeysRequest} returns this +*/ +proto.clarifai.api.ListKeysRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListKeysRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListKeysRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListKeysRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool not_expired = 4; + * @return {boolean} + */ +proto.clarifai.api.ListKeysRequest.prototype.getNotExpired = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.setNotExpired = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * repeated string scopes = 5; + * @return {!Array} + */ +proto.clarifai.api.ListKeysRequest.prototype.getScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.setScopesList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.addScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.clearScopesList = function() { + return this.setScopesList([]); +}; + + +/** + * repeated string endpoints = 6; + * @return {!Array} + */ +proto.clarifai.api.ListKeysRequest.prototype.getEndpointsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.setEndpointsList = function(value) { + return jspb.Message.setField(this, 6, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.addEndpoints = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 6, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListKeysRequest} returns this + */ +proto.clarifai.api.ListKeysRequest.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListAppKeysRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListAppKeysRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListAppKeysRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListAppKeysRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListAppKeysRequest} + */ +proto.clarifai.api.ListAppKeysRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListAppKeysRequest; + return proto.clarifai.api.ListAppKeysRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListAppKeysRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListAppKeysRequest} + */ +proto.clarifai.api.ListAppKeysRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListAppKeysRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListAppKeysRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListAppKeysRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListAppKeysRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListAppKeysRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListAppKeysRequest} returns this +*/ +proto.clarifai.api.ListAppKeysRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListAppKeysRequest} returns this + */ +proto.clarifai.api.ListAppKeysRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAppKeysRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListAppKeysRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListAppKeysRequest} returns this + */ +proto.clarifai.api.ListAppKeysRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListAppKeysRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListAppKeysRequest} returns this + */ +proto.clarifai.api.ListAppKeysRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostKeysRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostKeysRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostKeysRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostKeysRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostKeysRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + keysList: jspb.Message.toObjectList(msg.getKeysList(), + proto_clarifai_api_resources_pb.Key.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostKeysRequest} + */ +proto.clarifai.api.PostKeysRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostKeysRequest; + return proto.clarifai.api.PostKeysRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostKeysRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostKeysRequest} + */ +proto.clarifai.api.PostKeysRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Key; + reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); + msg.addKeys(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PostKeysRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostKeysRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostKeysRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostKeysRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getKeysList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostKeysRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostKeysRequest} returns this +*/ +proto.clarifai.api.PostKeysRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostKeysRequest} returns this + */ +proto.clarifai.api.PostKeysRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostKeysRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Key keys = 2; + * @return {!Array} + */ +proto.clarifai.api.PostKeysRequest.prototype.getKeysList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostKeysRequest} returns this +*/ +proto.clarifai.api.PostKeysRequest.prototype.setKeysList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Key=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Key} + */ +proto.clarifai.api.PostKeysRequest.prototype.addKeys = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Key, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostKeysRequest} returns this + */ +proto.clarifai.api.PostKeysRequest.prototype.clearKeysList = function() { + return this.setKeysList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteKeyRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteKeyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteKeyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + keyId: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteKeyRequest} + */ +proto.clarifai.api.DeleteKeyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteKeyRequest; + return proto.clarifai.api.DeleteKeyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteKeyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteKeyRequest} + */ +proto.clarifai.api.DeleteKeyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setKeyId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteKeyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteKeyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteKeyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteKeyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getKeyId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteKeyRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteKeyRequest} returns this +*/ +proto.clarifai.api.DeleteKeyRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteKeyRequest} returns this + */ +proto.clarifai.api.DeleteKeyRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteKeyRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string key_id = 2; + * @return {string} + */ +proto.clarifai.api.DeleteKeyRequest.prototype.getKeyId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.DeleteKeyRequest} returns this + */ +proto.clarifai.api.DeleteKeyRequest.prototype.setKeyId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchKeysRequest.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchKeysRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchKeysRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchKeysRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchKeysRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + keysList: jspb.Message.toObjectList(msg.getKeysList(), + proto_clarifai_api_resources_pb.Key.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchKeysRequest} + */ +proto.clarifai.api.PatchKeysRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchKeysRequest; + return proto.clarifai.api.PatchKeysRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchKeysRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchKeysRequest} + */ +proto.clarifai.api.PatchKeysRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Key; + reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); + msg.addKeys(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchKeysRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchKeysRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchKeysRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchKeysRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getKeysList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchKeysRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchKeysRequest} returns this +*/ +proto.clarifai.api.PatchKeysRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchKeysRequest} returns this + */ +proto.clarifai.api.PatchKeysRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchKeysRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Key keys = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchKeysRequest.prototype.getKeysList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchKeysRequest} returns this +*/ +proto.clarifai.api.PatchKeysRequest.prototype.setKeysList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Key=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Key} + */ +proto.clarifai.api.PatchKeysRequest.prototype.addKeys = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Key, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchKeysRequest} returns this + */ +proto.clarifai.api.PatchKeysRequest.prototype.clearKeysList = function() { + return this.setKeysList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchKeysRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchKeysRequest} returns this + */ +proto.clarifai.api.PatchKeysRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleKeyResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleKeyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleKeyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + key: (f = msg.getKey()) && proto_clarifai_api_resources_pb.Key.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleKeyResponse} + */ +proto.clarifai.api.SingleKeyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleKeyResponse; + return proto.clarifai.api.SingleKeyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleKeyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleKeyResponse} + */ +proto.clarifai.api.SingleKeyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Key; + reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); + msg.setKey(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.SingleKeyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleKeyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleKeyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleKeyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getKey(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.SingleKeyResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleKeyResponse} returns this +*/ +proto.clarifai.api.SingleKeyResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleKeyResponse} returns this + */ +proto.clarifai.api.SingleKeyResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleKeyResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Key key = 2; + * @return {?proto.clarifai.api.Key} + */ +proto.clarifai.api.SingleKeyResponse.prototype.getKey = function() { + return /** @type{?proto.clarifai.api.Key} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Key|undefined} value + * @return {!proto.clarifai.api.SingleKeyResponse} returns this +*/ +proto.clarifai.api.SingleKeyResponse.prototype.setKey = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleKeyResponse} returns this + */ +proto.clarifai.api.SingleKeyResponse.prototype.clearKey = function() { + return this.setKey(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleKeyResponse.prototype.hasKey = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiKeyResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiKeyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiKeyResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiKeyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiKeyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + keysList: jspb.Message.toObjectList(msg.getKeysList(), + proto_clarifai_api_resources_pb.Key.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiKeyResponse} + */ +proto.clarifai.api.MultiKeyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiKeyResponse; + return proto.clarifai.api.MultiKeyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiKeyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiKeyResponse} + */ +proto.clarifai.api.MultiKeyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Key; + reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); + msg.addKeys(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiKeyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiKeyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiKeyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiKeyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getKeysList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiKeyResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiKeyResponse} returns this +*/ +proto.clarifai.api.MultiKeyResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiKeyResponse} returns this + */ +proto.clarifai.api.MultiKeyResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiKeyResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Key keys = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiKeyResponse.prototype.getKeysList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiKeyResponse} returns this +*/ +proto.clarifai.api.MultiKeyResponse.prototype.setKeysList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Key=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Key} + */ +proto.clarifai.api.MultiKeyResponse.prototype.addKeys = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Key, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiKeyResponse} returns this + */ +proto.clarifai.api.MultiKeyResponse.prototype.clearKeysList = function() { + return this.setKeysList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.GetModelRequest.repeatedFields_ = [19]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetModelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModelRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetModelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetModelRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + language: jspb.Message.getFieldWithDefault(msg, 4, ""), + trainedBefore: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetModelRequest} + */ +proto.clarifai.api.GetModelRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetModelRequest; + return proto.clarifai.api.GetModelRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetModelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetModelRequest} + */ +proto.clarifai.api.GetModelRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setLanguage(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTrainedBefore(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetModelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetModelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetModelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetModelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getLanguage(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getTrainedBefore(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 19, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetModelRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetModelRequest} returns this +*/ +proto.clarifai.api.GetModelRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetModelRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.GetModelRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string version_id = 3; + * @return {string} + */ +proto.clarifai.api.GetModelRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string language = 4; + * @return {string} + */ +proto.clarifai.api.GetModelRequest.prototype.getLanguage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.setLanguage = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional bool trained_before = 5; + * @return {boolean} + */ +proto.clarifai.api.GetModelRequest.prototype.getTrainedBefore = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.setTrainedBefore = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * repeated string additional_fields = 19; + * @return {!Array} + */ +proto.clarifai.api.GetModelRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 19)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 19, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 19, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetModelRequest} returns this + */ +proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListModelsRequest.repeatedFields_ = [8,9,17,18,21,19]; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.ListModelsRequest.oneofGroups_ = [[11,12,13,24,25]]; + +/** + * @enum {number} + */ +proto.clarifai.api.ListModelsRequest.SortByCase = { + SORT_BY_NOT_SET: 0, + SORT_BY_NAME: 11, + SORT_BY_NUM_INPUTS: 12, + SORT_BY_MODIFIED_AT: 13, + SORT_BY_CREATED_AT: 24, + SORT_BY_STAR_COUNT: 25 +}; + +/** + * @return {proto.clarifai.api.ListModelsRequest.SortByCase} + */ +proto.clarifai.api.ListModelsRequest.prototype.getSortByCase = function() { + return /** @type {proto.clarifai.api.ListModelsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListModelsRequest.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListModelsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListModelsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + sortByName: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + sortByNumInputs: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), + sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), + sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 25, false), + query: jspb.Message.getFieldWithDefault(msg, 14, ""), + name: jspb.Message.getFieldWithDefault(msg, 5, ""), + filterByUserId: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), + modelTypeId: jspb.Message.getFieldWithDefault(msg, 6, ""), + trainedOnly: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + inputFieldsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, + outputFieldsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, + license: jspb.Message.getFieldWithDefault(msg, 15, ""), + featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 20, false), + toolkitsList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, + useCasesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f, + languagesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f, + dontFetchFromMain: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), + bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 26, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListModelsRequest} + */ +proto.clarifai.api.ListModelsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListModelsRequest; + return proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListModelsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListModelsRequest} + */ +proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortAscending(value); + break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByName(value); + break; + case 12: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByNumInputs(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByModifiedAt(value); + break; + case 24: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByCreatedAt(value); + break; + case 25: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByStarCount(value); + break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setQuery(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setName(value); + break; + case 22: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFilterByUserId(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setModelTypeId(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTrainedOnly(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.addInputFields(value); + break; + case 9: + var value = /** @type {string} */ (reader.readString()); + msg.addOutputFields(value); + break; + case 15: + var value = /** @type {string} */ (reader.readString()); + msg.setLicense(value); + break; + case 16: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFeaturedOnly(value); + break; + case 20: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setStarredOnly(value); + break; + case 17: + var value = /** @type {string} */ (reader.readString()); + msg.addToolkits(value); + break; + case 18: + var value = /** @type {string} */ (reader.readString()); + msg.addUseCases(value); + break; + case 21: + var value = /** @type {string} */ (reader.readString()); + msg.addLanguages(value); + break; + case 19: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + case 23: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDontFetchFromMain(value); + break; + case 26: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBookmark(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListModelsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListModelsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getSortAscending(); + if (f) { + writer.writeBool( + 10, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeBool( + 11, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 12)); + if (f != null) { + writer.writeBool( + 12, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeBool( + 13, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 24)); + if (f != null) { + writer.writeBool( + 24, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 25)); + if (f != null) { + writer.writeBool( + 25, + f + ); + } + f = message.getQuery(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } + f = message.getFilterByUserId(); + if (f) { + writer.writeBool( + 22, + f + ); + } + f = message.getModelTypeId(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } + f = message.getTrainedOnly(); + if (f) { + writer.writeBool( + 7, + f + ); + } + f = message.getInputFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 8, + f + ); + } + f = message.getOutputFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 9, + f + ); + } + f = message.getLicense(); + if (f.length > 0) { + writer.writeString( + 15, + f + ); + } + f = message.getFeaturedOnly(); + if (f) { + writer.writeBool( + 16, + f + ); + } + f = message.getStarredOnly(); + if (f) { + writer.writeBool( + 20, + f + ); + } + f = message.getToolkitsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 17, + f + ); + } + f = message.getUseCasesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 18, + f + ); + } + f = message.getLanguagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 21, + f + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 19, + f + ); + } + f = message.getDontFetchFromMain(); + if (f) { + writer.writeBool( + 23, + f + ); + } + f = message.getBookmark(); + if (f) { + writer.writeBool( + 26, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListModelsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this +*/ +proto.clarifai.api.ListModelsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListModelsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListModelsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool sort_ascending = 10; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getSortAscending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setSortAscending = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); +}; + + +/** + * optional bool sort_by_name = 11; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getSortByName = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setSortByName = function(value) { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearSortByName = function() { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.hasSortByName = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional bool sort_by_num_inputs = 12; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getSortByNumInputs = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setSortByNumInputs = function(value) { + return jspb.Message.setOneofField(this, 12, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearSortByNumInputs = function() { + return jspb.Message.setOneofField(this, 12, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.hasSortByNumInputs = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional bool sort_by_modified_at = 13; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getSortByModifiedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setSortByModifiedAt = function(value) { + return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearSortByModifiedAt = function() { + return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.hasSortByModifiedAt = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional bool sort_by_created_at = 24; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getSortByCreatedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setSortByCreatedAt = function(value) { + return jspb.Message.setOneofField(this, 24, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearSortByCreatedAt = function() { + return jspb.Message.setOneofField(this, 24, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.hasSortByCreatedAt = function() { + return jspb.Message.getField(this, 24) != null; +}; + + +/** + * optional bool sort_by_star_count = 25; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getSortByStarCount = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 25, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setSortByStarCount = function(value) { + return jspb.Message.setOneofField(this, 25, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearSortByStarCount = function() { + return jspb.Message.setOneofField(this, 25, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.hasSortByStarCount = function() { + return jspb.Message.getField(this, 25) != null; +}; + + +/** + * optional string query = 14; + * @return {string} + */ +proto.clarifai.api.ListModelsRequest.prototype.getQuery = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setQuery = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + +/** + * optional string name = 5; + * @return {string} + */ +proto.clarifai.api.ListModelsRequest.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + +/** + * optional bool filter_by_user_id = 22; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getFilterByUserId = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setFilterByUserId = function(value) { + return jspb.Message.setProto3BooleanField(this, 22, value); +}; + + +/** + * optional string model_type_id = 6; + * @return {string} + */ +proto.clarifai.api.ListModelsRequest.prototype.getModelTypeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setModelTypeId = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + +/** + * optional bool trained_only = 7; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getTrainedOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setTrainedOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); +}; + + +/** + * repeated string input_fields = 8; + * @return {!Array} + */ +proto.clarifai.api.ListModelsRequest.prototype.getInputFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setInputFieldsList = function(value) { + return jspb.Message.setField(this, 8, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.addInputFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearInputFieldsList = function() { + return this.setInputFieldsList([]); +}; + + +/** + * repeated string output_fields = 9; + * @return {!Array} + */ +proto.clarifai.api.ListModelsRequest.prototype.getOutputFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setOutputFieldsList = function(value) { + return jspb.Message.setField(this, 9, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.addOutputFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearOutputFieldsList = function() { + return this.setOutputFieldsList([]); +}; + + +/** + * optional string license = 15; + * @return {string} + */ +proto.clarifai.api.ListModelsRequest.prototype.getLicense = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setLicense = function(value) { + return jspb.Message.setProto3StringField(this, 15, value); +}; + + +/** + * optional bool featured_only = 16; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getFeaturedOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setFeaturedOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 16, value); +}; + + +/** + * optional bool starred_only = 20; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getStarredOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setStarredOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 20, value); +}; + + +/** + * repeated string toolkits = 17; + * @return {!Array} + */ +proto.clarifai.api.ListModelsRequest.prototype.getToolkitsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 17)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setToolkitsList = function(value) { + return jspb.Message.setField(this, 17, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.addToolkits = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 17, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearToolkitsList = function() { + return this.setToolkitsList([]); +}; + + +/** + * repeated string use_cases = 18; + * @return {!Array} + */ +proto.clarifai.api.ListModelsRequest.prototype.getUseCasesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 18)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setUseCasesList = function(value) { + return jspb.Message.setField(this, 18, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.addUseCases = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 18, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearUseCasesList = function() { + return this.setUseCasesList([]); +}; + + +/** + * repeated string languages = 21; + * @return {!Array} + */ +proto.clarifai.api.ListModelsRequest.prototype.getLanguagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setLanguagesList = function(value) { + return jspb.Message.setField(this, 21, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.addLanguages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 21, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearLanguagesList = function() { + return this.setLanguagesList([]); +}; + + +/** + * repeated string additional_fields = 19; + * @return {!Array} + */ +proto.clarifai.api.ListModelsRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 19)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 19, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 19, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + +/** + * optional bool dont_fetch_from_main = 23; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getDontFetchFromMain = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setDontFetchFromMain = function(value) { + return jspb.Message.setProto3BooleanField(this, 23, value); +}; + + +/** + * optional bool bookmark = 26; + * @return {boolean} + */ +proto.clarifai.api.ListModelsRequest.prototype.getBookmark = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 26, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelsRequest} returns this + */ +proto.clarifai.api.ListModelsRequest.prototype.setBookmark = function(value) { + return jspb.Message.setProto3BooleanField(this, 26, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetResourceCountsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetResourceCountsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetResourceCountsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetResourceCountsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetResourceCountsRequest} + */ +proto.clarifai.api.GetResourceCountsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetResourceCountsRequest; + return proto.clarifai.api.GetResourceCountsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetResourceCountsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetResourceCountsRequest} + */ +proto.clarifai.api.GetResourceCountsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetResourceCountsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetResourceCountsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetResourceCountsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetResourceCountsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.GetResourceCountsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetResourceCountsRequest} returns this +*/ +proto.clarifai.api.GetResourceCountsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetResourceCountsRequest} returns this + */ +proto.clarifai.api.GetResourceCountsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetResourceCountsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetResourceCountsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.GetResourceCountsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetResourceCountsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + datasets: jspb.Message.getFieldWithDefault(msg, 2, 0), + models: jspb.Message.getFieldWithDefault(msg, 3, 0), + workflows: jspb.Message.getFieldWithDefault(msg, 4, 0), + modules: jspb.Message.getFieldWithDefault(msg, 5, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.GetResourceCountsResponse} + */ +proto.clarifai.api.GetResourceCountsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.GetResourceCountsResponse; + return proto.clarifai.api.GetResourceCountsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.GetResourceCountsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.GetResourceCountsResponse} + */ +proto.clarifai.api.GetResourceCountsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt64()); + msg.setDatasets(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt64()); + msg.setModels(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt64()); + msg.setWorkflows(value); + break; + case 5: + var value = /** @type {number} */ (reader.readInt64()); + msg.setModules(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.GetResourceCountsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.GetResourceCountsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.GetResourceCountsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getDatasets(); + if (f !== 0) { + writer.writeInt64( + 2, + f + ); + } + f = message.getModels(); + if (f !== 0) { + writer.writeInt64( + 3, + f + ); + } + f = message.getWorkflows(); + if (f !== 0) { + writer.writeInt64( + 4, + f + ); + } + f = message.getModules(); + if (f !== 0) { + writer.writeInt64( + 5, + f + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.GetResourceCountsResponse} returns this +*/ +proto.clarifai.api.GetResourceCountsResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetResourceCountsResponse} returns this + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional int64 datasets = 2; + * @return {number} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.getDatasets = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GetResourceCountsResponse} returns this + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.setDatasets = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional int64 models = 3; + * @return {number} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.getModels = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GetResourceCountsResponse} returns this + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.setModels = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional int64 workflows = 4; + * @return {number} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.getWorkflows = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GetResourceCountsResponse} returns this + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.setWorkflows = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional int64 modules = 5; + * @return {number} + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.getModules = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.GetResourceCountsResponse} returns this + */ +proto.clarifai.api.GetResourceCountsResponse.prototype.setModules = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchModelToolkitsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModelToolkitsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchModelToolkitsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelToolkitsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + toolkitsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + action: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} + */ +proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchModelToolkitsRequest; + return proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchModelToolkitsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} + */ +proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addToolkits(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchModelToolkitsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchModelToolkitsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelToolkitsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getToolkitsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this +*/ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string toolkits = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.getToolkitsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.setToolkitsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.addToolkits = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.clearToolkitsList = function() { + return this.setToolkitsList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + */ +proto.clarifai.api.PatchModelToolkitsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModelCheckConsentsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchModelCheckConsentsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + action: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchModelCheckConsentsRequest; + return proto.clarifai.api.PatchModelCheckConsentsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchModelCheckConsentsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addCheckConsents(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchModelCheckConsentsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchModelCheckConsentsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getCheckConsentsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} returns this +*/ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} returns this + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} returns this + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string check_consents = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.getCheckConsentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} returns this + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.setCheckConsentsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} returns this + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.addCheckConsents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} returns this + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.clearCheckConsentsList = function() { + return this.setCheckConsentsList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelCheckConsentsRequest} returns this + */ +proto.clarifai.api.PatchModelCheckConsentsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchModelUseCasesRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModelUseCasesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchModelUseCasesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelUseCasesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + usecasesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + action: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} + */ +proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchModelUseCasesRequest; + return proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchModelUseCasesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} + */ +proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addUsecases(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchModelUseCasesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchModelUseCasesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelUseCasesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getUsecasesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this +*/ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string usecases = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.getUsecasesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.setUsecasesList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.addUsecases = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.clearUsecasesList = function() { + return this.setUsecasesList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + */ +proto.clarifai.api.PatchModelUseCasesRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchModelLanguagesRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModelLanguagesRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchModelLanguagesRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelLanguagesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + languagesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + action: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} + */ +proto.clarifai.api.PatchModelLanguagesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchModelLanguagesRequest; + return proto.clarifai.api.PatchModelLanguagesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchModelLanguagesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} + */ +proto.clarifai.api.PatchModelLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addLanguages(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchModelLanguagesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchModelLanguagesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PatchModelLanguagesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getLanguagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this +*/ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated string languages = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.getLanguagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.setLanguagesList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.addLanguages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.clearLanguagesList = function() { + return this.setLanguagesList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + */ +proto.clarifai.api.PatchModelLanguagesRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiModelToolkitResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelToolkitResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiModelToolkitResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiModelToolkitResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + toolkitsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiModelToolkitResponse} + */ +proto.clarifai.api.MultiModelToolkitResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiModelToolkitResponse; + return proto.clarifai.api.MultiModelToolkitResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiModelToolkitResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiModelToolkitResponse} + */ +proto.clarifai.api.MultiModelToolkitResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addToolkits(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiModelToolkitResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiModelToolkitResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiModelToolkitResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getToolkitsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this +*/ +proto.clarifai.api.MultiModelToolkitResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string toolkits = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.getToolkitsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.setToolkitsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.addToolkits = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + */ +proto.clarifai.api.MultiModelToolkitResponse.prototype.clearToolkitsList = function() { + return this.setToolkitsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiModelCheckConsentResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelCheckConsentResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiModelCheckConsentResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiModelCheckConsentResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + checkConsentsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiModelCheckConsentResponse} + */ +proto.clarifai.api.MultiModelCheckConsentResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiModelCheckConsentResponse; + return proto.clarifai.api.MultiModelCheckConsentResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiModelCheckConsentResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiModelCheckConsentResponse} + */ +proto.clarifai.api.MultiModelCheckConsentResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addCheckConsents(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiModelCheckConsentResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiModelCheckConsentResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiModelCheckConsentResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getStatus(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getCheckConsentsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, f ); @@ -4453,42 +35677,87 @@ proto.clarifai.api.Pagination.serializeBinaryToWriter = function(message, writer /** - * optional uint32 page = 1; - * @return {number} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.Pagination.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.Pagination} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelCheckConsentResponse} returns this +*/ +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiModelCheckConsentResponse} returns this */ -proto.clarifai.api.Pagination.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * optional uint32 per_page = 2; - * @return {number} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.Pagination.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {number} value - * @return {!proto.clarifai.api.Pagination} returns this + * repeated string check_consents = 2; + * @return {!Array} */ -proto.clarifai.api.Pagination.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.getCheckConsentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelCheckConsentResponse} returns this + */ +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.setCheckConsentsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiModelCheckConsentResponse} returns this + */ +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.addCheckConsents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelCheckConsentResponse} returns this + */ +proto.clarifai.api.MultiModelCheckConsentResponse.prototype.clearCheckConsentsList = function() { + return this.setCheckConsentsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiModelUseCaseResponse.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4504,8 +35773,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetAnnotationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetAnnotationRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModelUseCaseResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelUseCaseResponse.toObject(opt_includeInstance, this); }; @@ -4514,15 +35783,14 @@ proto.clarifai.api.GetAnnotationRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetAnnotationRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModelUseCaseResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAnnotationRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModelUseCaseResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - annotationId: jspb.Message.getFieldWithDefault(msg, 2, ""), - inputId: jspb.Message.getFieldWithDefault(msg, 3, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + usecasesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -4536,23 +35804,23 @@ proto.clarifai.api.GetAnnotationRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetAnnotationRequest} + * @return {!proto.clarifai.api.MultiModelUseCaseResponse} */ -proto.clarifai.api.GetAnnotationRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModelUseCaseResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetAnnotationRequest; - return proto.clarifai.api.GetAnnotationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModelUseCaseResponse; + return proto.clarifai.api.MultiModelUseCaseResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetAnnotationRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModelUseCaseResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetAnnotationRequest} + * @return {!proto.clarifai.api.MultiModelUseCaseResponse} */ -proto.clarifai.api.GetAnnotationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModelUseCaseResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4560,17 +35828,13 @@ proto.clarifai.api.GetAnnotationRequest.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setAnnotationId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setInputId(value); + msg.addUsecases(value); break; default: reader.skipField(); @@ -4585,9 +35849,9 @@ proto.clarifai.api.GetAnnotationRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetAnnotationRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiModelUseCaseResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetAnnotationRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiModelUseCaseResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4595,62 +35859,55 @@ proto.clarifai.api.GetAnnotationRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetAnnotationRequest} message + * @param {!proto.clarifai.api.MultiModelUseCaseResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAnnotationRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiModelUseCaseResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getAnnotationId(); + f = message.getUsecasesList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 2, f ); } - f = message.getInputId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.GetAnnotationRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiModelUseCaseResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetAnnotationRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this */ -proto.clarifai.api.GetAnnotationRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiModelUseCaseResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetAnnotationRequest} returns this + * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this */ -proto.clarifai.api.GetAnnotationRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiModelUseCaseResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -4658,44 +35915,45 @@ proto.clarifai.api.GetAnnotationRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetAnnotationRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiModelUseCaseResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string annotation_id = 2; - * @return {string} + * repeated string usecases = 2; + * @return {!Array} */ -proto.clarifai.api.GetAnnotationRequest.prototype.getAnnotationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.MultiModelUseCaseResponse.prototype.getUsecasesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetAnnotationRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this */ -proto.clarifai.api.GetAnnotationRequest.prototype.setAnnotationId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.MultiModelUseCaseResponse.prototype.setUsecasesList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * optional string input_id = 3; - * @return {string} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this */ -proto.clarifai.api.GetAnnotationRequest.prototype.getInputId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.MultiModelUseCaseResponse.prototype.addUsecases = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetAnnotationRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this */ -proto.clarifai.api.GetAnnotationRequest.prototype.setInputId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.MultiModelUseCaseResponse.prototype.clearUsecasesList = function() { + return this.setUsecasesList([]); }; @@ -4705,7 +35963,7 @@ proto.clarifai.api.GetAnnotationRequest.prototype.setInputId = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.ListAnnotationsRequest.repeatedFields_ = [2,3,9,10,5]; +proto.clarifai.api.MultiModelLanguageResponse.repeatedFields_ = [2]; @@ -4722,8 +35980,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListAnnotationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModelLanguageResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelLanguageResponse.toObject(opt_includeInstance, this); }; @@ -4732,23 +35990,14 @@ proto.clarifai.api.ListAnnotationsRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListAnnotationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModelLanguageResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAnnotationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModelLanguageResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - userIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, - modelVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, - statusesList: jspb.Message.toObjectList(msg.getStatusesList(), - proto_clarifai_api_status_status_pb.Status.toObject, includeInstance), - listAllAnnotations: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - page: jspb.Message.getFieldWithDefault(msg, 7, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 8, 0), - taskId: jspb.Message.getFieldWithDefault(msg, 11, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + languagesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -4762,23 +36011,23 @@ proto.clarifai.api.ListAnnotationsRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListAnnotationsRequest} + * @return {!proto.clarifai.api.MultiModelLanguageResponse} */ -proto.clarifai.api.ListAnnotationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModelLanguageResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListAnnotationsRequest; - return proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModelLanguageResponse; + return proto.clarifai.api.MultiModelLanguageResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListAnnotationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModelLanguageResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListAnnotationsRequest} + * @return {!proto.clarifai.api.MultiModelLanguageResponse} */ -proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModelLanguageResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4786,46 +36035,228 @@ proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addInputIds(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.addUserIds(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.addModelVersionIds(value); + msg.addLanguages(value); break; - case 5: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.addStatuses(value); + default: + reader.skipField(); break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setListAllAnnotations(value); + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiModelLanguageResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiModelLanguageResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiModelLanguageResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getLanguagesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this +*/ +proto.clarifai.api.MultiModelLanguageResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string languages = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.getLanguagesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.setLanguagesList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.addLanguages = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + */ +proto.clarifai.api.MultiModelLanguageResponse.prototype.clearLanguagesList = function() { + return this.setLanguagesList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostModelsRequest.repeatedFields_ = [3]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.PostModelsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostModelsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.PostModelsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f), + modelsList: jspb.Message.toObjectList(msg.getModelsList(), + proto_clarifai_api_resources_pb.Model.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostModelsRequest} + */ +proto.clarifai.api.PostModelsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostModelsRequest; + return proto.clarifai.api.PostModelsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostModelsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostModelsRequest} + */ +proto.clarifai.api.PostModelsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + case 2: + var value = new proto_clarifai_api_resources_pb.Model; + reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); + msg.setModel(value); break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskId(value); + case 3: + var value = new proto_clarifai_api_resources_pb.Model; + reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); + msg.addModels(value); break; default: reader.skipField(); @@ -4840,9 +36271,9 @@ proto.clarifai.api.ListAnnotationsRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModelsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModelsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4850,11 +36281,11 @@ proto.clarifai.api.ListAnnotationsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListAnnotationsRequest} message + * @param {!proto.clarifai.api.PostModelsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModelsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -4864,68 +36295,20 @@ proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter = function(mes proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getModel(); + if (f != null) { + writer.writeMessage( 2, - f - ); - } - f = message.getInputIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getUserIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 9, - f - ); - } - f = message.getModelVersionIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 10, - f + f, + proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter ); } - f = message.getStatusesList(); + f = message.getModelsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 5, + 3, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getListAllAnnotations(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getTaskId(); - if (f.length > 0) { - writer.writeString( - 11, - f + proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter ); } }; @@ -4935,7 +36318,7 @@ proto.clarifai.api.ListAnnotationsRequest.serializeBinaryToWriter = function(mes * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModelsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -4943,18 +36326,18 @@ proto.clarifai.api.ListAnnotationsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PostModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModelsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PostModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModelsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -4963,277 +36346,328 @@ proto.clarifai.api.ListAnnotationsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModelsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} + * optional Model model = 2; + * @return {?proto.clarifai.api.Model} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.PostModelsRequest.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this - */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.PostModelsRequest} returns this +*/ +proto.clarifai.api.PostModelsRequest.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.PostModelsRequest.prototype.clearModel = function() { + return this.setModel(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); +proto.clarifai.api.PostModelsRequest.prototype.hasModel = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * repeated string input_ids = 3; - * @return {!Array} + * repeated Model models = 3; + * @return {!Array} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getInputIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.PostModelsRequest.prototype.getModelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Model, 3)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this - */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setInputIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PostModelsRequest} returns this +*/ +proto.clarifai.api.PostModelsRequest.prototype.setModelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Model=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * @return {!proto.clarifai.api.Model} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.addInputIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.PostModelsRequest.prototype.addModels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Model, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PostModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.clearInputIdsList = function() { - return this.setInputIdsList([]); +proto.clarifai.api.PostModelsRequest.prototype.clearModelsList = function() { + return this.setModelsList([]); }; -/** - * repeated string user_ids = 9; - * @return {!Array} - */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); -}; - /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setUserIdsList = function(value) { - return jspb.Message.setField(this, 9, value || []); -}; +proto.clarifai.api.PatchModelsRequest.repeatedFields_ = [2]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.addUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 9, value, opt_index); +proto.clarifai.api.PatchModelsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModelsRequest.toObject(opt_includeInstance, this); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PatchModelsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAnnotationsRequest.prototype.clearUserIdsList = function() { - return this.setUserIdsList([]); +proto.clarifai.api.PatchModelsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelsList: jspb.Message.toObjectList(msg.getModelsList(), + proto_clarifai_api_resources_pb.Model.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * repeated string model_version_ids = 10; - * @return {!Array} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PatchModelsRequest} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getModelVersionIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +proto.clarifai.api.PatchModelsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PatchModelsRequest; + return proto.clarifai.api.PatchModelsRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PatchModelsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PatchModelsRequest} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setModelVersionIdsList = function(value) { - return jspb.Message.setField(this, 10, value || []); +proto.clarifai.api.PatchModelsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Model; + reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); + msg.addModels(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.addModelVersionIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +proto.clarifai.api.PatchModelsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PatchModelsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PatchModelsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAnnotationsRequest.prototype.clearModelVersionIdsList = function() { - return this.setModelVersionIdsList([]); +proto.clarifai.api.PatchModelsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } }; /** - * repeated status.Status statuses = 5; - * @return {!Array} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getStatusesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5)); +proto.clarifai.api.PatchModelsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setStatusesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.clarifai.api.status.Status=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.status.Status} - */ -proto.clarifai.api.ListAnnotationsRequest.prototype.addStatuses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.status.Status, opt_index); +proto.clarifai.api.PatchModelsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.clearStatusesList = function() { - return this.setStatusesList([]); +proto.clarifai.api.PatchModelsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * optional bool list_all_annotations = 6; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getListAllAnnotations = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this - */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setListAllAnnotations = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); +proto.clarifai.api.PatchModelsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 7; - * @return {number} + * repeated Model models = 2; + * @return {!Array} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +proto.clarifai.api.PatchModelsRequest.prototype.getModelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this - */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModelsRequest} returns this +*/ +proto.clarifai.api.PatchModelsRequest.prototype.setModelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional uint32 per_page = 8; - * @return {number} + * @param {!proto.clarifai.api.Model=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Model} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +proto.clarifai.api.PatchModelsRequest.prototype.addModels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Model, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); +proto.clarifai.api.PatchModelsRequest.prototype.clearModelsList = function() { + return this.setModelsList([]); }; /** - * optional string task_id = 11; + * optional string action = 3; * @return {string} */ -proto.clarifai.api.ListAnnotationsRequest.prototype.getTaskId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +proto.clarifai.api.PatchModelsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ListAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PatchModelsRequest} returns this */ -proto.clarifai.api.ListAnnotationsRequest.prototype.setTaskId = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); +proto.clarifai.api.PatchModelsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostAnnotationsRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -5249,8 +36683,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostAnnotationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.IdUpdateSource.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.IdUpdateSource.toObject(opt_includeInstance, this); }; @@ -5259,15 +36693,14 @@ proto.clarifai.api.PostAnnotationsRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostAnnotationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.IdUpdateSource} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAnnotationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.IdUpdateSource.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - annotationsList: jspb.Message.toObjectList(msg.getAnnotationsList(), - proto_clarifai_api_resources_pb.Annotation.toObject, includeInstance) + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + newId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -5281,23 +36714,23 @@ proto.clarifai.api.PostAnnotationsRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostAnnotationsRequest} + * @return {!proto.clarifai.api.IdUpdateSource} */ -proto.clarifai.api.PostAnnotationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.IdUpdateSource.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostAnnotationsRequest; - return proto.clarifai.api.PostAnnotationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.IdUpdateSource; + return proto.clarifai.api.IdUpdateSource.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostAnnotationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.IdUpdateSource} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostAnnotationsRequest} + * @return {!proto.clarifai.api.IdUpdateSource} */ -proto.clarifai.api.PostAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.IdUpdateSource.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5305,14 +36738,12 @@ proto.clarifai.api.PostAnnotationsRequest.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Annotation; - reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); - msg.addAnnotations(value); + var value = /** @type {string} */ (reader.readString()); + msg.setNewId(value); break; default: reader.skipField(); @@ -5327,9 +36758,9 @@ proto.clarifai.api.PostAnnotationsRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostAnnotationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.IdUpdateSource.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostAnnotationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.IdUpdateSource.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5337,103 +36768,62 @@ proto.clarifai.api.PostAnnotationsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostAnnotationsRequest} message + * @param {!proto.clarifai.api.IdUpdateSource} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.IdUpdateSource.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); - if (f != null) { - writer.writeMessage( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + f ); } - f = message.getAnnotationsList(); + f = message.getNewId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + f ); } }; -/** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} - */ -proto.clarifai.api.PostAnnotationsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); -}; - - -/** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this -*/ -proto.clarifai.api.PostAnnotationsRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this - */ -proto.clarifai.api.PostAnnotationsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostAnnotationsRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated Annotation annotations = 2; - * @return {!Array} +/** + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.PostAnnotationsRequest.prototype.getAnnotationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +proto.clarifai.api.IdUpdateSource.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this -*/ -proto.clarifai.api.PostAnnotationsRequest.prototype.setAnnotationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.IdUpdateSource} returns this + */ +proto.clarifai.api.IdUpdateSource.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * @param {!proto.clarifai.api.Annotation=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Annotation} + * optional string new_id = 2; + * @return {string} */ -proto.clarifai.api.PostAnnotationsRequest.prototype.addAnnotations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Annotation, opt_index); +proto.clarifai.api.IdUpdateSource.prototype.getNewId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostAnnotationsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.IdUpdateSource} returns this */ -proto.clarifai.api.PostAnnotationsRequest.prototype.clearAnnotationsList = function() { - return this.setAnnotationsList([]); +proto.clarifai.api.IdUpdateSource.prototype.setNewId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5443,7 +36833,7 @@ proto.clarifai.api.PostAnnotationsRequest.prototype.clearAnnotationsList = funct * @private {!Array} * @const */ -proto.clarifai.api.PatchAnnotationsRequest.repeatedFields_ = [2]; +proto.clarifai.api.PatchModelIdsRequest.repeatedFields_ = [3]; @@ -5460,8 +36850,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchAnnotationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchModelIdsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModelIdsRequest.toObject(opt_includeInstance, this); }; @@ -5470,16 +36860,16 @@ proto.clarifai.api.PatchAnnotationsRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchAnnotationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchModelIdsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAnnotationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchModelIdsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - annotationsList: jspb.Message.toObjectList(msg.getAnnotationsList(), - proto_clarifai_api_resources_pb.Annotation.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + idsList: jspb.Message.toObjectList(msg.getIdsList(), + proto.clarifai.api.IdUpdateSource.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -5493,23 +36883,23 @@ proto.clarifai.api.PatchAnnotationsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchAnnotationsRequest} + * @return {!proto.clarifai.api.PatchModelIdsRequest} */ -proto.clarifai.api.PatchAnnotationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchModelIdsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchAnnotationsRequest; - return proto.clarifai.api.PatchAnnotationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchModelIdsRequest; + return proto.clarifai.api.PatchModelIdsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchAnnotationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchModelIdsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchAnnotationsRequest} + * @return {!proto.clarifai.api.PatchModelIdsRequest} */ -proto.clarifai.api.PatchAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchModelIdsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5521,12 +36911,12 @@ proto.clarifai.api.PatchAnnotationsRequest.deserializeBinaryFromReader = functio reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; - case 2: - var value = new proto_clarifai_api_resources_pb.Annotation; - reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); - msg.addAnnotations(value); - break; case 3: + var value = new proto.clarifai.api.IdUpdateSource; + reader.readMessage(value,proto.clarifai.api.IdUpdateSource.deserializeBinaryFromReader); + msg.addIds(value); + break; + case 4: var value = /** @type {string} */ (reader.readString()); msg.setAction(value); break; @@ -5543,9 +36933,9 @@ proto.clarifai.api.PatchAnnotationsRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PatchModelIdsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchAnnotationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchModelIdsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5553,11 +36943,11 @@ proto.clarifai.api.PatchAnnotationsRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchAnnotationsRequest} message + * @param {!proto.clarifai.api.PatchModelIdsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchModelIdsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -5567,18 +36957,18 @@ proto.clarifai.api.PatchAnnotationsRequest.serializeBinaryToWriter = function(me proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAnnotationsList(); + f = message.getIdsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 2, + 3, f, - proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + proto.clarifai.api.IdUpdateSource.serializeBinaryToWriter ); } f = message.getAction(); if (f.length > 0) { writer.writeString( - 3, + 4, f ); } @@ -5589,7 +36979,7 @@ proto.clarifai.api.PatchAnnotationsRequest.serializeBinaryToWriter = function(me * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PatchModelIdsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -5597,18 +36987,18 @@ proto.clarifai.api.PatchAnnotationsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PatchModelIdsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PatchModelIdsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PatchModelIdsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PatchModelIdsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -5617,75 +37007,68 @@ proto.clarifai.api.PatchAnnotationsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PatchModelIdsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Annotation annotations = 2; - * @return {!Array} + * repeated IdUpdateSource ids = 3; + * @return {!Array} */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.getAnnotationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +proto.clarifai.api.PatchModelIdsRequest.prototype.getIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.IdUpdateSource, 3)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModelIdsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.setAnnotationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PatchModelIdsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.Annotation=} opt_value + * @param {!proto.clarifai.api.IdUpdateSource=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Annotation} + * @return {!proto.clarifai.api.IdUpdateSource} */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.addAnnotations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Annotation, opt_index); +proto.clarifai.api.PatchModelIdsRequest.prototype.addIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.IdUpdateSource, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PatchModelIdsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.clearAnnotationsList = function() { - return this.setAnnotationsList([]); +proto.clarifai.api.PatchModelIdsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; /** - * optional string action = 3; + * optional string action = 4; * @return {string} */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.PatchModelIdsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchAnnotationsRequest} returns this + * @return {!proto.clarifai.api.PatchModelIdsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.PatchModelIdsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.repeatedFields_ = [3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -5701,8 +37084,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchAnnotationsStatusRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteModelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteModelRequest.toObject(opt_includeInstance, this); }; @@ -5711,17 +37094,14 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchAnnotationsStatusRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteModelRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAnnotationsStatusRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteModelRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - statusCode: jspb.Message.getFieldWithDefault(msg, 2, 0), - userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - taskId: jspb.Message.getFieldWithDefault(msg, 4, ""), - action: jspb.Message.getFieldWithDefault(msg, 5, "") + modelId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -5735,23 +37115,23 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} + * @return {!proto.clarifai.api.DeleteModelRequest} */ -proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteModelRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchAnnotationsStatusRequest; - return proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteModelRequest; + return proto.clarifai.api.DeleteModelRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchAnnotationsStatusRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteModelRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} + * @return {!proto.clarifai.api.DeleteModelRequest} */ -proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteModelRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5764,20 +37144,8 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader = f msg.setUserAppId(value); break; case 2: - var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum()); - msg.setStatusCode(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addUserIds(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskId(value); - break; - case 5: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.setModelId(value); break; default: reader.skipField(); @@ -5792,9 +37160,9 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteModelRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteModelRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5802,11 +37170,11 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchAnnotationsStatusRequest} message + * @param {!proto.clarifai.api.DeleteModelRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteModelRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -5816,31 +37184,10 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter = funct proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getStatusCode(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getUserIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getTaskId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAction(); + f = message.getModelId(); if (f.length > 0) { writer.writeString( - 5, + 2, f ); } @@ -5851,7 +37198,7 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.serializeBinaryToWriter = funct * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteModelRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -5859,18 +37206,18 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getUserAppId = functi /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + * @return {!proto.clarifai.api.DeleteModelRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteModelRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + * @return {!proto.clarifai.api.DeleteModelRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteModelRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -5879,99 +37226,26 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserAppId = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteModelRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional status.StatusCode status_code = 2; - * @return {!proto.clarifai.api.status.StatusCode} - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getStatusCode = function() { - return /** @type {!proto.clarifai.api.status.StatusCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.clarifai.api.status.StatusCode} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setStatusCode = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * repeated string user_ids = 3; - * @return {!Array} - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setUserIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.addUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.clearUserIdsList = function() { - return this.setUserIdsList([]); -}; - - -/** - * optional string task_id = 4; - * @return {string} - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getTaskId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this - */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setTaskId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string action = 5; + * optional string model_id = 2; * @return {string} */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.DeleteModelRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusRequest} returns this + * @return {!proto.clarifai.api.DeleteModelRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.DeleteModelRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -5981,7 +37255,7 @@ proto.clarifai.api.PatchAnnotationsStatusRequest.prototype.setAction = function( * @private {!Array} * @const */ -proto.clarifai.api.PatchAnnotationsStatusResponse.repeatedFields_ = [2]; +proto.clarifai.api.DeleteModelsRequest.repeatedFields_ = [2]; @@ -5998,8 +37272,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchAnnotationsStatusResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteModelsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteModelsRequest.toObject(opt_includeInstance, this); }; @@ -6008,15 +37282,15 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteModelsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteModelsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - updatedCount: jspb.Message.getFieldWithDefault(msg, 3, 0) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + deleteAll: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -6030,23 +37304,23 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} + * @return {!proto.clarifai.api.DeleteModelsRequest} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteModelsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchAnnotationsStatusResponse; - return proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteModelsRequest; + return proto.clarifai.api.DeleteModelsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteModelsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} + * @return {!proto.clarifai.api.DeleteModelsRequest} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteModelsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6054,17 +37328,17 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addUserIds(value); + msg.addIds(value); break; case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setUpdatedCount(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeleteAll(value); break; default: reader.skipField(); @@ -6079,9 +37353,9 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteModelsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteModelsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6089,30 +37363,30 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchAnnotationsStatusResponse} message + * @param {!proto.clarifai.api.DeleteModelsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteModelsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getUserIdsList(); + f = message.getIdsList(); if (f.length > 0) { writer.writeRepeatedString( 2, f ); } - f = message.getUpdatedCount(); - if (f !== 0) { - writer.writeUint32( + f = message.getDeleteAll(); + if (f) { + writer.writeBool( 3, f ); @@ -6121,30 +37395,30 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.serializeBinaryToWriter = func /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.DeleteModelsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteModelsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setStatus = function(value) { +proto.clarifai.api.DeleteModelsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + * @return {!proto.clarifai.api.DeleteModelsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteModelsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -6152,25 +37426,25 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearStatus = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.hasStatus = function() { +proto.clarifai.api.DeleteModelsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string user_ids = 2; + * repeated string ids = 2; * @return {!Array} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUserIdsList = function() { +proto.clarifai.api.DeleteModelsRequest.prototype.getIdsList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + * @return {!proto.clarifai.api.DeleteModelsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUserIdsList = function(value) { +proto.clarifai.api.DeleteModelsRequest.prototype.setIdsList = function(value) { return jspb.Message.setField(this, 2, value || []); }; @@ -6178,37 +37452,37 @@ proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUserIdsList = fun /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + * @return {!proto.clarifai.api.DeleteModelsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.addUserIds = function(value, opt_index) { +proto.clarifai.api.DeleteModelsRequest.prototype.addIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + * @return {!proto.clarifai.api.DeleteModelsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.clearUserIdsList = function() { - return this.setUserIdsList([]); +proto.clarifai.api.DeleteModelsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; /** - * optional uint32 updated_count = 3; - * @return {number} + * optional bool delete_all = 3; + * @return {boolean} */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.getUpdatedCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.DeleteModelsRequest.prototype.getDeleteAll = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.PatchAnnotationsStatusResponse} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.DeleteModelsRequest} returns this */ -proto.clarifai.api.PatchAnnotationsStatusResponse.prototype.setUpdatedCount = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.DeleteModelsRequest.prototype.setDeleteAll = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; @@ -6228,8 +37502,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteAnnotationRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModelsSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelsSearchesRequest.toObject(opt_includeInstance, this); }; @@ -6238,15 +37512,15 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModelsSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAnnotationRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModelsSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - inputId: jspb.Message.getFieldWithDefault(msg, 2, ""), - annotationId: jspb.Message.getFieldWithDefault(msg, 3, "") + modelQuery: (f = msg.getModelQuery()) && proto_clarifai_api_resources_pb.ModelQuery.toObject(includeInstance, f), + pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) }; if (includeInstance) { @@ -6260,23 +37534,23 @@ proto.clarifai.api.DeleteAnnotationRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteAnnotationRequest} + * @return {!proto.clarifai.api.PostModelsSearchesRequest} */ -proto.clarifai.api.DeleteAnnotationRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModelsSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteAnnotationRequest; - return proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModelsSearchesRequest; + return proto.clarifai.api.PostModelsSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteAnnotationRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModelsSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteAnnotationRequest} + * @return {!proto.clarifai.api.PostModelsSearchesRequest} */ -proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModelsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6289,12 +37563,14 @@ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = functio msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setInputId(value); + var value = new proto_clarifai_api_resources_pb.ModelQuery; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelQuery.deserializeBinaryFromReader); + msg.setModelQuery(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAnnotationId(value); + var value = new proto.clarifai.api.Pagination; + reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); break; default: reader.skipField(); @@ -6309,9 +37585,9 @@ proto.clarifai.api.DeleteAnnotationRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModelsSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModelsSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6319,11 +37595,11 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteAnnotationRequest} message + * @param {!proto.clarifai.api.PostModelsSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModelsSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -6333,18 +37609,20 @@ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(me proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getInputId(); - if (f.length > 0) { - writer.writeString( + f = message.getModelQuery(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto_clarifai_api_resources_pb.ModelQuery.serializeBinaryToWriter ); } - f = message.getAnnotationId(); - if (f.length > 0) { - writer.writeString( + f = message.getPagination(); + if (f != null) { + writer.writeMessage( 3, - f + f, + proto.clarifai.api.Pagination.serializeBinaryToWriter ); } }; @@ -6354,7 +37632,7 @@ proto.clarifai.api.DeleteAnnotationRequest.serializeBinaryToWriter = function(me * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModelsSearchesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -6362,18 +37640,18 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this + * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModelsSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this + * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModelsSearchesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -6382,55 +37660,86 @@ proto.clarifai.api.DeleteAnnotationRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModelsSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string input_id = 2; - * @return {string} + * optional ModelQuery model_query = 2; + * @return {?proto.clarifai.api.ModelQuery} */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.getInputId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.PostModelsSearchesRequest.prototype.getModelQuery = function() { + return /** @type{?proto.clarifai.api.ModelQuery} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelQuery, 2)); +}; + + +/** + * @param {?proto.clarifai.api.ModelQuery|undefined} value + * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this +*/ +proto.clarifai.api.PostModelsSearchesRequest.prototype.setModelQuery = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this + */ +proto.clarifai.api.PostModelsSearchesRequest.prototype.clearModelQuery = function() { + return this.setModelQuery(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostModelsSearchesRequest.prototype.hasModelQuery = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Pagination pagination = 3; + * @return {?proto.clarifai.api.Pagination} + */ +proto.clarifai.api.PostModelsSearchesRequest.prototype.getPagination = function() { + return /** @type{?proto.clarifai.api.Pagination} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this - */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.setInputId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {?proto.clarifai.api.Pagination|undefined} value + * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this +*/ +proto.clarifai.api.PostModelsSearchesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * optional string annotation_id = 3; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.getAnnotationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.PostModelsSearchesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DeleteAnnotationRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DeleteAnnotationRequest.prototype.setAnnotationId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.PostModelsSearchesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 3) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.DeleteAnnotationsRequest.repeatedFields_ = [2,3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -6446,8 +37755,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteAnnotationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleModelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleModelResponse.toObject(opt_includeInstance, this); }; @@ -6456,15 +37765,14 @@ proto.clarifai.api.DeleteAnnotationsRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleModelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAnnotationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleModelResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - inputIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f) }; if (includeInstance) { @@ -6478,23 +37786,23 @@ proto.clarifai.api.DeleteAnnotationsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} + * @return {!proto.clarifai.api.SingleModelResponse} */ -proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleModelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteAnnotationsRequest; - return proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleModelResponse; + return proto.clarifai.api.SingleModelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteAnnotationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleModelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} + * @return {!proto.clarifai.api.SingleModelResponse} */ -proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleModelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6502,17 +37810,14 @@ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addInputIds(value); + var value = new proto_clarifai_api_resources_pb.Model; + reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); + msg.setModel(value); break; default: reader.skipField(); @@ -6527,9 +37832,9 @@ proto.clarifai.api.DeleteAnnotationsRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleModelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleModelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6537,62 +37842,56 @@ proto.clarifai.api.DeleteAnnotationsRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteAnnotationsRequest} message + * @param {!proto.clarifai.api.SingleModelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAnnotationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleModelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getModel(); + if (f != null) { + writer.writeMessage( 2, - f - ); - } - f = message.getInputIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f + f, + proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleModelResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleModelResponse} returns this */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleModelResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + * @return {!proto.clarifai.api.SingleModelResponse} returns this */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleModelResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -6600,85 +37899,55 @@ proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearUserAppId = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleModelResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} - */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this - */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + * optional Model model = 2; + * @return {?proto.clarifai.api.Model} */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.SingleModelResponse.prototype.getModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this - */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.SingleModelResponse} returns this +*/ +proto.clarifai.api.SingleModelResponse.prototype.setModel = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * repeated string input_ids = 3; - * @return {!Array} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleModelResponse} returns this */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.getInputIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.SingleModelResponse.prototype.clearModel = function() { + return this.setModel(undefined); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.setInputIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.SingleModelResponse.prototype.hasModel = function() { + return jspb.Message.getField(this, 2) != null; }; -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this - */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.addInputIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteAnnotationsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.DeleteAnnotationsRequest.prototype.clearInputIdsList = function() { - return this.setInputIdsList([]); -}; - - +proto.clarifai.api.MultiModelResponse.repeatedFields_ = [2]; @@ -6695,8 +37964,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleAnnotationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleAnnotationResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelResponse.toObject(opt_includeInstance, this); }; @@ -6705,14 +37974,15 @@ proto.clarifai.api.SingleAnnotationResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleAnnotationResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModelResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleAnnotationResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModelResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - annotation: (f = msg.getAnnotation()) && proto_clarifai_api_resources_pb.Annotation.toObject(includeInstance, f) + modelsList: jspb.Message.toObjectList(msg.getModelsList(), + proto_clarifai_api_resources_pb.Model.toObject, includeInstance) }; if (includeInstance) { @@ -6726,23 +37996,23 @@ proto.clarifai.api.SingleAnnotationResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleAnnotationResponse} + * @return {!proto.clarifai.api.MultiModelResponse} */ -proto.clarifai.api.SingleAnnotationResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModelResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleAnnotationResponse; - return proto.clarifai.api.SingleAnnotationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModelResponse; + return proto.clarifai.api.MultiModelResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleAnnotationResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModelResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleAnnotationResponse} + * @return {!proto.clarifai.api.MultiModelResponse} */ -proto.clarifai.api.SingleAnnotationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModelResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6755,9 +38025,9 @@ proto.clarifai.api.SingleAnnotationResponse.deserializeBinaryFromReader = functi msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Annotation; - reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); - msg.setAnnotation(value); + var value = new proto_clarifai_api_resources_pb.Model; + reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); + msg.addModels(value); break; default: reader.skipField(); @@ -6772,9 +38042,9 @@ proto.clarifai.api.SingleAnnotationResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleAnnotationResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiModelResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleAnnotationResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiModelResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6782,11 +38052,11 @@ proto.clarifai.api.SingleAnnotationResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleAnnotationResponse} message + * @param {!proto.clarifai.api.MultiModelResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleAnnotationResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiModelResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -6796,12 +38066,12 @@ proto.clarifai.api.SingleAnnotationResponse.serializeBinaryToWriter = function(m proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getAnnotation(); - if (f != null) { - writer.writeMessage( + f = message.getModelsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter ); } }; @@ -6811,7 +38081,7 @@ proto.clarifai.api.SingleAnnotationResponse.serializeBinaryToWriter = function(m * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleAnnotationResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiModelResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -6819,18 +38089,18 @@ proto.clarifai.api.SingleAnnotationResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this + * @return {!proto.clarifai.api.MultiModelResponse} returns this */ -proto.clarifai.api.SingleAnnotationResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiModelResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this + * @return {!proto.clarifai.api.MultiModelResponse} returns this */ -proto.clarifai.api.SingleAnnotationResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiModelResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -6839,45 +38109,46 @@ proto.clarifai.api.SingleAnnotationResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleAnnotationResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiModelResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Annotation annotation = 2; - * @return {?proto.clarifai.api.Annotation} + * repeated Model models = 2; + * @return {!Array} */ -proto.clarifai.api.SingleAnnotationResponse.prototype.getAnnotation = function() { - return /** @type{?proto.clarifai.api.Annotation} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +proto.clarifai.api.MultiModelResponse.prototype.getModelsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); }; /** - * @param {?proto.clarifai.api.Annotation|undefined} value - * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelResponse} returns this */ -proto.clarifai.api.SingleAnnotationResponse.prototype.setAnnotation = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.MultiModelResponse.prototype.setModelsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleAnnotationResponse} returns this + * @param {!proto.clarifai.api.Model=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Model} */ -proto.clarifai.api.SingleAnnotationResponse.prototype.clearAnnotation = function() { - return this.setAnnotation(undefined); +proto.clarifai.api.MultiModelResponse.prototype.addModels = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Model, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelResponse} returns this */ -proto.clarifai.api.SingleAnnotationResponse.prototype.hasAnnotation = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.MultiModelResponse.prototype.clearModelsList = function() { + return this.setModelsList([]); }; @@ -6887,7 +38158,7 @@ proto.clarifai.api.SingleAnnotationResponse.prototype.hasAnnotation = function() * @private {!Array} * @const */ -proto.clarifai.api.MultiAnnotationResponse.repeatedFields_ = [2]; +proto.clarifai.api.PatchModelVersionsRequest.repeatedFields_ = [3]; @@ -6904,8 +38175,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiAnnotationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiAnnotationResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchModelVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModelVersionsRequest.toObject(opt_includeInstance, this); }; @@ -6914,15 +38185,17 @@ proto.clarifai.api.MultiAnnotationResponse.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiAnnotationResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchModelVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAnnotationResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchModelVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - annotationsList: jspb.Message.toObjectList(msg.getAnnotationsList(), - proto_clarifai_api_resources_pb.Annotation.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(), + proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -6936,23 +38209,23 @@ proto.clarifai.api.MultiAnnotationResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiAnnotationResponse} + * @return {!proto.clarifai.api.PatchModelVersionsRequest} */ -proto.clarifai.api.MultiAnnotationResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchModelVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiAnnotationResponse; - return proto.clarifai.api.MultiAnnotationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchModelVersionsRequest; + return proto.clarifai.api.PatchModelVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiAnnotationResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchModelVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiAnnotationResponse} + * @return {!proto.clarifai.api.PatchModelVersionsRequest} */ -proto.clarifai.api.MultiAnnotationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6960,14 +38233,22 @@ proto.clarifai.api.MultiAnnotationResponse.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Annotation; - reader.readMessage(value,proto_clarifai_api_resources_pb.Annotation.deserializeBinaryFromReader); - msg.addAnnotations(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.ModelVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); + msg.addModelVersions(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); break; default: reader.skipField(); @@ -6982,9 +38263,9 @@ proto.clarifai.api.MultiAnnotationResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiAnnotationResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PatchModelVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiAnnotationResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchModelVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6992,56 +38273,70 @@ proto.clarifai.api.MultiAnnotationResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiAnnotationResponse} message + * @param {!proto.clarifai.api.PatchModelVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAnnotationResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchModelVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAnnotationsList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getModelVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, f, - proto_clarifai_api_resources_pb.Annotation.serializeBinaryToWriter + proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiAnnotationResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PatchModelVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this */ -proto.clarifai.api.MultiAnnotationResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PatchModelVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this + * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this */ -proto.clarifai.api.MultiAnnotationResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchModelVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -7049,56 +38344,85 @@ proto.clarifai.api.MultiAnnotationResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiAnnotationResponse.prototype.hasStatus = function() { +proto.clarifai.api.PatchModelVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Annotation annotations = 2; - * @return {!Array} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.MultiAnnotationResponse.prototype.getAnnotationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Annotation, 2)); +proto.clarifai.api.PatchModelVersionsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this + */ +proto.clarifai.api.PatchModelVersionsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated ModelVersion model_versions = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchModelVersionsRequest.prototype.getModelVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this */ -proto.clarifai.api.MultiAnnotationResponse.prototype.setAnnotationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PatchModelVersionsRequest.prototype.setModelVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.Annotation=} opt_value + * @param {!proto.clarifai.api.ModelVersion=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Annotation} + * @return {!proto.clarifai.api.ModelVersion} */ -proto.clarifai.api.MultiAnnotationResponse.prototype.addAnnotations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Annotation, opt_index); +proto.clarifai.api.PatchModelVersionsRequest.prototype.addModelVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersion, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiAnnotationResponse} returns this + * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this */ -proto.clarifai.api.MultiAnnotationResponse.prototype.clearAnnotationsList = function() { - return this.setAnnotationsList([]); +proto.clarifai.api.PatchModelVersionsRequest.prototype.clearModelVersionsList = function() { + return this.setModelVersionsList([]); }; +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchModelVersionsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this */ -proto.clarifai.api.GetAppRequest.repeatedFields_ = [2]; +proto.clarifai.api.PatchModelVersionsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + @@ -7115,8 +38439,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetAppRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetAppRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetModelVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModelVersionRequest.toObject(opt_includeInstance, this); }; @@ -7125,14 +38449,15 @@ proto.clarifai.api.GetAppRequest.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetAppRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetModelVersionRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAppRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetModelVersionRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -7146,23 +38471,23 @@ proto.clarifai.api.GetAppRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetAppRequest} + * @return {!proto.clarifai.api.GetModelVersionRequest} */ -proto.clarifai.api.GetAppRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetModelVersionRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetAppRequest; - return proto.clarifai.api.GetAppRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetModelVersionRequest; + return proto.clarifai.api.GetModelVersionRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetAppRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetModelVersionRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetAppRequest} + * @return {!proto.clarifai.api.GetModelVersionRequest} */ -proto.clarifai.api.GetAppRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetModelVersionRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7176,7 +38501,11 @@ proto.clarifai.api.GetAppRequest.deserializeBinaryFromReader = function(msg, rea break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addAdditionalFields(value); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); break; default: reader.skipField(); @@ -7191,9 +38520,9 @@ proto.clarifai.api.GetAppRequest.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetAppRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetModelVersionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetAppRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetModelVersionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7201,11 +38530,11 @@ proto.clarifai.api.GetAppRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetAppRequest} message + * @param {!proto.clarifai.api.GetModelVersionRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAppRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetModelVersionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -7215,13 +38544,20 @@ proto.clarifai.api.GetAppRequest.serializeBinaryToWriter = function(message, wri proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAdditionalFieldsList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } }; @@ -7229,7 +38565,7 @@ proto.clarifai.api.GetAppRequest.serializeBinaryToWriter = function(message, wri * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetAppRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetModelVersionRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -7237,18 +38573,18 @@ proto.clarifai.api.GetAppRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetAppRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionRequest} returns this */ -proto.clarifai.api.GetAppRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetModelVersionRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetAppRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionRequest} returns this */ -proto.clarifai.api.GetAppRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetModelVersionRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -7257,45 +38593,44 @@ proto.clarifai.api.GetAppRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetAppRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetModelVersionRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string additional_fields = 2; - * @return {!Array} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.GetAppRequest.prototype.getAdditionalFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.GetModelVersionRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.GetAppRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetModelVersionRequest} returns this */ -proto.clarifai.api.GetAppRequest.prototype.setAdditionalFieldsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.GetModelVersionRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.GetAppRequest} returns this + * optional string version_id = 3; + * @return {string} */ -proto.clarifai.api.GetAppRequest.prototype.addAdditionalFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.GetModelVersionRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.GetAppRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetModelVersionRequest} returns this */ -proto.clarifai.api.GetAppRequest.prototype.clearAdditionalFieldsList = function() { - return this.setAdditionalFieldsList([]); +proto.clarifai.api.GetModelVersionRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -7305,7 +38640,7 @@ proto.clarifai.api.GetAppRequest.prototype.clearAdditionalFieldsList = function( * @private {!Array} * @const */ -proto.clarifai.api.ListAppsRequest.repeatedFields_ = [10]; +proto.clarifai.api.ListModelVersionsRequest.repeatedFields_ = [5]; /** * Oneof group definitions for this message. Each group defines the field @@ -7315,22 +38650,24 @@ proto.clarifai.api.ListAppsRequest.repeatedFields_ = [10]; * @private {!Array>} * @const */ -proto.clarifai.api.ListAppsRequest.oneofGroups_ = [[6,7]]; +proto.clarifai.api.ListModelVersionsRequest.oneofGroups_ = [[8,9,10,11]]; /** * @enum {number} */ -proto.clarifai.api.ListAppsRequest.SortByCase = { +proto.clarifai.api.ListModelVersionsRequest.SortByCase = { SORT_BY_NOT_SET: 0, - SORT_BY_NAME: 6, - SORT_BY_MODIFIED_AT: 7 + SORT_BY_STATUS_CODE: 8, + SORT_BY_NUM_INPUTS: 9, + SORT_BY_DESCRIPTION: 10, + SORT_BY_CREATED_AT: 11 }; /** - * @return {proto.clarifai.api.ListAppsRequest.SortByCase} + * @return {proto.clarifai.api.ListModelVersionsRequest.SortByCase} */ -proto.clarifai.api.ListAppsRequest.prototype.getSortByCase = function() { - return /** @type {proto.clarifai.api.ListAppsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListAppsRequest.oneofGroups_[0])); +proto.clarifai.api.ListModelVersionsRequest.prototype.getSortByCase = function() { + return /** @type {proto.clarifai.api.ListModelVersionsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0])); }; @@ -7348,8 +38685,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListAppsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListAppsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModelVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelVersionsRequest.toObject(opt_includeInstance, this); }; @@ -7358,23 +38695,23 @@ proto.clarifai.api.ListAppsRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListAppsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListModelVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAppsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListModelVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), - sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - sortByName: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - query: jspb.Message.getFieldWithDefault(msg, 8, ""), - name: jspb.Message.getFieldWithDefault(msg, 4, ""), - featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0), + conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + trainedOnly: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + sortByStatusCode: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + sortByNumInputs: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + sortByDescription: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 11, false) }; if (includeInstance) { @@ -7388,23 +38725,23 @@ proto.clarifai.api.ListAppsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListAppsRequest} + * @return {!proto.clarifai.api.ListModelVersionsRequest} */ -proto.clarifai.api.ListAppsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListModelVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListAppsRequest; - return proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListModelVersionsRequest; + return proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListAppsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListModelVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListAppsRequest} + * @return {!proto.clarifai.api.ListModelVersionsRequest} */ -proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7417,44 +38754,44 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function(msg, r msg.setUserAppId(value); break; case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: var value = /** @type {number} */ (reader.readUint32()); msg.setPage(value); break; - case 3: + case 4: var value = /** @type {number} */ (reader.readUint32()); msg.setPerPage(value); break; case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortAscending(value); + var value = /** @type {string} */ (reader.readString()); + msg.addConceptIds(value); break; case 6: var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortByName(value); + msg.setTrainedOnly(value); break; case 7: var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortByModifiedAt(value); + msg.setSortAscending(value); break; case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByStatusCode(value); break; case 9: var value = /** @type {boolean} */ (reader.readBool()); - msg.setFeaturedOnly(value); + msg.setSortByNumInputs(value); break; - case 11: + case 10: var value = /** @type {boolean} */ (reader.readBool()); - msg.setStarredOnly(value); + msg.setSortByDescription(value); break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.addAdditionalFields(value); + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByCreatedAt(value); break; default: reader.skipField(); @@ -7469,9 +38806,9 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListAppsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListModelVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7479,11 +38816,11 @@ proto.clarifai.api.ListAppsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListAppsRequest} message + * @param {!proto.clarifai.api.ListModelVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -7493,73 +38830,73 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function(message, w proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } f = message.getPage(); if (f !== 0) { writer.writeUint32( - 2, + 3, f ); } f = message.getPerPage(); if (f !== 0) { writer.writeUint32( - 3, + 4, f ); } - f = message.getSortAscending(); - if (f) { - writer.writeBool( + f = message.getConceptIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 5, f ); } - f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); - if (f != null) { + f = message.getTrainedOnly(); + if (f) { writer.writeBool( 6, f ); } - f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); - if (f != null) { + f = message.getSortAscending(); + if (f) { writer.writeBool( 7, f ); } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool( 8, f ); } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getFeaturedOnly(); - if (f) { + f = /** @type {boolean} */ (jspb.Message.getField(message, 9)); + if (f != null) { writer.writeBool( 9, f ); } - f = message.getStarredOnly(); - if (f) { + f = /** @type {boolean} */ (jspb.Message.getField(message, 10)); + if (f != null) { writer.writeBool( - 11, + 10, f ); } - f = message.getAdditionalFieldsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 10, + f = /** @type {boolean} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeBool( + 11, f ); } @@ -7570,7 +38907,7 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function(message, w * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListAppsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListModelVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -7578,18 +38915,18 @@ proto.clarifai.api.ListAppsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListModelVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListModelVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -7598,89 +38935,162 @@ proto.clarifai.api.ListAppsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListModelVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.ListAppsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.ListModelVersionsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.ListModelVersionsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint32 per_page = 3; + * optional uint32 page = 3; * @return {number} */ -proto.clarifai.api.ListAppsRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListModelVersionsRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListModelVersionsRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional bool sort_ascending = 5; + * optional uint32 per_page = 4; + * @return {number} + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * repeated string concept_ids = 5; + * @return {!Array} + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.getConceptIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.setConceptIdsList = function(value) { + return jspb.Message.setField(this, 5, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.addConceptIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.clearConceptIdsList = function() { + return this.setConceptIdsList([]); +}; + + +/** + * optional bool trained_only = 6; * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.getSortAscending = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +proto.clarifai.api.ListModelVersionsRequest.prototype.getTrainedOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** * @param {boolean} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setSortAscending = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.clarifai.api.ListModelVersionsRequest.prototype.setTrainedOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); }; /** - * optional bool sort_by_name = 6; + * optional bool sort_ascending = 7; * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.getSortByName = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +proto.clarifai.api.ListModelVersionsRequest.prototype.getSortAscending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** * @param {boolean} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setSortByName = function(value) { - return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value); +proto.clarifai.api.ListModelVersionsRequest.prototype.setSortAscending = function(value) { + return jspb.Message.setProto3BooleanField(this, 7, value); +}; + + +/** + * optional bool sort_by_status_code = 8; + * @return {boolean} + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.getSortByStatusCode = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.setSortByStatusCode = function(value) { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], value); }; /** * Clears the field making it undefined. - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.clearSortByName = function() { - return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined); +proto.clarifai.api.ListModelVersionsRequest.prototype.clearSortByStatusCode = function() { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], undefined); }; @@ -7688,35 +39098,35 @@ proto.clarifai.api.ListAppsRequest.prototype.clearSortByName = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.hasSortByName = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.ListModelVersionsRequest.prototype.hasSortByStatusCode = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * optional bool sort_by_modified_at = 7; + * optional bool sort_by_num_inputs = 9; * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.getSortByModifiedAt = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.clarifai.api.ListModelVersionsRequest.prototype.getSortByNumInputs = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** * @param {boolean} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setSortByModifiedAt = function(value) { - return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], value); +proto.clarifai.api.ListModelVersionsRequest.prototype.setSortByNumInputs = function(value) { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], value); }; /** * Clears the field making it undefined. - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.clearSortByModifiedAt = function() { - return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListAppsRequest.oneofGroups_[0], undefined); +proto.clarifai.api.ListModelVersionsRequest.prototype.clearSortByNumInputs = function() { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], undefined); }; @@ -7724,128 +39134,295 @@ proto.clarifai.api.ListAppsRequest.prototype.clearSortByModifiedAt = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.hasSortByModifiedAt = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.ListModelVersionsRequest.prototype.hasSortByNumInputs = function() { + return jspb.Message.getField(this, 9) != null; }; /** - * optional string query = 8; - * @return {string} + * optional bool sort_by_description = 10; + * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.clarifai.api.ListModelVersionsRequest.prototype.getSortByDescription = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.clarifai.api.ListModelVersionsRequest.prototype.setSortByDescription = function(value) { + return jspb.Message.setOneofField(this, 10, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], value); }; /** - * optional string name = 4; - * @return {string} + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.ListModelVersionsRequest.prototype.clearSortByDescription = function() { + return jspb.Message.setOneofField(this, 10, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.hasSortByDescription = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional bool sort_by_created_at = 11; + * @return {boolean} + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.getSortByCreatedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.setSortByCreatedAt = function(value) { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.clearSortByCreatedAt = function() { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListModelVersionsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModelVersionsRequest.prototype.hasSortByCreatedAt = function() { + return jspb.Message.getField(this, 11) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.DeleteModelVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteModelVersionRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.DeleteModelVersionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteModelVersionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 3, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteModelVersionRequest} + */ +proto.clarifai.api.DeleteModelVersionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteModelVersionRequest; + return proto.clarifai.api.DeleteModelVersionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteModelVersionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteModelVersionRequest} + */ +proto.clarifai.api.DeleteModelVersionRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteModelVersionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteModelVersionRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteModelVersionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteModelVersionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListAppsRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.DeleteModelVersionRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * optional bool featured_only = 9; - * @return {boolean} - */ -proto.clarifai.api.ListAppsRequest.prototype.getFeaturedOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this +*/ +proto.clarifai.api.DeleteModelVersionRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.setFeaturedOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); +proto.clarifai.api.DeleteModelVersionRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * optional bool starred_only = 11; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAppsRequest.prototype.getStarredOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +proto.clarifai.api.DeleteModelVersionRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * optional string model_id = 3; + * @return {string} */ -proto.clarifai.api.ListAppsRequest.prototype.setStarredOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); +proto.clarifai.api.DeleteModelVersionRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * repeated string additional_fields = 10; - * @return {!Array} + * @param {string} value + * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.getAdditionalFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +proto.clarifai.api.DeleteModelVersionRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * optional string version_id = 4; + * @return {string} */ -proto.clarifai.api.ListAppsRequest.prototype.setAdditionalFieldsList = function(value) { - return jspb.Message.setField(this, 10, value || []); +proto.clarifai.api.DeleteModelVersionRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListAppsRequest} returns this - */ -proto.clarifai.api.ListAppsRequest.prototype.addAdditionalFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListAppsRequest} returns this + * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this */ -proto.clarifai.api.ListAppsRequest.prototype.clearAdditionalFieldsList = function() { - return this.setAdditionalFieldsList([]); +proto.clarifai.api.DeleteModelVersionRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostAppsRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -7861,8 +39438,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostAppsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostAppsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleModelVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleModelVersionResponse.toObject(opt_includeInstance, this); }; @@ -7871,15 +39448,14 @@ proto.clarifai.api.PostAppsRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostAppsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAppsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleModelVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - appsList: jspb.Message.toObjectList(msg.getAppsList(), - proto_clarifai_api_resources_pb.App.toObject, includeInstance) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f) }; if (includeInstance) { @@ -7893,23 +39469,23 @@ proto.clarifai.api.PostAppsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostAppsRequest} + * @return {!proto.clarifai.api.SingleModelVersionResponse} */ -proto.clarifai.api.PostAppsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleModelVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostAppsRequest; - return proto.clarifai.api.PostAppsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleModelVersionResponse; + return proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostAppsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostAppsRequest} + * @return {!proto.clarifai.api.SingleModelVersionResponse} */ -proto.clarifai.api.PostAppsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7917,14 +39493,14 @@ proto.clarifai.api.PostAppsRequest.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.App; - reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); - msg.addApps(value); + var value = new proto_clarifai_api_resources_pb.ModelVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); + msg.setModelVersion(value); break; default: reader.skipField(); @@ -7939,9 +39515,9 @@ proto.clarifai.api.PostAppsRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostAppsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleModelVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostAppsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7949,56 +39525,56 @@ proto.clarifai.api.PostAppsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostAppsRequest} message + * @param {!proto.clarifai.api.SingleModelVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAppsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getAppsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getModelVersion(); + if (f != null) { + writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostAppsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleModelVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostAppsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this */ -proto.clarifai.api.PostAppsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleModelVersionResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAppsRequest} returns this + * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this */ -proto.clarifai.api.PostAppsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleModelVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -8006,50 +39582,56 @@ proto.clarifai.api.PostAppsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostAppsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleModelVersionResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated App apps = 2; - * @return {!Array} + * optional ModelVersion model_version = 2; + * @return {?proto.clarifai.api.ModelVersion} */ -proto.clarifai.api.PostAppsRequest.prototype.getAppsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +proto.clarifai.api.SingleModelVersionResponse.prototype.getModelVersion = function() { + return /** @type{?proto.clarifai.api.ModelVersion} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostAppsRequest} returns this + * @param {?proto.clarifai.api.ModelVersion|undefined} value + * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this */ -proto.clarifai.api.PostAppsRequest.prototype.setAppsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.SingleModelVersionResponse.prototype.setModelVersion = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.App=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.App} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this */ -proto.clarifai.api.PostAppsRequest.prototype.addApps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.App, opt_index); +proto.clarifai.api.SingleModelVersionResponse.prototype.clearModelVersion = function() { + return this.setModelVersion(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostAppsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PostAppsRequest.prototype.clearAppsList = function() { - return this.setAppsList([]); +proto.clarifai.api.SingleModelVersionResponse.prototype.hasModelVersion = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiModelVersionResponse.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -8065,8 +39647,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteAppRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteAppRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModelVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelVersionResponse.toObject(opt_includeInstance, this); }; @@ -8075,13 +39657,15 @@ proto.clarifai.api.DeleteAppRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteAppRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAppRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModelVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(), + proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance) }; if (includeInstance) { @@ -8095,23 +39679,23 @@ proto.clarifai.api.DeleteAppRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteAppRequest} + * @return {!proto.clarifai.api.MultiModelVersionResponse} */ -proto.clarifai.api.DeleteAppRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModelVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteAppRequest; - return proto.clarifai.api.DeleteAppRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModelVersionResponse; + return proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteAppRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteAppRequest} + * @return {!proto.clarifai.api.MultiModelVersionResponse} */ -proto.clarifai.api.DeleteAppRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8119,9 +39703,14 @@ proto.clarifai.api.DeleteAppRequest.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ModelVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); + msg.addModelVersions(value); break; default: reader.skipField(); @@ -8136,9 +39725,9 @@ proto.clarifai.api.DeleteAppRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteAppRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiModelVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteAppRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8146,48 +39735,56 @@ proto.clarifai.api.DeleteAppRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteAppRequest} message + * @param {!proto.clarifai.api.MultiModelVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAppRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getModelVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DeleteAppRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiModelVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteAppRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this */ -proto.clarifai.api.DeleteAppRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiModelVersionResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteAppRequest} returns this + * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this */ -proto.clarifai.api.DeleteAppRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiModelVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -8195,18 +39792,56 @@ proto.clarifai.api.DeleteAppRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteAppRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiModelVersionResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * repeated ModelVersion model_versions = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiModelVersionResponse.prototype.getModelVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this +*/ +proto.clarifai.api.MultiModelVersionResponse.prototype.setModelVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ModelVersion=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelVersion} + */ +proto.clarifai.api.MultiModelVersionResponse.prototype.addModelVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelVersion, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this + */ +proto.clarifai.api.MultiModelVersionResponse.prototype.clearModelVersionsList = function() { + return this.setModelVersionsList([]); +}; + + /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.clarifai.api.PatchAppsRequest.repeatedFields_ = [2]; +proto.clarifai.api.PostModelVersionsRequest.repeatedFields_ = [3]; @@ -8223,8 +39858,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchAppsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchAppsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModelVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelVersionsRequest.toObject(opt_includeInstance, this); }; @@ -8233,18 +39868,18 @@ proto.clarifai.api.PatchAppsRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchAppsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAppsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModelVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - appsList: jspb.Message.toObjectList(msg.getAppsList(), - proto_clarifai_api_resources_pb.App.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, ""), - metadataAction: (f = msg.getMetadataAction()) && proto_clarifai_api_resources_pb.PatchAction.toObject(includeInstance, f), - reindex: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(), + proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance), + description: jspb.Message.getFieldWithDefault(msg, 8, ""), + evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -8258,23 +39893,23 @@ proto.clarifai.api.PatchAppsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchAppsRequest} + * @return {!proto.clarifai.api.PostModelVersionsRequest} */ -proto.clarifai.api.PatchAppsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModelVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchAppsRequest; - return proto.clarifai.api.PatchAppsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModelVersionsRequest; + return proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchAppsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchAppsRequest} + * @return {!proto.clarifai.api.PostModelVersionsRequest} */ -proto.clarifai.api.PatchAppsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8287,22 +39922,22 @@ proto.clarifai.api.PatchAppsRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.App; - reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); - msg.addApps(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + var value = new proto_clarifai_api_resources_pb.ModelVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); + msg.addModelVersions(value); break; - case 4: - var value = new proto_clarifai_api_resources_pb.PatchAction; - reader.readMessage(value,proto_clarifai_api_resources_pb.PatchAction.deserializeBinaryFromReader); - msg.setMetadataAction(value); + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setReindex(value); + case 10: + var value = new proto_clarifai_api_resources_pb.EvalInfo; + reader.readMessage(value,proto_clarifai_api_resources_pb.EvalInfo.deserializeBinaryFromReader); + msg.setEvalInfo(value); break; default: reader.skipField(); @@ -8317,9 +39952,9 @@ proto.clarifai.api.PatchAppsRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchAppsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModelVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchAppsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8327,11 +39962,11 @@ proto.clarifai.api.PatchAppsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchAppsRequest} message + * @param {!proto.clarifai.api.PostModelVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchAppsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -8341,34 +39976,34 @@ proto.clarifai.api.PatchAppsRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAppsList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getModelVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, f, - proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter ); } - f = message.getAction(); + f = message.getDescription(); if (f.length > 0) { writer.writeString( - 3, + 8, f ); } - f = message.getMetadataAction(); + f = message.getEvalInfo(); if (f != null) { writer.writeMessage( - 4, + 10, f, - proto_clarifai_api_resources_pb.PatchAction.serializeBinaryToWriter - ); - } - f = message.getReindex(); - if (f) { - writer.writeBool( - 5, - f + proto_clarifai_api_resources_pb.EvalInfo.serializeBinaryToWriter ); } }; @@ -8378,7 +40013,7 @@ proto.clarifai.api.PatchAppsRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchAppsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModelVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -8386,18 +40021,18 @@ proto.clarifai.api.PatchAppsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchAppsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this */ -proto.clarifai.api.PatchAppsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModelVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchAppsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this */ -proto.clarifai.api.PatchAppsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModelVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -8406,92 +40041,110 @@ proto.clarifai.api.PatchAppsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchAppsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModelVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated App apps = 2; - * @return {!Array} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.PatchAppsRequest.prototype.getAppsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +proto.clarifai.api.PostModelVersionsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchAppsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + */ +proto.clarifai.api.PostModelVersionsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated ModelVersion model_versions = 3; + * @return {!Array} + */ +proto.clarifai.api.PostModelVersionsRequest.prototype.getModelVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this */ -proto.clarifai.api.PatchAppsRequest.prototype.setAppsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PostModelVersionsRequest.prototype.setModelVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.App=} opt_value + * @param {!proto.clarifai.api.ModelVersion=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.App} + * @return {!proto.clarifai.api.ModelVersion} */ -proto.clarifai.api.PatchAppsRequest.prototype.addApps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.App, opt_index); +proto.clarifai.api.PostModelVersionsRequest.prototype.addModelVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersion, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchAppsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this */ -proto.clarifai.api.PatchAppsRequest.prototype.clearAppsList = function() { - return this.setAppsList([]); +proto.clarifai.api.PostModelVersionsRequest.prototype.clearModelVersionsList = function() { + return this.setModelVersionsList([]); }; /** - * optional string action = 3; + * optional string description = 8; * @return {string} */ -proto.clarifai.api.PatchAppsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.PostModelVersionsRequest.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchAppsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this */ -proto.clarifai.api.PatchAppsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.PostModelVersionsRequest.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * optional PatchAction metadata_action = 4; - * @return {?proto.clarifai.api.PatchAction} + * optional EvalInfo eval_info = 10; + * @return {?proto.clarifai.api.EvalInfo} */ -proto.clarifai.api.PatchAppsRequest.prototype.getMetadataAction = function() { - return /** @type{?proto.clarifai.api.PatchAction} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.PatchAction, 4)); +proto.clarifai.api.PostModelVersionsRequest.prototype.getEvalInfo = function() { + return /** @type{?proto.clarifai.api.EvalInfo} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.EvalInfo, 10)); }; /** - * @param {?proto.clarifai.api.PatchAction|undefined} value - * @return {!proto.clarifai.api.PatchAppsRequest} returns this -*/ -proto.clarifai.api.PatchAppsRequest.prototype.setMetadataAction = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {?proto.clarifai.api.EvalInfo|undefined} value + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this +*/ +proto.clarifai.api.PostModelVersionsRequest.prototype.setEvalInfo = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchAppsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this */ -proto.clarifai.api.PatchAppsRequest.prototype.clearMetadataAction = function() { - return this.setMetadataAction(undefined); +proto.clarifai.api.PostModelVersionsRequest.prototype.clearEvalInfo = function() { + return this.setEvalInfo(undefined); }; @@ -8499,29 +40152,18 @@ proto.clarifai.api.PatchAppsRequest.prototype.clearMetadataAction = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchAppsRequest.prototype.hasMetadataAction = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.PostModelVersionsRequest.prototype.hasEvalInfo = function() { + return jspb.Message.getField(this, 10) != null; }; -/** - * optional bool reindex = 5; - * @return {boolean} - */ -proto.clarifai.api.PatchAppsRequest.prototype.getReindex = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - /** - * @param {boolean} value - * @return {!proto.clarifai.api.PatchAppsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.PatchAppsRequest.prototype.setReindex = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.repeatedFields_ = [3]; @@ -8538,8 +40180,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostAppsSearchesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.toObject(opt_includeInstance, this); }; @@ -8548,15 +40190,16 @@ proto.clarifai.api.PostAppsSearchesRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostAppsSearchesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAppsSearchesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - appQuery: (f = msg.getAppQuery()) && proto_clarifai_api_resources_pb.AppQuery.toObject(includeInstance, f), - pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + publicationsList: jspb.Message.toObjectList(msg.getPublicationsList(), + proto.clarifai.api.WorkflowVersionUnPublishRequest.toObject, includeInstance) }; if (includeInstance) { @@ -8570,23 +40213,23 @@ proto.clarifai.api.PostAppsSearchesRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostAppsSearchesRequest} + * @return {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} */ -proto.clarifai.api.PostAppsSearchesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostAppsSearchesRequest; - return proto.clarifai.api.PostAppsSearchesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostWorkflowVersionsUnPublishRequest; + return proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostAppsSearchesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostAppsSearchesRequest} + * @return {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} */ -proto.clarifai.api.PostAppsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8599,14 +40242,13 @@ proto.clarifai.api.PostAppsSearchesRequest.deserializeBinaryFromReader = functio msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.AppQuery; - reader.readMessage(value,proto_clarifai_api_resources_pb.AppQuery.deserializeBinaryFromReader); - msg.setAppQuery(value); + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); break; case 3: - var value = new proto.clarifai.api.Pagination; - reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); + var value = new proto.clarifai.api.WorkflowVersionUnPublishRequest; + reader.readMessage(value,proto.clarifai.api.WorkflowVersionUnPublishRequest.deserializeBinaryFromReader); + msg.addPublications(value); break; default: reader.skipField(); @@ -8621,9 +40263,9 @@ proto.clarifai.api.PostAppsSearchesRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostAppsSearchesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8631,11 +40273,11 @@ proto.clarifai.api.PostAppsSearchesRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostAppsSearchesRequest} message + * @param {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAppsSearchesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -8645,20 +40287,19 @@ proto.clarifai.api.PostAppsSearchesRequest.serializeBinaryToWriter = function(me proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAppQuery(); - if (f != null) { - writer.writeMessage( + f = message.getWorkflowId(); + if (f.length > 0) { + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.AppQuery.serializeBinaryToWriter + f ); } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( + f = message.getPublicationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, f, - proto.clarifai.api.Pagination.serializeBinaryToWriter + proto.clarifai.api.WorkflowVersionUnPublishRequest.serializeBinaryToWriter ); } }; @@ -8668,7 +40309,7 @@ proto.clarifai.api.PostAppsSearchesRequest.serializeBinaryToWriter = function(me * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -8676,18 +40317,18 @@ proto.clarifai.api.PostAppsSearchesRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} returns this */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} returns this */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -8696,86 +40337,75 @@ proto.clarifai.api.PostAppsSearchesRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional AppQuery app_query = 2; - * @return {?proto.clarifai.api.AppQuery} - */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.getAppQuery = function() { - return /** @type{?proto.clarifai.api.AppQuery} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.AppQuery, 2)); -}; - - -/** - * @param {?proto.clarifai.api.AppQuery|undefined} value - * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this -*/ -proto.clarifai.api.PostAppsSearchesRequest.prototype.setAppQuery = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + * optional string workflow_id = 2; + * @return {string} */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.clearAppQuery = function() { - return this.setAppQuery(undefined); +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} returns this */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.hasAppQuery = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional Pagination pagination = 3; - * @return {?proto.clarifai.api.Pagination} + * repeated WorkflowVersionUnPublishRequest publications = 3; + * @return {!Array} */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.getPagination = function() { - return /** @type{?proto.clarifai.api.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.getPublicationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowVersionUnPublishRequest, 3)); }; /** - * @param {?proto.clarifai.api.Pagination|undefined} value - * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} returns this */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.setPublicationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAppsSearchesRequest} returns this + * @param {!proto.clarifai.api.WorkflowVersionUnPublishRequest=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.WorkflowVersionUnPublishRequest} */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.addPublications = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.WorkflowVersionUnPublishRequest, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostWorkflowVersionsUnPublishRequest} returns this */ -proto.clarifai.api.PostAppsSearchesRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.PostWorkflowVersionsUnPublishRequest.prototype.clearPublicationsList = function() { + return this.setPublicationsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostWorkflowVersionsPublishRequest.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -8791,8 +40421,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleAppResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleAppResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostWorkflowVersionsPublishRequest.toObject(opt_includeInstance, this); }; @@ -8801,14 +40431,16 @@ proto.clarifai.api.SingleAppResponse.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleAppResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleAppResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostWorkflowVersionsPublishRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - app: (f = msg.getApp()) && proto_clarifai_api_resources_pb.App.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + publicationsList: jspb.Message.toObjectList(msg.getPublicationsList(), + proto.clarifai.api.WorkflowVersionPublishRequest.toObject, includeInstance) }; if (includeInstance) { @@ -8822,23 +40454,23 @@ proto.clarifai.api.SingleAppResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleAppResponse} + * @return {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} */ -proto.clarifai.api.SingleAppResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostWorkflowVersionsPublishRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleAppResponse; - return proto.clarifai.api.SingleAppResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostWorkflowVersionsPublishRequest; + return proto.clarifai.api.PostWorkflowVersionsPublishRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleAppResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleAppResponse} + * @return {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} */ -proto.clarifai.api.SingleAppResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostWorkflowVersionsPublishRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -8846,14 +40478,18 @@ proto.clarifai.api.SingleAppResponse.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.App; - reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); - msg.setApp(value); + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); + break; + case 3: + var value = new proto.clarifai.api.WorkflowVersionPublishRequest; + reader.readMessage(value,proto.clarifai.api.WorkflowVersionPublishRequest.deserializeBinaryFromReader); + msg.addPublications(value); break; default: reader.skipField(); @@ -8868,9 +40504,9 @@ proto.clarifai.api.SingleAppResponse.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleAppResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleAppResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostWorkflowVersionsPublishRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -8878,56 +40514,63 @@ proto.clarifai.api.SingleAppResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleAppResponse} message + * @param {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleAppResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostWorkflowVersionsPublishRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getApp(); - if (f != null) { - writer.writeMessage( + f = message.getWorkflowId(); + if (f.length > 0) { + writer.writeString( 2, + f + ); + } + f = message.getPublicationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, f, - proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + proto.clarifai.api.WorkflowVersionPublishRequest.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleAppResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleAppResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} returns this */ -proto.clarifai.api.SingleAppResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleAppResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} returns this */ -proto.clarifai.api.SingleAppResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -8935,55 +40578,67 @@ proto.clarifai.api.SingleAppResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleAppResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional App app = 2; - * @return {?proto.clarifai.api.App} + * optional string workflow_id = 2; + * @return {string} */ -proto.clarifai.api.SingleAppResponse.prototype.getApp = function() { - return /** @type{?proto.clarifai.api.App} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.clarifai.api.App|undefined} value - * @return {!proto.clarifai.api.SingleAppResponse} returns this -*/ -proto.clarifai.api.SingleAppResponse.prototype.setApp = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} returns this + */ +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleAppResponse} returns this + * repeated WorkflowVersionPublishRequest publications = 3; + * @return {!Array} */ -proto.clarifai.api.SingleAppResponse.prototype.clearApp = function() { - return this.setApp(undefined); +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.getPublicationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.WorkflowVersionPublishRequest, 3)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.SingleAppResponse.prototype.hasApp = function() { - return jspb.Message.getField(this, 2) != null; + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} returns this +*/ +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.setPublicationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; +/** + * @param {!proto.clarifai.api.WorkflowVersionPublishRequest=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.WorkflowVersionPublishRequest} + */ +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.addPublications = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.WorkflowVersionPublishRequest, opt_index); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostWorkflowVersionsPublishRequest} returns this */ -proto.clarifai.api.MultiAppResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostWorkflowVersionsPublishRequest.prototype.clearPublicationsList = function() { + return this.setPublicationsList([]); +}; + + @@ -9000,8 +40655,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiAppResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiAppResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.WorkflowVersionPublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.WorkflowVersionPublishRequest.toObject(opt_includeInstance, this); }; @@ -9010,15 +40665,13 @@ proto.clarifai.api.MultiAppResponse.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiAppResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.WorkflowVersionPublishRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAppResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.WorkflowVersionPublishRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - appsList: jspb.Message.toObjectList(msg.getAppsList(), - proto_clarifai_api_resources_pb.App.toObject, includeInstance) + versionId: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -9032,23 +40685,23 @@ proto.clarifai.api.MultiAppResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiAppResponse} + * @return {!proto.clarifai.api.WorkflowVersionPublishRequest} */ -proto.clarifai.api.MultiAppResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.WorkflowVersionPublishRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiAppResponse; - return proto.clarifai.api.MultiAppResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.WorkflowVersionPublishRequest; + return proto.clarifai.api.WorkflowVersionPublishRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiAppResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.WorkflowVersionPublishRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiAppResponse} + * @return {!proto.clarifai.api.WorkflowVersionPublishRequest} */ -proto.clarifai.api.MultiAppResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.WorkflowVersionPublishRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9056,14 +40709,8 @@ proto.clarifai.api.MultiAppResponse.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 2: - var value = new proto_clarifai_api_resources_pb.App; - reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); - msg.addApps(value); + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); break; default: reader.skipField(); @@ -9078,9 +40725,9 @@ proto.clarifai.api.MultiAppResponse.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiAppResponse.prototype.serializeBinary = function() { +proto.clarifai.api.WorkflowVersionPublishRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiAppResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.WorkflowVersionPublishRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9088,103 +40735,167 @@ proto.clarifai.api.MultiAppResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiAppResponse} message + * @param {!proto.clarifai.api.WorkflowVersionPublishRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAppResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.WorkflowVersionPublishRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getAppsList(); + f = message.getVersionId(); if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto_clarifai_api_resources_pb.App.serializeBinaryToWriter + writer.writeString( + 1, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional string version_id = 1; + * @return {string} */ -proto.clarifai.api.MultiAppResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.WorkflowVersionPublishRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiAppResponse} returns this -*/ -proto.clarifai.api.MultiAppResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.clarifai.api.WorkflowVersionPublishRequest} returns this + */ +proto.clarifai.api.WorkflowVersionPublishRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiAppResponse} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.MultiAppResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.WorkflowVersionUnPublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.WorkflowVersionUnPublishRequest.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.WorkflowVersionUnPublishRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAppResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.WorkflowVersionUnPublishRequest.toObject = function(includeInstance, msg) { + var f, obj = { + versionId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * repeated App apps = 2; - * @return {!Array} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.WorkflowVersionUnPublishRequest} */ -proto.clarifai.api.MultiAppResponse.prototype.getAppsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.App, 2)); +proto.clarifai.api.WorkflowVersionUnPublishRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.WorkflowVersionUnPublishRequest; + return proto.clarifai.api.WorkflowVersionUnPublishRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiAppResponse} returns this -*/ -proto.clarifai.api.MultiAppResponse.prototype.setAppsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.WorkflowVersionUnPublishRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.WorkflowVersionUnPublishRequest} + */ +proto.clarifai.api.WorkflowVersionUnPublishRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {!proto.clarifai.api.App=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.App} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.MultiAppResponse.prototype.addApps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.App, opt_index); +proto.clarifai.api.WorkflowVersionUnPublishRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.WorkflowVersionUnPublishRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiAppResponse} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.WorkflowVersionUnPublishRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAppResponse.prototype.clearAppsList = function() { - return this.setAppsList([]); +proto.clarifai.api.WorkflowVersionUnPublishRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string version_id = 1; + * @return {string} + */ +proto.clarifai.api.WorkflowVersionUnPublishRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.WorkflowVersionUnPublishRequest} returns this + */ +proto.clarifai.api.WorkflowVersionUnPublishRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9204,8 +40915,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListCollaboratorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelVersionPublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelVersionPublishRequest.toObject(opt_includeInstance, this); }; @@ -9214,14 +40925,13 @@ proto.clarifai.api.ListCollaboratorsRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListCollaboratorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelVersionPublishRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListCollaboratorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelVersionPublishRequest.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - listAllCollaborators: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + versionId: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -9235,23 +40945,23 @@ proto.clarifai.api.ListCollaboratorsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListCollaboratorsRequest} + * @return {!proto.clarifai.api.ModelVersionPublishRequest} */ -proto.clarifai.api.ListCollaboratorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelVersionPublishRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListCollaboratorsRequest; - return proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelVersionPublishRequest; + return proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListCollaboratorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelVersionPublishRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListCollaboratorsRequest} + * @return {!proto.clarifai.api.ModelVersionPublishRequest} */ -proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9259,13 +40969,8 @@ proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setListAllCollaborators(value); + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); break; default: reader.skipField(); @@ -9280,9 +40985,9 @@ proto.clarifai.api.ListCollaboratorsRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListCollaboratorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ModelVersionPublishRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListCollaboratorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelVersionPublishRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9290,82 +40995,37 @@ proto.clarifai.api.ListCollaboratorsRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListCollaboratorsRequest} message + * @param {!proto.clarifai.api.ModelVersionPublishRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelVersionPublishRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); - if (f != null) { - writer.writeMessage( + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getListAllCollaborators(); - if (f) { - writer.writeBool( - 2, f ); } }; -/** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} - */ -proto.clarifai.api.ListCollaboratorsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); -}; - - -/** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this -*/ -proto.clarifai.api.ListCollaboratorsRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this - */ -proto.clarifai.api.ListCollaboratorsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.ListCollaboratorsRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bool list_all_collaborators = 2; - * @return {boolean} +/** + * optional string version_id = 1; + * @return {string} */ -proto.clarifai.api.ListCollaboratorsRequest.prototype.getListAllCollaborators = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.clarifai.api.ModelVersionPublishRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListCollaboratorsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.ModelVersionPublishRequest} returns this */ -proto.clarifai.api.ListCollaboratorsRequest.prototype.setListAllCollaborators = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.clarifai.api.ModelVersionPublishRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9375,7 +41035,7 @@ proto.clarifai.api.ListCollaboratorsRequest.prototype.setListAllCollaborators = * @private {!Array} * @const */ -proto.clarifai.api.PostCollaboratorsRequest.repeatedFields_ = [2]; +proto.clarifai.api.PostModelVersionsPublishRequest.repeatedFields_ = [3]; @@ -9392,8 +41052,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostCollaboratorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelVersionsPublishRequest.toObject(opt_includeInstance, this); }; @@ -9402,15 +41062,16 @@ proto.clarifai.api.PostCollaboratorsRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostCollaboratorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModelVersionsPublishRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostCollaboratorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModelVersionsPublishRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), - proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + publicationsList: jspb.Message.toObjectList(msg.getPublicationsList(), + proto.clarifai.api.ModelVersionPublishRequest.toObject, includeInstance) }; if (includeInstance) { @@ -9424,23 +41085,23 @@ proto.clarifai.api.PostCollaboratorsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostCollaboratorsRequest} + * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} */ -proto.clarifai.api.PostCollaboratorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostCollaboratorsRequest; - return proto.clarifai.api.PostCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModelVersionsPublishRequest; + return proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostCollaboratorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModelVersionsPublishRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostCollaboratorsRequest} + * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} */ -proto.clarifai.api.PostCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9453,9 +41114,13 @@ proto.clarifai.api.PostCollaboratorsRequest.deserializeBinaryFromReader = functi msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Collaborator; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collaborator.deserializeBinaryFromReader); - msg.addCollaborators(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = new proto.clarifai.api.ModelVersionPublishRequest; + reader.readMessage(value,proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader); + msg.addPublications(value); break; default: reader.skipField(); @@ -9470,9 +41135,9 @@ proto.clarifai.api.PostCollaboratorsRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostCollaboratorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModelVersionsPublishRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9480,11 +41145,11 @@ proto.clarifai.api.PostCollaboratorsRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostCollaboratorsRequest} message + * @param {!proto.clarifai.api.PostModelVersionsPublishRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModelVersionsPublishRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -9494,12 +41159,19 @@ proto.clarifai.api.PostCollaboratorsRequest.serializeBinaryToWriter = function(m proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getCollaboratorsList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getPublicationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, f, - proto_clarifai_api_resources_pb.Collaborator.serializeBinaryToWriter + proto.clarifai.api.ModelVersionPublishRequest.serializeBinaryToWriter ); } }; @@ -9509,7 +41181,7 @@ proto.clarifai.api.PostCollaboratorsRequest.serializeBinaryToWriter = function(m * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -9517,18 +41189,18 @@ proto.clarifai.api.PostCollaboratorsRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -9537,57 +41209,68 @@ proto.clarifai.api.PostCollaboratorsRequest.prototype.clearUserAppId = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Collaborator collaborators = 2; - * @return {!Array} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.getCollaboratorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaborator, 2)); +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this + */ +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated ModelVersionPublishRequest publications = 3; + * @return {!Array} + */ +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.getPublicationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelVersionPublishRequest, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.setCollaboratorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.setPublicationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.Collaborator=} opt_value + * @param {!proto.clarifai.api.ModelVersionPublishRequest=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaborator} + * @return {!proto.clarifai.api.ModelVersionPublishRequest} */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.addCollaborators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaborator, opt_index); +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.addPublications = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersionPublishRequest, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this */ -proto.clarifai.api.PostCollaboratorsRequest.prototype.clearCollaboratorsList = function() { - return this.setCollaboratorsList([]); +proto.clarifai.api.PostModelVersionsPublishRequest.prototype.clearPublicationsList = function() { + return this.setPublicationsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PatchCollaboratorsRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -9603,8 +41286,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchCollaboratorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ModelVersionUnpublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ModelVersionUnpublishRequest.toObject(opt_includeInstance, this); }; @@ -9613,16 +41296,13 @@ proto.clarifai.api.PatchCollaboratorsRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchCollaboratorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ModelVersionUnpublishRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchCollaboratorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ModelVersionUnpublishRequest.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), - proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + versionId: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -9636,23 +41316,23 @@ proto.clarifai.api.PatchCollaboratorsRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchCollaboratorsRequest} + * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} */ -proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchCollaboratorsRequest; - return proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ModelVersionUnpublishRequest; + return proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchCollaboratorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ModelVersionUnpublishRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchCollaboratorsRequest} + * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} */ -proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9660,18 +41340,8 @@ proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); - break; - case 2: - var value = new proto_clarifai_api_resources_pb.Collaborator; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collaborator.deserializeBinaryFromReader); - msg.addCollaborators(value); - break; - case 3: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.setVersionId(value); break; default: reader.skipField(); @@ -9686,9 +41356,9 @@ proto.clarifai.api.PatchCollaboratorsRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ModelVersionUnpublishRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchCollaboratorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ModelVersionUnpublishRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9696,32 +41366,16 @@ proto.clarifai.api.PatchCollaboratorsRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchCollaboratorsRequest} message + * @param {!proto.clarifai.api.ModelVersionUnpublishRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ModelVersionUnpublishRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getCollaboratorsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto_clarifai_api_resources_pb.Collaborator.serializeBinaryToWriter - ); - } - f = message.getAction(); + f = message.getVersionId(); if (f.length > 0) { writer.writeString( - 3, + 1, f ); } @@ -9729,95 +41383,20 @@ proto.clarifai.api.PatchCollaboratorsRequest.serializeBinaryToWriter = function( /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} - */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); -}; - - -/** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this -*/ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this - */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated Collaborator collaborators = 2; - * @return {!Array} - */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.getCollaboratorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaborator, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this -*/ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.setCollaboratorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clarifai.api.Collaborator=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaborator} - */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.addCollaborators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaborator, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this - */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.clearCollaboratorsList = function() { - return this.setCollaboratorsList([]); -}; - - -/** - * optional string action = 3; + * optional string version_id = 1; * @return {string} */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.ModelVersionUnpublishRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} returns this */ -proto.clarifai.api.PatchCollaboratorsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.ModelVersionUnpublishRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -9827,7 +41406,7 @@ proto.clarifai.api.PatchCollaboratorsRequest.prototype.setAction = function(valu * @private {!Array} * @const */ -proto.clarifai.api.DeleteCollaboratorsRequest.repeatedFields_ = [2,3]; +proto.clarifai.api.PostModelVersionsUnPublishRequest.repeatedFields_ = [3]; @@ -9844,8 +41423,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteCollaboratorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelVersionsUnPublishRequest.toObject(opt_includeInstance, this); }; @@ -9854,15 +41433,16 @@ proto.clarifai.api.DeleteCollaboratorsRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteCollaboratorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModelVersionsUnPublishRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteCollaboratorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModelVersionsUnPublishRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - collaboratorIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - userEmailsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + publicationsList: jspb.Message.toObjectList(msg.getPublicationsList(), + proto.clarifai.api.ModelVersionUnpublishRequest.toObject, includeInstance) }; if (includeInstance) { @@ -9876,23 +41456,23 @@ proto.clarifai.api.DeleteCollaboratorsRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} + * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} */ -proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteCollaboratorsRequest; - return proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModelVersionsUnPublishRequest; + return proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteCollaboratorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModelVersionsUnPublishRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} + * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} */ -proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -9906,11 +41486,12 @@ proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinaryFromReader = func break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addCollaboratorIds(value); + msg.setModelId(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addUserEmails(value); + var value = new proto.clarifai.api.ModelVersionUnpublishRequest; + reader.readMessage(value,proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader); + msg.addPublications(value); break; default: reader.skipField(); @@ -9925,9 +41506,9 @@ proto.clarifai.api.DeleteCollaboratorsRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteCollaboratorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModelVersionsUnPublishRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -9935,11 +41516,11 @@ proto.clarifai.api.DeleteCollaboratorsRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteCollaboratorsRequest} message + * @param {!proto.clarifai.api.PostModelVersionsUnPublishRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteCollaboratorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModelVersionsUnPublishRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -9949,18 +41530,19 @@ proto.clarifai.api.DeleteCollaboratorsRequest.serializeBinaryToWriter = function proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getCollaboratorIdsList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); } - f = message.getUserEmailsList(); + f = message.getPublicationsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 3, - f + f, + proto.clarifai.api.ModelVersionUnpublishRequest.serializeBinaryToWriter ); } }; @@ -9970,7 +41552,7 @@ proto.clarifai.api.DeleteCollaboratorsRequest.serializeBinaryToWriter = function * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -9978,18 +41560,18 @@ proto.clarifai.api.DeleteCollaboratorsRequest.prototype.getUserAppId = function( /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -9998,82 +41580,64 @@ proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearUserAppId = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string collaborator_ids = 2; - * @return {!Array} - */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.getCollaboratorIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.setCollaboratorIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this - */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.addCollaboratorIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearCollaboratorIdsList = function() { - return this.setCollaboratorIdsList([]); +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * repeated string user_emails = 3; - * @return {!Array} + * repeated ModelVersionUnpublishRequest publications = 3; + * @return {!Array} */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.getUserEmailsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.getPublicationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelVersionUnpublishRequest, 3)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this - */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.setUserEmailsList = function(value) { - return jspb.Message.setField(this, 3, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this +*/ +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.setPublicationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.ModelVersionUnpublishRequest=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.addUserEmails = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.addPublications = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersionUnpublishRequest, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteCollaboratorsRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this */ -proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearUserEmailsList = function() { - return this.setUserEmailsList([]); +proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.clearPublicationsList = function() { + return this.setPublicationsList([]); }; @@ -10083,7 +41647,7 @@ proto.clarifai.api.DeleteCollaboratorsRequest.prototype.clearUserEmailsList = fu * @private {!Array} * @const */ -proto.clarifai.api.MultiCollaboratorsResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostEvaluationsRequest.repeatedFields_ = [2]; @@ -10100,8 +41664,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiCollaboratorsResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostEvaluationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostEvaluationsRequest.toObject(opt_includeInstance, this); }; @@ -10110,15 +41674,15 @@ proto.clarifai.api.MultiCollaboratorsResponse.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiCollaboratorsResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostEvaluationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiCollaboratorsResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostEvaluationsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - collaboratorsList: jspb.Message.toObjectList(msg.getCollaboratorsList(), - proto_clarifai_api_resources_pb.Collaborator.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + evalMetricsList: jspb.Message.toObjectList(msg.getEvalMetricsList(), + proto_clarifai_api_resources_pb.EvalMetrics.toObject, includeInstance) }; if (includeInstance) { @@ -10132,23 +41696,23 @@ proto.clarifai.api.MultiCollaboratorsResponse.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiCollaboratorsResponse} + * @return {!proto.clarifai.api.PostEvaluationsRequest} */ -proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostEvaluationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiCollaboratorsResponse; - return proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostEvaluationsRequest; + return proto.clarifai.api.PostEvaluationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiCollaboratorsResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostEvaluationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiCollaboratorsResponse} + * @return {!proto.clarifai.api.PostEvaluationsRequest} */ -proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostEvaluationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10156,14 +41720,14 @@ proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Collaborator; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collaborator.deserializeBinaryFromReader); - msg.addCollaborators(value); + var value = new proto_clarifai_api_resources_pb.EvalMetrics; + reader.readMessage(value,proto_clarifai_api_resources_pb.EvalMetrics.deserializeBinaryFromReader); + msg.addEvalMetrics(value); break; default: reader.skipField(); @@ -10178,9 +41742,9 @@ proto.clarifai.api.MultiCollaboratorsResponse.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostEvaluationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiCollaboratorsResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostEvaluationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10188,56 +41752,56 @@ proto.clarifai.api.MultiCollaboratorsResponse.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiCollaboratorsResponse} message + * @param {!proto.clarifai.api.PostEvaluationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiCollaboratorsResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostEvaluationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getCollaboratorsList(); + f = message.getEvalMetricsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Collaborator.serializeBinaryToWriter + proto_clarifai_api_resources_pb.EvalMetrics.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostEvaluationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostEvaluationsRequest} returns this */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostEvaluationsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this + * @return {!proto.clarifai.api.PostEvaluationsRequest} returns this */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostEvaluationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -10245,52 +41809,83 @@ proto.clarifai.api.MultiCollaboratorsResponse.prototype.clearStatus = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostEvaluationsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Collaborator collaborators = 2; - * @return {!Array} + * repeated EvalMetrics eval_metrics = 2; + * @return {!Array} */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.getCollaboratorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaborator, 2)); +proto.clarifai.api.PostEvaluationsRequest.prototype.getEvalMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.EvalMetrics, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostEvaluationsRequest} returns this */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.setCollaboratorsList = function(value) { +proto.clarifai.api.PostEvaluationsRequest.prototype.setEvalMetricsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Collaborator=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaborator} + * @param {!proto.clarifai.api.EvalMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.EvalMetrics} + */ +proto.clarifai.api.PostEvaluationsRequest.prototype.addEvalMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.EvalMetrics, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostEvaluationsRequest} returns this + */ +proto.clarifai.api.PostEvaluationsRequest.prototype.clearEvalMetricsList = function() { + return this.setEvalMetricsList([]); +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.ListEvaluationsRequest.oneofGroups_ = [[5,6,7,8,9,10,11]]; + +/** + * @enum {number} */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.addCollaborators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaborator, opt_index); +proto.clarifai.api.ListEvaluationsRequest.SortByCase = { + SORT_BY_NOT_SET: 0, + SORT_BY_APP_ID: 5, + SORT_BY_ROC_AUC: 6, + SORT_BY_F1: 7, + SORT_BY_CREATED_AT: 8, + SORT_BY_MEAN_AVG_PRECISION: 9, + SORT_BY_PRECISION: 10, + SORT_BY_RECALL: 11 }; - /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiCollaboratorsResponse} returns this + * @return {proto.clarifai.api.ListEvaluationsRequest.SortByCase} */ -proto.clarifai.api.MultiCollaboratorsResponse.prototype.clearCollaboratorsList = function() { - return this.setCollaboratorsList([]); +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByCase = function() { + return /** @type {proto.clarifai.api.ListEvaluationsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0])); }; - - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -10304,8 +41899,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListCollaborationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListCollaborationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListEvaluationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListEvaluationsRequest.toObject(opt_includeInstance, this); }; @@ -10314,15 +41909,23 @@ proto.clarifai.api.ListCollaborationsRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListCollaborationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListEvaluationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListCollaborationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListEvaluationsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + sortByAppId: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + sortByRocAuc: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + sortByF1: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + sortByMeanAvgPrecision: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + sortByPrecision: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), + sortByRecall: jspb.Message.getBooleanFieldWithDefault(msg, 11, false) }; if (includeInstance) { @@ -10336,23 +41939,23 @@ proto.clarifai.api.ListCollaborationsRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListCollaborationsRequest} + * @return {!proto.clarifai.api.ListEvaluationsRequest} */ -proto.clarifai.api.ListCollaborationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListEvaluationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListCollaborationsRequest; - return proto.clarifai.api.ListCollaborationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListEvaluationsRequest; + return proto.clarifai.api.ListEvaluationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListCollaborationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListEvaluationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListCollaborationsRequest} + * @return {!proto.clarifai.api.ListEvaluationsRequest} */ -proto.clarifai.api.ListCollaborationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListEvaluationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10372,6 +41975,38 @@ proto.clarifai.api.ListCollaborationsRequest.deserializeBinaryFromReader = funct var value = /** @type {number} */ (reader.readUint32()); msg.setPerPage(value); break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortAscending(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByAppId(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByRocAuc(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByF1(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByCreatedAt(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByMeanAvgPrecision(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByPrecision(value); + break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByRecall(value); + break; default: reader.skipField(); break; @@ -10385,9 +42020,9 @@ proto.clarifai.api.ListCollaborationsRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListCollaborationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListEvaluationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListCollaborationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListEvaluationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10395,11 +42030,11 @@ proto.clarifai.api.ListCollaborationsRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListCollaborationsRequest} message + * @param {!proto.clarifai.api.ListEvaluationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListCollaborationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListEvaluationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -10423,6 +42058,62 @@ proto.clarifai.api.ListCollaborationsRequest.serializeBinaryToWriter = function( f ); } + f = message.getSortAscending(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeBool( + 5, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBool( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool( + 8, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeBool( + 9, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeBool( + 10, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeBool( + 11, + f + ); + } }; @@ -10430,7 +42121,7 @@ proto.clarifai.api.ListCollaborationsRequest.serializeBinaryToWriter = function( * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListCollaborationsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListEvaluationsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -10438,18 +42129,18 @@ proto.clarifai.api.ListCollaborationsRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this */ -proto.clarifai.api.ListCollaborationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListEvaluationsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this */ -proto.clarifai.api.ListCollaborationsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListEvaluationsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -10458,7 +42149,7 @@ proto.clarifai.api.ListCollaborationsRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListCollaborationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListEvaluationsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -10467,16 +42158,16 @@ proto.clarifai.api.ListCollaborationsRequest.prototype.hasUserAppId = function() * optional uint32 page = 2; * @return {number} */ -proto.clarifai.api.ListCollaborationsRequest.prototype.getPage = function() { +proto.clarifai.api.ListEvaluationsRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this */ -proto.clarifai.api.ListCollaborationsRequest.prototype.setPage = function(value) { +proto.clarifai.api.ListEvaluationsRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -10485,27 +42176,290 @@ proto.clarifai.api.ListCollaborationsRequest.prototype.setPage = function(value) * optional uint32 per_page = 3; * @return {number} */ -proto.clarifai.api.ListCollaborationsRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListEvaluationsRequest.prototype.getPerPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListCollaborationsRequest} returns this + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this */ -proto.clarifai.api.ListCollaborationsRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListEvaluationsRequest.prototype.setPerPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; +/** + * optional bool sort_ascending = 4; + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortAscending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortAscending = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional bool sort_by_app_id = 5; + * @return {boolean} */ -proto.clarifai.api.MultiCollaborationsResponse.repeatedFields_ = [2]; +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByAppId = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortByAppId = function(value) { + return jspb.Message.setOneofField(this, 5, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.clearSortByAppId = function() { + return jspb.Message.setOneofField(this, 5, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.hasSortByAppId = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional bool sort_by_roc_auc = 6; + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByRocAuc = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortByRocAuc = function(value) { + return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.clearSortByRocAuc = function() { + return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.hasSortByRocAuc = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional bool sort_by_f1 = 7; + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByF1 = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortByF1 = function(value) { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.clearSortByF1 = function() { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.hasSortByF1 = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bool sort_by_created_at = 8; + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByCreatedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortByCreatedAt = function(value) { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.clearSortByCreatedAt = function() { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.hasSortByCreatedAt = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional bool sort_by_mean_avg_precision = 9; + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByMeanAvgPrecision = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortByMeanAvgPrecision = function(value) { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.clearSortByMeanAvgPrecision = function() { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.hasSortByMeanAvgPrecision = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional bool sort_by_precision = 10; + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByPrecision = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortByPrecision = function(value) { + return jspb.Message.setOneofField(this, 10, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.clearSortByPrecision = function() { + return jspb.Message.setOneofField(this, 10, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.hasSortByPrecision = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional bool sort_by_recall = 11; + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.getSortByRecall = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.setSortByRecall = function(value) { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListEvaluationsRequest} returns this + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.clearSortByRecall = function() { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListEvaluationsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListEvaluationsRequest.prototype.hasSortByRecall = function() { + return jspb.Message.getField(this, 11) != null; +}; + + @@ -10522,8 +42476,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiCollaborationsResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.GetEvaluationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetEvaluationRequest.toObject(opt_includeInstance, this); }; @@ -10532,15 +42486,15 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiCollaborationsResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetEvaluationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiCollaborationsResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetEvaluationRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - collaborationsList: jspb.Message.toObjectList(msg.getCollaborationsList(), - proto_clarifai_api_resources_pb.Collaboration.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + evaluationId: jspb.Message.getFieldWithDefault(msg, 2, ""), + fields: (f = msg.getFields()) && proto_clarifai_api_resources_pb.FieldsValue.toObject(includeInstance, f) }; if (includeInstance) { @@ -10554,23 +42508,23 @@ proto.clarifai.api.MultiCollaborationsResponse.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiCollaborationsResponse} + * @return {!proto.clarifai.api.GetEvaluationRequest} */ -proto.clarifai.api.MultiCollaborationsResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.GetEvaluationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiCollaborationsResponse; - return proto.clarifai.api.MultiCollaborationsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetEvaluationRequest; + return proto.clarifai.api.GetEvaluationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiCollaborationsResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetEvaluationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiCollaborationsResponse} + * @return {!proto.clarifai.api.GetEvaluationRequest} */ -proto.clarifai.api.MultiCollaborationsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetEvaluationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10578,14 +42532,18 @@ proto.clarifai.api.MultiCollaborationsResponse.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Collaboration; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collaboration.deserializeBinaryFromReader); - msg.addCollaborations(value); + var value = /** @type {string} */ (reader.readString()); + msg.setEvaluationId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.FieldsValue; + reader.readMessage(value,proto_clarifai_api_resources_pb.FieldsValue.deserializeBinaryFromReader); + msg.setFields(value); break; default: reader.skipField(); @@ -10600,9 +42558,9 @@ proto.clarifai.api.MultiCollaborationsResponse.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.serializeBinary = function() { +proto.clarifai.api.GetEvaluationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiCollaborationsResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetEvaluationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10610,56 +42568,63 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiCollaborationsResponse} message + * @param {!proto.clarifai.api.GetEvaluationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiCollaborationsResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetEvaluationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getCollaborationsList(); + f = message.getEvaluationId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getFields(); + if (f != null) { + writer.writeMessage( + 3, f, - proto_clarifai_api_resources_pb.Collaboration.serializeBinaryToWriter + proto_clarifai_api_resources_pb.FieldsValue.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.GetEvaluationRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetEvaluationRequest} returns this */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.setStatus = function(value) { +proto.clarifai.api.GetEvaluationRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this + * @return {!proto.clarifai.api.GetEvaluationRequest} returns this */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.GetEvaluationRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -10667,50 +42632,74 @@ proto.clarifai.api.MultiCollaborationsResponse.prototype.clearStatus = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.hasStatus = function() { +proto.clarifai.api.GetEvaluationRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Collaboration collaborations = 2; - * @return {!Array} + * optional string evaluation_id = 2; + * @return {string} */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.getCollaborationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collaboration, 2)); +proto.clarifai.api.GetEvaluationRequest.prototype.getEvaluationId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetEvaluationRequest} returns this + */ +proto.clarifai.api.GetEvaluationRequest.prototype.setEvaluationId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional FieldsValue fields = 3; + * @return {?proto.clarifai.api.FieldsValue} + */ +proto.clarifai.api.GetEvaluationRequest.prototype.getFields = function() { + return /** @type{?proto.clarifai.api.FieldsValue} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.FieldsValue, 3)); +}; + + +/** + * @param {?proto.clarifai.api.FieldsValue|undefined} value + * @return {!proto.clarifai.api.GetEvaluationRequest} returns this */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.setCollaborationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.GetEvaluationRequest.prototype.setFields = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.Collaboration=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Collaboration} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetEvaluationRequest} returns this */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.addCollaborations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collaboration, opt_index); +proto.clarifai.api.GetEvaluationRequest.prototype.clearFields = function() { + return this.setFields(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiCollaborationsResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiCollaborationsResponse.prototype.clearCollaborationsList = function() { - return this.setCollaborationsList([]); +proto.clarifai.api.GetEvaluationRequest.prototype.hasFields = function() { + return jspb.Message.getField(this, 3) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostModelVersionEvaluationsRequest.repeatedFields_ = [4]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -10726,8 +42715,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetStatusCodeRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelVersionEvaluationsRequest.toObject(opt_includeInstance, this); }; @@ -10736,13 +42725,17 @@ proto.clarifai.api.GetStatusCodeRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModelVersionEvaluationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModelVersionEvaluationsRequest.toObject = function(includeInstance, msg) { var f, obj = { - statusCodeId: jspb.Message.getFieldWithDefault(msg, 1, "") + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + evalMetricsList: jspb.Message.toObjectList(msg.getEvalMetricsList(), + proto_clarifai_api_resources_pb.EvalMetrics.toObject, includeInstance) }; if (includeInstance) { @@ -10756,23 +42749,23 @@ proto.clarifai.api.GetStatusCodeRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetStatusCodeRequest} + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} */ -proto.clarifai.api.GetStatusCodeRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModelVersionEvaluationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetStatusCodeRequest; - return proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModelVersionEvaluationsRequest; + return proto.clarifai.api.PostModelVersionEvaluationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetStatusCodeRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModelVersionEvaluationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetStatusCodeRequest} + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} */ -proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModelVersionEvaluationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -10780,8 +42773,22 @@ proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: var value = /** @type {string} */ (reader.readString()); - msg.setStatusCodeId(value); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersionId(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.EvalMetrics; + reader.readMessage(value,proto_clarifai_api_resources_pb.EvalMetrics.deserializeBinaryFromReader); + msg.addEvalMetrics(value); break; default: reader.skipField(); @@ -10796,9 +42803,9 @@ proto.clarifai.api.GetStatusCodeRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModelVersionEvaluationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -10806,138 +42813,153 @@ proto.clarifai.api.GetStatusCodeRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetStatusCodeRequest} message + * @param {!proto.clarifai.api.PostModelVersionEvaluationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetStatusCodeRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModelVersionEvaluationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatusCodeId(); + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); if (f.length > 0) { writer.writeString( - 1, + 2, + f + ); + } + f = message.getModelVersionId(); + if (f.length > 0) { + writer.writeString( + 3, f ); } + f = message.getEvalMetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto_clarifai_api_resources_pb.EvalMetrics.serializeBinaryToWriter + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} returns this +*/ +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional string status_code_id = 1; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} returns this */ -proto.clarifai.api.GetStatusCodeRequest.prototype.getStatusCodeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetStatusCodeRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.GetStatusCodeRequest.prototype.setStatusCodeId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} returns this */ -proto.clarifai.api.ListStatusCodesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListStatusCodesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string model_version_id = 3; + * @return {string} */ -proto.clarifai.api.ListStatusCodesRequest.toObject = function(includeInstance, msg) { - var f, obj = { +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; - }; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +/** + * @param {string} value + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} returns this + */ +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListStatusCodesRequest} + * repeated EvalMetrics eval_metrics = 4; + * @return {!Array} */ -proto.clarifai.api.ListStatusCodesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListStatusCodesRequest; - return proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.getEvalMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.EvalMetrics, 4)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ListStatusCodesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListStatusCodesRequest} - */ -proto.clarifai.api.ListStatusCodesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; + * @param {!Array} value + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} returns this +*/ +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.setEvalMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!proto.clarifai.api.EvalMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.EvalMetrics} */ -proto.clarifai.api.ListStatusCodesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.addEvalMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.EvalMetrics, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListStatusCodesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostModelVersionEvaluationsRequest} returns this */ -proto.clarifai.api.ListStatusCodesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; +proto.clarifai.api.PostModelVersionEvaluationsRequest.prototype.clearEvalMetricsList = function() { + return this.setEvalMetricsList([]); }; @@ -10957,8 +42979,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleStatusCodeResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelVersionEvaluationsRequest.toObject(opt_includeInstance, this); }; @@ -10967,13 +42989,17 @@ proto.clarifai.api.SingleStatusCodeResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListModelVersionEvaluationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListModelVersionEvaluationsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + page: jspb.Message.getFieldWithDefault(msg, 4, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 5, 0) }; if (includeInstance) { @@ -10987,23 +43013,23 @@ proto.clarifai.api.SingleStatusCodeResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleStatusCodeResponse} + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} */ -proto.clarifai.api.SingleStatusCodeResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListModelVersionEvaluationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleStatusCodeResponse; - return proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListModelVersionEvaluationsRequest; + return proto.clarifai.api.ListModelVersionEvaluationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleStatusCodeResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListModelVersionEvaluationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleStatusCodeResponse} + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} */ -proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListModelVersionEvaluationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11011,9 +43037,25 @@ proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersionId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -11028,9 +43070,9 @@ proto.clarifai.api.SingleStatusCodeResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListModelVersionEvaluationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11038,48 +43080,76 @@ proto.clarifai.api.SingleStatusCodeResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleStatusCodeResponse} message + * @param {!proto.clarifai.api.ListModelVersionEvaluationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleStatusCodeResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListModelVersionEvaluationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getModelVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 5, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleStatusCodeResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} returns this */ -proto.clarifai.api.SingleStatusCodeResponse.prototype.setStatus = function(value) { +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleStatusCodeResponse} returns this + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} returns this */ -proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -11087,18 +43157,83 @@ proto.clarifai.api.SingleStatusCodeResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleStatusCodeResponse.prototype.hasStatus = function() { +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * optional string model_id = 2; + * @return {string} + */ +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} returns this */ -proto.clarifai.api.MultiStatusCodeResponse.repeatedFields_ = [2]; +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string model_version_id = 3; + * @return {string} + */ +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} returns this + */ +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional uint32 page = 4; + * @return {number} + */ +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} returns this + */ +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint32 per_page = 5; + * @return {number} + */ +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelVersionEvaluationsRequest} returns this + */ +proto.clarifai.api.ListModelVersionEvaluationsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + @@ -11115,8 +43250,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiStatusCodeResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModelVersionEvaluationRequest.toObject(opt_includeInstance, this); }; @@ -11125,15 +43260,17 @@ proto.clarifai.api.MultiStatusCodeResponse.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetModelVersionEvaluationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetModelVersionEvaluationRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - statusesList: jspb.Message.toObjectList(msg.getStatusesList(), - proto_clarifai_api_status_status_pb.Status.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + evaluationId: jspb.Message.getFieldWithDefault(msg, 4, ""), + fields: (f = msg.getFields()) && proto_clarifai_api_resources_pb.FieldsValue.toObject(includeInstance, f) }; if (includeInstance) { @@ -11147,23 +43284,23 @@ proto.clarifai.api.MultiStatusCodeResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiStatusCodeResponse} + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} */ -proto.clarifai.api.MultiStatusCodeResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.GetModelVersionEvaluationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiStatusCodeResponse; - return proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetModelVersionEvaluationRequest; + return proto.clarifai.api.GetModelVersionEvaluationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiStatusCodeResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetModelVersionEvaluationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiStatusCodeResponse} + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} */ -proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetModelVersionEvaluationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11171,14 +43308,26 @@ proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.addStatuses(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersionId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setEvaluationId(value); + break; + case 5: + var value = new proto_clarifai_api_resources_pb.FieldsValue; + reader.readMessage(value,proto_clarifai_api_resources_pb.FieldsValue.deserializeBinaryFromReader); + msg.setFields(value); break; default: reader.skipField(); @@ -11193,9 +43342,9 @@ proto.clarifai.api.MultiStatusCodeResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function() { +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetModelVersionEvaluationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11203,56 +43352,77 @@ proto.clarifai.api.MultiStatusCodeResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiStatusCodeResponse} message + * @param {!proto.clarifai.api.GetModelVersionEvaluationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiStatusCodeResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetModelVersionEvaluationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getStatusesList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getModelVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getEvaluationId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFields(); + if (f != null) { + writer.writeMessage( + 5, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.FieldsValue.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} returns this */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatus = function(value) { +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} returns this */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -11260,46 +43430,99 @@ proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.hasStatus = function() { +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated status.Status statuses = 2; - * @return {!Array} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.getStatusesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_status_status_pb.Status, 2)); +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} returns this + */ +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string model_version_id = 3; + * @return {string} + */ +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} returns this + */ +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string evaluation_id = 4; + * @return {string} + */ +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.getEvaluationId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} returns this + */ +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.setEvaluationId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional FieldsValue fields = 5; + * @return {?proto.clarifai.api.FieldsValue} + */ +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.getFields = function() { + return /** @type{?proto.clarifai.api.FieldsValue} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.FieldsValue, 5)); +}; + + +/** + * @param {?proto.clarifai.api.FieldsValue|undefined} value + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} returns this */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.setStatusesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.setFields = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * @param {!proto.clarifai.api.status.Status=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.status.Status} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetModelVersionEvaluationRequest} returns this */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.addStatuses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.status.Status, opt_index); +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.clearFields = function() { + return this.setFields(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiStatusCodeResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiStatusCodeResponse.prototype.clearStatusesList = function() { - return this.setStatusesList([]); +proto.clarifai.api.GetModelVersionEvaluationRequest.prototype.hasFields = function() { + return jspb.Message.getField(this, 5) != null; }; @@ -11319,8 +43542,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetConceptRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetConceptRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleEvalMetricsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleEvalMetricsResponse.toObject(opt_includeInstance, this); }; @@ -11329,14 +43552,14 @@ proto.clarifai.api.GetConceptRequest.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetConceptRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleEvalMetricsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetConceptRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleEvalMetricsResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + evalMetrics: (f = msg.getEvalMetrics()) && proto_clarifai_api_resources_pb.EvalMetrics.toObject(includeInstance, f) }; if (includeInstance) { @@ -11350,23 +43573,23 @@ proto.clarifai.api.GetConceptRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetConceptRequest} + * @return {!proto.clarifai.api.SingleEvalMetricsResponse} */ -proto.clarifai.api.GetConceptRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleEvalMetricsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetConceptRequest; - return proto.clarifai.api.GetConceptRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleEvalMetricsResponse; + return proto.clarifai.api.SingleEvalMetricsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetConceptRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleEvalMetricsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetConceptRequest} + * @return {!proto.clarifai.api.SingleEvalMetricsResponse} */ -proto.clarifai.api.GetConceptRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleEvalMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11374,13 +43597,14 @@ proto.clarifai.api.GetConceptRequest.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); + var value = new proto_clarifai_api_resources_pb.EvalMetrics; + reader.readMessage(value,proto_clarifai_api_resources_pb.EvalMetrics.deserializeBinaryFromReader); + msg.setEvalMetrics(value); break; default: reader.skipField(); @@ -11395,9 +43619,9 @@ proto.clarifai.api.GetConceptRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetConceptRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleEvalMetricsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetConceptRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleEvalMetricsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11405,55 +43629,56 @@ proto.clarifai.api.GetConceptRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetConceptRequest} message + * @param {!proto.clarifai.api.SingleEvalMetricsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetConceptRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleEvalMetricsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptId(); - if (f.length > 0) { - writer.writeString( + f = message.getEvalMetrics(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto_clarifai_api_resources_pb.EvalMetrics.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.GetConceptRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleEvalMetricsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetConceptRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleEvalMetricsResponse} returns this */ -proto.clarifai.api.GetConceptRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleEvalMetricsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetConceptRequest} returns this + * @return {!proto.clarifai.api.SingleEvalMetricsResponse} returns this */ -proto.clarifai.api.GetConceptRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleEvalMetricsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -11461,30 +43686,56 @@ proto.clarifai.api.GetConceptRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetConceptRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleEvalMetricsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string concept_id = 2; - * @return {string} + * optional EvalMetrics eval_metrics = 2; + * @return {?proto.clarifai.api.EvalMetrics} */ -proto.clarifai.api.GetConceptRequest.prototype.getConceptId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.SingleEvalMetricsResponse.prototype.getEvalMetrics = function() { + return /** @type{?proto.clarifai.api.EvalMetrics} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.EvalMetrics, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetConceptRequest} returns this + * @param {?proto.clarifai.api.EvalMetrics|undefined} value + * @return {!proto.clarifai.api.SingleEvalMetricsResponse} returns this +*/ +proto.clarifai.api.SingleEvalMetricsResponse.prototype.setEvalMetrics = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleEvalMetricsResponse} returns this */ -proto.clarifai.api.GetConceptRequest.prototype.setConceptId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.SingleEvalMetricsResponse.prototype.clearEvalMetrics = function() { + return this.setEvalMetrics(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleEvalMetricsResponse.prototype.hasEvalMetrics = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiEvalMetricsResponse.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11500,8 +43751,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListConceptsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListConceptsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiEvalMetricsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiEvalMetricsResponse.toObject(opt_includeInstance, this); }; @@ -11510,15 +43761,15 @@ proto.clarifai.api.ListConceptsRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListConceptsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiEvalMetricsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListConceptsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiEvalMetricsResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + evalMetricsList: jspb.Message.toObjectList(msg.getEvalMetricsList(), + proto_clarifai_api_resources_pb.EvalMetrics.toObject, includeInstance) }; if (includeInstance) { @@ -11532,23 +43783,23 @@ proto.clarifai.api.ListConceptsRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListConceptsRequest} + * @return {!proto.clarifai.api.MultiEvalMetricsResponse} */ -proto.clarifai.api.ListConceptsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiEvalMetricsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListConceptsRequest; - return proto.clarifai.api.ListConceptsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiEvalMetricsResponse; + return proto.clarifai.api.MultiEvalMetricsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListConceptsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiEvalMetricsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListConceptsRequest} + * @return {!proto.clarifai.api.MultiEvalMetricsResponse} */ -proto.clarifai.api.ListConceptsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiEvalMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11556,17 +43807,14 @@ proto.clarifai.api.ListConceptsRequest.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = new proto_clarifai_api_resources_pb.EvalMetrics; + reader.readMessage(value,proto_clarifai_api_resources_pb.EvalMetrics.deserializeBinaryFromReader); + msg.addEvalMetrics(value); break; default: reader.skipField(); @@ -11581,9 +43829,9 @@ proto.clarifai.api.ListConceptsRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListConceptsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiEvalMetricsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListConceptsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiEvalMetricsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11591,62 +43839,56 @@ proto.clarifai.api.ListConceptsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListConceptsRequest} message + * @param {!proto.clarifai.api.MultiEvalMetricsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListConceptsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiEvalMetricsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getEvalMetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f + f, + proto_clarifai_api_resources_pb.EvalMetrics.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListConceptsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiEvalMetricsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListConceptsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiEvalMetricsResponse} returns this */ -proto.clarifai.api.ListConceptsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiEvalMetricsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListConceptsRequest} returns this + * @return {!proto.clarifai.api.MultiEvalMetricsResponse} returns this */ -proto.clarifai.api.ListConceptsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiEvalMetricsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -11654,44 +43896,46 @@ proto.clarifai.api.ListConceptsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListConceptsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiEvalMetricsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} + * repeated EvalMetrics eval_metrics = 2; + * @return {!Array} */ -proto.clarifai.api.ListConceptsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.MultiEvalMetricsResponse.prototype.getEvalMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.EvalMetrics, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListConceptsRequest} returns this - */ -proto.clarifai.api.ListConceptsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.MultiEvalMetricsResponse} returns this +*/ +proto.clarifai.api.MultiEvalMetricsResponse.prototype.setEvalMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional uint32 per_page = 3; - * @return {number} + * @param {!proto.clarifai.api.EvalMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.EvalMetrics} */ -proto.clarifai.api.ListConceptsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.MultiEvalMetricsResponse.prototype.addEvalMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.EvalMetrics, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListConceptsRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiEvalMetricsResponse} returns this */ -proto.clarifai.api.ListConceptsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.MultiEvalMetricsResponse.prototype.clearEvalMetricsList = function() { + return this.setEvalMetricsList([]); }; @@ -11711,8 +43955,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostConceptsSearchesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModelVersionMetricsRequest.toObject(opt_includeInstance, this); }; @@ -11721,15 +43965,17 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostConceptsSearchesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModelVersionMetricsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptsSearchesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModelVersionMetricsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptQuery: (f = msg.getConceptQuery()) && proto_clarifai_api_resources_pb.ConceptQuery.toObject(includeInstance, f), - pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + testSearch: (f = msg.getTestSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), + evalInfo: (f = msg.getEvalInfo()) && proto_clarifai_api_resources_pb.EvalInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -11743,23 +43989,23 @@ proto.clarifai.api.PostConceptsSearchesRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} */ -proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostConceptsSearchesRequest; - return proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModelVersionMetricsRequest; + return proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostConceptsSearchesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModelVersionMetricsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} */ -proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -11772,14 +44018,22 @@ proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinaryFromReader = fun msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ConceptQuery; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptQuery.deserializeBinaryFromReader); - msg.setConceptQuery(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); break; case 3: - var value = new proto.clarifai.api.Pagination; - reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + case 5: + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.setTestSearch(value); + break; + case 10: + var value = new proto_clarifai_api_resources_pb.EvalInfo; + reader.readMessage(value,proto_clarifai_api_resources_pb.EvalInfo.deserializeBinaryFromReader); + msg.setEvalInfo(value); break; default: reader.skipField(); @@ -11794,9 +44048,9 @@ proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostConceptsSearchesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModelVersionMetricsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -11804,11 +44058,11 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostConceptsSearchesRequest} message + * @param {!proto.clarifai.api.PostModelVersionMetricsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptsSearchesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModelVersionMetricsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -11818,20 +44072,34 @@ proto.clarifai.api.PostConceptsSearchesRequest.serializeBinaryToWriter = functio proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getConceptQuery(); + f = message.getModelId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getTestSearch(); if (f != null) { writer.writeMessage( - 2, + 5, f, - proto_clarifai_api_resources_pb.ConceptQuery.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter ); } - f = message.getPagination(); + f = message.getEvalInfo(); if (f != null) { writer.writeMessage( - 3, + 10, f, - proto.clarifai.api.Pagination.serializeBinaryToWriter + proto_clarifai_api_resources_pb.EvalInfo.serializeBinaryToWriter ); } }; @@ -11841,7 +44109,7 @@ proto.clarifai.api.PostConceptsSearchesRequest.serializeBinaryToWriter = functio * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -11849,18 +44117,18 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.getUserAppId = function /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -11869,36 +44137,72 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearUserAppId = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional ConceptQuery concept_query = 2; - * @return {?proto.clarifai.api.ConceptQuery} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.getConceptQuery = function() { - return /** @type{?proto.clarifai.api.ConceptQuery} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ConceptQuery, 2)); +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.clarifai.api.ConceptQuery|undefined} value - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this + */ +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string version_id = 3; + * @return {string} + */ +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this + */ +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional Search test_search = 5; + * @return {?proto.clarifai.api.Search} + */ +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getTestSearch = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 5)); +}; + + +/** + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.setConceptQuery = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setTestSearch = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearConceptQuery = function() { - return this.setConceptQuery(undefined); +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.clearTestSearch = function() { + return this.setTestSearch(undefined); }; @@ -11906,36 +44210,36 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearConceptQuery = fun * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasConceptQuery = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.hasTestSearch = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional Pagination pagination = 3; - * @return {?proto.clarifai.api.Pagination} + * optional EvalInfo eval_info = 10; + * @return {?proto.clarifai.api.EvalInfo} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.getPagination = function() { - return /** @type{?proto.clarifai.api.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getEvalInfo = function() { + return /** @type{?proto.clarifai.api.EvalInfo} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.EvalInfo, 10)); }; /** - * @param {?proto.clarifai.api.Pagination|undefined} value - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + * @param {?proto.clarifai.api.EvalInfo|undefined} value + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setEvalInfo = function(value) { + return jspb.Message.setWrapperField(this, 10, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.clearEvalInfo = function() { + return this.setEvalInfo(undefined); }; @@ -11943,19 +44247,12 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearPagination = funct * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.PostModelVersionMetricsRequest.prototype.hasEvalInfo = function() { + return jspb.Message.getField(this, 10) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostConceptsRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -11971,8 +44268,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostConceptsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostConceptsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModelVersionMetricsRequest.toObject(opt_includeInstance, this); }; @@ -11981,15 +44278,16 @@ proto.clarifai.api.PostConceptsRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostConceptsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetModelVersionMetricsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetModelVersionMetricsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), - proto_clarifai_api_resources_pb.Concept.toObject, includeInstance) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + fields: (f = msg.getFields()) && proto_clarifai_api_resources_pb.FieldsValue.toObject(includeInstance, f) }; if (includeInstance) { @@ -12003,23 +44301,23 @@ proto.clarifai.api.PostConceptsRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostConceptsRequest} + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} */ -proto.clarifai.api.PostConceptsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostConceptsRequest; - return proto.clarifai.api.PostConceptsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetModelVersionMetricsRequest; + return proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostConceptsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetModelVersionMetricsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostConceptsRequest} + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} */ -proto.clarifai.api.PostConceptsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12032,9 +44330,17 @@ proto.clarifai.api.PostConceptsRequest.deserializeBinaryFromReader = function(ms msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Concept; - reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); - msg.addConcepts(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.FieldsValue; + reader.readMessage(value,proto_clarifai_api_resources_pb.FieldsValue.deserializeBinaryFromReader); + msg.setFields(value); break; default: reader.skipField(); @@ -12049,9 +44355,9 @@ proto.clarifai.api.PostConceptsRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostConceptsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostConceptsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetModelVersionMetricsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12059,11 +44365,11 @@ proto.clarifai.api.PostConceptsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostConceptsRequest} message + * @param {!proto.clarifai.api.GetModelVersionMetricsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetModelVersionMetricsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -12073,12 +44379,26 @@ proto.clarifai.api.PostConceptsRequest.serializeBinaryToWriter = function(messag proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getConceptsList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getFields(); + if (f != null) { + writer.writeMessage( + 4, f, - proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter + proto_clarifai_api_resources_pb.FieldsValue.serializeBinaryToWriter ); } }; @@ -12088,7 +44408,7 @@ proto.clarifai.api.PostConceptsRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostConceptsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -12096,18 +44416,18 @@ proto.clarifai.api.PostConceptsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostConceptsRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostConceptsRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -12116,56 +44436,84 @@ proto.clarifai.api.PostConceptsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostConceptsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Concept concepts = 2; - * @return {!Array} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.PostConceptsRequest.prototype.getConceptsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostConceptsRequest} returns this -*/ -proto.clarifai.api.PostConceptsRequest.prototype.setConceptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this + */ +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Concept=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Concept} + * optional string version_id = 3; + * @return {string} */ -proto.clarifai.api.PostConceptsRequest.prototype.addConcepts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Concept, opt_index); +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostConceptsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PostConceptsRequest.prototype.clearConceptsList = function() { - return this.setConceptsList([]); +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; +/** + * optional FieldsValue fields = 4; + * @return {?proto.clarifai.api.FieldsValue} + */ +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getFields = function() { + return /** @type{?proto.clarifai.api.FieldsValue} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.FieldsValue, 4)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {?proto.clarifai.api.FieldsValue|undefined} value + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this +*/ +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setFields = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this */ -proto.clarifai.api.PatchConceptsRequest.repeatedFields_ = [2]; +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.clearFields = function() { + return this.setFields(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.GetModelVersionMetricsRequest.prototype.hasFields = function() { + return jspb.Message.getField(this, 4) != null; +}; + + @@ -12182,8 +44530,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchConceptsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchConceptsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetModelTypeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModelTypeRequest.toObject(opt_includeInstance, this); }; @@ -12192,16 +44540,14 @@ proto.clarifai.api.PatchConceptsRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchConceptsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetModelTypeRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchConceptsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetModelTypeRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), - proto_clarifai_api_resources_pb.Concept.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + modelTypeId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -12215,23 +44561,23 @@ proto.clarifai.api.PatchConceptsRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchConceptsRequest} + * @return {!proto.clarifai.api.GetModelTypeRequest} */ -proto.clarifai.api.PatchConceptsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetModelTypeRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchConceptsRequest; - return proto.clarifai.api.PatchConceptsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetModelTypeRequest; + return proto.clarifai.api.GetModelTypeRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchConceptsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetModelTypeRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchConceptsRequest} + * @return {!proto.clarifai.api.GetModelTypeRequest} */ -proto.clarifai.api.PatchConceptsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetModelTypeRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12244,13 +44590,8 @@ proto.clarifai.api.PatchConceptsRequest.deserializeBinaryFromReader = function(m msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Concept; - reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); - msg.addConcepts(value); - break; - case 3: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.setModelTypeId(value); break; default: reader.skipField(); @@ -12265,9 +44606,9 @@ proto.clarifai.api.PatchConceptsRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchConceptsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetModelTypeRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchConceptsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetModelTypeRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12275,11 +44616,11 @@ proto.clarifai.api.PatchConceptsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchConceptsRequest} message + * @param {!proto.clarifai.api.GetModelTypeRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchConceptsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetModelTypeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -12289,18 +44630,10 @@ proto.clarifai.api.PatchConceptsRequest.serializeBinaryToWriter = function(messa proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getConceptsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter - ); - } - f = message.getAction(); + f = message.getModelTypeId(); if (f.length > 0) { writer.writeString( - 3, + 2, f ); } @@ -12311,7 +44644,7 @@ proto.clarifai.api.PatchConceptsRequest.serializeBinaryToWriter = function(messa * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchConceptsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetModelTypeRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -12319,18 +44652,18 @@ proto.clarifai.api.PatchConceptsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchConceptsRequest} returns this + * @return {!proto.clarifai.api.GetModelTypeRequest} returns this */ -proto.clarifai.api.PatchConceptsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetModelTypeRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchConceptsRequest} returns this + * @return {!proto.clarifai.api.GetModelTypeRequest} returns this */ -proto.clarifai.api.PatchConceptsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetModelTypeRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -12339,64 +44672,26 @@ proto.clarifai.api.PatchConceptsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchConceptsRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * repeated Concept concepts = 2; - * @return {!Array} - */ -proto.clarifai.api.PatchConceptsRequest.prototype.getConceptsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchConceptsRequest} returns this -*/ -proto.clarifai.api.PatchConceptsRequest.prototype.setConceptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clarifai.api.Concept=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Concept} - */ -proto.clarifai.api.PatchConceptsRequest.prototype.addConcepts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Concept, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchConceptsRequest} returns this - */ -proto.clarifai.api.PatchConceptsRequest.prototype.clearConceptsList = function() { - return this.setConceptsList([]); +proto.clarifai.api.GetModelTypeRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional string action = 3; + * optional string model_type_id = 2; * @return {string} */ -proto.clarifai.api.PatchConceptsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.GetModelTypeRequest.prototype.getModelTypeId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchConceptsRequest} returns this + * @return {!proto.clarifai.api.GetModelTypeRequest} returns this */ -proto.clarifai.api.PatchConceptsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.GetModelTypeRequest.prototype.setModelTypeId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -12416,8 +44711,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetConceptCountsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetConceptCountsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModelTypesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelTypesRequest.toObject(opt_includeInstance, this); }; @@ -12426,11 +44721,11 @@ proto.clarifai.api.GetConceptCountsRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetConceptCountsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListModelTypesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetConceptCountsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListModelTypesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), page: jspb.Message.getFieldWithDefault(msg, 2, 0), @@ -12448,23 +44743,23 @@ proto.clarifai.api.GetConceptCountsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetConceptCountsRequest} + * @return {!proto.clarifai.api.ListModelTypesRequest} */ -proto.clarifai.api.GetConceptCountsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListModelTypesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetConceptCountsRequest; - return proto.clarifai.api.GetConceptCountsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListModelTypesRequest; + return proto.clarifai.api.ListModelTypesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetConceptCountsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListModelTypesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetConceptCountsRequest} + * @return {!proto.clarifai.api.ListModelTypesRequest} */ -proto.clarifai.api.GetConceptCountsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListModelTypesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12497,9 +44792,9 @@ proto.clarifai.api.GetConceptCountsRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetConceptCountsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListModelTypesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetConceptCountsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListModelTypesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12507,11 +44802,11 @@ proto.clarifai.api.GetConceptCountsRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetConceptCountsRequest} message + * @param {!proto.clarifai.api.ListModelTypesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetConceptCountsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListModelTypesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -12542,7 +44837,7 @@ proto.clarifai.api.GetConceptCountsRequest.serializeBinaryToWriter = function(me * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetConceptCountsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListModelTypesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -12550,18 +44845,18 @@ proto.clarifai.api.GetConceptCountsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this + * @return {!proto.clarifai.api.ListModelTypesRequest} returns this */ -proto.clarifai.api.GetConceptCountsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListModelTypesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this + * @return {!proto.clarifai.api.ListModelTypesRequest} returns this */ -proto.clarifai.api.GetConceptCountsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListModelTypesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -12570,7 +44865,7 @@ proto.clarifai.api.GetConceptCountsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetConceptCountsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListModelTypesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -12579,16 +44874,16 @@ proto.clarifai.api.GetConceptCountsRequest.prototype.hasUserAppId = function() { * optional uint32 page = 2; * @return {number} */ -proto.clarifai.api.GetConceptCountsRequest.prototype.getPage = function() { +proto.clarifai.api.ListModelTypesRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this + * @return {!proto.clarifai.api.ListModelTypesRequest} returns this */ -proto.clarifai.api.GetConceptCountsRequest.prototype.setPage = function(value) { +proto.clarifai.api.ListModelTypesRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -12597,16 +44892,16 @@ proto.clarifai.api.GetConceptCountsRequest.prototype.setPage = function(value) { * optional uint32 per_page = 3; * @return {number} */ -proto.clarifai.api.GetConceptCountsRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListModelTypesRequest.prototype.getPerPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.GetConceptCountsRequest} returns this + * @return {!proto.clarifai.api.ListModelTypesRequest} returns this */ -proto.clarifai.api.GetConceptCountsRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListModelTypesRequest.prototype.setPerPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; @@ -12627,8 +44922,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleConceptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleConceptResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListOpenSourceLicensesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListOpenSourceLicensesRequest.toObject(opt_includeInstance, this); }; @@ -12637,14 +44932,122 @@ proto.clarifai.api.SingleConceptResponse.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleConceptResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListOpenSourceLicensesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleConceptResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListOpenSourceLicensesRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.ListOpenSourceLicensesRequest} + */ +proto.clarifai.api.ListOpenSourceLicensesRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ListOpenSourceLicensesRequest; + return proto.clarifai.api.ListOpenSourceLicensesRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ListOpenSourceLicensesRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ListOpenSourceLicensesRequest} + */ +proto.clarifai.api.ListOpenSourceLicensesRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ListOpenSourceLicensesRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListOpenSourceLicensesRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListOpenSourceLicensesRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListOpenSourceLicensesRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListOpenSourceLicensesResponse.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListOpenSourceLicensesResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ListOpenSourceLicensesResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListOpenSourceLicensesResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - concept: (f = msg.getConcept()) && proto_clarifai_api_resources_pb.Concept.toObject(includeInstance, f) + licensesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -12658,23 +45061,23 @@ proto.clarifai.api.SingleConceptResponse.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleConceptResponse} + * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} */ -proto.clarifai.api.SingleConceptResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListOpenSourceLicensesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleConceptResponse; - return proto.clarifai.api.SingleConceptResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListOpenSourceLicensesResponse; + return proto.clarifai.api.ListOpenSourceLicensesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleConceptResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListOpenSourceLicensesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleConceptResponse} + * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} */ -proto.clarifai.api.SingleConceptResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListOpenSourceLicensesResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12687,9 +45090,8 @@ proto.clarifai.api.SingleConceptResponse.deserializeBinaryFromReader = function( msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Concept; - reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); - msg.setConcept(value); + var value = /** @type {string} */ (reader.readString()); + msg.addLicenses(value); break; default: reader.skipField(); @@ -12704,9 +45106,9 @@ proto.clarifai.api.SingleConceptResponse.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleConceptResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleConceptResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListOpenSourceLicensesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12714,11 +45116,11 @@ proto.clarifai.api.SingleConceptResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleConceptResponse} message + * @param {!proto.clarifai.api.ListOpenSourceLicensesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleConceptResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListOpenSourceLicensesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -12728,12 +45130,11 @@ proto.clarifai.api.SingleConceptResponse.serializeBinaryToWriter = function(mess proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConcept(); - if (f != null) { - writer.writeMessage( + f = message.getLicensesList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, - f, - proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter + f ); } }; @@ -12743,7 +45144,7 @@ proto.clarifai.api.SingleConceptResponse.serializeBinaryToWriter = function(mess * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleConceptResponse.prototype.getStatus = function() { +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -12751,18 +45152,18 @@ proto.clarifai.api.SingleConceptResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleConceptResponse} returns this + * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this */ -proto.clarifai.api.SingleConceptResponse.prototype.setStatus = function(value) { +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleConceptResponse} returns this + * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this */ -proto.clarifai.api.SingleConceptResponse.prototype.clearStatus = function() { +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -12771,56 +45172,49 @@ proto.clarifai.api.SingleConceptResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleConceptResponse.prototype.hasStatus = function() { +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Concept concept = 2; - * @return {?proto.clarifai.api.Concept} + * repeated string licenses = 2; + * @return {!Array} */ -proto.clarifai.api.SingleConceptResponse.prototype.getConcept = function() { - return /** @type{?proto.clarifai.api.Concept} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.getLicensesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {?proto.clarifai.api.Concept|undefined} value - * @return {!proto.clarifai.api.SingleConceptResponse} returns this -*/ -proto.clarifai.api.SingleConceptResponse.prototype.setConcept = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this + */ +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.setLicensesList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleConceptResponse} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this */ -proto.clarifai.api.SingleConceptResponse.prototype.clearConcept = function() { - return this.setConcept(undefined); +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.addLicenses = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this */ -proto.clarifai.api.SingleConceptResponse.prototype.hasConcept = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.clearLicensesList = function() { + return this.setLicensesList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiConceptResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -12836,8 +45230,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiConceptResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiConceptResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleModelTypeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleModelTypeResponse.toObject(opt_includeInstance, this); }; @@ -12846,15 +45240,14 @@ proto.clarifai.api.MultiConceptResponse.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiConceptResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleModelTypeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleModelTypeResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - conceptsList: jspb.Message.toObjectList(msg.getConceptsList(), - proto_clarifai_api_resources_pb.Concept.toObject, includeInstance) + modelType: (f = msg.getModelType()) && proto_clarifai_api_resources_pb.ModelType.toObject(includeInstance, f) }; if (includeInstance) { @@ -12868,23 +45261,23 @@ proto.clarifai.api.MultiConceptResponse.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiConceptResponse} + * @return {!proto.clarifai.api.SingleModelTypeResponse} */ -proto.clarifai.api.MultiConceptResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleModelTypeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiConceptResponse; - return proto.clarifai.api.MultiConceptResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleModelTypeResponse; + return proto.clarifai.api.SingleModelTypeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiConceptResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleModelTypeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiConceptResponse} + * @return {!proto.clarifai.api.SingleModelTypeResponse} */ -proto.clarifai.api.MultiConceptResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleModelTypeResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -12897,9 +45290,9 @@ proto.clarifai.api.MultiConceptResponse.deserializeBinaryFromReader = function(m msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Concept; - reader.readMessage(value,proto_clarifai_api_resources_pb.Concept.deserializeBinaryFromReader); - msg.addConcepts(value); + var value = new proto_clarifai_api_resources_pb.ModelType; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelType.deserializeBinaryFromReader); + msg.setModelType(value); break; default: reader.skipField(); @@ -12914,9 +45307,9 @@ proto.clarifai.api.MultiConceptResponse.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiConceptResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleModelTypeResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiConceptResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleModelTypeResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -12924,11 +45317,11 @@ proto.clarifai.api.MultiConceptResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiConceptResponse} message + * @param {!proto.clarifai.api.SingleModelTypeResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleModelTypeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -12938,12 +45331,12 @@ proto.clarifai.api.MultiConceptResponse.serializeBinaryToWriter = function(messa proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getModelType(); + if (f != null) { + writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.Concept.serializeBinaryToWriter + proto_clarifai_api_resources_pb.ModelType.serializeBinaryToWriter ); } }; @@ -12953,7 +45346,7 @@ proto.clarifai.api.MultiConceptResponse.serializeBinaryToWriter = function(messa * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiConceptResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleModelTypeResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -12961,18 +45354,18 @@ proto.clarifai.api.MultiConceptResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiConceptResponse} returns this + * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleModelTypeResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiConceptResponse} returns this + * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleModelTypeResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -12981,46 +45374,45 @@ proto.clarifai.api.MultiConceptResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiConceptResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleModelTypeResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Concept concepts = 2; - * @return {!Array} + * optional ModelType model_type = 2; + * @return {?proto.clarifai.api.ModelType} */ -proto.clarifai.api.MultiConceptResponse.prototype.getConceptsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Concept, 2)); +proto.clarifai.api.SingleModelTypeResponse.prototype.getModelType = function() { + return /** @type{?proto.clarifai.api.ModelType} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelType, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiConceptResponse} returns this + * @param {?proto.clarifai.api.ModelType|undefined} value + * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptResponse.prototype.setConceptsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.SingleModelTypeResponse.prototype.setModelType = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Concept=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Concept} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptResponse.prototype.addConcepts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Concept, opt_index); +proto.clarifai.api.SingleModelTypeResponse.prototype.clearModelType = function() { + return this.setModelType(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiConceptResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiConceptResponse.prototype.clearConceptsList = function() { - return this.setConceptsList([]); +proto.clarifai.api.SingleModelTypeResponse.prototype.hasModelType = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -13030,7 +45422,7 @@ proto.clarifai.api.MultiConceptResponse.prototype.clearConceptsList = function() * @private {!Array} * @const */ -proto.clarifai.api.MultiConceptCountResponse.repeatedFields_ = [2]; +proto.clarifai.api.MultiModelTypeResponse.repeatedFields_ = [2,4]; @@ -13047,8 +45439,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiConceptCountResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiConceptCountResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModelTypeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelTypeResponse.toObject(opt_includeInstance, this); }; @@ -13057,15 +45449,18 @@ proto.clarifai.api.MultiConceptCountResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiConceptCountResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModelTypeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptCountResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModelTypeResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - conceptCountsList: jspb.Message.toObjectList(msg.getConceptCountsList(), - proto_clarifai_api_resources_pb.ConceptCount.toObject, includeInstance) + modelTypesList: jspb.Message.toObjectList(msg.getModelTypesList(), + proto_clarifai_api_resources_pb.ModelType.toObject, includeInstance), + modelImporters: (f = msg.getModelImporters()) && proto_clarifai_api_resources_pb.ModelTypeField.toObject(includeInstance, f), + tritonCondaEnvsInfoList: jspb.Message.toObjectList(msg.getTritonCondaEnvsInfoList(), + proto_clarifai_api_resources_pb.TritonCondaEnvInfo.toObject, includeInstance) }; if (includeInstance) { @@ -13079,23 +45474,23 @@ proto.clarifai.api.MultiConceptCountResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiConceptCountResponse} + * @return {!proto.clarifai.api.MultiModelTypeResponse} */ -proto.clarifai.api.MultiConceptCountResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModelTypeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiConceptCountResponse; - return proto.clarifai.api.MultiConceptCountResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModelTypeResponse; + return proto.clarifai.api.MultiModelTypeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiConceptCountResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModelTypeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiConceptCountResponse} + * @return {!proto.clarifai.api.MultiModelTypeResponse} */ -proto.clarifai.api.MultiConceptCountResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModelTypeResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13108,9 +45503,19 @@ proto.clarifai.api.MultiConceptCountResponse.deserializeBinaryFromReader = funct msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ConceptCount; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptCount.deserializeBinaryFromReader); - msg.addConceptCounts(value); + var value = new proto_clarifai_api_resources_pb.ModelType; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelType.deserializeBinaryFromReader); + msg.addModelTypes(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.ModelTypeField; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelTypeField.deserializeBinaryFromReader); + msg.setModelImporters(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.TritonCondaEnvInfo; + reader.readMessage(value,proto_clarifai_api_resources_pb.TritonCondaEnvInfo.deserializeBinaryFromReader); + msg.addTritonCondaEnvsInfo(value); break; default: reader.skipField(); @@ -13122,69 +45527,160 @@ proto.clarifai.api.MultiConceptCountResponse.deserializeBinaryFromReader = funct /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MultiModelTypeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiModelTypeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiModelTypeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MultiModelTypeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getModelTypesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.ModelType.serializeBinaryToWriter + ); + } + f = message.getModelImporters(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto_clarifai_api_resources_pb.ModelTypeField.serializeBinaryToWriter + ); + } + f = message.getTritonCondaEnvsInfoList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + proto_clarifai_api_resources_pb.TritonCondaEnvInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} + */ +proto.clarifai.api.MultiModelTypeResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +}; + + +/** + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this +*/ +proto.clarifai.api.MultiModelTypeResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this + */ +proto.clarifai.api.MultiModelTypeResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiModelTypeResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated ModelType model_types = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiModelTypeResponse.prototype.getModelTypesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelType, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this +*/ +proto.clarifai.api.MultiModelTypeResponse.prototype.setModelTypesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ModelType=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelType} */ -proto.clarifai.api.MultiConceptCountResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiConceptCountResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.MultiModelTypeResponse.prototype.addModelTypes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelType, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiConceptCountResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptCountResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getConceptCountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto_clarifai_api_resources_pb.ConceptCount.serializeBinaryToWriter - ); - } +proto.clarifai.api.MultiModelTypeResponse.prototype.clearModelTypesList = function() { + return this.setModelTypesList([]); }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional ModelTypeField model_importers = 3; + * @return {?proto.clarifai.api.ModelTypeField} */ -proto.clarifai.api.MultiConceptCountResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.MultiModelTypeResponse.prototype.getModelImporters = function() { + return /** @type{?proto.clarifai.api.ModelTypeField} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelTypeField, 3)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this + * @param {?proto.clarifai.api.ModelTypeField|undefined} value + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptCountResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.MultiModelTypeResponse.prototype.setModelImporters = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptCountResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.MultiModelTypeResponse.prototype.clearModelImporters = function() { + return this.setModelImporters(undefined); }; @@ -13192,46 +45688,46 @@ proto.clarifai.api.MultiConceptCountResponse.prototype.clearStatus = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiConceptCountResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.MultiModelTypeResponse.prototype.hasModelImporters = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * repeated ConceptCount concept_counts = 2; - * @return {!Array} + * repeated TritonCondaEnvInfo triton_conda_envs_info = 4; + * @return {!Array} */ -proto.clarifai.api.MultiConceptCountResponse.prototype.getConceptCountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptCount, 2)); +proto.clarifai.api.MultiModelTypeResponse.prototype.getTritonCondaEnvsInfoList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TritonCondaEnvInfo, 4)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptCountResponse.prototype.setConceptCountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.MultiModelTypeResponse.prototype.setTritonCondaEnvsInfoList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * @param {!proto.clarifai.api.ConceptCount=} opt_value + * @param {!proto.clarifai.api.TritonCondaEnvInfo=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptCount} + * @return {!proto.clarifai.api.TritonCondaEnvInfo} */ -proto.clarifai.api.MultiConceptCountResponse.prototype.addConceptCounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptCount, opt_index); +proto.clarifai.api.MultiModelTypeResponse.prototype.addTritonCondaEnvsInfo = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.TritonCondaEnvInfo, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiConceptCountResponse} returns this + * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this */ -proto.clarifai.api.MultiConceptCountResponse.prototype.clearConceptCountsList = function() { - return this.setConceptCountsList([]); +proto.clarifai.api.MultiModelTypeResponse.prototype.clearTritonCondaEnvsInfoList = function() { + return this.setTritonCondaEnvsInfoList([]); }; @@ -13251,8 +45747,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListConceptRelationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModelVersionInputExampleRequest.toObject(opt_includeInstance, this); }; @@ -13261,18 +45757,16 @@ proto.clarifai.api.ListConceptRelationsRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListConceptRelationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetModelVersionInputExampleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListConceptRelationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetModelVersionInputExampleRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), - predicate: jspb.Message.getFieldWithDefault(msg, 3, ""), - knowledgeGraphId: jspb.Message.getFieldWithDefault(msg, 4, ""), - page: jspb.Message.getFieldWithDefault(msg, 5, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 6, 0) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + exampleId: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -13286,23 +45780,23 @@ proto.clarifai.api.ListConceptRelationsRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListConceptRelationsRequest} + * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} */ -proto.clarifai.api.ListConceptRelationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListConceptRelationsRequest; - return proto.clarifai.api.ListConceptRelationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetModelVersionInputExampleRequest; + return proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListConceptRelationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetModelVersionInputExampleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListConceptRelationsRequest} + * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} */ -proto.clarifai.api.ListConceptRelationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13316,23 +45810,15 @@ proto.clarifai.api.ListConceptRelationsRequest.deserializeBinaryFromReader = fun break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); + msg.setModelId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setPredicate(value); + msg.setModelVersionId(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setKnowledgeGraphId(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + msg.setExampleId(value); break; default: reader.skipField(); @@ -13347,9 +45833,9 @@ proto.clarifai.api.ListConceptRelationsRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListConceptRelationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetModelVersionInputExampleRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13357,11 +45843,11 @@ proto.clarifai.api.ListConceptRelationsRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListConceptRelationsRequest} message + * @param {!proto.clarifai.api.GetModelVersionInputExampleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListConceptRelationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetModelVersionInputExampleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -13371,41 +45857,27 @@ proto.clarifai.api.ListConceptRelationsRequest.serializeBinaryToWriter = functio proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getConceptId(); + f = message.getModelId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getPredicate(); + f = message.getModelVersionId(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getKnowledgeGraphId(); + f = message.getExampleId(); if (f.length > 0) { writer.writeString( 4, f ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } }; @@ -13413,7 +45885,7 @@ proto.clarifai.api.ListConceptRelationsRequest.serializeBinaryToWriter = functio * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -13421,18 +45893,18 @@ proto.clarifai.api.ListConceptRelationsRequest.prototype.getUserAppId = function /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -13441,108 +45913,65 @@ proto.clarifai.api.ListConceptRelationsRequest.prototype.clearUserAppId = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string concept_id = 2; + * optional string model_id = 2; * @return {string} */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.getConceptId = function() { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getModelId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.setConceptId = function(value) { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setModelId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string predicate = 3; + * optional string model_version_id = 3; * @return {string} */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.getPredicate = function() { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getModelVersionId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.setPredicate = function(value) { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setModelVersionId = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** - * optional string knowledge_graph_id = 4; + * optional string example_id = 4; * @return {string} */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.getKnowledgeGraphId = function() { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getExampleId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.setKnowledgeGraphId = function(value) { +proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setExampleId = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; -/** - * optional uint32 page = 5; - * @return {number} - */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this - */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 per_page = 6; - * @return {number} - */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListConceptRelationsRequest} returns this - */ -proto.clarifai.api.ListConceptRelationsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostConceptRelationsRequest.repeatedFields_ = [3]; @@ -13559,8 +45988,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostConceptRelationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelVersionInputExamplesRequest.toObject(opt_includeInstance, this); }; @@ -13569,16 +45998,17 @@ proto.clarifai.api.PostConceptRelationsRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostConceptRelationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListModelVersionInputExamplesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptRelationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListModelVersionInputExamplesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), - conceptRelationsList: jspb.Message.toObjectList(msg.getConceptRelationsList(), - proto_clarifai_api_resources_pb.ConceptRelation.toObject, includeInstance) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + page: jspb.Message.getFieldWithDefault(msg, 4, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 5, 0) }; if (includeInstance) { @@ -13592,23 +46022,23 @@ proto.clarifai.api.PostConceptRelationsRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostConceptRelationsRequest} + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} */ -proto.clarifai.api.PostConceptRelationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostConceptRelationsRequest; - return proto.clarifai.api.PostConceptRelationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListModelVersionInputExamplesRequest; + return proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostConceptRelationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListModelVersionInputExamplesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostConceptRelationsRequest} + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} */ -proto.clarifai.api.PostConceptRelationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13622,12 +46052,19 @@ proto.clarifai.api.PostConceptRelationsRequest.deserializeBinaryFromReader = fun break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); + msg.setModelId(value); break; case 3: - var value = new proto_clarifai_api_resources_pb.ConceptRelation; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptRelation.deserializeBinaryFromReader); - msg.addConceptRelations(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersionId(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -13642,9 +46079,9 @@ proto.clarifai.api.PostConceptRelationsRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostConceptRelationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListModelVersionInputExamplesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13652,11 +46089,11 @@ proto.clarifai.api.PostConceptRelationsRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostConceptRelationsRequest} message + * @param {!proto.clarifai.api.ListModelVersionInputExamplesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptRelationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListModelVersionInputExamplesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -13666,19 +46103,32 @@ proto.clarifai.api.PostConceptRelationsRequest.serializeBinaryToWriter = functio proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getConceptId(); + f = message.getModelId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getConceptRelationsList(); + f = message.getModelVersionId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 3, - f, - proto_clarifai_api_resources_pb.ConceptRelation.serializeBinaryToWriter + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 5, + f ); } }; @@ -13688,7 +46138,7 @@ proto.clarifai.api.PostConceptRelationsRequest.serializeBinaryToWriter = functio * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -13696,18 +46146,18 @@ proto.clarifai.api.PostConceptRelationsRequest.prototype.getUserAppId = function /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -13716,74 +46166,83 @@ proto.clarifai.api.PostConceptRelationsRequest.prototype.clearUserAppId = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string concept_id = 2; + * optional string model_id = 2; * @return {string} */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.getConceptId = function() { +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getModelId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.setConceptId = function(value) { +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setModelId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * repeated ConceptRelation concept_relations = 3; - * @return {!Array} + * optional string model_version_id = 3; + * @return {string} */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.getConceptRelationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptRelation, 3)); +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this -*/ -proto.clarifai.api.PostConceptRelationsRequest.prototype.setConceptRelationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); + * @param {string} value + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this + */ +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; /** - * @param {!proto.clarifai.api.ConceptRelation=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptRelation} + * optional uint32 page = 4; + * @return {number} */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.addConceptRelations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ConceptRelation, opt_index); +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostConceptRelationsRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this */ -proto.clarifai.api.PostConceptRelationsRequest.prototype.clearConceptRelationsList = function() { - return this.setConceptRelationsList([]); +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; +/** + * optional uint32 per_page = 5; + * @return {number} + */ +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {number} value + * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this */ -proto.clarifai.api.DeleteConceptRelationsRequest.repeatedFields_ = [3]; +proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + @@ -13800,8 +46259,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteConceptRelationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleModelVersionInputExampleResponse.toObject(opt_includeInstance, this); }; @@ -13810,15 +46269,14 @@ proto.clarifai.api.DeleteConceptRelationsRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteConceptRelationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleModelVersionInputExampleResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteConceptRelationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleModelVersionInputExampleResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), - idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + modelVersionInputExample: (f = msg.getModelVersionInputExample()) && proto_clarifai_api_resources_pb.ModelVersionInputExample.toObject(includeInstance, f) }; if (includeInstance) { @@ -13832,23 +46290,23 @@ proto.clarifai.api.DeleteConceptRelationsRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} + * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} */ -proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteConceptRelationsRequest; - return proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleModelVersionInputExampleResponse; + return proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteConceptRelationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleModelVersionInputExampleResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} + * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} */ -proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -13856,17 +46314,14 @@ proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + var value = new proto_clarifai_api_resources_pb.ModelVersionInputExample; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersionInputExample.deserializeBinaryFromReader); + msg.setModelVersionInputExample(value); break; default: reader.skipField(); @@ -13881,9 +46336,9 @@ proto.clarifai.api.DeleteConceptRelationsRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteConceptRelationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleModelVersionInputExampleResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -13891,62 +46346,56 @@ proto.clarifai.api.DeleteConceptRelationsRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteConceptRelationsRequest} message + * @param {!proto.clarifai.api.SingleModelVersionInputExampleResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteConceptRelationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleModelVersionInputExampleResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptId(); - if (f.length > 0) { - writer.writeString( + f = message.getModelVersionInputExample(); + if (f != null) { + writer.writeMessage( 2, - f - ); - } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f + f, + proto_clarifai_api_resources_pb.ModelVersionInputExample.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -13954,66 +46403,55 @@ proto.clarifai.api.DeleteConceptRelationsRequest.prototype.clearUserAppId = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string concept_id = 2; - * @return {string} - */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.getConceptId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + * optional ModelVersionInputExample model_version_input_example = 2; + * @return {?proto.clarifai.api.ModelVersionInputExample} */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.setConceptId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.getModelVersionInputExample = function() { + return /** @type{?proto.clarifai.api.ModelVersionInputExample} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersionInputExample, 2)); }; /** - * repeated string ids = 3; - * @return {!Array} - */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); + * @param {?proto.clarifai.api.ModelVersionInputExample|undefined} value + * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this +*/ +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.setModelVersionInputExample = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.clearModelVersionInputExample = function() { + return this.setModelVersionInputExample(undefined); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.hasModelVersionInputExample = function() { + return jspb.Message.getField(this, 2) != null; }; + /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteConceptRelationsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.DeleteConceptRelationsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); -}; - - +proto.clarifai.api.MultiModelVersionInputExampleResponse.repeatedFields_ = [2]; @@ -14030,8 +46468,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListKnowledgeGraphsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelVersionInputExampleResponse.toObject(opt_includeInstance, this); }; @@ -14040,13 +46478,15 @@ proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListKnowledgeGraphsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModelVersionInputExampleResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListKnowledgeGraphsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModelVersionInputExampleResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + modelVersionInputExamplesList: jspb.Message.toObjectList(msg.getModelVersionInputExamplesList(), + proto_clarifai_api_resources_pb.ModelVersionInputExample.toObject, includeInstance) }; if (includeInstance) { @@ -14060,23 +46500,23 @@ proto.clarifai.api.ListKnowledgeGraphsRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} + * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} */ -proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListKnowledgeGraphsRequest; - return proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModelVersionInputExampleResponse; + return proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListKnowledgeGraphsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModelVersionInputExampleResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} + * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} */ -proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14084,9 +46524,14 @@ proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.ModelVersionInputExample; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersionInputExample.deserializeBinaryFromReader); + msg.addModelVersionInputExamples(value); break; default: reader.skipField(); @@ -14101,9 +46546,9 @@ proto.clarifai.api.ListKnowledgeGraphsRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListKnowledgeGraphsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiModelVersionInputExampleResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14111,48 +46556,56 @@ proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListKnowledgeGraphsRequest} message + * @param {!proto.clarifai.api.MultiModelVersionInputExampleResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListKnowledgeGraphsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiModelVersionInputExampleResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getModelVersionInputExamplesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.ModelVersionInputExample.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this */ -proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListKnowledgeGraphsRequest} returns this + * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this */ -proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -14160,18 +46613,49 @@ proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.clearUserAppId = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListKnowledgeGraphsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * repeated ModelVersionInputExample model_version_input_examples = 2; + * @return {!Array} + */ +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.getModelVersionInputExamplesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersionInputExample, 2)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this +*/ +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.setModelVersionInputExamplesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ModelVersionInputExample=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModelVersionInputExample} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.addModelVersionInputExamples = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelVersionInputExample, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this + */ +proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.clearModelVersionInputExamplesList = function() { + return this.setModelVersionInputExamplesList([]); +}; + + @@ -14188,8 +46672,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostKnowledgeGraphsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModelReferencesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModelReferencesRequest.toObject(opt_includeInstance, this); }; @@ -14198,15 +46682,16 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostKnowledgeGraphsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListModelReferencesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostKnowledgeGraphsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListModelReferencesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - knowledgeGraphsList: jspb.Message.toObjectList(msg.getKnowledgeGraphsList(), - proto_clarifai_api_resources_pb.KnowledgeGraph.toObject, includeInstance) + modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -14220,23 +46705,23 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} + * @return {!proto.clarifai.api.ListModelReferencesRequest} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListModelReferencesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostKnowledgeGraphsRequest; - return proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListModelReferencesRequest; + return proto.clarifai.api.ListModelReferencesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostKnowledgeGraphsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListModelReferencesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} + * @return {!proto.clarifai.api.ListModelReferencesRequest} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListModelReferencesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14249,9 +46734,16 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinaryFromReader = func msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.KnowledgeGraph; - reader.readMessage(value,proto_clarifai_api_resources_pb.KnowledgeGraph.deserializeBinaryFromReader); - msg.addKnowledgeGraphs(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -14266,9 +46758,9 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListModelReferencesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostKnowledgeGraphsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListModelReferencesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14276,11 +46768,11 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostKnowledgeGraphsRequest} message + * @param {!proto.clarifai.api.ListModelReferencesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostKnowledgeGraphsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListModelReferencesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -14290,12 +46782,25 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.serializeBinaryToWriter = function proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getKnowledgeGraphsList(); + f = message.getModelId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.KnowledgeGraph.serializeBinaryToWriter + f + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f ); } }; @@ -14305,7 +46810,7 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.serializeBinaryToWriter = function * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListModelReferencesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -14313,18 +46818,18 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.getUserAppId = function( /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this + * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListModelReferencesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this + * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListModelReferencesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -14333,46 +46838,62 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.clearUserAppId = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListModelReferencesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated KnowledgeGraph knowledge_graphs = 2; - * @return {!Array} + * optional string model_id = 2; + * @return {string} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.getKnowledgeGraphsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.KnowledgeGraph, 2)); +proto.clarifai.api.ListModelReferencesRequest.prototype.getModelId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this -*/ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.setKnowledgeGraphsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this + */ +proto.clarifai.api.ListModelReferencesRequest.prototype.setModelId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!proto.clarifai.api.KnowledgeGraph=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.KnowledgeGraph} + * optional uint32 page = 3; + * @return {number} */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.addKnowledgeGraphs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.KnowledgeGraph, opt_index); +proto.clarifai.api.ListModelReferencesRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostKnowledgeGraphsRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this */ -proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.clearKnowledgeGraphsList = function() { - return this.setKnowledgeGraphsList([]); +proto.clarifai.api.ListModelReferencesRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint32 per_page = 4; + * @return {number} + */ +proto.clarifai.api.ListModelReferencesRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this + */ +proto.clarifai.api.ListModelReferencesRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; @@ -14382,7 +46903,7 @@ proto.clarifai.api.PostKnowledgeGraphsRequest.prototype.clearKnowledgeGraphsList * @private {!Array} * @const */ -proto.clarifai.api.PostConceptMappingJobsRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiModelReferenceResponse.repeatedFields_ = [2]; @@ -14399,8 +46920,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostConceptMappingJobsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModelReferenceResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModelReferenceResponse.toObject(opt_includeInstance, this); }; @@ -14409,15 +46930,15 @@ proto.clarifai.api.PostConceptMappingJobsRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModelReferenceResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptMappingJobsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModelReferenceResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptMappingJobsList: jspb.Message.toObjectList(msg.getConceptMappingJobsList(), - proto_clarifai_api_resources_pb.ConceptMappingJob.toObject, includeInstance) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + modelReferencesList: jspb.Message.toObjectList(msg.getModelReferencesList(), + proto_clarifai_api_resources_pb.ModelReference.toObject, includeInstance) }; if (includeInstance) { @@ -14431,23 +46952,23 @@ proto.clarifai.api.PostConceptMappingJobsRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} + * @return {!proto.clarifai.api.MultiModelReferenceResponse} */ -proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModelReferenceResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostConceptMappingJobsRequest; - return proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModelReferenceResponse; + return proto.clarifai.api.MultiModelReferenceResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModelReferenceResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} + * @return {!proto.clarifai.api.MultiModelReferenceResponse} */ -proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModelReferenceResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14455,14 +46976,14 @@ proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ConceptMappingJob; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptMappingJob.deserializeBinaryFromReader); - msg.addConceptMappingJobs(value); + var value = new proto_clarifai_api_resources_pb.ModelReference; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModelReference.deserializeBinaryFromReader); + msg.addModelReferences(value); break; default: reader.skipField(); @@ -14477,9 +46998,9 @@ proto.clarifai.api.PostConceptMappingJobsRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiModelReferenceResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostConceptMappingJobsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiModelReferenceResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14487,56 +47008,56 @@ proto.clarifai.api.PostConceptMappingJobsRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} message + * @param {!proto.clarifai.api.MultiModelReferenceResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptMappingJobsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiModelReferenceResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptMappingJobsList(); + f = message.getModelReferencesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.ConceptMappingJob.serializeBinaryToWriter + proto_clarifai_api_resources_pb.ModelReference.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiModelReferenceResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiModelReferenceResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this + * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiModelReferenceResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -14544,46 +47065,46 @@ proto.clarifai.api.PostConceptMappingJobsRequest.prototype.clearUserAppId = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiModelReferenceResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ConceptMappingJob concept_mapping_jobs = 2; - * @return {!Array} + * repeated ModelReference model_references = 2; + * @return {!Array} */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.getConceptMappingJobsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptMappingJob, 2)); +proto.clarifai.api.MultiModelReferenceResponse.prototype.getModelReferencesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelReference, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.setConceptMappingJobsList = function(value) { +proto.clarifai.api.MultiModelReferenceResponse.prototype.setModelReferencesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.ConceptMappingJob=} opt_value + * @param {!proto.clarifai.api.ModelReference=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptMappingJob} + * @return {!proto.clarifai.api.ModelReference} */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.addConceptMappingJobs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptMappingJob, opt_index); +proto.clarifai.api.MultiModelReferenceResponse.prototype.addModelReferences = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelReference, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostConceptMappingJobsRequest} returns this + * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this */ -proto.clarifai.api.PostConceptMappingJobsRequest.prototype.clearConceptMappingJobsList = function() { - return this.setConceptMappingJobsList([]); +proto.clarifai.api.MultiModelReferenceResponse.prototype.clearModelReferencesList = function() { + return this.setModelReferencesList([]); }; @@ -14593,7 +47114,7 @@ proto.clarifai.api.PostConceptMappingJobsRequest.prototype.clearConceptMappingJo * @private {!Array} * @const */ -proto.clarifai.api.MultiConceptRelationResponse.repeatedFields_ = [2]; +proto.clarifai.api.MultiOutputResponse.repeatedFields_ = [2]; @@ -14610,8 +47131,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiConceptRelationResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiOutputResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiOutputResponse.toObject(opt_includeInstance, this); }; @@ -14620,15 +47141,15 @@ proto.clarifai.api.MultiConceptRelationResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiConceptRelationResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiOutputResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptRelationResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiOutputResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - conceptRelationsList: jspb.Message.toObjectList(msg.getConceptRelationsList(), - proto_clarifai_api_resources_pb.ConceptRelation.toObject, includeInstance) + outputsList: jspb.Message.toObjectList(msg.getOutputsList(), + proto_clarifai_api_resources_pb.Output.toObject, includeInstance) }; if (includeInstance) { @@ -14642,23 +47163,23 @@ proto.clarifai.api.MultiConceptRelationResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiConceptRelationResponse} + * @return {!proto.clarifai.api.MultiOutputResponse} */ -proto.clarifai.api.MultiConceptRelationResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiOutputResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiConceptRelationResponse; - return proto.clarifai.api.MultiConceptRelationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiOutputResponse; + return proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiConceptRelationResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiOutputResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiConceptRelationResponse} + * @return {!proto.clarifai.api.MultiOutputResponse} */ -proto.clarifai.api.MultiConceptRelationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14671,9 +47192,9 @@ proto.clarifai.api.MultiConceptRelationResponse.deserializeBinaryFromReader = fu msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ConceptRelation; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptRelation.deserializeBinaryFromReader); - msg.addConceptRelations(value); + var value = new proto_clarifai_api_resources_pb.Output; + reader.readMessage(value,proto_clarifai_api_resources_pb.Output.deserializeBinaryFromReader); + msg.addOutputs(value); break; default: reader.skipField(); @@ -14688,9 +47209,9 @@ proto.clarifai.api.MultiConceptRelationResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiOutputResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiConceptRelationResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiOutputResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14698,11 +47219,11 @@ proto.clarifai.api.MultiConceptRelationResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiConceptRelationResponse} message + * @param {!proto.clarifai.api.MultiOutputResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptRelationResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiOutputResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -14712,12 +47233,12 @@ proto.clarifai.api.MultiConceptRelationResponse.serializeBinaryToWriter = functi proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptRelationsList(); + f = message.getOutputsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.ConceptRelation.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Output.serializeBinaryToWriter ); } }; @@ -14727,7 +47248,7 @@ proto.clarifai.api.MultiConceptRelationResponse.serializeBinaryToWriter = functi * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiOutputResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -14735,18 +47256,18 @@ proto.clarifai.api.MultiConceptRelationResponse.prototype.getStatus = function() /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this + * @return {!proto.clarifai.api.MultiOutputResponse} returns this */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiOutputResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this + * @return {!proto.clarifai.api.MultiOutputResponse} returns this */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiOutputResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -14755,57 +47276,50 @@ proto.clarifai.api.MultiConceptRelationResponse.prototype.clearStatus = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiOutputResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ConceptRelation concept_relations = 2; - * @return {!Array} + * repeated Output outputs = 2; + * @return {!Array} */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.getConceptRelationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptRelation, 2)); +proto.clarifai.api.MultiOutputResponse.prototype.getOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Output, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiOutputResponse} returns this */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.setConceptRelationsList = function(value) { +proto.clarifai.api.MultiOutputResponse.prototype.setOutputsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.ConceptRelation=} opt_value + * @param {!proto.clarifai.api.Output=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptRelation} + * @return {!proto.clarifai.api.Output} */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.addConceptRelations = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptRelation, opt_index); +proto.clarifai.api.MultiOutputResponse.prototype.addOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Output, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiConceptRelationResponse} returns this + * @return {!proto.clarifai.api.MultiOutputResponse} returns this */ -proto.clarifai.api.MultiConceptRelationResponse.prototype.clearConceptRelationsList = function() { - return this.setConceptRelationsList([]); +proto.clarifai.api.MultiOutputResponse.prototype.clearOutputsList = function() { + return this.setOutputsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiKnowledgeGraphResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -14821,8 +47335,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiKnowledgeGraphResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListScopesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListScopesRequest.toObject(opt_includeInstance, this); }; @@ -14831,15 +47345,14 @@ proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiKnowledgeGraphResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListScopesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiKnowledgeGraphResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListScopesRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - knowledgeGraphsList: jspb.Message.toObjectList(msg.getKnowledgeGraphsList(), - proto_clarifai_api_resources_pb.KnowledgeGraph.toObject, includeInstance) + keyType: jspb.Message.getFieldWithDefault(msg, 1, ""), + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) }; if (includeInstance) { @@ -14853,23 +47366,23 @@ proto.clarifai.api.MultiKnowledgeGraphResponse.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} + * @return {!proto.clarifai.api.ListScopesRequest} */ -proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListScopesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiKnowledgeGraphResponse; - return proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListScopesRequest; + return proto.clarifai.api.ListScopesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiKnowledgeGraphResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListScopesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} + * @return {!proto.clarifai.api.ListScopesRequest} */ -proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListScopesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -14877,14 +47390,13 @@ proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = /** @type {string} */ (reader.readString()); + msg.setKeyType(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.KnowledgeGraph; - reader.readMessage(value,proto_clarifai_api_resources_pb.KnowledgeGraph.deserializeBinaryFromReader); - msg.addKnowledgeGraphs(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; default: reader.skipField(); @@ -14899,9 +47411,9 @@ proto.clarifai.api.MultiKnowledgeGraphResponse.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListScopesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiKnowledgeGraphResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListScopesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -14909,114 +47421,86 @@ proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiKnowledgeGraphResponse} message + * @param {!proto.clarifai.api.ListScopesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiKnowledgeGraphResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListScopesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( + f = message.getKeyType(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + f ); } - f = message.getKnowledgeGraphsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.KnowledgeGraph.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} - */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); -}; - - -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this -*/ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this + * optional string key_type = 1; + * @return {string} */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListScopesRequest.prototype.getKeyType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.ListScopesRequest} returns this */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ListScopesRequest.prototype.setKeyType = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * repeated KnowledgeGraph knowledge_graphs = 2; - * @return {!Array} + * optional UserAppIDSet user_app_id = 2; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.getKnowledgeGraphsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.KnowledgeGraph, 2)); +proto.clarifai.api.ListScopesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListScopesRequest} returns this */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.setKnowledgeGraphsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.ListScopesRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.KnowledgeGraph=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.KnowledgeGraph} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListScopesRequest} returns this */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.addKnowledgeGraphs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.KnowledgeGraph, opt_index); +proto.clarifai.api.ListScopesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiKnowledgeGraphResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiKnowledgeGraphResponse.prototype.clearKnowledgeGraphsList = function() { - return this.setKnowledgeGraphsList([]); +proto.clarifai.api.ListScopesRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 2) != null; }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiConceptMappingJobResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -15032,8 +47516,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiConceptMappingJobResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MyScopesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MyScopesRequest.toObject(opt_includeInstance, this); }; @@ -15042,14 +47526,13 @@ proto.clarifai.api.MultiConceptMappingJobResponse.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiConceptMappingJobResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MyScopesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptMappingJobResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MyScopesRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) }; if (includeInstance) { @@ -15063,23 +47546,23 @@ proto.clarifai.api.MultiConceptMappingJobResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} + * @return {!proto.clarifai.api.MyScopesRequest} */ -proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MyScopesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiConceptMappingJobResponse; - return proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MyScopesRequest; + return proto.clarifai.api.MyScopesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiConceptMappingJobResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MyScopesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} + * @return {!proto.clarifai.api.MyScopesRequest} */ -proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MyScopesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15087,13 +47570,9 @@ proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; default: reader.skipField(); @@ -15108,9 +47587,9 @@ proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MyScopesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiConceptMappingJobResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MyScopesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15118,55 +47597,48 @@ proto.clarifai.api.MultiConceptMappingJobResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiConceptMappingJobResponse} message + * @param {!proto.clarifai.api.MyScopesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptMappingJobResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MyScopesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.MyScopesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.MyScopesRequest} returns this */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MyScopesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this + * @return {!proto.clarifai.api.MyScopesRequest} returns this */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.MyScopesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -15174,48 +47646,11 @@ proto.clarifai.api.MultiConceptMappingJobResponse.prototype.clearStatus = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.hasStatus = function() { +proto.clarifai.api.MyScopesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; -/** - * repeated string ids = 2; - * @return {!Array} - */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this - */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this - */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiConceptMappingJobResponse} returns this - */ -proto.clarifai.api.MultiConceptMappingJobResponse.prototype.clearIdsList = function() { - return this.setIdsList([]); -}; - - @@ -15232,8 +47667,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetConceptLanguageRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MyScopesUserRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MyScopesUserRequest.toObject(opt_includeInstance, this); }; @@ -15242,15 +47677,13 @@ proto.clarifai.api.GetConceptLanguageRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetConceptLanguageRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MyScopesUserRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetConceptLanguageRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MyScopesUserRequest.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), - language: jspb.Message.getFieldWithDefault(msg, 3, "") + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) }; if (includeInstance) { @@ -15264,23 +47697,23 @@ proto.clarifai.api.GetConceptLanguageRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetConceptLanguageRequest} + * @return {!proto.clarifai.api.MyScopesUserRequest} */ -proto.clarifai.api.GetConceptLanguageRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MyScopesUserRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetConceptLanguageRequest; - return proto.clarifai.api.GetConceptLanguageRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MyScopesUserRequest; + return proto.clarifai.api.MyScopesUserRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetConceptLanguageRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MyScopesUserRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetConceptLanguageRequest} + * @return {!proto.clarifai.api.MyScopesUserRequest} */ -proto.clarifai.api.GetConceptLanguageRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MyScopesUserRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15292,14 +47725,6 @@ proto.clarifai.api.GetConceptLanguageRequest.deserializeBinaryFromReader = funct reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; default: reader.skipField(); break; @@ -15313,9 +47738,9 @@ proto.clarifai.api.GetConceptLanguageRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MyScopesUserRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetConceptLanguageRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MyScopesUserRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15323,11 +47748,11 @@ proto.clarifai.api.GetConceptLanguageRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetConceptLanguageRequest} message + * @param {!proto.clarifai.api.MyScopesUserRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetConceptLanguageRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MyScopesUserRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -15337,20 +47762,6 @@ proto.clarifai.api.GetConceptLanguageRequest.serializeBinaryToWriter = function( proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getConceptId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } }; @@ -15358,7 +47769,7 @@ proto.clarifai.api.GetConceptLanguageRequest.serializeBinaryToWriter = function( * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.getUserAppId = function() { +proto.clarifai.api.MyScopesUserRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -15366,18 +47777,18 @@ proto.clarifai.api.GetConceptLanguageRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this + * @return {!proto.clarifai.api.MyScopesUserRequest} returns this */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MyScopesUserRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this + * @return {!proto.clarifai.api.MyScopesUserRequest} returns this */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.MyScopesUserRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -15386,48 +47797,120 @@ proto.clarifai.api.GetConceptLanguageRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MyScopesUserRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional string concept_id = 2; - * @return {string} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.getConceptId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.MyScopesRootRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MyScopesRootRequest.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MyScopesRootRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.setConceptId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.MyScopesRootRequest.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string language = 3; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MyScopesRootRequest} */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.MyScopesRootRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MyScopesRootRequest; + return proto.clarifai.api.MyScopesRootRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetConceptLanguageRequest} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MyScopesRootRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MyScopesRootRequest} */ -proto.clarifai.api.GetConceptLanguageRequest.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.MyScopesRootRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.MyScopesRootRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MyScopesRootRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MyScopesRootRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.MyScopesRootRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiScopeDepsResponse.repeatedFields_ = [2,3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -15443,8 +47926,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListConceptLanguagesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiScopeDepsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiScopeDepsResponse.toObject(opt_includeInstance, this); }; @@ -15453,16 +47936,17 @@ proto.clarifai.api.ListConceptLanguagesRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListConceptLanguagesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiScopeDepsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListConceptLanguagesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiScopeDepsResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), - page: jspb.Message.getFieldWithDefault(msg, 3, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + scopeDepsList: jspb.Message.toObjectList(msg.getScopeDepsList(), + proto_clarifai_api_resources_pb.ScopeDeps.toObject, includeInstance), + endpointDepsList: jspb.Message.toObjectList(msg.getEndpointDepsList(), + proto_clarifai_api_resources_pb.EndpointDeps.toObject, includeInstance) }; if (includeInstance) { @@ -15476,23 +47960,23 @@ proto.clarifai.api.ListConceptLanguagesRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListConceptLanguagesRequest} + * @return {!proto.clarifai.api.MultiScopeDepsResponse} */ -proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiScopeDepsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListConceptLanguagesRequest; - return proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiScopeDepsResponse; + return proto.clarifai.api.MultiScopeDepsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListConceptLanguagesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiScopeDepsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListConceptLanguagesRequest} + * @return {!proto.clarifai.api.MultiScopeDepsResponse} */ -proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiScopeDepsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15500,21 +47984,19 @@ proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); + var value = new proto_clarifai_api_resources_pb.ScopeDeps; + reader.readMessage(value,proto_clarifai_api_resources_pb.ScopeDeps.deserializeBinaryFromReader); + msg.addScopeDeps(value); break; case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = new proto_clarifai_api_resources_pb.EndpointDeps; + reader.readMessage(value,proto_clarifai_api_resources_pb.EndpointDeps.deserializeBinaryFromReader); + msg.addEndpointDeps(value); break; default: reader.skipField(); @@ -15529,9 +48011,9 @@ proto.clarifai.api.ListConceptLanguagesRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiScopeDepsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListConceptLanguagesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiScopeDepsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15539,69 +48021,64 @@ proto.clarifai.api.ListConceptLanguagesRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListConceptLanguagesRequest} message + * @param {!proto.clarifai.api.MultiScopeDepsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListConceptLanguagesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiScopeDepsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptId(); + f = message.getScopeDepsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.ScopeDeps.serializeBinaryToWriter ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getEndpointDepsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 4, - f + f, + proto_clarifai_api_resources_pb.EndpointDeps.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiScopeDepsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiScopeDepsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiScopeDepsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -15609,62 +48086,84 @@ proto.clarifai.api.ListConceptLanguagesRequest.prototype.clearUserAppId = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiScopeDepsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string concept_id = 2; - * @return {string} + * repeated ScopeDeps scope_deps = 2; + * @return {!Array} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.getConceptId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.MultiScopeDepsResponse.prototype.getScopeDepsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ScopeDeps, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this +*/ +proto.clarifai.api.MultiScopeDepsResponse.prototype.setScopeDepsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.ScopeDeps=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ScopeDeps} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.setConceptId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.MultiScopeDepsResponse.prototype.addScopeDeps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ScopeDeps, opt_index); }; /** - * optional uint32 page = 3; - * @return {number} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.MultiScopeDepsResponse.prototype.clearScopeDepsList = function() { + return this.setScopeDepsList([]); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + * repeated EndpointDeps endpoint_deps = 3; + * @return {!Array} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.MultiScopeDepsResponse.prototype.getEndpointDepsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.EndpointDeps, 3)); }; /** - * optional uint32 per_page = 4; - * @return {number} + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this +*/ +proto.clarifai.api.MultiScopeDepsResponse.prototype.setEndpointDepsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.EndpointDeps=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.EndpointDeps} */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.MultiScopeDepsResponse.prototype.addEndpointDeps = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.EndpointDeps, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListConceptLanguagesRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this */ -proto.clarifai.api.ListConceptLanguagesRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.MultiScopeDepsResponse.prototype.clearEndpointDepsList = function() { + return this.setEndpointDepsList([]); }; @@ -15674,7 +48173,7 @@ proto.clarifai.api.ListConceptLanguagesRequest.prototype.setPerPage = function(v * @private {!Array} * @const */ -proto.clarifai.api.PatchConceptLanguagesRequest.repeatedFields_ = [3]; +proto.clarifai.api.MultiScopeResponse.repeatedFields_ = [2,4]; @@ -15691,8 +48190,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchConceptLanguagesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiScopeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiScopeResponse.toObject(opt_includeInstance, this); }; @@ -15701,17 +48200,17 @@ proto.clarifai.api.PatchConceptLanguagesRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchConceptLanguagesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiScopeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchConceptLanguagesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiScopeResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), - conceptLanguagesList: jspb.Message.toObjectList(msg.getConceptLanguagesList(), - proto_clarifai_api_resources_pb.ConceptLanguage.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 4, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + scopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + app: (f = msg.getApp()) && proto_clarifai_api_resources_pb.App.toObject(includeInstance, f), + endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + userFeatureFlags: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -15725,23 +48224,23 @@ proto.clarifai.api.PatchConceptLanguagesRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} + * @return {!proto.clarifai.api.MultiScopeResponse} */ -proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiScopeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchConceptLanguagesRequest; - return proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiScopeResponse; + return proto.clarifai.api.MultiScopeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchConceptLanguagesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiScopeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} + * @return {!proto.clarifai.api.MultiScopeResponse} */ -proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiScopeResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -15749,22 +48248,26 @@ proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); + msg.addScopes(value); break; case 3: - var value = new proto_clarifai_api_resources_pb.ConceptLanguage; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); - msg.addConceptLanguages(value); + var value = new proto_clarifai_api_resources_pb.App; + reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); + msg.setApp(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.addEndpoints(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUserFeatureFlags(value); break; default: reader.skipField(); @@ -15779,9 +48282,9 @@ proto.clarifai.api.PatchConceptLanguagesRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiScopeResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchConceptLanguagesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiScopeResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -15789,70 +48292,77 @@ proto.clarifai.api.PatchConceptLanguagesRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchConceptLanguagesRequest} message + * @param {!proto.clarifai.api.MultiScopeResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchConceptLanguagesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiScopeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptId(); + f = message.getScopesList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 2, f ); } - f = message.getConceptLanguagesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getApp(); + if (f != null) { + writer.writeMessage( 3, f, - proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + proto_clarifai_api_resources_pb.App.serializeBinaryToWriter ); } - f = message.getAction(); + f = message.getEndpointsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 4, f ); } + f = message.getUserFeatureFlags(); + if (f.length > 0) { + writer.writeString( + 5, + f + ); + } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiScopeResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiScopeResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiScopeResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -15860,82 +48370,137 @@ proto.clarifai.api.PatchConceptLanguagesRequest.prototype.clearUserAppId = funct * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiScopeResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string concept_id = 2; - * @return {string} + * repeated string scopes = 2; + * @return {!Array} */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getConceptId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.MultiScopeResponse.prototype.getScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeResponse} returns this + */ +proto.clarifai.api.MultiScopeResponse.prototype.setScopesList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setConceptId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.MultiScopeResponse.prototype.addScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * repeated ConceptLanguage concept_languages = 3; - * @return {!Array} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getConceptLanguagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 3)); +proto.clarifai.api.MultiScopeResponse.prototype.clearScopesList = function() { + return this.setScopesList([]); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + * optional App app = 3; + * @return {?proto.clarifai.api.App} + */ +proto.clarifai.api.MultiScopeResponse.prototype.getApp = function() { + return /** @type{?proto.clarifai.api.App} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.App, 3)); +}; + + +/** + * @param {?proto.clarifai.api.App|undefined} value + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setConceptLanguagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.MultiScopeResponse.prototype.setApp = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.ConceptLanguage=} opt_value + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiScopeResponse} returns this + */ +proto.clarifai.api.MultiScopeResponse.prototype.clearApp = function() { + return this.setApp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.MultiScopeResponse.prototype.hasApp = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * repeated string endpoints = 4; + * @return {!Array} + */ +proto.clarifai.api.MultiScopeResponse.prototype.getEndpointsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeResponse} returns this + */ +proto.clarifai.api.MultiScopeResponse.prototype.setEndpointsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptLanguage} + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.addConceptLanguages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ConceptLanguage, opt_index); +proto.clarifai.api.MultiScopeResponse.prototype.addEndpoints = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.clearConceptLanguagesList = function() { - return this.setConceptLanguagesList([]); +proto.clarifai.api.MultiScopeResponse.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); }; /** - * optional string action = 4; + * optional string user_feature_flags = 5; * @return {string} */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.MultiScopeResponse.prototype.getUserFeatureFlags = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchConceptLanguagesRequest} returns this + * @return {!proto.clarifai.api.MultiScopeResponse} returns this */ -proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.MultiScopeResponse.prototype.setUserFeatureFlags = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; @@ -15945,7 +48510,7 @@ proto.clarifai.api.PatchConceptLanguagesRequest.prototype.setAction = function(v * @private {!Array} * @const */ -proto.clarifai.api.PostConceptLanguagesRequest.repeatedFields_ = [3]; +proto.clarifai.api.MultiScopeUserResponse.repeatedFields_ = [2,4]; @@ -15962,8 +48527,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostConceptLanguagesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiScopeUserResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiScopeUserResponse.toObject(opt_includeInstance, this); }; @@ -15972,16 +48537,16 @@ proto.clarifai.api.PostConceptLanguagesRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostConceptLanguagesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiScopeUserResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptLanguagesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiScopeUserResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - conceptId: jspb.Message.getFieldWithDefault(msg, 2, ""), - conceptLanguagesList: jspb.Message.toObjectList(msg.getConceptLanguagesList(), - proto_clarifai_api_resources_pb.ConceptLanguage.toObject, includeInstance) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + scopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + userFeatureFlags: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -15995,23 +48560,23 @@ proto.clarifai.api.PostConceptLanguagesRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostConceptLanguagesRequest} + * @return {!proto.clarifai.api.MultiScopeUserResponse} */ -proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiScopeUserResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostConceptLanguagesRequest; - return proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiScopeUserResponse; + return proto.clarifai.api.MultiScopeUserResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostConceptLanguagesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiScopeUserResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostConceptLanguagesRequest} + * @return {!proto.clarifai.api.MultiScopeUserResponse} */ -proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiScopeUserResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16019,18 +48584,21 @@ proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setConceptId(value); + msg.addScopes(value); break; - case 3: - var value = new proto_clarifai_api_resources_pb.ConceptLanguage; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); - msg.addConceptLanguages(value); + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addEndpoints(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUserFeatureFlags(value); break; default: reader.skipField(); @@ -16045,9 +48613,9 @@ proto.clarifai.api.PostConceptLanguagesRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiScopeUserResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostConceptLanguagesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiScopeUserResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16055,63 +48623,69 @@ proto.clarifai.api.PostConceptLanguagesRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostConceptLanguagesRequest} message + * @param {!proto.clarifai.api.MultiScopeUserResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostConceptLanguagesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiScopeUserResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptId(); + f = message.getScopesList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 2, f ); } - f = message.getConceptLanguagesList(); + f = message.getEndpointsList(); if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getUserFeatureFlags(); + if (f.length > 0) { + writer.writeString( + 5, + f ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiScopeUserResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiScopeUserResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiScopeUserResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -16119,68 +48693,111 @@ proto.clarifai.api.PostConceptLanguagesRequest.prototype.clearUserAppId = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiScopeUserResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string concept_id = 2; - * @return {string} + * repeated string scopes = 2; + * @return {!Array} */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.getConceptId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.MultiScopeUserResponse.prototype.getScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + */ +proto.clarifai.api.MultiScopeUserResponse.prototype.setScopesList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value - * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.setConceptId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.MultiScopeUserResponse.prototype.addScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * repeated ConceptLanguage concept_languages = 3; - * @return {!Array} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.getConceptLanguagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 3)); +proto.clarifai.api.MultiScopeUserResponse.prototype.clearScopesList = function() { + return this.setScopesList([]); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this -*/ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.setConceptLanguagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); + * repeated string endpoints = 4; + * @return {!Array} + */ +proto.clarifai.api.MultiScopeUserResponse.prototype.getEndpointsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; /** - * @param {!proto.clarifai.api.ConceptLanguage=} opt_value + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + */ +proto.clarifai.api.MultiScopeUserResponse.prototype.setEndpointsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptLanguage} + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.addConceptLanguages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ConceptLanguage, opt_index); +proto.clarifai.api.MultiScopeUserResponse.prototype.addEndpoints = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostConceptLanguagesRequest} returns this + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this */ -proto.clarifai.api.PostConceptLanguagesRequest.prototype.clearConceptLanguagesList = function() { - return this.setConceptLanguagesList([]); +proto.clarifai.api.MultiScopeUserResponse.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); +}; + + +/** + * optional string user_feature_flags = 5; + * @return {string} + */ +proto.clarifai.api.MultiScopeUserResponse.prototype.getUserFeatureFlags = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + */ +proto.clarifai.api.MultiScopeUserResponse.prototype.setUserFeatureFlags = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiScopeRootResponse.repeatedFields_ = [2,4]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -16196,8 +48813,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleConceptLanguageResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiScopeRootResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiScopeRootResponse.toObject(opt_includeInstance, this); }; @@ -16206,14 +48823,16 @@ proto.clarifai.api.SingleConceptLanguageResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleConceptLanguageResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiScopeRootResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleConceptLanguageResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiScopeRootResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - conceptLanguage: (f = msg.getConceptLanguage()) && proto_clarifai_api_resources_pb.ConceptLanguage.toObject(includeInstance, f) + scopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + userFeatureFlags: jspb.Message.getFieldWithDefault(msg, 5, "") }; if (includeInstance) { @@ -16227,23 +48846,23 @@ proto.clarifai.api.SingleConceptLanguageResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleConceptLanguageResponse} + * @return {!proto.clarifai.api.MultiScopeRootResponse} */ -proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiScopeRootResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleConceptLanguageResponse; - return proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiScopeRootResponse; + return proto.clarifai.api.MultiScopeRootResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleConceptLanguageResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiScopeRootResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleConceptLanguageResponse} + * @return {!proto.clarifai.api.MultiScopeRootResponse} */ -proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiScopeRootResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16256,9 +48875,16 @@ proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinaryFromReader = f msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ConceptLanguage; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); - msg.setConceptLanguage(value); + var value = /** @type {string} */ (reader.readString()); + msg.addScopes(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addEndpoints(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setUserFeatureFlags(value); break; default: reader.skipField(); @@ -16273,9 +48899,9 @@ proto.clarifai.api.SingleConceptLanguageResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiScopeRootResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleConceptLanguageResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiScopeRootResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16283,11 +48909,11 @@ proto.clarifai.api.SingleConceptLanguageResponse.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleConceptLanguageResponse} message + * @param {!proto.clarifai.api.MultiScopeRootResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleConceptLanguageResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiScopeRootResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -16297,12 +48923,25 @@ proto.clarifai.api.SingleConceptLanguageResponse.serializeBinaryToWriter = funct proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getConceptLanguage(); - if (f != null) { - writer.writeMessage( + f = message.getScopesList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, - f, - proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + f + ); + } + f = message.getEndpointsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getUserFeatureFlags(); + if (f.length > 0) { + writer.writeString( + 5, + f ); } }; @@ -16312,7 +48951,7 @@ proto.clarifai.api.SingleConceptLanguageResponse.serializeBinaryToWriter = funct * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiScopeRootResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -16320,18 +48959,18 @@ proto.clarifai.api.SingleConceptLanguageResponse.prototype.getStatus = function( /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiScopeRootResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiScopeRootResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -16340,55 +48979,103 @@ proto.clarifai.api.SingleConceptLanguageResponse.prototype.clearStatus = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiScopeRootResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional ConceptLanguage concept_language = 2; - * @return {?proto.clarifai.api.ConceptLanguage} + * repeated string scopes = 2; + * @return {!Array} */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.getConceptLanguage = function() { - return /** @type{?proto.clarifai.api.ConceptLanguage} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 2)); +proto.clarifai.api.MultiScopeRootResponse.prototype.getScopesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {?proto.clarifai.api.ConceptLanguage|undefined} value - * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this -*/ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.setConceptLanguage = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + */ +proto.clarifai.api.MultiScopeRootResponse.prototype.setScopesList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleConceptLanguageResponse} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.clearConceptLanguage = function() { - return this.setConceptLanguage(undefined); +proto.clarifai.api.MultiScopeRootResponse.prototype.addScopes = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this */ -proto.clarifai.api.SingleConceptLanguageResponse.prototype.hasConceptLanguage = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.MultiScopeRootResponse.prototype.clearScopesList = function() { + return this.setScopesList([]); +}; + + +/** + * repeated string endpoints = 4; + * @return {!Array} + */ +proto.clarifai.api.MultiScopeRootResponse.prototype.getEndpointsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + */ +proto.clarifai.api.MultiScopeRootResponse.prototype.setEndpointsList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this */ -proto.clarifai.api.MultiConceptLanguageResponse.repeatedFields_ = [2]; +proto.clarifai.api.MultiScopeRootResponse.prototype.addEndpoints = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + */ +proto.clarifai.api.MultiScopeRootResponse.prototype.clearEndpointsList = function() { + return this.setEndpointsList([]); +}; + + +/** + * optional string user_feature_flags = 5; + * @return {string} + */ +proto.clarifai.api.MultiScopeRootResponse.prototype.getUserFeatureFlags = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + */ +proto.clarifai.api.MultiScopeRootResponse.prototype.setUserFeatureFlags = function(value) { + return jspb.Message.setProto3StringField(this, 5, value); +}; + + @@ -16405,8 +49092,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiConceptLanguageResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.GetSearchRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetSearchRequest.toObject(opt_includeInstance, this); }; @@ -16415,15 +49102,14 @@ proto.clarifai.api.MultiConceptLanguageResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiConceptLanguageResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetSearchRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptLanguageResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetSearchRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - conceptLanguagesList: jspb.Message.toObjectList(msg.getConceptLanguagesList(), - proto_clarifai_api_resources_pb.ConceptLanguage.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -16437,23 +49123,23 @@ proto.clarifai.api.MultiConceptLanguageResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiConceptLanguageResponse} + * @return {!proto.clarifai.api.GetSearchRequest} */ -proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.GetSearchRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiConceptLanguageResponse; - return proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetSearchRequest; + return proto.clarifai.api.GetSearchRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiConceptLanguageResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetSearchRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiConceptLanguageResponse} + * @return {!proto.clarifai.api.GetSearchRequest} */ -proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetSearchRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16461,14 +49147,13 @@ proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ConceptLanguage; - reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptLanguage.deserializeBinaryFromReader); - msg.addConceptLanguages(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; default: reader.skipField(); @@ -16483,9 +49168,9 @@ proto.clarifai.api.MultiConceptLanguageResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.serializeBinary = function() { +proto.clarifai.api.GetSearchRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiConceptLanguageResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetSearchRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16493,56 +49178,55 @@ proto.clarifai.api.MultiConceptLanguageResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiConceptLanguageResponse} message + * @param {!proto.clarifai.api.GetSearchRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiConceptLanguageResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetSearchRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getConceptLanguagesList(); + f = message.getId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.ConceptLanguage.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.GetSearchRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetSearchRequest} returns this */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.setStatus = function(value) { +proto.clarifai.api.GetSearchRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this + * @return {!proto.clarifai.api.GetSearchRequest} returns this */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.GetSearchRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -16550,46 +49234,26 @@ proto.clarifai.api.MultiConceptLanguageResponse.prototype.clearStatus = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.hasStatus = function() { +proto.clarifai.api.GetSearchRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ConceptLanguage concept_languages = 2; - * @return {!Array} - */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.getConceptLanguagesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ConceptLanguage, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this -*/ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.setConceptLanguagesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clarifai.api.ConceptLanguage=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ConceptLanguage} + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.addConceptLanguages = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ConceptLanguage, opt_index); +proto.clarifai.api.GetSearchRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiConceptLanguageResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetSearchRequest} returns this */ -proto.clarifai.api.MultiConceptLanguageResponse.prototype.clearConceptLanguagesList = function() { - return this.setConceptLanguagesList([]); +proto.clarifai.api.GetSearchRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -16609,8 +49273,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetInputRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetInputRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListSearchesRequest.toObject(opt_includeInstance, this); }; @@ -16619,14 +49283,15 @@ proto.clarifai.api.GetInputRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetInputRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetInputRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - inputId: jspb.Message.getFieldWithDefault(msg, 2, "") + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -16640,23 +49305,23 @@ proto.clarifai.api.GetInputRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetInputRequest} + * @return {!proto.clarifai.api.ListSearchesRequest} */ -proto.clarifai.api.GetInputRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetInputRequest; - return proto.clarifai.api.GetInputRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListSearchesRequest; + return proto.clarifai.api.ListSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetInputRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetInputRequest} + * @return {!proto.clarifai.api.ListSearchesRequest} */ -proto.clarifai.api.GetInputRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16669,8 +49334,12 @@ proto.clarifai.api.GetInputRequest.deserializeBinaryFromReader = function(msg, r msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setInputId(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -16685,9 +49354,9 @@ proto.clarifai.api.GetInputRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetInputRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetInputRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16695,11 +49364,11 @@ proto.clarifai.api.GetInputRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetInputRequest} message + * @param {!proto.clarifai.api.ListSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetInputRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -16709,13 +49378,20 @@ proto.clarifai.api.GetInputRequest.serializeBinaryToWriter = function(message, w proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getInputId(); - if (f.length > 0) { - writer.writeString( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 2, f ); } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } }; @@ -16723,7 +49399,7 @@ proto.clarifai.api.GetInputRequest.serializeBinaryToWriter = function(message, w * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetInputRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListSearchesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -16731,18 +49407,18 @@ proto.clarifai.api.GetInputRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetInputRequest} returns this + * @return {!proto.clarifai.api.ListSearchesRequest} returns this */ -proto.clarifai.api.GetInputRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetInputRequest} returns this + * @return {!proto.clarifai.api.ListSearchesRequest} returns this */ -proto.clarifai.api.GetInputRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListSearchesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -16751,26 +49427,44 @@ proto.clarifai.api.GetInputRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetInputRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string input_id = 2; - * @return {string} + * optional uint32 page = 2; + * @return {number} */ -proto.clarifai.api.GetInputRequest.prototype.getInputId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.ListSearchesRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetInputRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListSearchesRequest} returns this */ -proto.clarifai.api.GetInputRequest.prototype.setInputId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.ListSearchesRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListSearchesRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.clarifai.api.ListSearchesRequest} returns this + */ +proto.clarifai.api.ListSearchesRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -16780,7 +49474,7 @@ proto.clarifai.api.GetInputRequest.prototype.setInputId = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.GetInputSamplesRequest.repeatedFields_ = [3]; +proto.clarifai.api.PostSearchesRequest.repeatedFields_ = [3]; @@ -16797,8 +49491,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetInputSamplesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetInputSamplesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostSearchesRequest.toObject(opt_includeInstance, this); }; @@ -16807,15 +49501,17 @@ proto.clarifai.api.GetInputSamplesRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetInputSamplesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetInputSamplesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - taskId: jspb.Message.getFieldWithDefault(msg, 2, ""), - userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + query: (f = msg.getQuery()) && proto_clarifai_api_resources_pb.Query.toObject(includeInstance, f), + searchesList: jspb.Message.toObjectList(msg.getSearchesList(), + proto_clarifai_api_resources_pb.Search.toObject, includeInstance), + pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) }; if (includeInstance) { @@ -16829,23 +49525,23 @@ proto.clarifai.api.GetInputSamplesRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetInputSamplesRequest} + * @return {!proto.clarifai.api.PostSearchesRequest} */ -proto.clarifai.api.GetInputSamplesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetInputSamplesRequest; - return proto.clarifai.api.GetInputSamplesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostSearchesRequest; + return proto.clarifai.api.PostSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetInputSamplesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetInputSamplesRequest} + * @return {!proto.clarifai.api.PostSearchesRequest} */ -proto.clarifai.api.GetInputSamplesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -16858,12 +49554,19 @@ proto.clarifai.api.GetInputSamplesRequest.deserializeBinaryFromReader = function msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskId(value); + var value = new proto_clarifai_api_resources_pb.Query; + reader.readMessage(value,proto_clarifai_api_resources_pb.Query.deserializeBinaryFromReader); + msg.setQuery(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addUserIds(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.addSearches(value); + break; + case 4: + var value = new proto.clarifai.api.Pagination; + reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); break; default: reader.skipField(); @@ -16878,9 +49581,9 @@ proto.clarifai.api.GetInputSamplesRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetInputSamplesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetInputSamplesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -16888,11 +49591,11 @@ proto.clarifai.api.GetInputSamplesRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetInputSamplesRequest} message + * @param {!proto.clarifai.api.PostSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetInputSamplesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -16902,18 +49605,28 @@ proto.clarifai.api.GetInputSamplesRequest.serializeBinaryToWriter = function(mes proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getTaskId(); - if (f.length > 0) { - writer.writeString( + f = message.getQuery(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto_clarifai_api_resources_pb.Query.serializeBinaryToWriter ); } - f = message.getUserIdsList(); + f = message.getSearchesList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 3, - f + f, + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.Pagination.serializeBinaryToWriter ); } }; @@ -16923,7 +49636,7 @@ proto.clarifai.api.GetInputSamplesRequest.serializeBinaryToWriter = function(mes * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetInputSamplesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostSearchesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -16931,18 +49644,18 @@ proto.clarifai.api.GetInputSamplesRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + * @return {!proto.clarifai.api.PostSearchesRequest} returns this */ -proto.clarifai.api.GetInputSamplesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + * @return {!proto.clarifai.api.PostSearchesRequest} returns this */ -proto.clarifai.api.GetInputSamplesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostSearchesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -16951,63 +49664,120 @@ proto.clarifai.api.GetInputSamplesRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetInputSamplesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string task_id = 2; - * @return {string} + * optional Query query = 2; + * @return {?proto.clarifai.api.Query} */ -proto.clarifai.api.GetInputSamplesRequest.prototype.getTaskId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.PostSearchesRequest.prototype.getQuery = function() { + return /** @type{?proto.clarifai.api.Query} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Query, 2)); +}; + + +/** + * @param {?proto.clarifai.api.Query|undefined} value + * @return {!proto.clarifai.api.PostSearchesRequest} returns this +*/ +proto.clarifai.api.PostSearchesRequest.prototype.setQuery = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostSearchesRequest} returns this + */ +proto.clarifai.api.PostSearchesRequest.prototype.clearQuery = function() { + return this.setQuery(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostSearchesRequest.prototype.hasQuery = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated Search searches = 3; + * @return {!Array} + */ +proto.clarifai.api.PostSearchesRequest.prototype.getSearchesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostSearchesRequest} returns this +*/ +proto.clarifai.api.PostSearchesRequest.prototype.setSearchesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.Search=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Search} + */ +proto.clarifai.api.PostSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Search, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostSearchesRequest} returns this */ -proto.clarifai.api.GetInputSamplesRequest.prototype.setTaskId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.PostSearchesRequest.prototype.clearSearchesList = function() { + return this.setSearchesList([]); }; /** - * repeated string user_ids = 3; - * @return {!Array} + * optional Pagination pagination = 4; + * @return {?proto.clarifai.api.Pagination} */ -proto.clarifai.api.GetInputSamplesRequest.prototype.getUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.PostSearchesRequest.prototype.getPagination = function() { + return /** @type{?proto.clarifai.api.Pagination} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 4)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this - */ -proto.clarifai.api.GetInputSamplesRequest.prototype.setUserIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); + * @param {?proto.clarifai.api.Pagination|undefined} value + * @return {!proto.clarifai.api.PostSearchesRequest} returns this +*/ +proto.clarifai.api.PostSearchesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostSearchesRequest} returns this */ -proto.clarifai.api.GetInputSamplesRequest.prototype.addUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.PostSearchesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.GetInputSamplesRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.GetInputSamplesRequest.prototype.clearUserIdsList = function() { - return this.setUserIdsList([]); +proto.clarifai.api.PostSearchesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 4) != null; }; @@ -17017,7 +49787,7 @@ proto.clarifai.api.GetInputSamplesRequest.prototype.clearUserIdsList = function( * @private {!Array} * @const */ -proto.clarifai.api.ListInputsRequest.repeatedFields_ = [4]; +proto.clarifai.api.PatchInputsSearchesRequest.repeatedFields_ = [2]; @@ -17034,8 +49804,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListInputsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListInputsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchInputsSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchInputsSearchesRequest.toObject(opt_includeInstance, this); }; @@ -17044,17 +49814,16 @@ proto.clarifai.api.ListInputsRequest.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListInputsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchInputsSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListInputsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchInputsSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + searchesList: jspb.Message.toObjectList(msg.getSearchesList(), + proto_clarifai_api_resources_pb.Search.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -17068,23 +49837,23 @@ proto.clarifai.api.ListInputsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListInputsRequest} + * @return {!proto.clarifai.api.PatchInputsSearchesRequest} */ -proto.clarifai.api.ListInputsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchInputsSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListInputsRequest; - return proto.clarifai.api.ListInputsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchInputsSearchesRequest; + return proto.clarifai.api.PatchInputsSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListInputsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchInputsSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListInputsRequest} + * @return {!proto.clarifai.api.PatchInputsSearchesRequest} */ -proto.clarifai.api.ListInputsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchInputsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -17097,21 +49866,13 @@ proto.clarifai.api.ListInputsRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.addSearches(value); break; case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); - break; - case 5: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 4: var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + msg.setAction(value); break; default: reader.skipField(); @@ -17126,9 +49887,9 @@ proto.clarifai.api.ListInputsRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListInputsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PatchInputsSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListInputsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchInputsSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17136,11 +49897,11 @@ proto.clarifai.api.ListInputsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListInputsRequest} message + * @param {!proto.clarifai.api.PatchInputsSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListInputsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchInputsSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -17150,32 +49911,18 @@ proto.clarifai.api.ListInputsRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getSearchesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 5, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter ); } - f = message.getIdsList(); + f = message.getAction(); if (f.length > 0) { - writer.writeRepeatedString( - 4, + writer.writeString( + 3, f ); } @@ -17186,7 +49933,7 @@ proto.clarifai.api.ListInputsRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListInputsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PatchInputsSearchesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -17194,18 +49941,18 @@ proto.clarifai.api.ListInputsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListInputsRequest} returns this + * @return {!proto.clarifai.api.PatchInputsSearchesRequest} returns this */ -proto.clarifai.api.ListInputsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PatchInputsSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListInputsRequest} returns this + * @return {!proto.clarifai.api.PatchInputsSearchesRequest} returns this */ -proto.clarifai.api.ListInputsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PatchInputsSearchesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -17214,121 +49961,74 @@ proto.clarifai.api.ListInputsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListInputsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PatchInputsSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} - */ -proto.clarifai.api.ListInputsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListInputsRequest} returns this - */ -proto.clarifai.api.ListInputsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 per_page = 3; - * @return {number} - */ -proto.clarifai.api.ListInputsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListInputsRequest} returns this - */ -proto.clarifai.api.ListInputsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional status.Status status = 5; - * @return {?proto.clarifai.api.status.Status} + * repeated Search searches = 2; + * @return {!Array} */ -proto.clarifai.api.ListInputsRequest.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 5)); +proto.clarifai.api.PatchInputsSearchesRequest.prototype.getSearchesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 2)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.ListInputsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PatchInputsSearchesRequest} returns this */ -proto.clarifai.api.ListInputsRequest.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListInputsRequest} returns this - */ -proto.clarifai.api.ListInputsRequest.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchInputsSearchesRequest.prototype.setSearchesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.clarifai.api.Search=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.ListInputsRequest.prototype.hasStatus = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.PatchInputsSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Search, opt_index); }; /** - * repeated string ids = 4; - * @return {!Array} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchInputsSearchesRequest} returns this */ -proto.clarifai.api.ListInputsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.clarifai.api.PatchInputsSearchesRequest.prototype.clearSearchesList = function() { + return this.setSearchesList([]); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListInputsRequest} returns this + * optional string action = 3; + * @return {string} */ -proto.clarifai.api.ListInputsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.PatchInputsSearchesRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListInputsRequest} returns this + * @return {!proto.clarifai.api.PatchInputsSearchesRequest} returns this */ -proto.clarifai.api.ListInputsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.PatchInputsSearchesRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; + /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListInputsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.ListInputsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); -}; - - +proto.clarifai.api.PatchAnnotationsSearchesRequest.repeatedFields_ = [2]; @@ -17345,8 +50045,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.StreamInputsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.StreamInputsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAnnotationsSearchesRequest.toObject(opt_includeInstance, this); }; @@ -17355,16 +50055,16 @@ proto.clarifai.api.StreamInputsRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.StreamInputsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchAnnotationsSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StreamInputsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchAnnotationsSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - perPage: jspb.Message.getFieldWithDefault(msg, 2, 0), - lastId: jspb.Message.getFieldWithDefault(msg, 3, ""), - descending: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) + searchesList: jspb.Message.toObjectList(msg.getSearchesList(), + proto_clarifai_api_resources_pb.Search.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -17378,23 +50078,23 @@ proto.clarifai.api.StreamInputsRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.StreamInputsRequest} + * @return {!proto.clarifai.api.PatchAnnotationsSearchesRequest} */ -proto.clarifai.api.StreamInputsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchAnnotationsSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.StreamInputsRequest; - return proto.clarifai.api.StreamInputsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchAnnotationsSearchesRequest; + return proto.clarifai.api.PatchAnnotationsSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.StreamInputsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchAnnotationsSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.StreamInputsRequest} + * @return {!proto.clarifai.api.PatchAnnotationsSearchesRequest} */ -proto.clarifai.api.StreamInputsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchAnnotationsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -17407,16 +50107,13 @@ proto.clarifai.api.StreamInputsRequest.deserializeBinaryFromReader = function(ms msg.setUserAppId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.addSearches(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setLastId(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDescending(value); + msg.setAction(value); break; default: reader.skipField(); @@ -17431,9 +50128,9 @@ proto.clarifai.api.StreamInputsRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.StreamInputsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.StreamInputsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchAnnotationsSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17441,11 +50138,11 @@ proto.clarifai.api.StreamInputsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.StreamInputsRequest} message + * @param {!proto.clarifai.api.PatchAnnotationsSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.StreamInputsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchAnnotationsSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -17455,27 +50152,21 @@ proto.clarifai.api.StreamInputsRequest.serializeBinaryToWriter = function(messag proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getSearchesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter ); } - f = message.getLastId(); + f = message.getAction(); if (f.length > 0) { writer.writeString( 3, f ); } - f = message.getDescending(); - if (f) { - writer.writeBool( - 4, - f - ); - } }; @@ -17483,7 +50174,7 @@ proto.clarifai.api.StreamInputsRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.StreamInputsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -17491,18 +50182,18 @@ proto.clarifai.api.StreamInputsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.StreamInputsRequest} returns this + * @return {!proto.clarifai.api.PatchAnnotationsSearchesRequest} returns this */ -proto.clarifai.api.StreamInputsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.StreamInputsRequest} returns this + * @return {!proto.clarifai.api.PatchAnnotationsSearchesRequest} returns this */ -proto.clarifai.api.StreamInputsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -17511,62 +50202,64 @@ proto.clarifai.api.StreamInputsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.StreamInputsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 per_page = 2; - * @return {number} + * repeated Search searches = 2; + * @return {!Array} */ -proto.clarifai.api.StreamInputsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.getSearchesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.StreamInputsRequest} returns this - */ -proto.clarifai.api.StreamInputsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.PatchAnnotationsSearchesRequest} returns this +*/ +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.setSearchesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional string last_id = 3; - * @return {string} + * @param {!proto.clarifai.api.Search=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.StreamInputsRequest.prototype.getLastId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Search, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.StreamInputsRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchAnnotationsSearchesRequest} returns this */ -proto.clarifai.api.StreamInputsRequest.prototype.setLastId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.clearSearchesList = function() { + return this.setSearchesList([]); }; /** - * optional bool descending = 4; - * @return {boolean} + * optional string action = 3; + * @return {string} */ -proto.clarifai.api.StreamInputsRequest.prototype.getDescending = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.StreamInputsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.PatchAnnotationsSearchesRequest} returns this */ -proto.clarifai.api.StreamInputsRequest.prototype.setDescending = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); +proto.clarifai.api.PatchAnnotationsSearchesRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -17576,7 +50269,7 @@ proto.clarifai.api.StreamInputsRequest.prototype.setDescending = function(value) * @private {!Array} * @const */ -proto.clarifai.api.PostInputsRequest.repeatedFields_ = [2]; +proto.clarifai.api.PatchSearchesRequest.repeatedFields_ = [2]; @@ -17593,8 +50286,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostInputsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostInputsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchSearchesRequest.toObject(opt_includeInstance, this); }; @@ -17603,15 +50296,16 @@ proto.clarifai.api.PostInputsRequest.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostInputsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostInputsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - inputsList: jspb.Message.toObjectList(msg.getInputsList(), - proto_clarifai_api_resources_pb.Input.toObject, includeInstance) + searchesList: jspb.Message.toObjectList(msg.getSearchesList(), + proto_clarifai_api_resources_pb.Search.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -17625,23 +50319,23 @@ proto.clarifai.api.PostInputsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostInputsRequest} + * @return {!proto.clarifai.api.PatchSearchesRequest} */ -proto.clarifai.api.PostInputsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostInputsRequest; - return proto.clarifai.api.PostInputsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchSearchesRequest; + return proto.clarifai.api.PatchSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostInputsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostInputsRequest} + * @return {!proto.clarifai.api.PatchSearchesRequest} */ -proto.clarifai.api.PostInputsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -17654,9 +50348,13 @@ proto.clarifai.api.PostInputsRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.addInputs(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.addSearches(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); break; default: reader.skipField(); @@ -17671,9 +50369,9 @@ proto.clarifai.api.PostInputsRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostInputsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PatchSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostInputsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17681,11 +50379,11 @@ proto.clarifai.api.PostInputsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostInputsRequest} message + * @param {!proto.clarifai.api.PatchSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostInputsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -17695,12 +50393,19 @@ proto.clarifai.api.PostInputsRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getInputsList(); + f = message.getSearchesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f ); } }; @@ -17710,7 +50415,7 @@ proto.clarifai.api.PostInputsRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostInputsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PatchSearchesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -17718,18 +50423,18 @@ proto.clarifai.api.PostInputsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostInputsRequest} returns this + * @return {!proto.clarifai.api.PatchSearchesRequest} returns this */ -proto.clarifai.api.PostInputsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PatchSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostInputsRequest} returns this + * @return {!proto.clarifai.api.PatchSearchesRequest} returns this */ -proto.clarifai.api.PostInputsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PatchSearchesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -17738,56 +50443,67 @@ proto.clarifai.api.PostInputsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostInputsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PatchSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Input inputs = 2; - * @return {!Array} + * repeated Search searches = 2; + * @return {!Array} */ -proto.clarifai.api.PostInputsRequest.prototype.getInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); +proto.clarifai.api.PatchSearchesRequest.prototype.getSearchesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostInputsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PatchSearchesRequest} returns this */ -proto.clarifai.api.PostInputsRequest.prototype.setInputsList = function(value) { +proto.clarifai.api.PatchSearchesRequest.prototype.setSearchesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Input=} opt_value + * @param {!proto.clarifai.api.Search=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.PostInputsRequest.prototype.addInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Input, opt_index); +proto.clarifai.api.PatchSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Search, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostInputsRequest} returns this + * @return {!proto.clarifai.api.PatchSearchesRequest} returns this */ -proto.clarifai.api.PostInputsRequest.prototype.clearInputsList = function() { - return this.setInputsList([]); +proto.clarifai.api.PatchSearchesRequest.prototype.clearSearchesList = function() { + return this.setSearchesList([]); }; +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchSearchesRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.clarifai.api.PatchSearchesRequest} returns this */ -proto.clarifai.api.PatchInputsRequest.repeatedFields_ = [2]; +proto.clarifai.api.PatchSearchesRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + @@ -17804,8 +50520,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchInputsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchInputsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostSearchesByIDRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostSearchesByIDRequest.toObject(opt_includeInstance, this); }; @@ -17814,16 +50530,15 @@ proto.clarifai.api.PatchInputsRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchInputsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostSearchesByIDRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchInputsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostSearchesByIDRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - inputsList: jspb.Message.toObjectList(msg.getInputsList(), - proto_clarifai_api_resources_pb.Input.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) }; if (includeInstance) { @@ -17837,23 +50552,23 @@ proto.clarifai.api.PatchInputsRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchInputsRequest} + * @return {!proto.clarifai.api.PostSearchesByIDRequest} */ -proto.clarifai.api.PatchInputsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostSearchesByIDRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchInputsRequest; - return proto.clarifai.api.PatchInputsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostSearchesByIDRequest; + return proto.clarifai.api.PostSearchesByIDRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchInputsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostSearchesByIDRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchInputsRequest} + * @return {!proto.clarifai.api.PostSearchesByIDRequest} */ -proto.clarifai.api.PatchInputsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostSearchesByIDRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -17866,13 +50581,13 @@ proto.clarifai.api.PatchInputsRequest.deserializeBinaryFromReader = function(msg msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.addInputs(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + var value = new proto.clarifai.api.Pagination; + reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); break; default: reader.skipField(); @@ -17887,9 +50602,9 @@ proto.clarifai.api.PatchInputsRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchInputsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostSearchesByIDRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchInputsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostSearchesByIDRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -17897,11 +50612,11 @@ proto.clarifai.api.PatchInputsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchInputsRequest} message + * @param {!proto.clarifai.api.PostSearchesByIDRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchInputsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostSearchesByIDRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -17911,19 +50626,19 @@ proto.clarifai.api.PatchInputsRequest.serializeBinaryToWriter = function(message proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getInputsList(); + f = message.getId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + f ); } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( + f = message.getPagination(); + if (f != null) { + writer.writeMessage( 3, - f + f, + proto.clarifai.api.Pagination.serializeBinaryToWriter ); } }; @@ -17933,7 +50648,7 @@ proto.clarifai.api.PatchInputsRequest.serializeBinaryToWriter = function(message * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchInputsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostSearchesByIDRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -17941,18 +50656,18 @@ proto.clarifai.api.PatchInputsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchInputsRequest} returns this + * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this */ -proto.clarifai.api.PatchInputsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostSearchesByIDRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchInputsRequest} returns this + * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this */ -proto.clarifai.api.PatchInputsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostSearchesByIDRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -17961,64 +50676,63 @@ proto.clarifai.api.PatchInputsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchInputsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostSearchesByIDRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Input inputs = 2; - * @return {!Array} + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.PatchInputsRequest.prototype.getInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); +proto.clarifai.api.PostSearchesByIDRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchInputsRequest} returns this -*/ -proto.clarifai.api.PatchInputsRequest.prototype.setInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this + */ +proto.clarifai.api.PostSearchesByIDRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Input=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} + * optional Pagination pagination = 3; + * @return {?proto.clarifai.api.Pagination} */ -proto.clarifai.api.PatchInputsRequest.prototype.addInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Input, opt_index); +proto.clarifai.api.PostSearchesByIDRequest.prototype.getPagination = function() { + return /** @type{?proto.clarifai.api.Pagination} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchInputsRequest} returns this - */ -proto.clarifai.api.PatchInputsRequest.prototype.clearInputsList = function() { - return this.setInputsList([]); + * @param {?proto.clarifai.api.Pagination|undefined} value + * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this +*/ +proto.clarifai.api.PostSearchesByIDRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * optional string action = 3; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this */ -proto.clarifai.api.PatchInputsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.PostSearchesByIDRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchInputsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PatchInputsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.PostSearchesByIDRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -18038,8 +50752,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteInputRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteInputRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteSearchRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteSearchRequest.toObject(opt_includeInstance, this); }; @@ -18048,14 +50762,14 @@ proto.clarifai.api.DeleteInputRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteInputRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteSearchRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteInputRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteSearchRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - inputId: jspb.Message.getFieldWithDefault(msg, 2, "") + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -18069,23 +50783,23 @@ proto.clarifai.api.DeleteInputRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteInputRequest} + * @return {!proto.clarifai.api.DeleteSearchRequest} */ -proto.clarifai.api.DeleteInputRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteSearchRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteInputRequest; - return proto.clarifai.api.DeleteInputRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteSearchRequest; + return proto.clarifai.api.DeleteSearchRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteInputRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteSearchRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteInputRequest} + * @return {!proto.clarifai.api.DeleteSearchRequest} */ -proto.clarifai.api.DeleteInputRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteSearchRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18099,7 +50813,7 @@ proto.clarifai.api.DeleteInputRequest.deserializeBinaryFromReader = function(msg break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setInputId(value); + msg.setId(value); break; default: reader.skipField(); @@ -18114,9 +50828,9 @@ proto.clarifai.api.DeleteInputRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteInputRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteSearchRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteInputRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteSearchRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18124,11 +50838,11 @@ proto.clarifai.api.DeleteInputRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteInputRequest} message + * @param {!proto.clarifai.api.DeleteSearchRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteInputRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteSearchRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -18138,7 +50852,7 @@ proto.clarifai.api.DeleteInputRequest.serializeBinaryToWriter = function(message proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getInputId(); + f = message.getId(); if (f.length > 0) { writer.writeString( 2, @@ -18152,7 +50866,7 @@ proto.clarifai.api.DeleteInputRequest.serializeBinaryToWriter = function(message * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteInputRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteSearchRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -18160,18 +50874,18 @@ proto.clarifai.api.DeleteInputRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteInputRequest} returns this + * @return {!proto.clarifai.api.DeleteSearchRequest} returns this */ -proto.clarifai.api.DeleteInputRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteSearchRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteInputRequest} returns this + * @return {!proto.clarifai.api.DeleteSearchRequest} returns this */ -proto.clarifai.api.DeleteInputRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteSearchRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -18180,25 +50894,25 @@ proto.clarifai.api.DeleteInputRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteInputRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteSearchRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string input_id = 2; + * optional string id = 2; * @return {string} */ -proto.clarifai.api.DeleteInputRequest.prototype.getInputId = function() { +proto.clarifai.api.DeleteSearchRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.DeleteInputRequest} returns this + * @return {!proto.clarifai.api.DeleteSearchRequest} returns this */ -proto.clarifai.api.DeleteInputRequest.prototype.setInputId = function(value) { +proto.clarifai.api.DeleteSearchRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -18209,7 +50923,7 @@ proto.clarifai.api.DeleteInputRequest.prototype.setInputId = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.DeleteInputsRequest.repeatedFields_ = [2]; +proto.clarifai.api.PostAnnotationsSearchesRequest.repeatedFields_ = [2]; @@ -18226,8 +50940,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteInputsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteInputsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostAnnotationsSearchesRequest.toObject(opt_includeInstance, this); }; @@ -18236,14 +50950,16 @@ proto.clarifai.api.DeleteInputsRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteInputsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostAnnotationsSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteInputsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostAnnotationsSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + searchesList: jspb.Message.toObjectList(msg.getSearchesList(), + proto_clarifai_api_resources_pb.Search.toObject, includeInstance), + pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) }; if (includeInstance) { @@ -18257,23 +50973,23 @@ proto.clarifai.api.DeleteInputsRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteInputsRequest} + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} */ -proto.clarifai.api.DeleteInputsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteInputsRequest; - return proto.clarifai.api.DeleteInputsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostAnnotationsSearchesRequest; + return proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteInputsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostAnnotationsSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteInputsRequest} + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} */ -proto.clarifai.api.DeleteInputsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18286,8 +51002,14 @@ proto.clarifai.api.DeleteInputsRequest.deserializeBinaryFromReader = function(ms msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.addSearches(value); + break; + case 3: + var value = new proto.clarifai.api.Pagination; + reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); break; default: reader.skipField(); @@ -18302,9 +51024,9 @@ proto.clarifai.api.DeleteInputsRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteInputsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteInputsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostAnnotationsSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18312,11 +51034,11 @@ proto.clarifai.api.DeleteInputsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteInputsRequest} message + * @param {!proto.clarifai.api.PostAnnotationsSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteInputsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostAnnotationsSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -18326,11 +51048,20 @@ proto.clarifai.api.DeleteInputsRequest.serializeBinaryToWriter = function(messag proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getIdsList(); + f = message.getSearchesList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Pagination.serializeBinaryToWriter ); } }; @@ -18340,7 +51071,7 @@ proto.clarifai.api.DeleteInputsRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteInputsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -18348,18 +51079,18 @@ proto.clarifai.api.DeleteInputsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this */ -proto.clarifai.api.DeleteInputsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this */ -proto.clarifai.api.DeleteInputsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -18368,45 +51099,83 @@ proto.clarifai.api.DeleteInputsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteInputsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} + * repeated Search searches = 2; + * @return {!Array} */ -proto.clarifai.api.DeleteInputsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.getSearchesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteInputsRequest} returns this - */ -proto.clarifai.api.DeleteInputsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this +*/ +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.setSearchesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Search=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.DeleteInputsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Search, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteInputsRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this */ -proto.clarifai.api.DeleteInputsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearSearchesList = function() { + return this.setSearchesList([]); +}; + + +/** + * optional Pagination pagination = 3; + * @return {?proto.clarifai.api.Pagination} + */ +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.getPagination = function() { + return /** @type{?proto.clarifai.api.Pagination} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Pagination|undefined} value + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this +*/ +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this + */ +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -18426,8 +51195,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleInputResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleInputResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); }; @@ -18436,14 +51205,14 @@ proto.clarifai.api.SingleInputResponse.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleInputResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleInputResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - input: (f = msg.getInput()) && proto_clarifai_api_resources_pb.Input.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -18457,23 +51226,23 @@ proto.clarifai.api.SingleInputResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleInputResponse} + * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} */ -proto.clarifai.api.SingleInputResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleInputResponse; - return proto.clarifai.api.SingleInputResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteAnnotationSearchMetricsRequest; + return proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleInputResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleInputResponse} + * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} */ -proto.clarifai.api.SingleInputResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18481,14 +51250,13 @@ proto.clarifai.api.SingleInputResponse.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.setInput(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; default: reader.skipField(); @@ -18503,9 +51271,9 @@ proto.clarifai.api.SingleInputResponse.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleInputResponse.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleInputResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18513,56 +51281,55 @@ proto.clarifai.api.SingleInputResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleInputResponse} message + * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleInputResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getInput(); - if (f != null) { - writer.writeMessage( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleInputResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleInputResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.SingleInputResponse.prototype.setStatus = function(value) { +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleInputResponse} returns this + * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.SingleInputResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -18570,45 +51337,26 @@ proto.clarifai.api.SingleInputResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleInputResponse.prototype.hasStatus = function() { +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Input input = 2; - * @return {?proto.clarifai.api.Input} - */ -proto.clarifai.api.SingleInputResponse.prototype.getInput = function() { - return /** @type{?proto.clarifai.api.Input} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Input|undefined} value - * @return {!proto.clarifai.api.SingleInputResponse} returns this -*/ -proto.clarifai.api.SingleInputResponse.prototype.setInput = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleInputResponse} returns this + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.SingleInputResponse.prototype.clearInput = function() { - return this.setInput(undefined); +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.SingleInputResponse.prototype.hasInput = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -18618,7 +51366,7 @@ proto.clarifai.api.SingleInputResponse.prototype.hasInput = function() { * @private {!Array} * @const */ -proto.clarifai.api.MultiInputResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostInputsSearchesRequest.repeatedFields_ = [2]; @@ -18635,8 +51383,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiInputResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiInputResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostInputsSearchesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostInputsSearchesRequest.toObject(opt_includeInstance, this); }; @@ -18645,15 +51393,17 @@ proto.clarifai.api.MultiInputResponse.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiInputResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostInputsSearchesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiInputResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostInputsSearchesRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - inputsList: jspb.Message.toObjectList(msg.getInputsList(), - proto_clarifai_api_resources_pb.Input.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + searchesList: jspb.Message.toObjectList(msg.getSearchesList(), + proto_clarifai_api_resources_pb.Search.toObject, includeInstance), + pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f), + onlyCount: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { @@ -18667,23 +51417,23 @@ proto.clarifai.api.MultiInputResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiInputResponse} + * @return {!proto.clarifai.api.PostInputsSearchesRequest} */ -proto.clarifai.api.MultiInputResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostInputsSearchesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiInputResponse; - return proto.clarifai.api.MultiInputResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostInputsSearchesRequest; + return proto.clarifai.api.PostInputsSearchesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiInputResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostInputsSearchesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiInputResponse} + * @return {!proto.clarifai.api.PostInputsSearchesRequest} */ -proto.clarifai.api.MultiInputResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostInputsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18691,14 +51441,23 @@ proto.clarifai.api.MultiInputResponse.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.addInputs(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.addSearches(value); + break; + case 3: + var value = new proto.clarifai.api.Pagination; + reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); + msg.setPagination(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setOnlyCount(value); break; default: reader.skipField(); @@ -18713,9 +51472,9 @@ proto.clarifai.api.MultiInputResponse.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiInputResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostInputsSearchesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiInputResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostInputsSearchesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18723,56 +51482,71 @@ proto.clarifai.api.MultiInputResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiInputResponse} message + * @param {!proto.clarifai.api.PostInputsSearchesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiInputResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostInputsSearchesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getInputsList(); + f = message.getSearchesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + ); + } + f = message.getPagination(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.clarifai.api.Pagination.serializeBinaryToWriter + ); + } + f = message.getOnlyCount(); + if (f) { + writer.writeBool( + 4, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiInputResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostInputsSearchesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiInputResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this */ -proto.clarifai.api.MultiInputResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostInputsSearchesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiInputResponse} returns this + * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this */ -proto.clarifai.api.MultiInputResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostInputsSearchesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -18780,57 +51554,105 @@ proto.clarifai.api.MultiInputResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiInputResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostInputsSearchesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Input inputs = 2; - * @return {!Array} + * repeated Search searches = 2; + * @return {!Array} */ -proto.clarifai.api.MultiInputResponse.prototype.getInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 2)); +proto.clarifai.api.PostInputsSearchesRequest.prototype.getSearchesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiInputResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this */ -proto.clarifai.api.MultiInputResponse.prototype.setInputsList = function(value) { +proto.clarifai.api.PostInputsSearchesRequest.prototype.setSearchesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Input=} opt_value + * @param {!proto.clarifai.api.Search=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.MultiInputResponse.prototype.addInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Input, opt_index); +proto.clarifai.api.PostInputsSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Search, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this + */ +proto.clarifai.api.PostInputsSearchesRequest.prototype.clearSearchesList = function() { + return this.setSearchesList([]); +}; + + +/** + * optional Pagination pagination = 3; + * @return {?proto.clarifai.api.Pagination} + */ +proto.clarifai.api.PostInputsSearchesRequest.prototype.getPagination = function() { + return /** @type{?proto.clarifai.api.Pagination} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); +}; + + +/** + * @param {?proto.clarifai.api.Pagination|undefined} value + * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this +*/ +proto.clarifai.api.PostInputsSearchesRequest.prototype.setPagination = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this + */ +proto.clarifai.api.PostInputsSearchesRequest.prototype.clearPagination = function() { + return this.setPagination(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostInputsSearchesRequest.prototype.hasPagination = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bool only_count = 4; + * @return {boolean} + */ +proto.clarifai.api.PostInputsSearchesRequest.prototype.getOnlyCount = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiInputResponse} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this */ -proto.clarifai.api.MultiInputResponse.prototype.clearInputsList = function() { - return this.setInputsList([]); +proto.clarifai.api.PostInputsSearchesRequest.prototype.setOnlyCount = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiInputAnnotationResponse.repeatedFields_ = [3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -18846,8 +51668,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiInputAnnotationResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleSearchResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleSearchResponse.toObject(opt_includeInstance, this); }; @@ -18856,15 +51678,14 @@ proto.clarifai.api.MultiInputAnnotationResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiInputAnnotationResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleSearchResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiInputAnnotationResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleSearchResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - hitsList: jspb.Message.toObjectList(msg.getHitsList(), - proto_clarifai_api_resources_pb.Hit.toObject, includeInstance) + search: (f = msg.getSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f) }; if (includeInstance) { @@ -18878,23 +51699,23 @@ proto.clarifai.api.MultiInputAnnotationResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiInputAnnotationResponse} + * @return {!proto.clarifai.api.SingleSearchResponse} */ -proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleSearchResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiInputAnnotationResponse; - return proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleSearchResponse; + return proto.clarifai.api.SingleSearchResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiInputAnnotationResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleSearchResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiInputAnnotationResponse} + * @return {!proto.clarifai.api.SingleSearchResponse} */ -proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleSearchResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -18906,10 +51727,10 @@ proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinaryFromReader = fu reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); msg.setStatus(value); break; - case 3: - var value = new proto_clarifai_api_resources_pb.Hit; - reader.readMessage(value,proto_clarifai_api_resources_pb.Hit.deserializeBinaryFromReader); - msg.addHits(value); + case 5: + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.setSearch(value); break; default: reader.skipField(); @@ -18924,9 +51745,9 @@ proto.clarifai.api.MultiInputAnnotationResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleSearchResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiInputAnnotationResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleSearchResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -18934,11 +51755,11 @@ proto.clarifai.api.MultiInputAnnotationResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiInputAnnotationResponse} message + * @param {!proto.clarifai.api.SingleSearchResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiInputAnnotationResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleSearchResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -18948,12 +51769,12 @@ proto.clarifai.api.MultiInputAnnotationResponse.serializeBinaryToWriter = functi proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getHitsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, + f = message.getSearch(); + if (f != null) { + writer.writeMessage( + 5, f, - proto_clarifai_api_resources_pb.Hit.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter ); } }; @@ -18963,7 +51784,7 @@ proto.clarifai.api.MultiInputAnnotationResponse.serializeBinaryToWriter = functi * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleSearchResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -18971,18 +51792,18 @@ proto.clarifai.api.MultiInputAnnotationResponse.prototype.getStatus = function() /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this + * @return {!proto.clarifai.api.SingleSearchResponse} returns this */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleSearchResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this + * @return {!proto.clarifai.api.SingleSearchResponse} returns this */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleSearchResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -18991,50 +51812,56 @@ proto.clarifai.api.MultiInputAnnotationResponse.prototype.clearStatus = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleSearchResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Hit hits = 3; - * @return {!Array} + * optional Search search = 5; + * @return {?proto.clarifai.api.Search} */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.getHitsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Hit, 3)); +proto.clarifai.api.SingleSearchResponse.prototype.getSearch = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 5)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.SingleSearchResponse} returns this */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.setHitsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.SingleSearchResponse.prototype.setSearch = function(value) { + return jspb.Message.setWrapperField(this, 5, value); }; /** - * @param {!proto.clarifai.api.Hit=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Hit} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleSearchResponse} returns this */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.addHits = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Hit, opt_index); +proto.clarifai.api.SingleSearchResponse.prototype.clearSearch = function() { + return this.setSearch(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiInputAnnotationResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiInputAnnotationResponse.prototype.clearHitsList = function() { - return this.setHitsList([]); +proto.clarifai.api.SingleSearchResponse.prototype.hasSearch = function() { + return jspb.Message.getField(this, 5) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiSearchResponse.repeatedFields_ = [3,5,6]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -19050,8 +51877,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleInputCountResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleInputCountResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiSearchResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiSearchResponse.toObject(opt_includeInstance, this); }; @@ -19060,14 +51887,21 @@ proto.clarifai.api.SingleInputCountResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleInputCountResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiSearchResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleInputCountResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiSearchResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - counts: (f = msg.getCounts()) && proto_clarifai_api_resources_pb.InputCount.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + hitsList: jspb.Message.toObjectList(msg.getHitsList(), + proto_clarifai_api_resources_pb.Hit.toObject, includeInstance), + query: (f = msg.getQuery()) && proto_clarifai_api_resources_pb.Query.toObject(includeInstance, f), + searchesList: jspb.Message.toObjectList(msg.getSearchesList(), + proto_clarifai_api_resources_pb.Search.toObject, includeInstance), + hitCountsList: jspb.Message.toObjectList(msg.getHitCountsList(), + proto_clarifai_api_resources_pb.HitCount.toObject, includeInstance) }; if (includeInstance) { @@ -19081,23 +51915,23 @@ proto.clarifai.api.SingleInputCountResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleInputCountResponse} + * @return {!proto.clarifai.api.MultiSearchResponse} */ -proto.clarifai.api.SingleInputCountResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiSearchResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleInputCountResponse; - return proto.clarifai.api.SingleInputCountResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiSearchResponse; + return proto.clarifai.api.MultiSearchResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleInputCountResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiSearchResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleInputCountResponse} + * @return {!proto.clarifai.api.MultiSearchResponse} */ -proto.clarifai.api.SingleInputCountResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiSearchResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -19110,9 +51944,28 @@ proto.clarifai.api.SingleInputCountResponse.deserializeBinaryFromReader = functi msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.InputCount; - reader.readMessage(value,proto_clarifai_api_resources_pb.InputCount.deserializeBinaryFromReader); - msg.setCounts(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.Hit; + reader.readMessage(value,proto_clarifai_api_resources_pb.Hit.deserializeBinaryFromReader); + msg.addHits(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.Query; + reader.readMessage(value,proto_clarifai_api_resources_pb.Query.deserializeBinaryFromReader); + msg.setQuery(value); + break; + case 5: + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.addSearches(value); + break; + case 6: + var value = new proto_clarifai_api_resources_pb.HitCount; + reader.readMessage(value,proto_clarifai_api_resources_pb.HitCount.deserializeBinaryFromReader); + msg.addHitCounts(value); break; default: reader.skipField(); @@ -19127,9 +51980,9 @@ proto.clarifai.api.SingleInputCountResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleInputCountResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiSearchResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleInputCountResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiSearchResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19137,11 +51990,11 @@ proto.clarifai.api.SingleInputCountResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleInputCountResponse} message + * @param {!proto.clarifai.api.MultiSearchResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleInputCountResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiSearchResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -19151,12 +52004,43 @@ proto.clarifai.api.SingleInputCountResponse.serializeBinaryToWriter = function(m proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getCounts(); + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getHitsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.Hit.serializeBinaryToWriter + ); + } + f = message.getQuery(); if (f != null) { writer.writeMessage( - 2, + 4, f, - proto_clarifai_api_resources_pb.InputCount.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Query.serializeBinaryToWriter + ); + } + f = message.getSearchesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + ); + } + f = message.getHitCountsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + proto_clarifai_api_resources_pb.HitCount.serializeBinaryToWriter ); } }; @@ -19166,7 +52050,7 @@ proto.clarifai.api.SingleInputCountResponse.serializeBinaryToWriter = function(m * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleInputCountResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiSearchResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -19174,18 +52058,18 @@ proto.clarifai.api.SingleInputCountResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleInputCountResponse} returns this + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.SingleInputCountResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiSearchResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleInputCountResponse} returns this + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.SingleInputCountResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiSearchResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -19194,207 +52078,181 @@ proto.clarifai.api.SingleInputCountResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleInputCountResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiSearchResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional InputCount counts = 2; - * @return {?proto.clarifai.api.InputCount} + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.SingleInputCountResponse.prototype.getCounts = function() { - return /** @type{?proto.clarifai.api.InputCount} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InputCount, 2)); +proto.clarifai.api.MultiSearchResponse.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.clarifai.api.InputCount|undefined} value - * @return {!proto.clarifai.api.SingleInputCountResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.MultiSearchResponse} returns this + */ +proto.clarifai.api.MultiSearchResponse.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated Hit hits = 3; + * @return {!Array} + */ +proto.clarifai.api.MultiSearchResponse.prototype.getHitsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Hit, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.SingleInputCountResponse.prototype.setCounts = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.MultiSearchResponse.prototype.setHitsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleInputCountResponse} returns this + * @param {!proto.clarifai.api.Hit=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Hit} */ -proto.clarifai.api.SingleInputCountResponse.prototype.clearCounts = function() { - return this.setCounts(undefined); +proto.clarifai.api.MultiSearchResponse.prototype.addHits = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Hit, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.SingleInputCountResponse.prototype.hasCounts = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.MultiSearchResponse.prototype.clearHitsList = function() { + return this.setHitsList([]); }; +/** + * optional Query query = 4; + * @return {?proto.clarifai.api.Query} + */ +proto.clarifai.api.MultiSearchResponse.prototype.getQuery = function() { + return /** @type{?proto.clarifai.api.Query} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Query, 4)); +}; + +/** + * @param {?proto.clarifai.api.Query|undefined} value + * @return {!proto.clarifai.api.MultiSearchResponse} returns this +*/ +proto.clarifai.api.MultiSearchResponse.prototype.setQuery = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.GetInputCountRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetInputCountRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiSearchResponse.prototype.clearQuery = function() { + return this.setQuery(undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetInputCountRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.GetInputCountRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.MultiSearchResponse.prototype.hasQuery = function() { + return jspb.Message.getField(this, 4) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetInputCountRequest} + * repeated Search searches = 5; + * @return {!Array} */ -proto.clarifai.api.GetInputCountRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetInputCountRequest; - return proto.clarifai.api.GetInputCountRequest.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.MultiSearchResponse.prototype.getSearchesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 5)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.GetInputCountRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetInputCountRequest} - */ -proto.clarifai.api.GetInputCountRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {!Array} value + * @return {!proto.clarifai.api.MultiSearchResponse} returns this +*/ +proto.clarifai.api.MultiSearchResponse.prototype.setSearchesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!proto.clarifai.api.Search=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Search} */ -proto.clarifai.api.GetInputCountRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetInputCountRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.MultiSearchResponse.prototype.addSearches = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Search, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetInputCountRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.GetInputCountRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserAppId(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } +proto.clarifai.api.MultiSearchResponse.prototype.clearSearchesList = function() { + return this.setSearchesList([]); }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * repeated HitCount hit_counts = 6; + * @return {!Array} */ -proto.clarifai.api.GetInputCountRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiSearchResponse.prototype.getHitCountsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.HitCount, 6)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetInputCountRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.GetInputCountRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.MultiSearchResponse.prototype.setHitCountsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetInputCountRequest} returns this + * @param {!proto.clarifai.api.HitCount=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.HitCount} */ -proto.clarifai.api.GetInputCountRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiSearchResponse.prototype.addHitCounts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.clarifai.api.HitCount, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiSearchResponse} returns this */ -proto.clarifai.api.GetInputCountRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.MultiSearchResponse.prototype.clearHitCountsList = function() { + return this.setHitCountsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostModelOutputsRequest.repeatedFields_ = [4]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -19410,8 +52268,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostModelOutputsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); }; @@ -19420,18 +52278,18 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostModelOutputsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - inputsList: jspb.Message.toObjectList(msg.getInputsList(), - proto_clarifai_api_resources_pb.Input.toObject, includeInstance), - model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f) + id: jspb.Message.getFieldWithDefault(msg, 2, ""), + groundTruth: (f = msg.getGroundTruth()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), + searchToEval: (f = msg.getSearchToEval()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), + data: (f = msg.getData()) && proto_clarifai_api_resources_pb.Data.toObject(includeInstance, f), + evaluationType: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -19445,23 +52303,23 @@ proto.clarifai.api.PostModelOutputsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostModelOutputsRequest} + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} */ -proto.clarifai.api.PostModelOutputsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostModelOutputsRequest; - return proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostAnnotationSearchMetricsRequest; + return proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostModelOutputsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostModelOutputsRequest} + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} */ -proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -19475,21 +52333,26 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + msg.setId(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.setGroundTruth(value); break; case 4: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.addInputs(value); + var value = new proto_clarifai_api_resources_pb.Search; + reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); + msg.setSearchToEval(value); break; case 5: - var value = new proto_clarifai_api_resources_pb.Model; - reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); - msg.setModel(value); + var value = new proto_clarifai_api_resources_pb.Data; + reader.readMessage(value,proto_clarifai_api_resources_pb.Data.deserializeBinaryFromReader); + msg.setData(value); + break; + case 6: + var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum()); + msg.setEvaluationType(value); break; default: reader.skipField(); @@ -19504,9 +52367,9 @@ proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19514,11 +52377,11 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostModelOutputsRequest} message + * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -19528,34 +52391,42 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(me proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( + f = message.getGroundTruth(); + if (f != null) { + writer.writeMessage( 3, - f + f, + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter ); } - f = message.getInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getSearchToEval(); + if (f != null) { + writer.writeMessage( 4, f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter ); } - f = message.getModel(); + f = message.getData(); if (f != null) { writer.writeMessage( 5, f, - proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Data.serializeBinaryToWriter + ); + } + f = message.getEvaluationType(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f ); } }; @@ -19565,7 +52436,7 @@ proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter = function(me * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -19573,18 +52444,18 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -19593,110 +52464,128 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; + * optional string id = 2; * @return {string} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.getModelId = function() { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.setModelId = function(value) { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string version_id = 3; - * @return {string} + * optional Search ground_truth = 3; + * @return {?proto.clarifai.api.Search} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getGroundTruth = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 3)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this +*/ +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setGroundTruth = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearGroundTruth = function() { + return this.setGroundTruth(undefined); }; /** - * repeated Input inputs = 4; - * @return {!Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.getInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 4)); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasGroundTruth = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * optional Search search_to_eval = 4; + * @return {?proto.clarifai.api.Search} + */ +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getSearchToEval = function() { + return /** @type{?proto.clarifai.api.Search} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 4)); +}; + + +/** + * @param {?proto.clarifai.api.Search|undefined} value + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.setInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setSearchToEval = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * @param {!proto.clarifai.api.Input=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.addInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Input, opt_index); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearSearchToEval = function() { + return this.setSearchToEval(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.clearInputsList = function() { - return this.setInputsList([]); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasSearchToEval = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional Model model = 5; - * @return {?proto.clarifai.api.Model} + * optional Data data = 5; + * @return {?proto.clarifai.api.Data} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.getModel = function() { - return /** @type{?proto.clarifai.api.Model} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 5)); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getData = function() { + return /** @type{?proto.clarifai.api.Data} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Data, 5)); }; /** - * @param {?proto.clarifai.api.Model|undefined} value - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * @param {?proto.clarifai.api.Data|undefined} value + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.setModel = function(value) { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setData = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelOutputsRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.PostModelOutputsRequest.prototype.clearModel = function() { - return this.setModel(undefined); +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearData = function() { + return this.setData(undefined); }; @@ -19704,11 +52593,29 @@ proto.clarifai.api.PostModelOutputsRequest.prototype.clearModel = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelOutputsRequest.prototype.hasModel = function() { +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasData = function() { return jspb.Message.getField(this, 5) != null; }; +/** + * optional EvaluationType evaluation_type = 6; + * @return {!proto.clarifai.api.EvaluationType} + */ +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getEvaluationType = function() { + return /** @type {!proto.clarifai.api.EvaluationType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.clarifai.api.EvaluationType} value + * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this + */ +proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setEvaluationType = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); +}; + + @@ -19725,8 +52632,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListModelInputsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListModelInputsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); }; @@ -19735,17 +52642,14 @@ proto.clarifai.api.ListModelInputsRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListModelInputsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelInputsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - page: jspb.Message.getFieldWithDefault(msg, 4, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 5, 0) + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -19759,23 +52663,23 @@ proto.clarifai.api.ListModelInputsRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListModelInputsRequest} + * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} */ -proto.clarifai.api.ListModelInputsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListModelInputsRequest; - return proto.clarifai.api.ListModelInputsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetAnnotationSearchMetricsRequest; + return proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListModelInputsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListModelInputsRequest} + * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} */ -proto.clarifai.api.ListModelInputsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -19789,19 +52693,7 @@ proto.clarifai.api.ListModelInputsRequest.deserializeBinaryFromReader = function break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + msg.setId(value); break; default: reader.skipField(); @@ -19816,9 +52708,9 @@ proto.clarifai.api.ListModelInputsRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListModelInputsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListModelInputsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -19826,11 +52718,11 @@ proto.clarifai.api.ListModelInputsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListModelInputsRequest} message + * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelInputsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -19840,34 +52732,13 @@ proto.clarifai.api.ListModelInputsRequest.serializeBinaryToWriter = function(mes proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } }; @@ -19875,7 +52746,7 @@ proto.clarifai.api.ListModelInputsRequest.serializeBinaryToWriter = function(mes * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListModelInputsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -19883,18 +52754,18 @@ proto.clarifai.api.ListModelInputsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.ListModelInputsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.ListModelInputsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -19903,83 +52774,29 @@ proto.clarifai.api.ListModelInputsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelInputsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; + * optional string id = 2; * @return {string} */ -proto.clarifai.api.ListModelInputsRequest.prototype.getModelId = function() { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ListModelInputsRequest} returns this + * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.ListModelInputsRequest.prototype.setModelId = function(value) { +proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional string version_id = 3; - * @return {string} - */ -proto.clarifai.api.ListModelInputsRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ListModelInputsRequest} returns this - */ -proto.clarifai.api.ListModelInputsRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint32 page = 4; - * @return {number} - */ -proto.clarifai.api.ListModelInputsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListModelInputsRequest} returns this - */ -proto.clarifai.api.ListModelInputsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint32 per_page = 5; - * @return {number} - */ -proto.clarifai.api.ListModelInputsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListModelInputsRequest} returns this - */ -proto.clarifai.api.ListModelInputsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - @@ -19996,8 +52813,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetKeyRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); }; @@ -20006,14 +52823,13 @@ proto.clarifai.api.GetKeyRequest.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetKeyRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetKeyRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - keyId: jspb.Message.getFieldWithDefault(msg, 2, "") + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) }; if (includeInstance) { @@ -20027,23 +52843,23 @@ proto.clarifai.api.GetKeyRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetKeyRequest} + * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} */ -proto.clarifai.api.GetKeyRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetKeyRequest; - return proto.clarifai.api.GetKeyRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListAnnotationSearchMetricsRequest; + return proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetKeyRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetKeyRequest} + * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} */ -proto.clarifai.api.GetKeyRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20055,10 +52871,6 @@ proto.clarifai.api.GetKeyRequest.deserializeBinaryFromReader = function(msg, rea reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKeyId(value); - break; default: reader.skipField(); break; @@ -20072,9 +52884,9 @@ proto.clarifai.api.GetKeyRequest.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetKeyRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetKeyRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20082,11 +52894,11 @@ proto.clarifai.api.GetKeyRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetKeyRequest} message + * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetKeyRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -20096,13 +52908,6 @@ proto.clarifai.api.GetKeyRequest.serializeBinaryToWriter = function(message, wri proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getKeyId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } }; @@ -20110,7 +52915,7 @@ proto.clarifai.api.GetKeyRequest.serializeBinaryToWriter = function(message, wri * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetKeyRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -20118,18 +52923,18 @@ proto.clarifai.api.GetKeyRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetKeyRequest} returns this + * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.GetKeyRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetKeyRequest} returns this + * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} returns this */ -proto.clarifai.api.GetKeyRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -20138,29 +52943,18 @@ proto.clarifai.api.GetKeyRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetKeyRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; -/** - * optional string key_id = 2; - * @return {string} - */ -proto.clarifai.api.GetKeyRequest.prototype.getKeyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - /** - * @param {string} value - * @return {!proto.clarifai.api.GetKeyRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.GetKeyRequest.prototype.setKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.repeatedFields_ = [2]; @@ -20177,8 +52971,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListKeysRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiAnnotationSearchMetricsResponse.toObject(opt_includeInstance, this); }; @@ -20187,15 +52981,15 @@ proto.clarifai.api.ListKeysRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListKeysRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListKeysRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + annotationSearchMetricsList: jspb.Message.toObjectList(msg.getAnnotationSearchMetricsList(), + proto_clarifai_api_resources_pb.AnnotationSearchMetrics.toObject, includeInstance) }; if (includeInstance) { @@ -20209,23 +53003,23 @@ proto.clarifai.api.ListKeysRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListKeysRequest} + * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} */ -proto.clarifai.api.ListKeysRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListKeysRequest; - return proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiAnnotationSearchMetricsResponse; + return proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListKeysRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListKeysRequest} + * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} */ -proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20233,17 +53027,14 @@ proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = new proto_clarifai_api_resources_pb.AnnotationSearchMetrics; + reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationSearchMetrics.deserializeBinaryFromReader); + msg.addAnnotationSearchMetrics(value); break; default: reader.skipField(); @@ -20258,9 +53049,9 @@ proto.clarifai.api.ListKeysRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListKeysRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListKeysRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiAnnotationSearchMetricsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20268,62 +53059,56 @@ proto.clarifai.api.ListKeysRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListKeysRequest} message + * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListKeysRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getAnnotationSearchMetricsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f + f, + proto_clarifai_api_resources_pb.AnnotationSearchMetrics.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListKeysRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListKeysRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this */ -proto.clarifai.api.ListKeysRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListKeysRequest} returns this + * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this */ -proto.clarifai.api.ListKeysRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -20331,44 +53116,46 @@ proto.clarifai.api.ListKeysRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListKeysRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} + * repeated AnnotationSearchMetrics annotation_search_metrics = 2; + * @return {!Array} */ -proto.clarifai.api.ListKeysRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.getAnnotationSearchMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationSearchMetrics, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListKeysRequest} returns this - */ -proto.clarifai.api.ListKeysRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this +*/ +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.setAnnotationSearchMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional uint32 per_page = 3; - * @return {number} + * @param {!proto.clarifai.api.AnnotationSearchMetrics=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.AnnotationSearchMetrics} */ -proto.clarifai.api.ListKeysRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.addAnnotationSearchMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationSearchMetrics, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListKeysRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this */ -proto.clarifai.api.ListKeysRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.clearAnnotationSearchMetricsList = function() { + return this.setAnnotationSearchMetricsList([]); }; @@ -20388,8 +53175,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListAppKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListAppKeysRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListAnnotationFiltersRequest.toObject(opt_includeInstance, this); }; @@ -20398,11 +53185,11 @@ proto.clarifai.api.ListAppKeysRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListAppKeysRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListAnnotationFiltersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAppKeysRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListAnnotationFiltersRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), page: jspb.Message.getFieldWithDefault(msg, 2, 0), @@ -20420,23 +53207,23 @@ proto.clarifai.api.ListAppKeysRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListAppKeysRequest} + * @return {!proto.clarifai.api.ListAnnotationFiltersRequest} */ -proto.clarifai.api.ListAppKeysRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListAnnotationFiltersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListAppKeysRequest; - return proto.clarifai.api.ListAppKeysRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListAnnotationFiltersRequest; + return proto.clarifai.api.ListAnnotationFiltersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListAppKeysRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListAnnotationFiltersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListAppKeysRequest} + * @return {!proto.clarifai.api.ListAnnotationFiltersRequest} */ -proto.clarifai.api.ListAppKeysRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListAnnotationFiltersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20469,9 +53256,9 @@ proto.clarifai.api.ListAppKeysRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListAppKeysRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListAppKeysRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListAnnotationFiltersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20479,11 +53266,11 @@ proto.clarifai.api.ListAppKeysRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListAppKeysRequest} message + * @param {!proto.clarifai.api.ListAnnotationFiltersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAppKeysRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListAnnotationFiltersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -20514,7 +53301,7 @@ proto.clarifai.api.ListAppKeysRequest.serializeBinaryToWriter = function(message * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListAppKeysRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -20522,18 +53309,18 @@ proto.clarifai.api.ListAppKeysRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListAppKeysRequest} returns this + * @return {!proto.clarifai.api.ListAnnotationFiltersRequest} returns this */ -proto.clarifai.api.ListAppKeysRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListAppKeysRequest} returns this + * @return {!proto.clarifai.api.ListAnnotationFiltersRequest} returns this */ -proto.clarifai.api.ListAppKeysRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -20542,7 +53329,7 @@ proto.clarifai.api.ListAppKeysRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAppKeysRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -20551,16 +53338,16 @@ proto.clarifai.api.ListAppKeysRequest.prototype.hasUserAppId = function() { * optional uint32 page = 2; * @return {number} */ -proto.clarifai.api.ListAppKeysRequest.prototype.getPage = function() { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListAppKeysRequest} returns this + * @return {!proto.clarifai.api.ListAnnotationFiltersRequest} returns this */ -proto.clarifai.api.ListAppKeysRequest.prototype.setPage = function(value) { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -20569,28 +53356,21 @@ proto.clarifai.api.ListAppKeysRequest.prototype.setPage = function(value) { * optional uint32 per_page = 3; * @return {number} */ -proto.clarifai.api.ListAppKeysRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.getPerPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListAppKeysRequest} returns this + * @return {!proto.clarifai.api.ListAnnotationFiltersRequest} returns this */ -proto.clarifai.api.ListAppKeysRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListAnnotationFiltersRequest.prototype.setPerPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostKeysRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -20606,8 +53386,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostKeysRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetAnnotationFilterRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetAnnotationFilterRequest.toObject(opt_includeInstance, this); }; @@ -20616,15 +53396,14 @@ proto.clarifai.api.PostKeysRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostKeysRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetAnnotationFilterRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostKeysRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetAnnotationFilterRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - keysList: jspb.Message.toObjectList(msg.getKeysList(), - proto_clarifai_api_resources_pb.Key.toObject, includeInstance) + annotationFilterId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -20638,23 +53417,23 @@ proto.clarifai.api.PostKeysRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostKeysRequest} + * @return {!proto.clarifai.api.GetAnnotationFilterRequest} */ -proto.clarifai.api.PostKeysRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetAnnotationFilterRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostKeysRequest; - return proto.clarifai.api.PostKeysRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetAnnotationFilterRequest; + return proto.clarifai.api.GetAnnotationFilterRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostKeysRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetAnnotationFilterRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostKeysRequest} + * @return {!proto.clarifai.api.GetAnnotationFilterRequest} */ -proto.clarifai.api.PostKeysRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetAnnotationFilterRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20667,9 +53446,8 @@ proto.clarifai.api.PostKeysRequest.deserializeBinaryFromReader = function(msg, r msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Key; - reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); - msg.addKeys(value); + var value = /** @type {string} */ (reader.readString()); + msg.setAnnotationFilterId(value); break; default: reader.skipField(); @@ -20684,9 +53462,9 @@ proto.clarifai.api.PostKeysRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostKeysRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetAnnotationFilterRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostKeysRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetAnnotationFilterRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20694,11 +53472,11 @@ proto.clarifai.api.PostKeysRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostKeysRequest} message + * @param {!proto.clarifai.api.GetAnnotationFilterRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostKeysRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetAnnotationFilterRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -20708,12 +53486,11 @@ proto.clarifai.api.PostKeysRequest.serializeBinaryToWriter = function(message, w proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getKeysList(); + f = message.getAnnotationFilterId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + f ); } }; @@ -20723,7 +53500,7 @@ proto.clarifai.api.PostKeysRequest.serializeBinaryToWriter = function(message, w * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostKeysRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetAnnotationFilterRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -20731,18 +53508,18 @@ proto.clarifai.api.PostKeysRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostKeysRequest} returns this + * @return {!proto.clarifai.api.GetAnnotationFilterRequest} returns this */ -proto.clarifai.api.PostKeysRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetAnnotationFilterRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostKeysRequest} returns this + * @return {!proto.clarifai.api.GetAnnotationFilterRequest} returns this */ -proto.clarifai.api.PostKeysRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetAnnotationFilterRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -20751,49 +53528,36 @@ proto.clarifai.api.PostKeysRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostKeysRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetAnnotationFilterRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Key keys = 2; - * @return {!Array} + * optional string annotation_filter_id = 2; + * @return {string} */ -proto.clarifai.api.PostKeysRequest.prototype.getKeysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PostKeysRequest} returns this -*/ -proto.clarifai.api.PostKeysRequest.prototype.setKeysList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.GetAnnotationFilterRequest.prototype.getAnnotationFilterId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!proto.clarifai.api.Key=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Key} + * @param {string} value + * @return {!proto.clarifai.api.GetAnnotationFilterRequest} returns this */ -proto.clarifai.api.PostKeysRequest.prototype.addKeys = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Key, opt_index); +proto.clarifai.api.GetAnnotationFilterRequest.prototype.setAnnotationFilterId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; + /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostKeysRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.PostKeysRequest.prototype.clearKeysList = function() { - return this.setKeysList([]); -}; - - +proto.clarifai.api.PostAnnotationFiltersRequest.repeatedFields_ = [2]; @@ -20810,8 +53574,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteKeyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteKeyRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostAnnotationFiltersRequest.toObject(opt_includeInstance, this); }; @@ -20820,14 +53584,15 @@ proto.clarifai.api.DeleteKeyRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteKeyRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostAnnotationFiltersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteKeyRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostAnnotationFiltersRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - keyId: jspb.Message.getFieldWithDefault(msg, 2, "") + annotationFiltersList: jspb.Message.toObjectList(msg.getAnnotationFiltersList(), + proto_clarifai_api_resources_pb.AnnotationFilter.toObject, includeInstance) }; if (includeInstance) { @@ -20841,23 +53606,23 @@ proto.clarifai.api.DeleteKeyRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteKeyRequest} + * @return {!proto.clarifai.api.PostAnnotationFiltersRequest} */ -proto.clarifai.api.DeleteKeyRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostAnnotationFiltersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteKeyRequest; - return proto.clarifai.api.DeleteKeyRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostAnnotationFiltersRequest; + return proto.clarifai.api.PostAnnotationFiltersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteKeyRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostAnnotationFiltersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteKeyRequest} + * @return {!proto.clarifai.api.PostAnnotationFiltersRequest} */ -proto.clarifai.api.DeleteKeyRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostAnnotationFiltersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -20870,8 +53635,9 @@ proto.clarifai.api.DeleteKeyRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setKeyId(value); + var value = new proto_clarifai_api_resources_pb.AnnotationFilter; + reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationFilter.deserializeBinaryFromReader); + msg.addAnnotationFilters(value); break; default: reader.skipField(); @@ -20886,9 +53652,9 @@ proto.clarifai.api.DeleteKeyRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteKeyRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteKeyRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostAnnotationFiltersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -20896,11 +53662,11 @@ proto.clarifai.api.DeleteKeyRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteKeyRequest} message + * @param {!proto.clarifai.api.PostAnnotationFiltersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteKeyRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostAnnotationFiltersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -20910,11 +53676,12 @@ proto.clarifai.api.DeleteKeyRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getKeyId(); + f = message.getAnnotationFiltersList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.AnnotationFilter.serializeBinaryToWriter ); } }; @@ -20924,7 +53691,7 @@ proto.clarifai.api.DeleteKeyRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteKeyRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -20932,18 +53699,18 @@ proto.clarifai.api.DeleteKeyRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteKeyRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationFiltersRequest} returns this */ -proto.clarifai.api.DeleteKeyRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteKeyRequest} returns this + * @return {!proto.clarifai.api.PostAnnotationFiltersRequest} returns this */ -proto.clarifai.api.DeleteKeyRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -20952,26 +53719,46 @@ proto.clarifai.api.DeleteKeyRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteKeyRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string key_id = 2; - * @return {string} + * repeated AnnotationFilter annotation_filters = 2; + * @return {!Array} */ -proto.clarifai.api.DeleteKeyRequest.prototype.getKeyId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.getAnnotationFiltersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationFilter, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DeleteKeyRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostAnnotationFiltersRequest} returns this +*/ +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.setAnnotationFiltersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.AnnotationFilter=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.AnnotationFilter} */ -proto.clarifai.api.DeleteKeyRequest.prototype.setKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.addAnnotationFilters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationFilter, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostAnnotationFiltersRequest} returns this + */ +proto.clarifai.api.PostAnnotationFiltersRequest.prototype.clearAnnotationFiltersList = function() { + return this.setAnnotationFiltersList([]); }; @@ -20981,7 +53768,7 @@ proto.clarifai.api.DeleteKeyRequest.prototype.setKeyId = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.PatchKeysRequest.repeatedFields_ = [2]; +proto.clarifai.api.PatchAnnotationFiltersRequest.repeatedFields_ = [2]; @@ -20998,8 +53785,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchKeysRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchKeysRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchAnnotationFiltersRequest.toObject(opt_includeInstance, this); }; @@ -21008,15 +53795,15 @@ proto.clarifai.api.PatchKeysRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchKeysRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchAnnotationFiltersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchKeysRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchAnnotationFiltersRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - keysList: jspb.Message.toObjectList(msg.getKeysList(), - proto_clarifai_api_resources_pb.Key.toObject, includeInstance), + annotationFiltersList: jspb.Message.toObjectList(msg.getAnnotationFiltersList(), + proto_clarifai_api_resources_pb.AnnotationFilter.toObject, includeInstance), action: jspb.Message.getFieldWithDefault(msg, 3, "") }; @@ -21031,23 +53818,23 @@ proto.clarifai.api.PatchKeysRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchKeysRequest} + * @return {!proto.clarifai.api.PatchAnnotationFiltersRequest} */ -proto.clarifai.api.PatchKeysRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchAnnotationFiltersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchKeysRequest; - return proto.clarifai.api.PatchKeysRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchAnnotationFiltersRequest; + return proto.clarifai.api.PatchAnnotationFiltersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchKeysRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchAnnotationFiltersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchKeysRequest} + * @return {!proto.clarifai.api.PatchAnnotationFiltersRequest} */ -proto.clarifai.api.PatchKeysRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchAnnotationFiltersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -21060,9 +53847,9 @@ proto.clarifai.api.PatchKeysRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Key; - reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); - msg.addKeys(value); + var value = new proto_clarifai_api_resources_pb.AnnotationFilter; + reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationFilter.deserializeBinaryFromReader); + msg.addAnnotationFilters(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -21081,9 +53868,9 @@ proto.clarifai.api.PatchKeysRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchKeysRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchKeysRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchAnnotationFiltersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -21091,11 +53878,11 @@ proto.clarifai.api.PatchKeysRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchKeysRequest} message + * @param {!proto.clarifai.api.PatchAnnotationFiltersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchKeysRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchAnnotationFiltersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -21105,12 +53892,12 @@ proto.clarifai.api.PatchKeysRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getKeysList(); + f = message.getAnnotationFiltersList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + proto_clarifai_api_resources_pb.AnnotationFilter.serializeBinaryToWriter ); } f = message.getAction(); @@ -21127,7 +53914,7 @@ proto.clarifai.api.PatchKeysRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchKeysRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -21135,18 +53922,18 @@ proto.clarifai.api.PatchKeysRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchKeysRequest} returns this + * @return {!proto.clarifai.api.PatchAnnotationFiltersRequest} returns this */ -proto.clarifai.api.PatchKeysRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchKeysRequest} returns this + * @return {!proto.clarifai.api.PatchAnnotationFiltersRequest} returns this */ -proto.clarifai.api.PatchKeysRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -21155,46 +53942,46 @@ proto.clarifai.api.PatchKeysRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchKeysRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Key keys = 2; - * @return {!Array} + * repeated AnnotationFilter annotation_filters = 2; + * @return {!Array} */ -proto.clarifai.api.PatchKeysRequest.prototype.getKeysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.getAnnotationFiltersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationFilter, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchKeysRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PatchAnnotationFiltersRequest} returns this */ -proto.clarifai.api.PatchKeysRequest.prototype.setKeysList = function(value) { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.setAnnotationFiltersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Key=} opt_value + * @param {!proto.clarifai.api.AnnotationFilter=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Key} + * @return {!proto.clarifai.api.AnnotationFilter} */ -proto.clarifai.api.PatchKeysRequest.prototype.addKeys = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Key, opt_index); +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.addAnnotationFilters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationFilter, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchKeysRequest} returns this + * @return {!proto.clarifai.api.PatchAnnotationFiltersRequest} returns this */ -proto.clarifai.api.PatchKeysRequest.prototype.clearKeysList = function() { - return this.setKeysList([]); +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.clearAnnotationFiltersList = function() { + return this.setAnnotationFiltersList([]); }; @@ -21202,21 +53989,28 @@ proto.clarifai.api.PatchKeysRequest.prototype.clearKeysList = function() { * optional string action = 3; * @return {string} */ -proto.clarifai.api.PatchKeysRequest.prototype.getAction = function() { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.getAction = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchKeysRequest} returns this + * @return {!proto.clarifai.api.PatchAnnotationFiltersRequest} returns this */ -proto.clarifai.api.PatchKeysRequest.prototype.setAction = function(value) { +proto.clarifai.api.PatchAnnotationFiltersRequest.prototype.setAction = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteAnnotationFiltersRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -21232,8 +54026,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleKeyResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteAnnotationFiltersRequest.toObject(opt_includeInstance, this); }; @@ -21242,14 +54036,14 @@ proto.clarifai.api.SingleKeyResponse.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleKeyResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteAnnotationFiltersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleKeyResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteAnnotationFiltersRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - key: (f = msg.getKey()) && proto_clarifai_api_resources_pb.Key.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + annotationFilterIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -21263,23 +54057,23 @@ proto.clarifai.api.SingleKeyResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleKeyResponse} + * @return {!proto.clarifai.api.DeleteAnnotationFiltersRequest} */ -proto.clarifai.api.SingleKeyResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteAnnotationFiltersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleKeyResponse; - return proto.clarifai.api.SingleKeyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteAnnotationFiltersRequest; + return proto.clarifai.api.DeleteAnnotationFiltersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleKeyResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteAnnotationFiltersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleKeyResponse} + * @return {!proto.clarifai.api.DeleteAnnotationFiltersRequest} */ -proto.clarifai.api.SingleKeyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteAnnotationFiltersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -21287,14 +54081,13 @@ proto.clarifai.api.SingleKeyResponse.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Key; - reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); - msg.setKey(value); + var value = /** @type {string} */ (reader.readString()); + msg.addAnnotationFilterIds(value); break; default: reader.skipField(); @@ -21309,9 +54102,9 @@ proto.clarifai.api.SingleKeyResponse.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleKeyResponse.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleKeyResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteAnnotationFiltersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -21319,56 +54112,55 @@ proto.clarifai.api.SingleKeyResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleKeyResponse} message + * @param {!proto.clarifai.api.DeleteAnnotationFiltersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleKeyResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteAnnotationFiltersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getKey(); - if (f != null) { - writer.writeMessage( + f = message.getAnnotationFilterIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, - f, - proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleKeyResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleKeyResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteAnnotationFiltersRequest} returns this */ -proto.clarifai.api.SingleKeyResponse.prototype.setStatus = function(value) { +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleKeyResponse} returns this + * @return {!proto.clarifai.api.DeleteAnnotationFiltersRequest} returns this */ -proto.clarifai.api.SingleKeyResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -21376,45 +54168,45 @@ proto.clarifai.api.SingleKeyResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleKeyResponse.prototype.hasStatus = function() { +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Key key = 2; - * @return {?proto.clarifai.api.Key} + * repeated string annotation_filter_ids = 2; + * @return {!Array} */ -proto.clarifai.api.SingleKeyResponse.prototype.getKey = function() { - return /** @type{?proto.clarifai.api.Key} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.getAnnotationFilterIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {?proto.clarifai.api.Key|undefined} value - * @return {!proto.clarifai.api.SingleKeyResponse} returns this -*/ -proto.clarifai.api.SingleKeyResponse.prototype.setKey = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteAnnotationFiltersRequest} returns this + */ +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.setAnnotationFilterIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleKeyResponse} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteAnnotationFiltersRequest} returns this */ -proto.clarifai.api.SingleKeyResponse.prototype.clearKey = function() { - return this.setKey(undefined); +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.addAnnotationFilterIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteAnnotationFiltersRequest} returns this */ -proto.clarifai.api.SingleKeyResponse.prototype.hasKey = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.DeleteAnnotationFiltersRequest.prototype.clearAnnotationFilterIdsList = function() { + return this.setAnnotationFilterIdsList([]); }; @@ -21424,7 +54216,7 @@ proto.clarifai.api.SingleKeyResponse.prototype.hasKey = function() { * @private {!Array} * @const */ -proto.clarifai.api.MultiKeyResponse.repeatedFields_ = [2]; +proto.clarifai.api.MultiAnnotationFilterResponse.repeatedFields_ = [2]; @@ -21441,8 +54233,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiKeyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiKeyResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiAnnotationFilterResponse.toObject(opt_includeInstance, this); }; @@ -21451,15 +54243,15 @@ proto.clarifai.api.MultiKeyResponse.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiKeyResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiAnnotationFilterResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiKeyResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiAnnotationFilterResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - keysList: jspb.Message.toObjectList(msg.getKeysList(), - proto_clarifai_api_resources_pb.Key.toObject, includeInstance) + annotationFiltersList: jspb.Message.toObjectList(msg.getAnnotationFiltersList(), + proto_clarifai_api_resources_pb.AnnotationFilter.toObject, includeInstance) }; if (includeInstance) { @@ -21473,23 +54265,23 @@ proto.clarifai.api.MultiKeyResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiKeyResponse} + * @return {!proto.clarifai.api.MultiAnnotationFilterResponse} */ -proto.clarifai.api.MultiKeyResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiAnnotationFilterResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiKeyResponse; - return proto.clarifai.api.MultiKeyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiAnnotationFilterResponse; + return proto.clarifai.api.MultiAnnotationFilterResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiKeyResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiAnnotationFilterResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiKeyResponse} + * @return {!proto.clarifai.api.MultiAnnotationFilterResponse} */ -proto.clarifai.api.MultiKeyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiAnnotationFilterResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -21502,9 +54294,9 @@ proto.clarifai.api.MultiKeyResponse.deserializeBinaryFromReader = function(msg, msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Key; - reader.readMessage(value,proto_clarifai_api_resources_pb.Key.deserializeBinaryFromReader); - msg.addKeys(value); + var value = new proto_clarifai_api_resources_pb.AnnotationFilter; + reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationFilter.deserializeBinaryFromReader); + msg.addAnnotationFilters(value); break; default: reader.skipField(); @@ -21519,9 +54311,9 @@ proto.clarifai.api.MultiKeyResponse.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiKeyResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiKeyResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiAnnotationFilterResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -21529,11 +54321,11 @@ proto.clarifai.api.MultiKeyResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiKeyResponse} message + * @param {!proto.clarifai.api.MultiAnnotationFilterResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiKeyResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiAnnotationFilterResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -21543,12 +54335,12 @@ proto.clarifai.api.MultiKeyResponse.serializeBinaryToWriter = function(message, proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getKeysList(); + f = message.getAnnotationFiltersList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Key.serializeBinaryToWriter + proto_clarifai_api_resources_pb.AnnotationFilter.serializeBinaryToWriter ); } }; @@ -21558,7 +54350,7 @@ proto.clarifai.api.MultiKeyResponse.serializeBinaryToWriter = function(message, * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiKeyResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -21566,18 +54358,18 @@ proto.clarifai.api.MultiKeyResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiKeyResponse} returns this + * @return {!proto.clarifai.api.MultiAnnotationFilterResponse} returns this */ -proto.clarifai.api.MultiKeyResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiKeyResponse} returns this + * @return {!proto.clarifai.api.MultiAnnotationFilterResponse} returns this */ -proto.clarifai.api.MultiKeyResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -21586,57 +54378,50 @@ proto.clarifai.api.MultiKeyResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiKeyResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Key keys = 2; - * @return {!Array} + * repeated AnnotationFilter annotation_filters = 2; + * @return {!Array} */ -proto.clarifai.api.MultiKeyResponse.prototype.getKeysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Key, 2)); +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.getAnnotationFiltersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationFilter, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiKeyResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiAnnotationFilterResponse} returns this */ -proto.clarifai.api.MultiKeyResponse.prototype.setKeysList = function(value) { +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.setAnnotationFiltersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Key=} opt_value + * @param {!proto.clarifai.api.AnnotationFilter=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Key} + * @return {!proto.clarifai.api.AnnotationFilter} */ -proto.clarifai.api.MultiKeyResponse.prototype.addKeys = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Key, opt_index); +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.addAnnotationFilters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationFilter, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiKeyResponse} returns this + * @return {!proto.clarifai.api.MultiAnnotationFilterResponse} returns this */ -proto.clarifai.api.MultiKeyResponse.prototype.clearKeysList = function() { - return this.setKeysList([]); +proto.clarifai.api.MultiAnnotationFilterResponse.prototype.clearAnnotationFiltersList = function() { + return this.setAnnotationFiltersList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.GetModelRequest.repeatedFields_ = [19]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -21652,8 +54437,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetModelRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleAnnotationFilterResponse.toObject(opt_includeInstance, this); }; @@ -21662,18 +54447,14 @@ proto.clarifai.api.GetModelRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetModelRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleAnnotationFilterResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleAnnotationFilterResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - language: jspb.Message.getFieldWithDefault(msg, 4, ""), - trainedBefore: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + annotationFilter: (f = msg.getAnnotationFilter()) && proto_clarifai_api_resources_pb.AnnotationFilter.toObject(includeInstance, f) }; if (includeInstance) { @@ -21687,23 +54468,23 @@ proto.clarifai.api.GetModelRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetModelRequest} + * @return {!proto.clarifai.api.SingleAnnotationFilterResponse} */ -proto.clarifai.api.GetModelRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleAnnotationFilterResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetModelRequest; - return proto.clarifai.api.GetModelRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleAnnotationFilterResponse; + return proto.clarifai.api.SingleAnnotationFilterResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetModelRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleAnnotationFilterResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetModelRequest} + * @return {!proto.clarifai.api.SingleAnnotationFilterResponse} */ -proto.clarifai.api.GetModelRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleAnnotationFilterResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -21711,29 +54492,14 @@ proto.clarifai.api.GetModelRequest.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setLanguage(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTrainedBefore(value); - break; - case 19: - var value = /** @type {string} */ (reader.readString()); - msg.addAdditionalFields(value); + var value = new proto_clarifai_api_resources_pb.AnnotationFilter; + reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationFilter.deserializeBinaryFromReader); + msg.setAnnotationFilter(value); break; default: reader.skipField(); @@ -21748,9 +54514,9 @@ proto.clarifai.api.GetModelRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetModelRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetModelRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleAnnotationFilterResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -21758,83 +54524,56 @@ proto.clarifai.api.GetModelRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetModelRequest} message + * @param {!proto.clarifai.api.SingleAnnotationFilterResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleAnnotationFilterResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( + f = message.getAnnotationFilter(); + if (f != null) { + writer.writeMessage( 2, - f - ); - } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getLanguage(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTrainedBefore(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getAdditionalFieldsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 19, - f + f, + proto_clarifai_api_resources_pb.AnnotationFilter.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.GetModelRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetModelRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleAnnotationFilterResponse} returns this */ -proto.clarifai.api.GetModelRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetModelRequest} returns this + * @return {!proto.clarifai.api.SingleAnnotationFilterResponse} returns this */ -proto.clarifai.api.GetModelRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -21842,117 +54581,45 @@ proto.clarifai.api.GetModelRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetModelRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.GetModelRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.GetModelRequest} returns this - */ -proto.clarifai.api.GetModelRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version_id = 3; - * @return {string} - */ -proto.clarifai.api.GetModelRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.GetModelRequest} returns this + * optional AnnotationFilter annotation_filter = 2; + * @return {?proto.clarifai.api.AnnotationFilter} */ -proto.clarifai.api.GetModelRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.getAnnotationFilter = function() { + return /** @type{?proto.clarifai.api.AnnotationFilter} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.AnnotationFilter, 2)); }; /** - * optional string language = 4; - * @return {string} - */ -proto.clarifai.api.GetModelRequest.prototype.getLanguage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + * @param {?proto.clarifai.api.AnnotationFilter|undefined} value + * @return {!proto.clarifai.api.SingleAnnotationFilterResponse} returns this +*/ +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.setAnnotationFilter = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetModelRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleAnnotationFilterResponse} returns this */ -proto.clarifai.api.GetModelRequest.prototype.setLanguage = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.clearAnnotationFilter = function() { + return this.setAnnotationFilter(undefined); }; /** - * optional bool trained_before = 5; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetModelRequest.prototype.getTrainedBefore = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.GetModelRequest} returns this - */ -proto.clarifai.api.GetModelRequest.prototype.setTrainedBefore = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * repeated string additional_fields = 19; - * @return {!Array} - */ -proto.clarifai.api.GetModelRequest.prototype.getAdditionalFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 19)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.GetModelRequest} returns this - */ -proto.clarifai.api.GetModelRequest.prototype.setAdditionalFieldsList = function(value) { - return jspb.Message.setField(this, 19, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.GetModelRequest} returns this - */ -proto.clarifai.api.GetModelRequest.prototype.addAdditionalFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 19, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.GetModelRequest} returns this - */ -proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = function() { - return this.setAdditionalFieldsList([]); +proto.clarifai.api.SingleAnnotationFilterResponse.prototype.hasAnnotationFilter = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -21962,34 +54629,7 @@ proto.clarifai.api.GetModelRequest.prototype.clearAdditionalFieldsList = functio * @private {!Array} * @const */ -proto.clarifai.api.ListModelsRequest.repeatedFields_ = [8,9,17,18,21,19]; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clarifai.api.ListModelsRequest.oneofGroups_ = [[11,12,13]]; - -/** - * @enum {number} - */ -proto.clarifai.api.ListModelsRequest.SortByCase = { - SORT_BY_NOT_SET: 0, - SORT_BY_NAME: 11, - SORT_BY_NUM_INPUTS: 12, - SORT_BY_MODIFIED_AT: 13 -}; - -/** - * @return {proto.clarifai.api.ListModelsRequest.SortByCase} - */ -proto.clarifai.api.ListModelsRequest.prototype.getSortByCase = function() { - return /** @type {proto.clarifai.api.ListModelsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListModelsRequest.oneofGroups_[0])); -}; +proto.clarifai.api.GetUserRequest.repeatedFields_ = [2]; @@ -22006,8 +54646,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListModelsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListModelsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetUserRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetUserRequest.toObject(opt_includeInstance, this); }; @@ -22016,32 +54656,14 @@ proto.clarifai.api.ListModelsRequest.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListModelsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetUserRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetUserRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), - sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - sortByName: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - sortByNumInputs: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - query: jspb.Message.getFieldWithDefault(msg, 14, ""), - name: jspb.Message.getFieldWithDefault(msg, 5, ""), - modelTypeId: jspb.Message.getFieldWithDefault(msg, 6, ""), - trainedOnly: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - inputFieldsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, - outputFieldsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, - license: jspb.Message.getFieldWithDefault(msg, 15, ""), - featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), - starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 20, false), - toolkitsList: (f = jspb.Message.getRepeatedField(msg, 17)) == null ? undefined : f, - useCasesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f, - languagesList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f, - additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -22055,23 +54677,23 @@ proto.clarifai.api.ListModelsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListModelsRequest} + * @return {!proto.clarifai.api.GetUserRequest} */ -proto.clarifai.api.ListModelsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetUserRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListModelsRequest; - return proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetUserRequest; + return proto.clarifai.api.GetUserRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListModelsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetUserRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListModelsRequest} + * @return {!proto.clarifai.api.GetUserRequest} */ -proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetUserRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -22084,78 +54706,6 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortAscending(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortByName(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortByNumInputs(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortByModifiedAt(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setModelTypeId(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTrainedOnly(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.addInputFields(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.addOutputFields(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setLicense(value); - break; - case 16: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFeaturedOnly(value); - break; - case 20: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setStarredOnly(value); - break; - case 17: - var value = /** @type {string} */ (reader.readString()); - msg.addToolkits(value); - break; - case 18: - var value = /** @type {string} */ (reader.readString()); - msg.addUseCases(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.addLanguages(value); - break; - case 19: var value = /** @type {string} */ (reader.readString()); msg.addAdditionalFields(value); break; @@ -22172,9 +54722,9 @@ proto.clarifai.api.ListModelsRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListModelsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetUserRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetUserRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -22182,150 +54732,24 @@ proto.clarifai.api.ListModelsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListModelsRequest} message + * @param {!proto.clarifai.api.GetUserRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetUserRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, - f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getSortAscending(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 11)); - if (f != null) { - writer.writeBool( - 11, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 12)); - if (f != null) { - writer.writeBool( - 12, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 13)); - if (f != null) { - writer.writeBool( - 13, - f - ); - } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getModelTypeId(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getTrainedOnly(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getInputFieldsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 8, - f - ); - } - f = message.getOutputFieldsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 9, - f - ); - } - f = message.getLicense(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getFeaturedOnly(); - if (f) { - writer.writeBool( - 16, - f - ); - } - f = message.getStarredOnly(); - if (f) { - writer.writeBool( - 20, - f - ); - } - f = message.getToolkitsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 17, - f - ); - } - f = message.getUseCasesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 18, - f - ); - } - f = message.getLanguagesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 21, - f + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } f = message.getAdditionalFieldsList(); if (f.length > 0) { writer.writeRepeatedString( - 19, + 2, f ); } @@ -22336,7 +54760,7 @@ proto.clarifai.api.ListModelsRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListModelsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetUserRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -22344,18 +54768,18 @@ proto.clarifai.api.ListModelsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * @return {!proto.clarifai.api.GetUserRequest} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetUserRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * @return {!proto.clarifai.api.GetUserRequest} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetUserRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -22364,161 +54788,201 @@ proto.clarifai.api.ListModelsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetUserRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} - */ -proto.clarifai.api.ListModelsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * repeated string additional_fields = 2; + * @return {!Array} */ -proto.clarifai.api.ListModelsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.GetUserRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * optional uint32 per_page = 3; - * @return {number} + * @param {!Array} value + * @return {!proto.clarifai.api.GetUserRequest} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.GetUserRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetUserRequest} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.GetUserRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * optional bool sort_ascending = 10; - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetUserRequest} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.getSortAscending = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +proto.clarifai.api.GetUserRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); }; -/** - * @param {boolean} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.setSortAscending = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - -/** - * optional bool sort_by_name = 11; - * @return {boolean} - */ -proto.clarifai.api.ListModelsRequest.prototype.getSortByName = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.ListModelsRequest.prototype.setSortByName = function(value) { - return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); +proto.clarifai.api.SingleUserResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleUserResponse.toObject(opt_includeInstance, this); }; /** - * Clears the field making it undefined. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleUserResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.prototype.clearSortByName = function() { - return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); -}; - +proto.clarifai.api.SingleUserResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + user: (f = msg.getUser()) && proto_clarifai_api_resources_pb.User.toObject(includeInstance, f) + }; -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.ListModelsRequest.prototype.hasSortByName = function() { - return jspb.Message.getField(this, 11) != null; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional bool sort_by_num_inputs = 12; - * @return {boolean} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleUserResponse} */ -proto.clarifai.api.ListModelsRequest.prototype.getSortByNumInputs = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); +proto.clarifai.api.SingleUserResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleUserResponse; + return proto.clarifai.api.SingleUserResponse.deserializeBinaryFromReader(msg, reader); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleUserResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleUserResponse} */ -proto.clarifai.api.ListModelsRequest.prototype.setSortByNumInputs = function(value) { - return jspb.Message.setOneofField(this, 12, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); +proto.clarifai.api.SingleUserResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.User; + reader.readMessage(value,proto_clarifai_api_resources_pb.User.deserializeBinaryFromReader); + msg.setUser(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the field making it undefined. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.ListModelsRequest.prototype.clearSortByNumInputs = function() { - return jspb.Message.setOneofField(this, 12, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); +proto.clarifai.api.SingleUserResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleUserResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleUserResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.prototype.hasSortByNumInputs = function() { - return jspb.Message.getField(this, 12) != null; +proto.clarifai.api.SingleUserResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getUser(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.User.serializeBinaryToWriter + ); + } }; /** - * optional bool sort_by_modified_at = 13; - * @return {boolean} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListModelsRequest.prototype.getSortByModifiedAt = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +proto.clarifai.api.SingleUserResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.setSortByModifiedAt = function(value) { - return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], value); + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleUserResponse} returns this +*/ +proto.clarifai.api.SingleUserResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * Clears the field making it undefined. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleUserResponse} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.clearSortByModifiedAt = function() { - return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListModelsRequest.oneofGroups_[0], undefined); +proto.clarifai.api.SingleUserResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -22526,356 +54990,449 @@ proto.clarifai.api.ListModelsRequest.prototype.clearSortByModifiedAt = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelsRequest.prototype.hasSortByModifiedAt = function() { - return jspb.Message.getField(this, 13) != null; +proto.clarifai.api.SingleUserResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional string query = 14; - * @return {string} + * optional User user = 2; + * @return {?proto.clarifai.api.User} */ -proto.clarifai.api.ListModelsRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +proto.clarifai.api.SingleUserResponse.prototype.getUser = function() { + return /** @type{?proto.clarifai.api.User} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.User, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); + * @param {?proto.clarifai.api.User|undefined} value + * @return {!proto.clarifai.api.SingleUserResponse} returns this +*/ +proto.clarifai.api.SingleUserResponse.prototype.setUser = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional string name = 5; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleUserResponse} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +proto.clarifai.api.SingleUserResponse.prototype.clearUser = function() { + return this.setUser(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListModelsRequest.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); +proto.clarifai.api.SingleUserResponse.prototype.hasUser = function() { + return jspb.Message.getField(this, 2) != null; }; -/** - * optional string model_type_id = 6; - * @return {string} - */ -proto.clarifai.api.ListModelsRequest.prototype.getModelTypeId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - -/** - * @param {string} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.setModelTypeId = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional bool trained_only = 7; - * @return {boolean} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.ListModelsRequest.prototype.getTrainedOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.clarifai.api.PostValidatePasswordRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostValidatePasswordRequest.toObject(opt_includeInstance, this); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.PostValidatePasswordRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.prototype.setTrainedOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - +proto.clarifai.api.PostValidatePasswordRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + password: (f = msg.getPassword()) && proto_clarifai_api_resources_pb.Password.toObject(includeInstance, f) + }; -/** - * repeated string input_fields = 8; - * @return {!Array} - */ -proto.clarifai.api.ListModelsRequest.prototype.getInputFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.PostValidatePasswordRequest} */ -proto.clarifai.api.ListModelsRequest.prototype.setInputFieldsList = function(value) { - return jspb.Message.setField(this, 8, value || []); +proto.clarifai.api.PostValidatePasswordRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.PostValidatePasswordRequest; + return proto.clarifai.api.PostValidatePasswordRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.PostValidatePasswordRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.PostValidatePasswordRequest} */ -proto.clarifai.api.ListModelsRequest.prototype.addInputFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 8, value, opt_index); +proto.clarifai.api.PostValidatePasswordRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Password; + reader.readMessage(value,proto_clarifai_api_resources_pb.Password.deserializeBinaryFromReader); + msg.setPassword(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.ListModelsRequest.prototype.clearInputFieldsList = function() { - return this.setInputFieldsList([]); +proto.clarifai.api.PostValidatePasswordRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.PostValidatePasswordRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * repeated string output_fields = 9; - * @return {!Array} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.PostValidatePasswordRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.prototype.getOutputFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 9)); +proto.clarifai.api.PostValidatePasswordRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPassword(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Password.serializeBinaryToWriter + ); + } }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListModelsRequest.prototype.setOutputFieldsList = function(value) { - return jspb.Message.setField(this, 9, value || []); +proto.clarifai.api.PostValidatePasswordRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.addOutputFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 9, value, opt_index); + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this +*/ +proto.clarifai.api.PostValidatePasswordRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.clearOutputFieldsList = function() { - return this.setOutputFieldsList([]); +proto.clarifai.api.PostValidatePasswordRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * optional string license = 15; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListModelsRequest.prototype.getLicense = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); +proto.clarifai.api.PostValidatePasswordRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * optional Password password = 2; + * @return {?proto.clarifai.api.Password} */ -proto.clarifai.api.ListModelsRequest.prototype.setLicense = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); +proto.clarifai.api.PostValidatePasswordRequest.prototype.getPassword = function() { + return /** @type{?proto.clarifai.api.Password} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Password, 2)); }; /** - * optional bool featured_only = 16; - * @return {boolean} - */ -proto.clarifai.api.ListModelsRequest.prototype.getFeaturedOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); + * @param {?proto.clarifai.api.Password|undefined} value + * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this +*/ +proto.clarifai.api.PostValidatePasswordRequest.prototype.setPassword = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.setFeaturedOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 16, value); +proto.clarifai.api.PostValidatePasswordRequest.prototype.clearPassword = function() { + return this.setPassword(undefined); }; /** - * optional bool starred_only = 20; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelsRequest.prototype.getStarredOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false)); +proto.clarifai.api.PostValidatePasswordRequest.prototype.hasPassword = function() { + return jspb.Message.getField(this, 2) != null; }; -/** - * @param {boolean} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.setStarredOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 20, value); -}; - -/** - * repeated string toolkits = 17; - * @return {!Array} - */ -proto.clarifai.api.ListModelsRequest.prototype.getToolkitsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 17)); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.ListModelsRequest.prototype.setToolkitsList = function(value) { - return jspb.Message.setField(this, 17, value || []); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SinglePasswordValidationResponse.toObject(opt_includeInstance, this); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SinglePasswordValidationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.prototype.addToolkits = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 17, value, opt_index); -}; - +proto.clarifai.api.SinglePasswordValidationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + passwordViolations: (f = msg.getPasswordViolations()) && proto_clarifai_api_resources_pb.PasswordViolations.toObject(includeInstance, f) + }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.clearToolkitsList = function() { - return this.setToolkitsList([]); + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * repeated string use_cases = 18; - * @return {!Array} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SinglePasswordValidationResponse} */ -proto.clarifai.api.ListModelsRequest.prototype.getUseCasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 18)); +proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SinglePasswordValidationResponse; + return proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinaryFromReader(msg, reader); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SinglePasswordValidationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SinglePasswordValidationResponse} */ -proto.clarifai.api.ListModelsRequest.prototype.setUseCasesList = function(value) { - return jspb.Message.setField(this, 18, value || []); +proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.PasswordViolations; + reader.readMessage(value,proto_clarifai_api_resources_pb.PasswordViolations.deserializeBinaryFromReader); + msg.setPasswordViolations(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.ListModelsRequest.prototype.addUseCases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 18, value, opt_index); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SinglePasswordValidationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SinglePasswordValidationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelsRequest.prototype.clearUseCasesList = function() { - return this.setUseCasesList([]); +proto.clarifai.api.SinglePasswordValidationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getPasswordViolations(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.PasswordViolations.serializeBinaryToWriter + ); + } }; /** - * repeated string languages = 21; - * @return {!Array} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListModelsRequest.prototype.getLanguagesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 21)); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.setLanguagesList = function(value) { - return jspb.Message.setField(this, 21, value || []); + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this +*/ +proto.clarifai.api.SinglePasswordValidationResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.addLanguages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 21, value, opt_index); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListModelsRequest.prototype.clearLanguagesList = function() { - return this.setLanguagesList([]); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * repeated string additional_fields = 19; - * @return {!Array} + * optional PasswordViolations password_violations = 2; + * @return {?proto.clarifai.api.PasswordViolations} */ -proto.clarifai.api.ListModelsRequest.prototype.getAdditionalFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 19)); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.getPasswordViolations = function() { + return /** @type{?proto.clarifai.api.PasswordViolations} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.PasswordViolations, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListModelsRequest} returns this - */ -proto.clarifai.api.ListModelsRequest.prototype.setAdditionalFieldsList = function(value) { - return jspb.Message.setField(this, 19, value || []); + * @param {?proto.clarifai.api.PasswordViolations|undefined} value + * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this +*/ +proto.clarifai.api.SinglePasswordValidationResponse.prototype.setPasswordViolations = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this */ -proto.clarifai.api.ListModelsRequest.prototype.addAdditionalFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 19, value, opt_index); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.clearPasswordViolations = function() { + return this.setPasswordViolations(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListModelsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListModelsRequest.prototype.clearAdditionalFieldsList = function() { - return this.setAdditionalFieldsList([]); +proto.clarifai.api.SinglePasswordValidationResponse.prototype.hasPasswordViolations = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -22885,7 +55442,7 @@ proto.clarifai.api.ListModelsRequest.prototype.clearAdditionalFieldsList = funct * @private {!Array} * @const */ -proto.clarifai.api.PatchModelToolkitsRequest.repeatedFields_ = [3]; +proto.clarifai.api.GetWorkflowRequest.repeatedFields_ = [4]; @@ -22902,8 +55459,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchModelToolkitsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -22912,16 +55469,17 @@ proto.clarifai.api.PatchModelToolkitsRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchModelToolkitsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelToolkitsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - toolkitsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - action: jspb.Message.getFieldWithDefault(msg, 4, "") + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + favorClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + excludeClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) }; if (includeInstance) { @@ -22935,23 +55493,23 @@ proto.clarifai.api.PatchModelToolkitsRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} + * @return {!proto.clarifai.api.GetWorkflowRequest} */ -proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchModelToolkitsRequest; - return proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetWorkflowRequest; + return proto.clarifai.api.GetWorkflowRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchModelToolkitsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} + * @return {!proto.clarifai.api.GetWorkflowRequest} */ -proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -22965,15 +55523,19 @@ proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinaryFromReader = funct break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + msg.setWorkflowId(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addToolkits(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFavorClarifaiWorkflows(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.addAdditionalFields(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setExcludeClarifaiWorkflows(value); break; default: reader.skipField(); @@ -22988,9 +55550,9 @@ proto.clarifai.api.PatchModelToolkitsRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetWorkflowRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchModelToolkitsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetWorkflowRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -22998,11 +55560,11 @@ proto.clarifai.api.PatchModelToolkitsRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchModelToolkitsRequest} message + * @param {!proto.clarifai.api.GetWorkflowRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelToolkitsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetWorkflowRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -23012,27 +55574,34 @@ proto.clarifai.api.PatchModelToolkitsRequest.serializeBinaryToWriter = function( proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getWorkflowId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getToolkitsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getFavorClarifaiWorkflows(); + if (f) { + writer.writeBool( 3, f ); } - f = message.getAction(); + f = message.getAdditionalFieldsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 4, f ); } + f = message.getExcludeClarifaiWorkflows(); + if (f) { + writer.writeBool( + 5, + f + ); + } }; @@ -23040,7 +55609,7 @@ proto.clarifai.api.PatchModelToolkitsRequest.serializeBinaryToWriter = function( * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetWorkflowRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -23048,18 +55617,18 @@ proto.clarifai.api.PatchModelToolkitsRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetWorkflowRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetWorkflowRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -23068,81 +55637,99 @@ proto.clarifai.api.PatchModelToolkitsRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetWorkflowRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; + * optional string workflow_id = 2; * @return {string} */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.getModelId = function() { +proto.clarifai.api.GetWorkflowRequest.prototype.getWorkflowId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.setModelId = function(value) { +proto.clarifai.api.GetWorkflowRequest.prototype.setWorkflowId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * repeated string toolkits = 3; + * optional bool favor_clarifai_workflows = 3; + * @return {boolean} + */ +proto.clarifai.api.GetWorkflowRequest.prototype.getFavorClarifaiWorkflows = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this + */ +proto.clarifai.api.GetWorkflowRequest.prototype.setFavorClarifaiWorkflows = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * repeated string additional_fields = 4; * @return {!Array} */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.getToolkitsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.GetWorkflowRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.setToolkitsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.GetWorkflowRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 4, value || []); }; /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.addToolkits = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.GetWorkflowRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.clearToolkitsList = function() { - return this.setToolkitsList([]); +proto.clarifai.api.GetWorkflowRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); }; /** - * optional string action = 4; - * @return {string} + * optional bool exclude_clarifai_workflows = 5; + * @return {boolean} */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.GetWorkflowRequest.prototype.getExcludeClarifaiWorkflows = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchModelToolkitsRequest} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.GetWorkflowRequest} returns this */ -proto.clarifai.api.PatchModelToolkitsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.GetWorkflowRequest.prototype.setExcludeClarifaiWorkflows = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; @@ -23152,7 +55739,35 @@ proto.clarifai.api.PatchModelToolkitsRequest.prototype.setAction = function(valu * @private {!Array} * @const */ -proto.clarifai.api.PatchModelUseCasesRequest.repeatedFields_ = [3]; +proto.clarifai.api.ListWorkflowsRequest.repeatedFields_ = [10]; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.ListWorkflowsRequest.oneofGroups_ = [[6,7,13,14]]; + +/** + * @enum {number} + */ +proto.clarifai.api.ListWorkflowsRequest.SortByCase = { + SORT_BY_NOT_SET: 0, + SORT_BY_ID: 6, + SORT_BY_MODIFIED_AT: 7, + SORT_BY_CREATED_AT: 13, + SORT_BY_STAR_COUNT: 14 +}; + +/** + * @return {proto.clarifai.api.ListWorkflowsRequest.SortByCase} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.getSortByCase = function() { + return /** @type {proto.clarifai.api.ListWorkflowsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0])); +}; @@ -23169,8 +55784,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchModelUseCasesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListWorkflowsRequest.toObject(opt_includeInstance, this); }; @@ -23179,16 +55794,27 @@ proto.clarifai.api.PatchModelUseCasesRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchModelUseCasesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListWorkflowsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelUseCasesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListWorkflowsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - usecasesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - action: jspb.Message.getFieldWithDefault(msg, 4, "") + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + sortById: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), + query: jspb.Message.getFieldWithDefault(msg, 8, ""), + id: jspb.Message.getFieldWithDefault(msg, 4, ""), + featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f, + searchTerm: jspb.Message.getFieldWithDefault(msg, 12, ""), + bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 15, false) }; if (includeInstance) { @@ -23202,23 +55828,23 @@ proto.clarifai.api.PatchModelUseCasesRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} + * @return {!proto.clarifai.api.ListWorkflowsRequest} */ -proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListWorkflowsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchModelUseCasesRequest; - return proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListWorkflowsRequest; + return proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchModelUseCasesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListWorkflowsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} + * @return {!proto.clarifai.api.ListWorkflowsRequest} */ -proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -23231,16 +55857,60 @@ proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinaryFromReader = funct msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); break; case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortAscending(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortById(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByModifiedAt(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByCreatedAt(value); + break; + case 14: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByStarCount(value); + break; + case 8: var value = /** @type {string} */ (reader.readString()); - msg.addUsecases(value); + msg.setQuery(value); break; case 4: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.setId(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFeaturedOnly(value); + break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setStarredOnly(value); + break; + case 10: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + case 12: + var value = /** @type {string} */ (reader.readString()); + msg.setSearchTerm(value); + break; + case 15: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBookmark(value); break; default: reader.skipField(); @@ -23255,9 +55925,9 @@ proto.clarifai.api.PatchModelUseCasesRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListWorkflowsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchModelUseCasesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListWorkflowsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -23265,11 +55935,11 @@ proto.clarifai.api.PatchModelUseCasesRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchModelUseCasesRequest} message + * @param {!proto.clarifai.api.ListWorkflowsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelUseCasesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -23279,404 +55949,484 @@ proto.clarifai.api.PatchModelUseCasesRequest.serializeBinaryToWriter = function( proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getSortAscending(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBool( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 13)); + if (f != null) { + writer.writeBool( + 13, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 14)); + if (f != null) { + writer.writeBool( + 14, + f + ); + } + f = message.getQuery(); if (f.length > 0) { writer.writeString( - 2, + 8, f ); } - f = message.getUsecasesList(); + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getFeaturedOnly(); + if (f) { + writer.writeBool( + 9, + f + ); + } + f = message.getStarredOnly(); + if (f) { + writer.writeBool( + 11, + f + ); + } + f = message.getAdditionalFieldsList(); if (f.length > 0) { writer.writeRepeatedString( - 3, + 10, f ); } - f = message.getAction(); + f = message.getSearchTerm(); if (f.length > 0) { writer.writeString( - 4, + 12, f ); } + f = message.getBookmark(); + if (f) { + writer.writeBool( + 15, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this +*/ +proto.clarifai.api.ListWorkflowsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * @param {number} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.ListWorkflowsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this -*/ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.ListWorkflowsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * Returns whether this field is set. + * optional bool sort_ascending = 5; * @return {boolean} */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ListWorkflowsRequest.prototype.getSortAscending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * optional string model_id = 2; - * @return {string} + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.ListWorkflowsRequest.prototype.setSortAscending = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + * optional bool sort_by_id = 6; + * @return {boolean} */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.ListWorkflowsRequest.prototype.getSortById = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** - * repeated string usecases = 3; - * @return {!Array} + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.getUsecasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.ListWorkflowsRequest.prototype.setSortById = function(value) { + return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], value); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.setUsecasesList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.ListWorkflowsRequest.prototype.clearSortById = function() { + return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], undefined); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.addUsecases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.ListWorkflowsRequest.prototype.hasSortById = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + * optional bool sort_by_modified_at = 7; + * @return {boolean} */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.clearUsecasesList = function() { - return this.setUsecasesList([]); +proto.clarifai.api.ListWorkflowsRequest.prototype.getSortByModifiedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** - * optional string action = 4; - * @return {string} + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.ListWorkflowsRequest.prototype.setSortByModifiedAt = function(value) { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchModelUseCasesRequest} returns this + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelUseCasesRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.ListWorkflowsRequest.prototype.clearSortByModifiedAt = function() { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], undefined); }; +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.hasSortByModifiedAt = function() { + return jspb.Message.getField(this, 7) != null; +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional bool sort_by_created_at = 13; + * @return {boolean} */ -proto.clarifai.api.PatchModelLanguagesRequest.repeatedFields_ = [3]; +proto.clarifai.api.ListWorkflowsRequest.prototype.getSortByCreatedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.setSortByCreatedAt = function(value) { + return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], value); +}; -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchModelLanguagesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListWorkflowsRequest.prototype.clearSortByCreatedAt = function() { + return jspb.Message.setOneofField(this, 13, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], undefined); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchModelLanguagesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PatchModelLanguagesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - languagesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, - action: jspb.Message.getFieldWithDefault(msg, 4, "") - }; +proto.clarifai.api.ListWorkflowsRequest.prototype.hasSortByCreatedAt = function() { + return jspb.Message.getField(this, 13) != null; +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * optional bool sort_by_star_count = 14; + * @return {boolean} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.getSortByStarCount = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchModelLanguagesRequest; - return proto.clarifai.api.PatchModelLanguagesRequest.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ListWorkflowsRequest.prototype.setSortByStarCount = function(value) { + return jspb.Message.setOneofField(this, 14, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.PatchModelLanguagesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addLanguages(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ListWorkflowsRequest.prototype.clearSortByStarCount = function() { + return jspb.Message.setOneofField(this, 14, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], undefined); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchModelLanguagesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ListWorkflowsRequest.prototype.hasSortByStarCount = function() { + return jspb.Message.getField(this, 14) != null; }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchModelLanguagesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string query = 8; + * @return {string} */ -proto.clarifai.api.PatchModelLanguagesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUserAppId(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLanguagesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } +proto.clarifai.api.ListWorkflowsRequest.prototype.getQuery = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * @param {string} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.ListWorkflowsRequest.prototype.setQuery = function(value) { + return jspb.Message.setProto3StringField(this, 8, value); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this -*/ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * optional string id = 4; + * @return {string} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.ListWorkflowsRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; /** - * Returns whether this field is set. + * optional bool featured_only = 9; * @return {boolean} */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ListWorkflowsRequest.prototype.getFeaturedOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** - * optional string model_id = 2; - * @return {string} + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.ListWorkflowsRequest.prototype.setFeaturedOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 9, value); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + * optional bool starred_only = 11; + * @return {boolean} */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.ListWorkflowsRequest.prototype.getStarredOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; /** - * repeated string languages = 3; + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.setStarredOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 11, value); +}; + + +/** + * repeated string additional_fields = 10; * @return {!Array} */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.getLanguagesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.ListWorkflowsRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.setLanguagesList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.ListWorkflowsRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 10, value || []); }; /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.addLanguages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.ListWorkflowsRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 10, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.clearLanguagesList = function() { - return this.setLanguagesList([]); +proto.clarifai.api.ListWorkflowsRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); }; /** - * optional string action = 4; + * optional string search_term = 12; * @return {string} */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.ListWorkflowsRequest.prototype.getSearchTerm = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchModelLanguagesRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelLanguagesRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.ListWorkflowsRequest.prototype.setSearchTerm = function(value) { + return jspb.Message.setProto3StringField(this, 12, value); +}; + + +/** + * optional bool bookmark = 15; + * @return {boolean} + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.getBookmark = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + */ +proto.clarifai.api.ListWorkflowsRequest.prototype.setBookmark = function(value) { + return jspb.Message.setProto3BooleanField(this, 15, value); }; @@ -23686,7 +56436,7 @@ proto.clarifai.api.PatchModelLanguagesRequest.prototype.setAction = function(val * @private {!Array} * @const */ -proto.clarifai.api.MultiModelToolkitResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostWorkflowsRequest.repeatedFields_ = [2]; @@ -23703,8 +56453,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelToolkitResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostWorkflowsRequest.toObject(opt_includeInstance, this); }; @@ -23713,14 +56463,15 @@ proto.clarifai.api.MultiModelToolkitResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelToolkitResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostWorkflowsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelToolkitResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostWorkflowsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - toolkitsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + workflowsList: jspb.Message.toObjectList(msg.getWorkflowsList(), + proto_clarifai_api_resources_pb.Workflow.toObject, includeInstance) }; if (includeInstance) { @@ -23734,23 +56485,23 @@ proto.clarifai.api.MultiModelToolkitResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelToolkitResponse} + * @return {!proto.clarifai.api.PostWorkflowsRequest} */ -proto.clarifai.api.MultiModelToolkitResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostWorkflowsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelToolkitResponse; - return proto.clarifai.api.MultiModelToolkitResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostWorkflowsRequest; + return proto.clarifai.api.PostWorkflowsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelToolkitResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostWorkflowsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelToolkitResponse} + * @return {!proto.clarifai.api.PostWorkflowsRequest} */ -proto.clarifai.api.MultiModelToolkitResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -23758,13 +56509,14 @@ proto.clarifai.api.MultiModelToolkitResponse.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addToolkits(value); + var value = new proto_clarifai_api_resources_pb.Workflow; + reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); + msg.addWorkflows(value); break; default: reader.skipField(); @@ -23779,9 +56531,9 @@ proto.clarifai.api.MultiModelToolkitResponse.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostWorkflowsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelToolkitResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostWorkflowsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -23789,55 +56541,56 @@ proto.clarifai.api.MultiModelToolkitResponse.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelToolkitResponse} message + * @param {!proto.clarifai.api.PostWorkflowsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelToolkitResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getToolkitsList(); + f = message.getWorkflowsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostWorkflowsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostWorkflowsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostWorkflowsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -23845,45 +56598,46 @@ proto.clarifai.api.MultiModelToolkitResponse.prototype.clearStatus = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostWorkflowsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string toolkits = 2; - * @return {!Array} + * repeated Workflow workflows = 2; + * @return {!Array} */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.getToolkitsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.PostWorkflowsRequest.prototype.getWorkflowsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this - */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.setToolkitsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this +*/ +proto.clarifai.api.PostWorkflowsRequest.prototype.setWorkflowsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Workflow=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + * @return {!proto.clarifai.api.Workflow} */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.addToolkits = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.PostWorkflowsRequest.prototype.addWorkflows = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Workflow, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelToolkitResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this */ -proto.clarifai.api.MultiModelToolkitResponse.prototype.clearToolkitsList = function() { - return this.setToolkitsList([]); +proto.clarifai.api.PostWorkflowsRequest.prototype.clearWorkflowsList = function() { + return this.setWorkflowsList([]); }; @@ -23893,7 +56647,7 @@ proto.clarifai.api.MultiModelToolkitResponse.prototype.clearToolkitsList = funct * @private {!Array} * @const */ -proto.clarifai.api.MultiModelUseCaseResponse.repeatedFields_ = [2]; +proto.clarifai.api.PatchWorkflowsRequest.repeatedFields_ = [2]; @@ -23910,8 +56664,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelUseCaseResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchWorkflowsRequest.toObject(opt_includeInstance, this); }; @@ -23920,14 +56674,16 @@ proto.clarifai.api.MultiModelUseCaseResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelUseCaseResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchWorkflowsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelUseCaseResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchWorkflowsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - usecasesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + workflowsList: jspb.Message.toObjectList(msg.getWorkflowsList(), + proto_clarifai_api_resources_pb.Workflow.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -23941,37 +56697,42 @@ proto.clarifai.api.MultiModelUseCaseResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelUseCaseResponse} + * @return {!proto.clarifai.api.PatchWorkflowsRequest} */ -proto.clarifai.api.MultiModelUseCaseResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchWorkflowsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelUseCaseResponse; - return proto.clarifai.api.MultiModelUseCaseResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchWorkflowsRequest; + return proto.clarifai.api.PatchWorkflowsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelUseCaseResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchWorkflowsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelUseCaseResponse} + * @return {!proto.clarifai.api.PatchWorkflowsRequest} */ -proto.clarifai.api.MultiModelUseCaseResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: + var value = new proto_clarifai_api_resources_pb.Workflow; + reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); + msg.addWorkflows(value); + break; + case 3: var value = /** @type {string} */ (reader.readString()); - msg.addUsecases(value); + msg.setAction(value); break; default: reader.skipField(); @@ -23986,9 +56747,9 @@ proto.clarifai.api.MultiModelUseCaseResponse.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PatchWorkflowsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelUseCaseResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchWorkflowsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -23996,24 +56757,32 @@ proto.clarifai.api.MultiModelUseCaseResponse.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelUseCaseResponse} message + * @param {!proto.clarifai.api.PatchWorkflowsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelUseCaseResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getUsecasesList(); + f = message.getWorkflowsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 2, + f, + proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, f ); } @@ -24021,30 +56790,30 @@ proto.clarifai.api.MultiModelUseCaseResponse.serializeBinaryToWriter = function( /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PatchWorkflowsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PatchWorkflowsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this + * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchWorkflowsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -24052,45 +56821,64 @@ proto.clarifai.api.MultiModelUseCaseResponse.prototype.clearStatus = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.hasStatus = function() { +proto.clarifai.api.PatchWorkflowsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string usecases = 2; - * @return {!Array} + * repeated Workflow workflows = 2; + * @return {!Array} */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.getUsecasesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.PatchWorkflowsRequest.prototype.getWorkflowsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this - */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.setUsecasesList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this +*/ +proto.clarifai.api.PatchWorkflowsRequest.prototype.setWorkflowsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Workflow=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this + * @return {!proto.clarifai.api.Workflow} */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.addUsecases = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.PatchWorkflowsRequest.prototype.addWorkflows = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Workflow, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelUseCaseResponse} returns this + * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this */ -proto.clarifai.api.MultiModelUseCaseResponse.prototype.clearUsecasesList = function() { - return this.setUsecasesList([]); +proto.clarifai.api.PatchWorkflowsRequest.prototype.clearWorkflowsList = function() { + return this.setWorkflowsList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchWorkflowsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this + */ +proto.clarifai.api.PatchWorkflowsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -24100,7 +56888,7 @@ proto.clarifai.api.MultiModelUseCaseResponse.prototype.clearUsecasesList = funct * @private {!Array} * @const */ -proto.clarifai.api.MultiModelLanguageResponse.repeatedFields_ = [2]; +proto.clarifai.api.PatchWorkflowIdsRequest.repeatedFields_ = [3]; @@ -24117,8 +56905,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelLanguageResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchWorkflowIdsRequest.toObject(opt_includeInstance, this); }; @@ -24127,14 +56915,16 @@ proto.clarifai.api.MultiModelLanguageResponse.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelLanguageResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchWorkflowIdsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelLanguageResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchWorkflowIdsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - languagesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: jspb.Message.toObjectList(msg.getIdsList(), + proto.clarifai.api.IdUpdateSource.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -24148,23 +56938,23 @@ proto.clarifai.api.MultiModelLanguageResponse.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelLanguageResponse} + * @return {!proto.clarifai.api.PatchWorkflowIdsRequest} */ -proto.clarifai.api.MultiModelLanguageResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchWorkflowIdsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelLanguageResponse; - return proto.clarifai.api.MultiModelLanguageResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchWorkflowIdsRequest; + return proto.clarifai.api.PatchWorkflowIdsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelLanguageResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchWorkflowIdsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelLanguageResponse} + * @return {!proto.clarifai.api.PatchWorkflowIdsRequest} */ -proto.clarifai.api.MultiModelLanguageResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchWorkflowIdsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24172,13 +56962,18 @@ proto.clarifai.api.MultiModelLanguageResponse.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; - case 2: + case 3: + var value = new proto.clarifai.api.IdUpdateSource; + reader.readMessage(value,proto.clarifai.api.IdUpdateSource.deserializeBinaryFromReader); + msg.addIds(value); + break; + case 4: var value = /** @type {string} */ (reader.readString()); - msg.addLanguages(value); + msg.setAction(value); break; default: reader.skipField(); @@ -24193,9 +56988,9 @@ proto.clarifai.api.MultiModelLanguageResponse.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelLanguageResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchWorkflowIdsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24203,24 +56998,32 @@ proto.clarifai.api.MultiModelLanguageResponse.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelLanguageResponse} message + * @param {!proto.clarifai.api.PatchWorkflowIdsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelLanguageResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchWorkflowIdsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getLanguagesList(); + f = message.getIdsList(); if (f.length > 0) { - writer.writeRepeatedString( - 2, + writer.writeRepeatedMessage( + 3, + f, + proto.clarifai.api.IdUpdateSource.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, f ); } @@ -24228,30 +57031,30 @@ proto.clarifai.api.MultiModelLanguageResponse.serializeBinaryToWriter = function /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchWorkflowIdsRequest} returns this */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + * @return {!proto.clarifai.api.PatchWorkflowIdsRequest} returns this */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -24259,55 +57062,67 @@ proto.clarifai.api.MultiModelLanguageResponse.prototype.clearStatus = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.hasStatus = function() { +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string languages = 2; - * @return {!Array} + * repeated IdUpdateSource ids = 3; + * @return {!Array} */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.getLanguagesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.getIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.IdUpdateSource, 3)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this - */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.setLanguagesList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PatchWorkflowIdsRequest} returns this +*/ +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.IdUpdateSource=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + * @return {!proto.clarifai.api.IdUpdateSource} */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.addLanguages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.addIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.IdUpdateSource, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelLanguageResponse} returns this + * @return {!proto.clarifai.api.PatchWorkflowIdsRequest} returns this */ -proto.clarifai.api.MultiModelLanguageResponse.prototype.clearLanguagesList = function() { - return this.setLanguagesList([]); +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.clarifai.api.PatchWorkflowIdsRequest} returns this */ -proto.clarifai.api.PostModelsRequest.repeatedFields_ = [3]; +proto.clarifai.api.PatchWorkflowIdsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + @@ -24324,8 +57139,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostModelsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostModelsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteWorkflowRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteWorkflowRequest.toObject(opt_includeInstance, this); }; @@ -24334,16 +57149,14 @@ proto.clarifai.api.PostModelsRequest.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostModelsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteWorkflowRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteWorkflowRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f), - modelsList: jspb.Message.toObjectList(msg.getModelsList(), - proto_clarifai_api_resources_pb.Model.toObject, includeInstance) + workflowId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -24357,23 +57170,23 @@ proto.clarifai.api.PostModelsRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostModelsRequest} + * @return {!proto.clarifai.api.DeleteWorkflowRequest} */ -proto.clarifai.api.PostModelsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteWorkflowRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostModelsRequest; - return proto.clarifai.api.PostModelsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteWorkflowRequest; + return proto.clarifai.api.DeleteWorkflowRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostModelsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteWorkflowRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostModelsRequest} + * @return {!proto.clarifai.api.DeleteWorkflowRequest} */ -proto.clarifai.api.PostModelsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24386,14 +57199,8 @@ proto.clarifai.api.PostModelsRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Model; - reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); - msg.setModel(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.Model; - reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); - msg.addModels(value); + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); break; default: reader.skipField(); @@ -24408,9 +57215,9 @@ proto.clarifai.api.PostModelsRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostModelsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteWorkflowRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostModelsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteWorkflowRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24418,11 +57225,11 @@ proto.clarifai.api.PostModelsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostModelsRequest} message + * @param {!proto.clarifai.api.DeleteWorkflowRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteWorkflowRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -24432,20 +57239,11 @@ proto.clarifai.api.PostModelsRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModel(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter - ); - } - f = message.getModelsList(); + f = message.getWorkflowId(); if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter + writer.writeString( + 2, + f ); } }; @@ -24455,7 +57253,7 @@ proto.clarifai.api.PostModelsRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostModelsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteWorkflowRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -24463,18 +57261,18 @@ proto.clarifai.api.PostModelsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostModelsRequest} returns this + * @return {!proto.clarifai.api.DeleteWorkflowRequest} returns this */ -proto.clarifai.api.PostModelsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteWorkflowRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelsRequest} returns this + * @return {!proto.clarifai.api.DeleteWorkflowRequest} returns this */ -proto.clarifai.api.PostModelsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteWorkflowRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -24483,83 +57281,26 @@ proto.clarifai.api.PostModelsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteWorkflowRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Model model = 2; - * @return {?proto.clarifai.api.Model} - */ -proto.clarifai.api.PostModelsRequest.prototype.getModel = function() { - return /** @type{?proto.clarifai.api.Model} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Model|undefined} value - * @return {!proto.clarifai.api.PostModelsRequest} returns this -*/ -proto.clarifai.api.PostModelsRequest.prototype.setModel = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelsRequest} returns this - */ -proto.clarifai.api.PostModelsRequest.prototype.clearModel = function() { - return this.setModel(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostModelsRequest.prototype.hasModel = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated Model models = 3; - * @return {!Array} - */ -proto.clarifai.api.PostModelsRequest.prototype.getModelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Model, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PostModelsRequest} returns this -*/ -proto.clarifai.api.PostModelsRequest.prototype.setModelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.Model=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Model} + * optional string workflow_id = 2; + * @return {string} */ -proto.clarifai.api.PostModelsRequest.prototype.addModels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Model, opt_index); +proto.clarifai.api.DeleteWorkflowRequest.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostModelsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.DeleteWorkflowRequest} returns this */ -proto.clarifai.api.PostModelsRequest.prototype.clearModelsList = function() { - return this.setModelsList([]); +proto.clarifai.api.DeleteWorkflowRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -24569,7 +57310,7 @@ proto.clarifai.api.PostModelsRequest.prototype.clearModelsList = function() { * @private {!Array} * @const */ -proto.clarifai.api.PatchModelsRequest.repeatedFields_ = [2]; +proto.clarifai.api.DeleteWorkflowsRequest.repeatedFields_ = [2]; @@ -24586,8 +57327,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchModelsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchModelsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteWorkflowsRequest.toObject(opt_includeInstance, this); }; @@ -24596,16 +57337,15 @@ proto.clarifai.api.PatchModelsRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchModelsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteWorkflowsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteWorkflowsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelsList: jspb.Message.toObjectList(msg.getModelsList(), - proto_clarifai_api_resources_pb.Model.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + deleteAll: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -24619,23 +57359,23 @@ proto.clarifai.api.PatchModelsRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchModelsRequest} + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} */ -proto.clarifai.api.PatchModelsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchModelsRequest; - return proto.clarifai.api.PatchModelsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteWorkflowsRequest; + return proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchModelsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteWorkflowsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchModelsRequest} + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} */ -proto.clarifai.api.PatchModelsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24648,13 +57388,12 @@ proto.clarifai.api.PatchModelsRequest.deserializeBinaryFromReader = function(msg msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Model; - reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); - msg.addModels(value); + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeleteAll(value); break; default: reader.skipField(); @@ -24669,9 +57408,9 @@ proto.clarifai.api.PatchModelsRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchModelsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteWorkflowsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchModelsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteWorkflowsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24679,11 +57418,11 @@ proto.clarifai.api.PatchModelsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchModelsRequest} message + * @param {!proto.clarifai.api.DeleteWorkflowsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -24693,17 +57432,16 @@ proto.clarifai.api.PatchModelsRequest.serializeBinaryToWriter = function(message proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelsList(); + f = message.getIdsList(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeRepeatedString( 2, - f, - proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter + f ); } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( + f = message.getDeleteAll(); + if (f) { + writer.writeBool( 3, f ); @@ -24715,7 +57453,7 @@ proto.clarifai.api.PatchModelsRequest.serializeBinaryToWriter = function(message * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchModelsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteWorkflowsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -24723,18 +57461,18 @@ proto.clarifai.api.PatchModelsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchModelsRequest} returns this + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteWorkflowsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchModelsRequest} returns this + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteWorkflowsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -24743,64 +57481,63 @@ proto.clarifai.api.PatchModelsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchModelsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteWorkflowsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Model models = 2; - * @return {!Array} + * repeated string ids = 2; + * @return {!Array} */ -proto.clarifai.api.PatchModelsRequest.prototype.getModelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); +proto.clarifai.api.DeleteWorkflowsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchModelsRequest} returns this -*/ -proto.clarifai.api.PatchModelsRequest.prototype.setModelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this + */ +proto.clarifai.api.DeleteWorkflowsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!proto.clarifai.api.Model=} opt_value + * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.Model} + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelsRequest.prototype.addModels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Model, opt_index); +proto.clarifai.api.DeleteWorkflowsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchModelsRequest} returns this + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelsRequest.prototype.clearModelsList = function() { - return this.setModelsList([]); +proto.clarifai.api.DeleteWorkflowsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; /** - * optional string action = 3; - * @return {string} + * optional bool delete_all = 3; + * @return {boolean} */ -proto.clarifai.api.PatchModelsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.DeleteWorkflowsRequest.prototype.getDeleteAll = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchModelsRequest} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this */ -proto.clarifai.api.PatchModelsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.DeleteWorkflowsRequest.prototype.setDeleteAll = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; @@ -24820,8 +57557,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteModelRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteModelRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleWorkflowResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleWorkflowResponse.toObject(opt_includeInstance, this); }; @@ -24830,14 +57567,14 @@ proto.clarifai.api.DeleteModelRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteModelRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleWorkflowResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteModelRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleWorkflowResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f) }; if (includeInstance) { @@ -24851,23 +57588,23 @@ proto.clarifai.api.DeleteModelRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteModelRequest} + * @return {!proto.clarifai.api.SingleWorkflowResponse} */ -proto.clarifai.api.DeleteModelRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleWorkflowResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteModelRequest; - return proto.clarifai.api.DeleteModelRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleWorkflowResponse; + return proto.clarifai.api.SingleWorkflowResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteModelRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleWorkflowResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteModelRequest} + * @return {!proto.clarifai.api.SingleWorkflowResponse} */ -proto.clarifai.api.DeleteModelRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -24875,13 +57612,14 @@ proto.clarifai.api.DeleteModelRequest.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + var value = new proto_clarifai_api_resources_pb.Workflow; + reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); + msg.setWorkflow(value); break; default: reader.skipField(); @@ -24896,9 +57634,9 @@ proto.clarifai.api.DeleteModelRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteModelRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleWorkflowResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteModelRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleWorkflowResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -24906,55 +57644,56 @@ proto.clarifai.api.DeleteModelRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteModelRequest} message + * @param {!proto.clarifai.api.SingleWorkflowResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteModelRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleWorkflowResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( + f = message.getWorkflow(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DeleteModelRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleWorkflowResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteModelRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this */ -proto.clarifai.api.DeleteModelRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleWorkflowResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteModelRequest} returns this + * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this */ -proto.clarifai.api.DeleteModelRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleWorkflowResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -24962,26 +57701,45 @@ proto.clarifai.api.DeleteModelRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteModelRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleWorkflowResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} + * optional Workflow workflow = 2; + * @return {?proto.clarifai.api.Workflow} */ -proto.clarifai.api.DeleteModelRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.SingleWorkflowResponse.prototype.getWorkflow = function() { + return /** @type{?proto.clarifai.api.Workflow} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DeleteModelRequest} returns this + * @param {?proto.clarifai.api.Workflow|undefined} value + * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this +*/ +proto.clarifai.api.SingleWorkflowResponse.prototype.setWorkflow = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this */ -proto.clarifai.api.DeleteModelRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.SingleWorkflowResponse.prototype.clearWorkflow = function() { + return this.setWorkflow(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.SingleWorkflowResponse.prototype.hasWorkflow = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -24991,7 +57749,7 @@ proto.clarifai.api.DeleteModelRequest.prototype.setModelId = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.DeleteModelsRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiWorkflowResponse.repeatedFields_ = [2]; @@ -25008,8 +57766,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteModelsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteModelsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiWorkflowResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiWorkflowResponse.toObject(opt_includeInstance, this); }; @@ -25018,15 +57776,15 @@ proto.clarifai.api.DeleteModelsRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteModelsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiWorkflowResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteModelsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiWorkflowResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - deleteAll: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + workflowsList: jspb.Message.toObjectList(msg.getWorkflowsList(), + proto_clarifai_api_resources_pb.Workflow.toObject, includeInstance) }; if (includeInstance) { @@ -25040,23 +57798,23 @@ proto.clarifai.api.DeleteModelsRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteModelsRequest} + * @return {!proto.clarifai.api.MultiWorkflowResponse} */ -proto.clarifai.api.DeleteModelsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiWorkflowResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteModelsRequest; - return proto.clarifai.api.DeleteModelsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiWorkflowResponse; + return proto.clarifai.api.MultiWorkflowResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteModelsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiWorkflowResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteModelsRequest} + * @return {!proto.clarifai.api.MultiWorkflowResponse} */ -proto.clarifai.api.DeleteModelsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25064,17 +57822,14 @@ proto.clarifai.api.DeleteModelsRequest.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeleteAll(value); + var value = new proto_clarifai_api_resources_pb.Workflow; + reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); + msg.addWorkflows(value); break; default: reader.skipField(); @@ -25089,9 +57844,9 @@ proto.clarifai.api.DeleteModelsRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteModelsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiWorkflowResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteModelsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiWorkflowResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25099,62 +57854,56 @@ proto.clarifai.api.DeleteModelsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteModelsRequest} message + * @param {!proto.clarifai.api.MultiWorkflowResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteModelsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiWorkflowResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getIdsList(); + f = message.getWorkflowsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getDeleteAll(); - if (f) { - writer.writeBool( - 3, - f + f, + proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DeleteModelsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiWorkflowResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteModelsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this */ -proto.clarifai.api.DeleteModelsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiWorkflowResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteModelsRequest} returns this + * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this */ -proto.clarifai.api.DeleteModelsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiWorkflowResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -25162,66 +57911,56 @@ proto.clarifai.api.DeleteModelsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteModelsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiWorkflowResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} + * repeated Workflow workflows = 2; + * @return {!Array} */ -proto.clarifai.api.DeleteModelsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.MultiWorkflowResponse.prototype.getWorkflowsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteModelsRequest} returns this - */ -proto.clarifai.api.DeleteModelsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this +*/ +proto.clarifai.api.MultiWorkflowResponse.prototype.setWorkflowsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Workflow=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteModelsRequest} returns this + * @return {!proto.clarifai.api.Workflow} */ -proto.clarifai.api.DeleteModelsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.MultiWorkflowResponse.prototype.addWorkflows = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Workflow, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteModelsRequest} returns this + * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this */ -proto.clarifai.api.DeleteModelsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); +proto.clarifai.api.MultiWorkflowResponse.prototype.clearWorkflowsList = function() { + return this.setWorkflowsList([]); }; -/** - * optional bool delete_all = 3; - * @return {boolean} - */ -proto.clarifai.api.DeleteModelsRequest.prototype.getDeleteAll = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - /** - * @param {boolean} value - * @return {!proto.clarifai.api.DeleteModelsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.DeleteModelsRequest.prototype.setDeleteAll = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - +proto.clarifai.api.PostWorkflowResultsRequest.repeatedFields_ = [3]; @@ -25238,8 +57977,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostModelsSearchesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostWorkflowResultsRequest.toObject(opt_includeInstance, this); }; @@ -25248,15 +57987,20 @@ proto.clarifai.api.PostModelsSearchesRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostModelsSearchesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostWorkflowResultsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelsSearchesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostWorkflowResultsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelQuery: (f = msg.getModelQuery()) && proto_clarifai_api_resources_pb.ModelQuery.toObject(includeInstance, f), - pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 7, ""), + inputsList: jspb.Message.toObjectList(msg.getInputsList(), + proto_clarifai_api_resources_pb.Input.toObject, includeInstance), + outputConfig: (f = msg.getOutputConfig()) && proto_clarifai_api_resources_pb.OutputConfig.toObject(includeInstance, f), + favorClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + workflowState: (f = msg.getWorkflowState()) && proto_clarifai_api_resources_pb.WorkflowState.toObject(includeInstance, f) }; if (includeInstance) { @@ -25270,23 +58014,23 @@ proto.clarifai.api.PostModelsSearchesRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostModelsSearchesRequest} + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} */ -proto.clarifai.api.PostModelsSearchesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostModelsSearchesRequest; - return proto.clarifai.api.PostModelsSearchesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostWorkflowResultsRequest; + return proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostModelsSearchesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostWorkflowResultsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostModelsSearchesRequest} + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} */ -proto.clarifai.api.PostModelsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25299,14 +58043,31 @@ proto.clarifai.api.PostModelsSearchesRequest.deserializeBinaryFromReader = funct msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelQuery; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelQuery.deserializeBinaryFromReader); - msg.setModelQuery(value); + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); break; case 3: - var value = new proto.clarifai.api.Pagination; - reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.addInputs(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.OutputConfig; + reader.readMessage(value,proto_clarifai_api_resources_pb.OutputConfig.deserializeBinaryFromReader); + msg.setOutputConfig(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFavorClarifaiWorkflows(value); + break; + case 6: + var value = new proto_clarifai_api_resources_pb.WorkflowState; + reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowState.deserializeBinaryFromReader); + msg.setWorkflowState(value); break; default: reader.skipField(); @@ -25321,9 +58082,9 @@ proto.clarifai.api.PostModelsSearchesRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostWorkflowResultsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostModelsSearchesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostWorkflowResultsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25331,11 +58092,11 @@ proto.clarifai.api.PostModelsSearchesRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostModelsSearchesRequest} message + * @param {!proto.clarifai.api.PostWorkflowResultsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelsSearchesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostWorkflowResultsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -25345,20 +58106,49 @@ proto.clarifai.api.PostModelsSearchesRequest.serializeBinaryToWriter = function( proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelQuery(); + f = message.getWorkflowId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersionId(); + if (f.length > 0) { + writer.writeString( + 7, + f + ); + } + f = message.getInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } + f = message.getOutputConfig(); if (f != null) { writer.writeMessage( - 2, + 4, f, - proto_clarifai_api_resources_pb.ModelQuery.serializeBinaryToWriter + proto_clarifai_api_resources_pb.OutputConfig.serializeBinaryToWriter ); } - f = message.getPagination(); + f = message.getFavorClarifaiWorkflows(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getWorkflowState(); if (f != null) { writer.writeMessage( - 3, + 6, f, - proto.clarifai.api.Pagination.serializeBinaryToWriter + proto_clarifai_api_resources_pb.WorkflowState.serializeBinaryToWriter ); } }; @@ -25368,7 +58158,7 @@ proto.clarifai.api.PostModelsSearchesRequest.serializeBinaryToWriter = function( * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostWorkflowResultsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -25376,18 +58166,18 @@ proto.clarifai.api.PostModelsSearchesRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostWorkflowResultsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -25396,238 +58186,110 @@ proto.clarifai.api.PostModelsSearchesRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostWorkflowResultsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional ModelQuery model_query = 2; - * @return {?proto.clarifai.api.ModelQuery} - */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.getModelQuery = function() { - return /** @type{?proto.clarifai.api.ModelQuery} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelQuery, 2)); -}; - - -/** - * @param {?proto.clarifai.api.ModelQuery|undefined} value - * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this -*/ -proto.clarifai.api.PostModelsSearchesRequest.prototype.setModelQuery = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this - */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.clearModelQuery = function() { - return this.setModelQuery(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.hasModelQuery = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Pagination pagination = 3; - * @return {?proto.clarifai.api.Pagination} - */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.getPagination = function() { - return /** @type{?proto.clarifai.api.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); -}; - - -/** - * @param {?proto.clarifai.api.Pagination|undefined} value - * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this -*/ -proto.clarifai.api.PostModelsSearchesRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelsSearchesRequest} returns this - */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * optional string workflow_id = 2; + * @return {string} */ -proto.clarifai.api.PostModelsSearchesRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.PostWorkflowResultsRequest.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {string} value + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.SingleModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleModelResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleModelResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional string version_id = 7; + * @return {string} */ -proto.clarifai.api.SingleModelResponse.toObject = function(includeInstance, msg) { - var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - model: (f = msg.getModel()) && proto_clarifai_api_resources_pb.Model.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.PostWorkflowResultsRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleModelResponse} + * @param {string} value + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.SingleModelResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleModelResponse; - return proto.clarifai.api.SingleModelResponse.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.SingleModelResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleModelResponse} + * repeated Input inputs = 3; + * @return {!Array} */ -proto.clarifai.api.SingleModelResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 2: - var value = new proto_clarifai_api_resources_pb.Model; - reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); - msg.setModel(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.PostWorkflowResultsRequest.prototype.getInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 3)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this +*/ +proto.clarifai.api.PostWorkflowResultsRequest.prototype.setInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} */ -proto.clarifai.api.SingleModelResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleModelResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.addInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Input, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleModelResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.SingleModelResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getModel(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter - ); - } +proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearInputsList = function() { + return this.setInputsList([]); }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional OutputConfig output_config = 4; + * @return {?proto.clarifai.api.OutputConfig} */ -proto.clarifai.api.SingleModelResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.getOutputConfig = function() { + return /** @type{?proto.clarifai.api.OutputConfig} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.OutputConfig, 4)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleModelResponse} returns this + * @param {?proto.clarifai.api.OutputConfig|undefined} value + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.SingleModelResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.setOutputConfig = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.SingleModelResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearOutputConfig = function() { + return this.setOutputConfig(undefined); }; @@ -25635,36 +58297,54 @@ proto.clarifai.api.SingleModelResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleModelResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.PostWorkflowResultsRequest.prototype.hasOutputConfig = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional Model model = 2; - * @return {?proto.clarifai.api.Model} + * optional bool favor_clarifai_workflows = 5; + * @return {boolean} */ -proto.clarifai.api.SingleModelResponse.prototype.getModel = function() { - return /** @type{?proto.clarifai.api.Model} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.getFavorClarifaiWorkflows = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** - * @param {?proto.clarifai.api.Model|undefined} value - * @return {!proto.clarifai.api.SingleModelResponse} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this + */ +proto.clarifai.api.PostWorkflowResultsRequest.prototype.setFavorClarifaiWorkflows = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional WorkflowState workflow_state = 6; + * @return {?proto.clarifai.api.WorkflowState} + */ +proto.clarifai.api.PostWorkflowResultsRequest.prototype.getWorkflowState = function() { + return /** @type{?proto.clarifai.api.WorkflowState} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.WorkflowState, 6)); +}; + + +/** + * @param {?proto.clarifai.api.WorkflowState|undefined} value + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.SingleModelResponse.prototype.setModel = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.setWorkflowState = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this */ -proto.clarifai.api.SingleModelResponse.prototype.clearModel = function() { - return this.setModel(undefined); +proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearWorkflowState = function() { + return this.setWorkflowState(undefined); }; @@ -25672,8 +58352,8 @@ proto.clarifai.api.SingleModelResponse.prototype.clearModel = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleModelResponse.prototype.hasModel = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PostWorkflowResultsRequest.prototype.hasWorkflowState = function() { + return jspb.Message.getField(this, 6) != null; }; @@ -25683,7 +58363,7 @@ proto.clarifai.api.SingleModelResponse.prototype.hasModel = function() { * @private {!Array} * @const */ -proto.clarifai.api.MultiModelResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostWorkflowResultsResponse.repeatedFields_ = [3]; @@ -25700,8 +58380,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowResultsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostWorkflowResultsResponse.toObject(opt_includeInstance, this); }; @@ -25710,15 +58390,17 @@ proto.clarifai.api.MultiModelResponse.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostWorkflowResultsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostWorkflowResultsResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelsList: jspb.Message.toObjectList(msg.getModelsList(), - proto_clarifai_api_resources_pb.Model.toObject, includeInstance) + workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f), + resultsList: jspb.Message.toObjectList(msg.getResultsList(), + proto_clarifai_api_resources_pb.WorkflowResult.toObject, includeInstance), + workflowState: (f = msg.getWorkflowState()) && proto_clarifai_api_resources_pb.WorkflowState.toObject(includeInstance, f) }; if (includeInstance) { @@ -25732,23 +58414,23 @@ proto.clarifai.api.MultiModelResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelResponse} + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} */ -proto.clarifai.api.MultiModelResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelResponse; - return proto.clarifai.api.MultiModelResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostWorkflowResultsResponse; + return proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostWorkflowResultsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelResponse} + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} */ -proto.clarifai.api.MultiModelResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25761,9 +58443,19 @@ proto.clarifai.api.MultiModelResponse.deserializeBinaryFromReader = function(msg msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Model; - reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); - msg.addModels(value); + var value = new proto_clarifai_api_resources_pb.Workflow; + reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); + msg.setWorkflow(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.WorkflowResult; + reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowResult.deserializeBinaryFromReader); + msg.addResults(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.WorkflowState; + reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowState.deserializeBinaryFromReader); + msg.setWorkflowState(value); break; default: reader.skipField(); @@ -25778,9 +58470,9 @@ proto.clarifai.api.MultiModelResponse.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostWorkflowResultsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostWorkflowResultsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -25788,11 +58480,11 @@ proto.clarifai.api.MultiModelResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelResponse} message + * @param {!proto.clarifai.api.PostWorkflowResultsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostWorkflowResultsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -25802,12 +58494,28 @@ proto.clarifai.api.MultiModelResponse.serializeBinaryToWriter = function(message proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelsList(); + f = message.getWorkflow(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter + ); + } + f = message.getResultsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 2, + 3, f, - proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter + proto_clarifai_api_resources_pb.WorkflowResult.serializeBinaryToWriter + ); + } + f = message.getWorkflowState(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto_clarifai_api_resources_pb.WorkflowState.serializeBinaryToWriter ); } }; @@ -25817,7 +58525,7 @@ proto.clarifai.api.MultiModelResponse.serializeBinaryToWriter = function(message * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiModelResponse.prototype.getStatus = function() { +proto.clarifai.api.PostWorkflowResultsResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -25825,18 +58533,18 @@ proto.clarifai.api.MultiModelResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this */ -proto.clarifai.api.MultiModelResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostWorkflowResultsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this */ -proto.clarifai.api.MultiModelResponse.prototype.clearStatus = function() { +proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -25845,46 +58553,120 @@ proto.clarifai.api.MultiModelResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Model models = 2; - * @return {!Array} + * optional Workflow workflow = 2; + * @return {?proto.clarifai.api.Workflow} */ -proto.clarifai.api.MultiModelResponse.prototype.getModelsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Model, 2)); +proto.clarifai.api.PostWorkflowResultsResponse.prototype.getWorkflow = function() { + return /** @type{?proto.clarifai.api.Workflow} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelResponse} returns this + * @param {?proto.clarifai.api.Workflow|undefined} value + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this */ -proto.clarifai.api.MultiModelResponse.prototype.setModelsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PostWorkflowResultsResponse.prototype.setWorkflow = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Model=} opt_value + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this + */ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearWorkflow = function() { + return this.setWorkflow(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasWorkflow = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated WorkflowResult results = 3; + * @return {!Array} + */ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.getResultsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowResult, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this +*/ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.setResultsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.WorkflowResult=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Model} + * @return {!proto.clarifai.api.WorkflowResult} */ -proto.clarifai.api.MultiModelResponse.prototype.addModels = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Model, opt_index); +proto.clarifai.api.PostWorkflowResultsResponse.prototype.addResults = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.WorkflowResult, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelResponse} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this */ -proto.clarifai.api.MultiModelResponse.prototype.clearModelsList = function() { - return this.setModelsList([]); +proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearResultsList = function() { + return this.setResultsList([]); +}; + + +/** + * optional WorkflowState workflow_state = 4; + * @return {?proto.clarifai.api.WorkflowState} + */ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.getWorkflowState = function() { + return /** @type{?proto.clarifai.api.WorkflowState} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.WorkflowState, 4)); +}; + + +/** + * @param {?proto.clarifai.api.WorkflowState|undefined} value + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this +*/ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.setWorkflowState = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this + */ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearWorkflowState = function() { + return this.setWorkflowState(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasWorkflowState = function() { + return jspb.Message.getField(this, 4) != null; }; @@ -25894,7 +58676,7 @@ proto.clarifai.api.MultiModelResponse.prototype.clearModelsList = function() { * @private {!Array} * @const */ -proto.clarifai.api.PatchModelVersionsRequest.repeatedFields_ = [3]; +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.repeatedFields_ = [4,5]; @@ -25911,8 +58693,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchModelVersionsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostWorkflowResultsSimilarityRequest.toObject(opt_includeInstance, this); }; @@ -25921,17 +58703,21 @@ proto.clarifai.api.PatchModelVersionsRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchModelVersionsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelVersionsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(), - proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 4, "") + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionId: jspb.Message.getFieldWithDefault(msg, 7, ""), + modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), + probeInputsList: jspb.Message.toObjectList(msg.getProbeInputsList(), + proto_clarifai_api_resources_pb.Input.toObject, includeInstance), + poolInputsList: jspb.Message.toObjectList(msg.getPoolInputsList(), + proto_clarifai_api_resources_pb.Input.toObject, includeInstance), + favorClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) }; if (includeInstance) { @@ -25945,23 +58731,23 @@ proto.clarifai.api.PatchModelVersionsRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchModelVersionsRequest} + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} */ -proto.clarifai.api.PatchModelVersionsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchModelVersionsRequest; - return proto.clarifai.api.PatchModelVersionsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostWorkflowResultsSimilarityRequest; + return proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchModelVersionsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchModelVersionsRequest} + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} */ -proto.clarifai.api.PatchModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -25975,16 +58761,29 @@ proto.clarifai.api.PatchModelVersionsRequest.deserializeBinaryFromReader = funct break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + msg.setWorkflowId(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setVersionId(value); break; case 3: - var value = new proto_clarifai_api_resources_pb.ModelVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); - msg.addModelVersions(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModelVersionId(value); break; case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.addProbeInputs(value); + break; + case 5: + var value = new proto_clarifai_api_resources_pb.Input; + reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); + msg.addPoolInputs(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setFavorClarifaiWorkflows(value); break; default: reader.skipField(); @@ -25999,9 +58798,9 @@ proto.clarifai.api.PatchModelVersionsRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchModelVersionsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -26009,11 +58808,11 @@ proto.clarifai.api.PatchModelVersionsRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchModelVersionsRequest} message + * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchModelVersionsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -26023,25 +58822,47 @@ proto.clarifai.api.PatchModelVersionsRequest.serializeBinaryToWriter = function( proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getWorkflowId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getModelVersionsList(); + f = message.getVersionId(); if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter + writer.writeString( + 7, + f ); } - f = message.getAction(); + f = message.getModelVersionId(); if (f.length > 0) { writer.writeString( + 3, + f + ); + } + f = message.getProbeInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 4, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } + f = message.getPoolInputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter + ); + } + f = message.getFavorClarifaiWorkflows(); + if (f) { + writer.writeBool( + 6, f ); } @@ -26052,7 +58873,7 @@ proto.clarifai.api.PatchModelVersionsRequest.serializeBinaryToWriter = function( * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -26060,18 +58881,18 @@ proto.clarifai.api.PatchModelVersionsRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -26080,86 +58901,167 @@ proto.clarifai.api.PatchModelVersionsRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; + * optional string workflow_id = 2; * @return {string} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.getModelId = function() { +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getWorkflowId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string version_id = 7; + * @return {string} + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 7, value); +}; + + +/** + * optional string model_version_id = 3; + * @return {string} + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getModelVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setModelVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated Input probe_inputs = 4; + * @return {!Array} + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getProbeInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this +*/ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setProbeInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.clarifai.api.Input=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Input} + */ +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.addProbeInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Input, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearProbeInputsList = function() { + return this.setProbeInputsList([]); }; /** - * repeated ModelVersion model_versions = 3; - * @return {!Array} + * repeated Input pool_inputs = 5; + * @return {!Array} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.getModelVersionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3)); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getPoolInputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 5)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.setModelVersionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setPoolInputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); }; /** - * @param {!proto.clarifai.api.ModelVersion=} opt_value + * @param {!proto.clarifai.api.Input=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelVersion} + * @return {!proto.clarifai.api.Input} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.addModelVersions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersion, opt_index); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.addPoolInputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Input, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.clearModelVersionsList = function() { - return this.setModelVersionsList([]); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearPoolInputsList = function() { + return this.setPoolInputsList([]); }; /** - * optional string action = 4; - * @return {string} + * optional bool favor_clarifai_workflows = 6; + * @return {boolean} */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getFavorClarifaiWorkflows = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchModelVersionsRequest} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this */ -proto.clarifai.api.PatchModelVersionsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setFavorClarifaiWorkflows = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -26175,8 +59077,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetModelVersionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetModelVersionRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostWorkflowResultsSimilarityResponse.toObject(opt_includeInstance, this); }; @@ -26185,15 +59087,15 @@ proto.clarifai.api.GetModelVersionRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetModelVersionRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelVersionRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 3, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + resultsList: jspb.Message.toObjectList(msg.getResultsList(), + proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.toObject, includeInstance) }; if (includeInstance) { @@ -26207,23 +59109,23 @@ proto.clarifai.api.GetModelVersionRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetModelVersionRequest} + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} */ -proto.clarifai.api.GetModelVersionRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetModelVersionRequest; - return proto.clarifai.api.GetModelVersionRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostWorkflowResultsSimilarityResponse; + return proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetModelVersionRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetModelVersionRequest} + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} */ -proto.clarifai.api.GetModelVersionRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -26231,17 +59133,14 @@ proto.clarifai.api.GetModelVersionRequest.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); + var value = new proto_clarifai_api_resources_pb.WorkflowResultsSimilarity; + reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.deserializeBinaryFromReader); + msg.addResults(value); break; default: reader.skipField(); @@ -26256,9 +59155,9 @@ proto.clarifai.api.GetModelVersionRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetModelVersionRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetModelVersionRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostWorkflowResultsSimilarityResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -26266,62 +59165,56 @@ proto.clarifai.api.GetModelVersionRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetModelVersionRequest} message + * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelVersionRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getResultsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f + f, + proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.GetModelVersionRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetModelVersionRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this */ -proto.clarifai.api.GetModelVersionRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetModelVersionRequest} returns this + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this */ -proto.clarifai.api.GetModelVersionRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -26329,55 +59222,50 @@ proto.clarifai.api.GetModelVersionRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetModelVersionRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} + * repeated WorkflowResultsSimilarity results = 2; + * @return {!Array} */ -proto.clarifai.api.GetModelVersionRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.getResultsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowResultsSimilarity, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetModelVersionRequest} returns this - */ -proto.clarifai.api.GetModelVersionRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this +*/ +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.setResultsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional string version_id = 3; - * @return {string} + * @param {!proto.clarifai.api.WorkflowResultsSimilarity=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.WorkflowResultsSimilarity} */ -proto.clarifai.api.GetModelVersionRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.addResults = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.WorkflowResultsSimilarity, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetModelVersionRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this */ -proto.clarifai.api.GetModelVersionRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.clearResultsList = function() { + return this.setResultsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.ListModelVersionsRequest.repeatedFields_ = [5]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -26393,8 +59281,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListModelVersionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListModelVersionsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListWorkflowVersionsRequest.toObject(opt_includeInstance, this); }; @@ -26403,17 +59291,16 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListModelVersionsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListWorkflowVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelVersionsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListWorkflowVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), page: jspb.Message.getFieldWithDefault(msg, 3, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 4, 0), - conceptIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -26427,23 +59314,23 @@ proto.clarifai.api.ListModelVersionsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListModelVersionsRequest} + * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} */ -proto.clarifai.api.ListModelVersionsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListModelVersionsRequest; - return proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListWorkflowVersionsRequest; + return proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListModelVersionsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListWorkflowVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListModelVersionsRequest} + * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} */ -proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -26457,7 +59344,7 @@ proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader = functi break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + msg.setWorkflowId(value); break; case 3: var value = /** @type {number} */ (reader.readUint32()); @@ -26467,10 +59354,6 @@ proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader = functi var value = /** @type {number} */ (reader.readUint32()); msg.setPerPage(value); break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.addConceptIds(value); - break; default: reader.skipField(); break; @@ -26484,9 +59367,9 @@ proto.clarifai.api.ListModelVersionsRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListModelVersionsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListWorkflowVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -26494,11 +59377,11 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListModelVersionsRequest} message + * @param {!proto.clarifai.api.ListWorkflowVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListWorkflowVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -26508,7 +59391,7 @@ proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter = function(m proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getWorkflowId(); if (f.length > 0) { writer.writeString( 2, @@ -26529,13 +59412,6 @@ proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter = function(m f ); } - f = message.getConceptIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } }; @@ -26543,7 +59419,7 @@ proto.clarifai.api.ListModelVersionsRequest.serializeBinaryToWriter = function(m * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListModelVersionsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -26551,18 +59427,18 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this */ -proto.clarifai.api.ListModelVersionsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this */ -proto.clarifai.api.ListModelVersionsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -26571,25 +59447,25 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.clearUserAppId = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelVersionsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; + * optional string workflow_id = 2; * @return {string} */ -proto.clarifai.api.ListModelVersionsRequest.prototype.getModelId = function() { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getWorkflowId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this */ -proto.clarifai.api.ListModelVersionsRequest.prototype.setModelId = function(value) { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setWorkflowId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -26598,16 +59474,16 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.setModelId = function(valu * optional uint32 page = 3; * @return {number} */ -proto.clarifai.api.ListModelVersionsRequest.prototype.getPage = function() { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this */ -proto.clarifai.api.ListModelVersionsRequest.prototype.setPage = function(value) { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; @@ -26616,57 +59492,20 @@ proto.clarifai.api.ListModelVersionsRequest.prototype.setPage = function(value) * optional uint32 per_page = 4; * @return {number} */ -proto.clarifai.api.ListModelVersionsRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getPerPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this + * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this */ -proto.clarifai.api.ListModelVersionsRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setPerPage = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; -/** - * repeated string concept_ids = 5; - * @return {!Array} - */ -proto.clarifai.api.ListModelVersionsRequest.prototype.getConceptIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this - */ -proto.clarifai.api.ListModelVersionsRequest.prototype.setConceptIdsList = function(value) { - return jspb.Message.setField(this, 5, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this - */ -proto.clarifai.api.ListModelVersionsRequest.prototype.addConceptIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListModelVersionsRequest} returns this - */ -proto.clarifai.api.ListModelVersionsRequest.prototype.clearConceptIdsList = function() { - return this.setConceptIdsList([]); -}; - - @@ -26683,8 +59522,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteModelVersionRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetWorkflowVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetWorkflowVersionRequest.toObject(opt_includeInstance, this); }; @@ -26693,15 +59532,15 @@ proto.clarifai.api.DeleteModelVersionRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteModelVersionRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetWorkflowVersionRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteModelVersionRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetWorkflowVersionRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 3, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 4, "") + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + workflowVersionId: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -26715,23 +59554,23 @@ proto.clarifai.api.DeleteModelVersionRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteModelVersionRequest} + * @return {!proto.clarifai.api.GetWorkflowVersionRequest} */ -proto.clarifai.api.DeleteModelVersionRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteModelVersionRequest; - return proto.clarifai.api.DeleteModelVersionRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetWorkflowVersionRequest; + return proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteModelVersionRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetWorkflowVersionRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteModelVersionRequest} + * @return {!proto.clarifai.api.GetWorkflowVersionRequest} */ -proto.clarifai.api.DeleteModelVersionRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -26743,13 +59582,13 @@ proto.clarifai.api.DeleteModelVersionRequest.deserializeBinaryFromReader = funct reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; - case 3: + case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); + msg.setWorkflowId(value); break; - case 4: + case 3: var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); + msg.setWorkflowVersionId(value); break; default: reader.skipField(); @@ -26764,9 +59603,9 @@ proto.clarifai.api.DeleteModelVersionRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetWorkflowVersionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteModelVersionRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetWorkflowVersionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -26774,11 +59613,11 @@ proto.clarifai.api.DeleteModelVersionRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteModelVersionRequest} message + * @param {!proto.clarifai.api.GetWorkflowVersionRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteModelVersionRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetWorkflowVersionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -26788,17 +59627,17 @@ proto.clarifai.api.DeleteModelVersionRequest.serializeBinaryToWriter = function( proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getWorkflowId(); if (f.length > 0) { writer.writeString( - 3, + 2, f ); } - f = message.getVersionId(); + f = message.getWorkflowVersionId(); if (f.length > 0) { writer.writeString( - 4, + 3, f ); } @@ -26809,7 +59648,7 @@ proto.clarifai.api.DeleteModelVersionRequest.serializeBinaryToWriter = function( * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetWorkflowVersionRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -26817,18 +59656,18 @@ proto.clarifai.api.DeleteModelVersionRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetWorkflowVersionRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetWorkflowVersionRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -26837,48 +59676,55 @@ proto.clarifai.api.DeleteModelVersionRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetWorkflowVersionRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 3; + * optional string workflow_id = 2; * @return {string} */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.GetWorkflowVersionRequest.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.GetWorkflowVersionRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string version_id = 4; + * optional string workflow_version_id = 3; * @return {string} */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.GetWorkflowVersionRequest.prototype.getWorkflowVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.DeleteModelVersionRequest} returns this + * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this */ -proto.clarifai.api.DeleteModelVersionRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.GetWorkflowVersionRequest.prototype.setWorkflowVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteWorkflowVersionsRequest.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -26894,8 +59740,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleModelVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleModelVersionResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteWorkflowVersionsRequest.toObject(opt_includeInstance, this); }; @@ -26904,14 +59750,15 @@ proto.clarifai.api.SingleModelVersionResponse.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteWorkflowVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleModelVersionResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteWorkflowVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelVersion: (f = msg.getModelVersion()) && proto_clarifai_api_resources_pb.ModelVersion.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -26925,23 +59772,23 @@ proto.clarifai.api.SingleModelVersionResponse.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleModelVersionResponse} + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} */ -proto.clarifai.api.SingleModelVersionResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleModelVersionResponse; - return proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteWorkflowVersionsRequest; + return proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleModelVersionResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteWorkflowVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleModelVersionResponse} + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} */ -proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -26949,14 +59796,17 @@ proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); - msg.setModelVersion(value); + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addWorkflowVersionIds(value); break; default: reader.skipField(); @@ -26971,9 +59821,9 @@ proto.clarifai.api.SingleModelVersionResponse.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleModelVersionResponse.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteWorkflowVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -26981,102 +59831,126 @@ proto.clarifai.api.SingleModelVersionResponse.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleModelVersionResponse} message + * @param {!proto.clarifai.api.DeleteWorkflowVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleModelVersionResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteWorkflowVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelVersion(); - if (f != null) { - writer.writeMessage( + f = message.getWorkflowId(); + if (f.length > 0) { + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter + f + ); + } + f = message.getWorkflowVersionIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleModelVersionResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this */ -proto.clarifai.api.SingleModelVersionResponse.prototype.setStatus = function(value) { +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this + */ +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string workflow_id = 2; + * @return {string} */ -proto.clarifai.api.SingleModelVersionResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this */ -proto.clarifai.api.SingleModelVersionResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional ModelVersion model_version = 2; - * @return {?proto.clarifai.api.ModelVersion} + * repeated string workflow_version_ids = 3; + * @return {!Array} */ -proto.clarifai.api.SingleModelVersionResponse.prototype.getModelVersion = function() { - return /** @type{?proto.clarifai.api.ModelVersion} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2)); +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.getWorkflowVersionIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** - * @param {?proto.clarifai.api.ModelVersion|undefined} value - * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this -*/ -proto.clarifai.api.SingleModelVersionResponse.prototype.setModelVersion = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this + */ +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.setWorkflowVersionIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelVersionResponse} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this */ -proto.clarifai.api.SingleModelVersionResponse.prototype.clearModelVersion = function() { - return this.setModelVersion(undefined); +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.addWorkflowVersionIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this */ -proto.clarifai.api.SingleModelVersionResponse.prototype.hasModelVersion = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.clearWorkflowVersionIdsList = function() { + return this.setWorkflowVersionIdsList([]); }; @@ -27086,7 +59960,7 @@ proto.clarifai.api.SingleModelVersionResponse.prototype.hasModelVersion = functi * @private {!Array} * @const */ -proto.clarifai.api.MultiModelVersionResponse.repeatedFields_ = [2]; +proto.clarifai.api.PatchWorkflowVersionsRequest.repeatedFields_ = [3]; @@ -27103,8 +59977,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelVersionResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchWorkflowVersionsRequest.toObject(opt_includeInstance, this); }; @@ -27113,15 +59987,17 @@ proto.clarifai.api.MultiModelVersionResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchWorkflowVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelVersionResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchWorkflowVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(), - proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), + workflowVersionsList: jspb.Message.toObjectList(msg.getWorkflowVersionsList(), + proto_clarifai_api_resources_pb.WorkflowVersion.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -27135,23 +60011,23 @@ proto.clarifai.api.MultiModelVersionResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelVersionResponse} + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} */ -proto.clarifai.api.MultiModelVersionResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelVersionResponse; - return proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchWorkflowVersionsRequest; + return proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelVersionResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchWorkflowVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelVersionResponse} + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} */ -proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -27159,14 +60035,22 @@ proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); - msg.addModelVersions(value); + var value = /** @type {string} */ (reader.readString()); + msg.setWorkflowId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.WorkflowVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowVersion.deserializeBinaryFromReader); + msg.addWorkflowVersions(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); break; default: reader.skipField(); @@ -27181,9 +60065,9 @@ proto.clarifai.api.MultiModelVersionResponse.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelVersionResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchWorkflowVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -27191,56 +60075,70 @@ proto.clarifai.api.MultiModelVersionResponse.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelVersionResponse} message + * @param {!proto.clarifai.api.PatchWorkflowVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelVersionResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchWorkflowVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelVersionsList(); + f = message.getWorkflowId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getWorkflowVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, f, - proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter + proto_clarifai_api_resources_pb.WorkflowVersion.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 4, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiModelVersionResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this */ -proto.clarifai.api.MultiModelVersionResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this */ -proto.clarifai.api.MultiModelVersionResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -27248,46 +60146,82 @@ proto.clarifai.api.MultiModelVersionResponse.prototype.clearStatus = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelVersionResponse.prototype.hasStatus = function() { +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ModelVersion model_versions = 2; - * @return {!Array} + * optional string workflow_id = 2; + * @return {string} */ -proto.clarifai.api.MultiModelVersionResponse.prototype.getModelVersionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 2)); +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getWorkflowId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this + */ +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setWorkflowId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated WorkflowVersion workflow_versions = 3; + * @return {!Array} + */ +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getWorkflowVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowVersion, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this */ -proto.clarifai.api.MultiModelVersionResponse.prototype.setModelVersionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setWorkflowVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.ModelVersion=} opt_value + * @param {!proto.clarifai.api.WorkflowVersion=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelVersion} + * @return {!proto.clarifai.api.WorkflowVersion} */ -proto.clarifai.api.MultiModelVersionResponse.prototype.addModelVersions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelVersion, opt_index); +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.addWorkflowVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.WorkflowVersion, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelVersionResponse} returns this + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this */ -proto.clarifai.api.MultiModelVersionResponse.prototype.clearModelVersionsList = function() { - return this.setModelVersionsList([]); +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.clearWorkflowVersionsList = function() { + return this.setWorkflowVersionsList([]); +}; + + +/** + * optional string action = 4; + * @return {string} + */ +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this + */ +proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); }; @@ -27297,7 +60231,7 @@ proto.clarifai.api.MultiModelVersionResponse.prototype.clearModelVersionsList = * @private {!Array} * @const */ -proto.clarifai.api.PostModelVersionsRequest.repeatedFields_ = [3]; +proto.clarifai.api.MultiWorkflowVersionResponse.repeatedFields_ = [2]; @@ -27314,8 +60248,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostModelVersionsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiWorkflowVersionResponse.toObject(opt_includeInstance, this); }; @@ -27324,22 +60258,15 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiWorkflowVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiWorkflowVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelVersionsList: jspb.Message.toObjectList(msg.getModelVersionsList(), - proto_clarifai_api_resources_pb.ModelVersion.toObject, includeInstance), - search: (f = msg.getSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), - trainSearch: (f = msg.getTrainSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), - testSearch: (f = msg.getTestSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), - evaluateAfterTraining: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - description: jspb.Message.getFieldWithDefault(msg, 8, ""), - datasetVersion: (f = msg.getDatasetVersion()) && proto_clarifai_api_resources_pb.DatasetVersion.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + workflowVersionsList: jspb.Message.toObjectList(msg.getWorkflowVersionsList(), + proto_clarifai_api_resources_pb.WorkflowVersion.toObject, includeInstance) }; if (includeInstance) { @@ -27353,23 +60280,23 @@ proto.clarifai.api.PostModelVersionsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostModelVersionsRequest} + * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} */ -proto.clarifai.api.PostModelVersionsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostModelVersionsRequest; - return proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiWorkflowVersionResponse; + return proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostModelVersionsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiWorkflowVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostModelVersionsRequest} + * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} */ -proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -27377,46 +60304,14 @@ proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.ModelVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersion.deserializeBinaryFromReader); - msg.addModelVersions(value); - break; - case 4: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.setSearch(value); - break; - case 5: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.setTrainSearch(value); - break; - case 6: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.setTestSearch(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEvaluateAfterTraining(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 9: - var value = new proto_clarifai_api_resources_pb.DatasetVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.DatasetVersion.deserializeBinaryFromReader); - msg.setDatasetVersion(value); + var value = new proto_clarifai_api_resources_pb.WorkflowVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowVersion.deserializeBinaryFromReader); + msg.addWorkflowVersions(value); break; default: reader.skipField(); @@ -27431,9 +60326,9 @@ proto.clarifai.api.PostModelVersionsRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiWorkflowVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -27441,109 +60336,56 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostModelVersionsRequest} message + * @param {!proto.clarifai.api.MultiWorkflowVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiWorkflowVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( - 2, - f + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelVersionsList(); + f = message.getWorkflowVersionsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.ModelVersion.serializeBinaryToWriter - ); - } - f = message.getSearch(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getTrainSearch(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getTestSearch(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getEvaluateAfterTraining(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getDatasetVersion(); - if (f != null) { - writer.writeMessage( - 9, + 2, f, - proto_clarifai_api_resources_pb.DatasetVersion.serializeBinaryToWriter + proto_clarifai_api_resources_pb.WorkflowVersion.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this */ -proto.clarifai.api.PostModelVersionsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this */ -proto.clarifai.api.PostModelVersionsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -27551,239 +60393,239 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.clearUserAppId = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this - */ -proto.clarifai.api.PostModelVersionsRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated ModelVersion model_versions = 3; - * @return {!Array} + * repeated WorkflowVersion workflow_versions = 2; + * @return {!Array} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getModelVersionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersion, 3)); +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.getWorkflowVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowVersion, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this */ -proto.clarifai.api.PostModelVersionsRequest.prototype.setModelVersionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.setWorkflowVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.ModelVersion=} opt_value + * @param {!proto.clarifai.api.WorkflowVersion=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelVersion} + * @return {!proto.clarifai.api.WorkflowVersion} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.addModelVersions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersion, opt_index); +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.addWorkflowVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.WorkflowVersion, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this - */ -proto.clarifai.api.PostModelVersionsRequest.prototype.clearModelVersionsList = function() { - return this.setModelVersionsList([]); -}; - - -/** - * optional Search search = 4; - * @return {?proto.clarifai.api.Search} - */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getSearch = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 4)); -}; - - -/** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this -*/ -proto.clarifai.api.PostModelVersionsRequest.prototype.setSearch = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this - */ -proto.clarifai.api.PostModelVersionsRequest.prototype.clearSearch = function() { - return this.setSearch(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this */ -proto.clarifai.api.PostModelVersionsRequest.prototype.hasSearch = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.MultiWorkflowVersionResponse.prototype.clearWorkflowVersionsList = function() { + return this.setWorkflowVersionsList([]); }; -/** - * optional Search train_search = 5; - * @return {?proto.clarifai.api.Search} - */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getTrainSearch = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 5)); -}; - -/** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this -*/ -proto.clarifai.api.PostModelVersionsRequest.prototype.setTrainSearch = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.clearTrainSearch = function() { - return this.setTrainSearch(undefined); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleWorkflowVersionResponse.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleWorkflowVersionResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsRequest.prototype.hasTrainSearch = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.SingleWorkflowVersionResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + workflowVersion: (f = msg.getWorkflowVersion()) && proto_clarifai_api_resources_pb.WorkflowVersion.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional Search test_search = 6; - * @return {?proto.clarifai.api.Search} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getTestSearch = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 6)); +proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.SingleWorkflowVersionResponse; + return proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this -*/ -proto.clarifai.api.PostModelVersionsRequest.prototype.setTestSearch = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.SingleWorkflowVersionResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} + */ +proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.WorkflowVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowVersion.deserializeBinaryFromReader); + msg.setWorkflowVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.clearTestSearch = function() { - return this.setTestSearch(undefined); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.SingleWorkflowVersionResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.SingleWorkflowVersionResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsRequest.prototype.hasTestSearch = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.SingleWorkflowVersionResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getWorkflowVersion(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.WorkflowVersion.serializeBinaryToWriter + ); + } }; /** - * optional bool evaluate_after_training = 7; - * @return {boolean} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getEvaluateAfterTraining = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this - */ -proto.clarifai.api.PostModelVersionsRequest.prototype.setEvaluateAfterTraining = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this +*/ +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional string description = 8; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional DatasetVersion dataset_version = 9; - * @return {?proto.clarifai.api.DatasetVersion} + * optional WorkflowVersion workflow_version = 2; + * @return {?proto.clarifai.api.WorkflowVersion} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.getDatasetVersion = function() { - return /** @type{?proto.clarifai.api.DatasetVersion} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.DatasetVersion, 9)); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.getWorkflowVersion = function() { + return /** @type{?proto.clarifai.api.WorkflowVersion} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.WorkflowVersion, 2)); }; /** - * @param {?proto.clarifai.api.DatasetVersion|undefined} value - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * @param {?proto.clarifai.api.WorkflowVersion|undefined} value + * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this */ -proto.clarifai.api.PostModelVersionsRequest.prototype.setDatasetVersion = function(value) { - return jspb.Message.setWrapperField(this, 9, value); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.setWorkflowVersion = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionsRequest} returns this + * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this */ -proto.clarifai.api.PostModelVersionsRequest.prototype.clearDatasetVersion = function() { - return this.setDatasetVersion(undefined); +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.clearWorkflowVersion = function() { + return this.setWorkflowVersion(undefined); }; @@ -27791,12 +60633,19 @@ proto.clarifai.api.PostModelVersionsRequest.prototype.clearDatasetVersion = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelVersionsRequest.prototype.hasDatasetVersion = function() { - return jspb.Message.getField(this, 9) != null; +proto.clarifai.api.SingleWorkflowVersionResponse.prototype.hasWorkflowVersion = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostAppDuplicationsRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -27812,8 +60661,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelVersionPublishRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelVersionPublishRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostAppDuplicationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostAppDuplicationsRequest.toObject(opt_includeInstance, this); }; @@ -27822,13 +60671,15 @@ proto.clarifai.api.ModelVersionPublishRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelVersionPublishRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostAppDuplicationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelVersionPublishRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostAppDuplicationsRequest.toObject = function(includeInstance, msg) { var f, obj = { - versionId: jspb.Message.getFieldWithDefault(msg, 1, "") + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + appDuplicationsList: jspb.Message.toObjectList(msg.getAppDuplicationsList(), + proto_clarifai_api_resources_pb.AppDuplication.toObject, includeInstance) }; if (includeInstance) { @@ -27842,23 +60693,23 @@ proto.clarifai.api.ModelVersionPublishRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelVersionPublishRequest} + * @return {!proto.clarifai.api.PostAppDuplicationsRequest} */ -proto.clarifai.api.ModelVersionPublishRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelVersionPublishRequest; - return proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostAppDuplicationsRequest; + return proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelVersionPublishRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostAppDuplicationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelVersionPublishRequest} + * @return {!proto.clarifai.api.PostAppDuplicationsRequest} */ -proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -27866,8 +60717,14 @@ proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.AppDuplication; + reader.readMessage(value,proto_clarifai_api_resources_pb.AppDuplication.deserializeBinaryFromReader); + msg.addAppDuplications(value); break; default: reader.skipField(); @@ -27882,9 +60739,9 @@ proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelVersionPublishRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostAppDuplicationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelVersionPublishRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostAppDuplicationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -27892,47 +60749,106 @@ proto.clarifai.api.ModelVersionPublishRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelVersionPublishRequest} message + * @param {!proto.clarifai.api.PostAppDuplicationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelVersionPublishRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostAppDuplicationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getAppDuplicationsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.AppDuplication.serializeBinaryToWriter ); } }; /** - * optional string version_id = 1; - * @return {string} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ModelVersionPublishRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.PostAppDuplicationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersionPublishRequest} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this +*/ +proto.clarifai.api.PostAppDuplicationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this */ -proto.clarifai.api.ModelVersionPublishRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.PostAppDuplicationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostAppDuplicationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * repeated AppDuplication app_duplications = 2; + * @return {!Array} */ -proto.clarifai.api.PostModelVersionsPublishRequest.repeatedFields_ = [3]; +proto.clarifai.api.PostAppDuplicationsRequest.prototype.getAppDuplicationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AppDuplication, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this +*/ +proto.clarifai.api.PostAppDuplicationsRequest.prototype.setAppDuplicationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.AppDuplication=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.AppDuplication} + */ +proto.clarifai.api.PostAppDuplicationsRequest.prototype.addAppDuplications = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AppDuplication, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this + */ +proto.clarifai.api.PostAppDuplicationsRequest.prototype.clearAppDuplicationsList = function() { + return this.setAppDuplicationsList([]); +}; + + @@ -27949,8 +60865,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostModelVersionsPublishRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetAppDuplicationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetAppDuplicationRequest.toObject(opt_includeInstance, this); }; @@ -27959,16 +60875,14 @@ proto.clarifai.api.PostModelVersionsPublishRequest.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostModelVersionsPublishRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetAppDuplicationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsPublishRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetAppDuplicationRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - publicationsList: jspb.Message.toObjectList(msg.getPublicationsList(), - proto.clarifai.api.ModelVersionPublishRequest.toObject, includeInstance) + appDuplicationId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -27982,23 +60896,23 @@ proto.clarifai.api.PostModelVersionsPublishRequest.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} + * @return {!proto.clarifai.api.GetAppDuplicationRequest} */ -proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetAppDuplicationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostModelVersionsPublishRequest; - return proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetAppDuplicationRequest; + return proto.clarifai.api.GetAppDuplicationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostModelVersionsPublishRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetAppDuplicationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} + * @return {!proto.clarifai.api.GetAppDuplicationRequest} */ -proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetAppDuplicationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28012,12 +60926,7 @@ proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinaryFromReader = break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = new proto.clarifai.api.ModelVersionPublishRequest; - reader.readMessage(value,proto.clarifai.api.ModelVersionPublishRequest.deserializeBinaryFromReader); - msg.addPublications(value); + msg.setAppDuplicationId(value); break; default: reader.skipField(); @@ -28032,9 +60941,9 @@ proto.clarifai.api.PostModelVersionsPublishRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetAppDuplicationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostModelVersionsPublishRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetAppDuplicationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -28042,11 +60951,11 @@ proto.clarifai.api.PostModelVersionsPublishRequest.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostModelVersionsPublishRequest} message + * @param {!proto.clarifai.api.GetAppDuplicationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsPublishRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetAppDuplicationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -28056,21 +60965,13 @@ proto.clarifai.api.PostModelVersionsPublishRequest.serializeBinaryToWriter = fun proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getAppDuplicationId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getPublicationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.clarifai.api.ModelVersionPublishRequest.serializeBinaryToWriter - ); - } }; @@ -28078,7 +60979,7 @@ proto.clarifai.api.PostModelVersionsPublishRequest.serializeBinaryToWriter = fun * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetAppDuplicationRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -28086,18 +60987,18 @@ proto.clarifai.api.PostModelVersionsPublishRequest.prototype.getUserAppId = func /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this + * @return {!proto.clarifai.api.GetAppDuplicationRequest} returns this */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetAppDuplicationRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this + * @return {!proto.clarifai.api.GetAppDuplicationRequest} returns this */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetAppDuplicationRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -28106,67 +61007,29 @@ proto.clarifai.api.PostModelVersionsPublishRequest.prototype.clearUserAppId = fu * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetAppDuplicationRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; + * optional string app_duplication_id = 2; * @return {string} */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.getModelId = function() { +proto.clarifai.api.GetAppDuplicationRequest.prototype.getAppDuplicationId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this + * @return {!proto.clarifai.api.GetAppDuplicationRequest} returns this */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.setModelId = function(value) { +proto.clarifai.api.GetAppDuplicationRequest.prototype.setAppDuplicationId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * repeated ModelVersionPublishRequest publications = 3; - * @return {!Array} - */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.getPublicationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelVersionPublishRequest, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this -*/ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.setPublicationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.ModelVersionPublishRequest=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelVersionPublishRequest} - */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.addPublications = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersionPublishRequest, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostModelVersionsPublishRequest} returns this - */ -proto.clarifai.api.PostModelVersionsPublishRequest.prototype.clearPublicationsList = function() { - return this.setPublicationsList([]); -}; - - @@ -28183,8 +61046,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ModelVersionUnpublishRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ModelVersionUnpublishRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListAppDuplicationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListAppDuplicationsRequest.toObject(opt_includeInstance, this); }; @@ -28193,13 +61056,15 @@ proto.clarifai.api.ModelVersionUnpublishRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ModelVersionUnpublishRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListAppDuplicationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ModelVersionUnpublishRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListAppDuplicationsRequest.toObject = function(includeInstance, msg) { var f, obj = { - versionId: jspb.Message.getFieldWithDefault(msg, 1, "") + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -28213,23 +61078,23 @@ proto.clarifai.api.ModelVersionUnpublishRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} + * @return {!proto.clarifai.api.ListAppDuplicationsRequest} */ -proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ModelVersionUnpublishRequest; - return proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListAppDuplicationsRequest; + return proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ModelVersionUnpublishRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListAppDuplicationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} + * @return {!proto.clarifai.api.ListAppDuplicationsRequest} */ -proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28237,8 +61102,17 @@ proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -28253,47 +61127,117 @@ proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ModelVersionUnpublishRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ModelVersionUnpublishRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ListAppDuplicationsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ListAppDuplicationsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.ListAppDuplicationsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ListAppDuplicationsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.ListAppDuplicationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this +*/ +proto.clarifai.api.ListAppDuplicationsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this + */ +proto.clarifai.api.ListAppDuplicationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListAppDuplicationsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListAppDuplicationsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ModelVersionUnpublishRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this */ -proto.clarifai.api.ModelVersionUnpublishRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } +proto.clarifai.api.ListAppDuplicationsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional string version_id = 1; - * @return {string} + * optional uint32 per_page = 3; + * @return {number} */ -proto.clarifai.api.ModelVersionUnpublishRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.ListAppDuplicationsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this */ -proto.clarifai.api.ModelVersionUnpublishRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.ListAppDuplicationsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -28303,7 +61247,7 @@ proto.clarifai.api.ModelVersionUnpublishRequest.prototype.setVersionId = functio * @private {!Array} * @const */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.repeatedFields_ = [3]; +proto.clarifai.api.MultiAppDuplicationsResponse.repeatedFields_ = [2]; @@ -28320,8 +61264,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostModelVersionsUnPublishRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiAppDuplicationsResponse.toObject(opt_includeInstance, this); }; @@ -28330,16 +61274,15 @@ proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostModelVersionsUnPublishRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiAppDuplicationsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiAppDuplicationsResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - publicationsList: jspb.Message.toObjectList(msg.getPublicationsList(), - proto.clarifai.api.ModelVersionUnpublishRequest.toObject, includeInstance) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + appDuplicationsList: jspb.Message.toObjectList(msg.getAppDuplicationsList(), + proto_clarifai_api_resources_pb.AppDuplication.toObject, includeInstance) }; if (includeInstance) { @@ -28353,23 +61296,23 @@ proto.clarifai.api.PostModelVersionsUnPublishRequest.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} + * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostModelVersionsUnPublishRequest; - return proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiAppDuplicationsResponse; + return proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostModelVersionsUnPublishRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiAppDuplicationsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} + * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28377,18 +61320,14 @@ proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = new proto.clarifai.api.ModelVersionUnpublishRequest; - reader.readMessage(value,proto.clarifai.api.ModelVersionUnpublishRequest.deserializeBinaryFromReader); - msg.addPublications(value); + var value = new proto_clarifai_api_resources_pb.AppDuplication; + reader.readMessage(value,proto_clarifai_api_resources_pb.AppDuplication.deserializeBinaryFromReader); + msg.addAppDuplications(value); break; default: reader.skipField(); @@ -28403,9 +61342,9 @@ proto.clarifai.api.PostModelVersionsUnPublishRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostModelVersionsUnPublishRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiAppDuplicationsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -28413,63 +61352,56 @@ proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostModelVersionsUnPublishRequest} message + * @param {!proto.clarifai.api.MultiAppDuplicationsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiAppDuplicationsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( - 2, - f + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getPublicationsList(); + f = message.getAppDuplicationsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 3, + 2, f, - proto.clarifai.api.ModelVersionUnpublishRequest.serializeBinaryToWriter + proto_clarifai_api_resources_pb.AppDuplication.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this + * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -28477,64 +61409,46 @@ proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.clearUserAppId = * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this - */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated ModelVersionUnpublishRequest publications = 3; - * @return {!Array} + * repeated AppDuplication app_duplications = 2; + * @return {!Array} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.getPublicationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.ModelVersionUnpublishRequest, 3)); +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.getAppDuplicationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AppDuplication, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.setPublicationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.setAppDuplicationsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.ModelVersionUnpublishRequest=} opt_value + * @param {!proto.clarifai.api.AppDuplication=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelVersionUnpublishRequest} + * @return {!proto.clarifai.api.AppDuplication} */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.addPublications = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModelVersionUnpublishRequest, opt_index); +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.addAppDuplications = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AppDuplication, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostModelVersionsUnPublishRequest} returns this + * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this */ -proto.clarifai.api.PostModelVersionsUnPublishRequest.prototype.clearPublicationsList = function() { - return this.setPublicationsList([]); +proto.clarifai.api.MultiAppDuplicationsResponse.prototype.clearAppDuplicationsList = function() { + return this.setAppDuplicationsList([]); }; @@ -28554,8 +61468,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostModelVersionMetricsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleAppDuplicationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleAppDuplicationResponse.toObject(opt_includeInstance, this); }; @@ -28564,17 +61478,14 @@ proto.clarifai.api.PostModelVersionMetricsRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostModelVersionMetricsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleAppDuplicationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionMetricsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleAppDuplicationResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - maxExamples: jspb.Message.getFieldWithDefault(msg, 4, 0), - testSearch: (f = msg.getTestSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + appDuplication: (f = msg.getAppDuplication()) && proto_clarifai_api_resources_pb.AppDuplication.toObject(includeInstance, f) }; if (includeInstance) { @@ -28588,23 +61499,23 @@ proto.clarifai.api.PostModelVersionMetricsRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} + * @return {!proto.clarifai.api.SingleAppDuplicationResponse} */ -proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostModelVersionMetricsRequest; - return proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleAppDuplicationResponse; + return proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostModelVersionMetricsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleAppDuplicationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} + * @return {!proto.clarifai.api.SingleAppDuplicationResponse} */ -proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28612,26 +61523,14 @@ proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxExamples(value); - break; - case 5: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.setTestSearch(value); + var value = new proto_clarifai_api_resources_pb.AppDuplication; + reader.readMessage(value,proto_clarifai_api_resources_pb.AppDuplication.deserializeBinaryFromReader); + msg.setAppDuplication(value); break; default: reader.skipField(); @@ -28646,9 +61545,9 @@ proto.clarifai.api.PostModelVersionMetricsRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleAppDuplicationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostModelVersionMetricsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleAppDuplicationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -28656,77 +61555,56 @@ proto.clarifai.api.PostModelVersionMetricsRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostModelVersionMetricsRequest} message + * @param {!proto.clarifai.api.SingleAppDuplicationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostModelVersionMetricsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleAppDuplicationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getMaxExamples(); - if (f !== 0) { - writer.writeUint32( - 4, - f + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getTestSearch(); + f = message.getAppDuplication(); if (f != null) { writer.writeMessage( - 5, + 2, f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + proto_clarifai_api_resources_pb.AppDuplication.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleAppDuplicationResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleAppDuplicationResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this + * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleAppDuplicationResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -28734,90 +61612,36 @@ proto.clarifai.api.PostModelVersionMetricsRequest.prototype.clearUserAppId = fun * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleAppDuplicationResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this - */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version_id = 3; - * @return {string} - */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this - */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint32 max_examples = 4; - * @return {number} - */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getMaxExamples = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this - */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setMaxExamples = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional Search test_search = 5; - * @return {?proto.clarifai.api.Search} + * optional AppDuplication app_duplication = 2; + * @return {?proto.clarifai.api.AppDuplication} */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.getTestSearch = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 5)); +proto.clarifai.api.SingleAppDuplicationResponse.prototype.getAppDuplication = function() { + return /** @type{?proto.clarifai.api.AppDuplication} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.AppDuplication, 2)); }; /** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this + * @param {?proto.clarifai.api.AppDuplication|undefined} value + * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.setTestSearch = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.SingleAppDuplicationResponse.prototype.setAppDuplication = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostModelVersionMetricsRequest} returns this + * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.clearTestSearch = function() { - return this.setTestSearch(undefined); +proto.clarifai.api.SingleAppDuplicationResponse.prototype.clearAppDuplication = function() { + return this.setAppDuplication(undefined); }; @@ -28825,12 +61649,19 @@ proto.clarifai.api.PostModelVersionMetricsRequest.prototype.clearTestSearch = fu * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostModelVersionMetricsRequest.prototype.hasTestSearch = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.SingleAppDuplicationResponse.prototype.hasAppDuplication = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostTasksRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -28846,8 +61677,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetModelVersionMetricsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostTasksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostTasksRequest.toObject(opt_includeInstance, this); }; @@ -28856,16 +61687,15 @@ proto.clarifai.api.GetModelVersionMetricsRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetModelVersionMetricsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostTasksRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelVersionMetricsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostTasksRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - fields: (f = msg.getFields()) && proto_clarifai_api_resources_pb.FieldsValue.toObject(includeInstance, f) + tasksList: jspb.Message.toObjectList(msg.getTasksList(), + proto_clarifai_api_resources_pb.Task.toObject, includeInstance) }; if (includeInstance) { @@ -28879,23 +61709,23 @@ proto.clarifai.api.GetModelVersionMetricsRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} + * @return {!proto.clarifai.api.PostTasksRequest} */ -proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostTasksRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetModelVersionMetricsRequest; - return proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostTasksRequest; + return proto.clarifai.api.PostTasksRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetModelVersionMetricsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostTasksRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} + * @return {!proto.clarifai.api.PostTasksRequest} */ -proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostTasksRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -28908,17 +61738,9 @@ proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinaryFromReader = f msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); - break; - case 4: - var value = new proto_clarifai_api_resources_pb.FieldsValue; - reader.readMessage(value,proto_clarifai_api_resources_pb.FieldsValue.deserializeBinaryFromReader); - msg.setFields(value); + var value = new proto_clarifai_api_resources_pb.Task; + reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); + msg.addTasks(value); break; default: reader.skipField(); @@ -28933,9 +61755,9 @@ proto.clarifai.api.GetModelVersionMetricsRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostTasksRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetModelVersionMetricsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostTasksRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -28943,11 +61765,11 @@ proto.clarifai.api.GetModelVersionMetricsRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetModelVersionMetricsRequest} message + * @param {!proto.clarifai.api.PostTasksRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelVersionMetricsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostTasksRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -28957,26 +61779,12 @@ proto.clarifai.api.GetModelVersionMetricsRequest.serializeBinaryToWriter = funct proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getTasksList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getFields(); - if (f != null) { - writer.writeMessage( - 4, f, - proto_clarifai_api_resources_pb.FieldsValue.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter ); } }; @@ -28986,7 +61794,7 @@ proto.clarifai.api.GetModelVersionMetricsRequest.serializeBinaryToWriter = funct * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostTasksRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -28994,18 +61802,18 @@ proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getUserAppId = functi /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this + * @return {!proto.clarifai.api.PostTasksRequest} returns this */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostTasksRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this + * @return {!proto.clarifai.api.PostTasksRequest} returns this */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostTasksRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -29014,85 +61822,57 @@ proto.clarifai.api.GetModelVersionMetricsRequest.prototype.clearUserAppId = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostTasksRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this - */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version_id = 3; - * @return {string} - */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this - */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional FieldsValue fields = 4; - * @return {?proto.clarifai.api.FieldsValue} + * repeated Task tasks = 2; + * @return {!Array} */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.getFields = function() { - return /** @type{?proto.clarifai.api.FieldsValue} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.FieldsValue, 4)); +proto.clarifai.api.PostTasksRequest.prototype.getTasksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); }; /** - * @param {?proto.clarifai.api.FieldsValue|undefined} value - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostTasksRequest} returns this */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.setFields = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.PostTasksRequest.prototype.setTasksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetModelVersionMetricsRequest} returns this + * @param {!proto.clarifai.api.Task=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Task} */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.clearFields = function() { - return this.setFields(undefined); +proto.clarifai.api.PostTasksRequest.prototype.addTasks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Task, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostTasksRequest} returns this */ -proto.clarifai.api.GetModelVersionMetricsRequest.prototype.hasFields = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.PostTasksRequest.prototype.clearTasksList = function() { + return this.setTasksList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.GetTaskRequest.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -29108,8 +61888,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetModelTypeRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetModelTypeRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetTaskRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetTaskRequest.toObject(opt_includeInstance, this); }; @@ -29118,14 +61898,15 @@ proto.clarifai.api.GetModelTypeRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetModelTypeRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetTaskRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelTypeRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetTaskRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelTypeId: jspb.Message.getFieldWithDefault(msg, 2, "") + taskId: jspb.Message.getFieldWithDefault(msg, 2, ""), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -29139,23 +61920,23 @@ proto.clarifai.api.GetModelTypeRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetModelTypeRequest} + * @return {!proto.clarifai.api.GetTaskRequest} */ -proto.clarifai.api.GetModelTypeRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetTaskRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetModelTypeRequest; - return proto.clarifai.api.GetModelTypeRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetTaskRequest; + return proto.clarifai.api.GetTaskRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetModelTypeRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetTaskRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetModelTypeRequest} + * @return {!proto.clarifai.api.GetTaskRequest} */ -proto.clarifai.api.GetModelTypeRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetTaskRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -29169,7 +61950,11 @@ proto.clarifai.api.GetModelTypeRequest.deserializeBinaryFromReader = function(ms break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setModelTypeId(value); + msg.setTaskId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); break; default: reader.skipField(); @@ -29184,9 +61969,9 @@ proto.clarifai.api.GetModelTypeRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetModelTypeRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetTaskRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetModelTypeRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetTaskRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -29194,11 +61979,11 @@ proto.clarifai.api.GetModelTypeRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetModelTypeRequest} message + * @param {!proto.clarifai.api.GetTaskRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelTypeRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetTaskRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -29208,13 +61993,20 @@ proto.clarifai.api.GetModelTypeRequest.serializeBinaryToWriter = function(messag proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelTypeId(); + f = message.getTaskId(); if (f.length > 0) { writer.writeString( 2, f ); } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } }; @@ -29222,7 +62014,7 @@ proto.clarifai.api.GetModelTypeRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetModelTypeRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetTaskRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -29230,18 +62022,18 @@ proto.clarifai.api.GetModelTypeRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetModelTypeRequest} returns this + * @return {!proto.clarifai.api.GetTaskRequest} returns this */ -proto.clarifai.api.GetModelTypeRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetTaskRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetModelTypeRequest} returns this + * @return {!proto.clarifai.api.GetTaskRequest} returns this */ -proto.clarifai.api.GetModelTypeRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetTaskRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -29250,29 +62042,73 @@ proto.clarifai.api.GetModelTypeRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetModelTypeRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetTaskRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_type_id = 2; + * optional string task_id = 2; * @return {string} */ -proto.clarifai.api.GetModelTypeRequest.prototype.getModelTypeId = function() { +proto.clarifai.api.GetTaskRequest.prototype.getTaskId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.GetModelTypeRequest} returns this + * @return {!proto.clarifai.api.GetTaskRequest} returns this */ -proto.clarifai.api.GetModelTypeRequest.prototype.setModelTypeId = function(value) { +proto.clarifai.api.GetTaskRequest.prototype.setTaskId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * repeated string additional_fields = 3; + * @return {!Array} + */ +proto.clarifai.api.GetTaskRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.GetTaskRequest} returns this + */ +proto.clarifai.api.GetTaskRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetTaskRequest} returns this + */ +proto.clarifai.api.GetTaskRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetTaskRequest} returns this + */ +proto.clarifai.api.GetTaskRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListTasksRequest.repeatedFields_ = [4,5,8,7]; @@ -29289,8 +62125,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListModelTypesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListModelTypesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListTasksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListTasksRequest.toObject(opt_includeInstance, this); }; @@ -29299,15 +62135,20 @@ proto.clarifai.api.ListModelTypesRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListModelTypesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListTasksRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelTypesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListTasksRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + workerUserIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + reviewUserIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + labelOrderIdsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f, + includingLabelOrderTasks: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f }; if (includeInstance) { @@ -29321,23 +62162,23 @@ proto.clarifai.api.ListModelTypesRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListModelTypesRequest} + * @return {!proto.clarifai.api.ListTasksRequest} */ -proto.clarifai.api.ListModelTypesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListTasksRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListModelTypesRequest; - return proto.clarifai.api.ListModelTypesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListTasksRequest; + return proto.clarifai.api.ListTasksRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListModelTypesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListTasksRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListModelTypesRequest} + * @return {!proto.clarifai.api.ListTasksRequest} */ -proto.clarifai.api.ListModelTypesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListTasksRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -29357,6 +62198,26 @@ proto.clarifai.api.ListModelTypesRequest.deserializeBinaryFromReader = function( var value = /** @type {number} */ (reader.readUint32()); msg.setPerPage(value); break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addWorkerUserIds(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addReviewUserIds(value); + break; + case 8: + var value = /** @type {string} */ (reader.readString()); + msg.addLabelOrderIds(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIncludingLabelOrderTasks(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; default: reader.skipField(); break; @@ -29370,9 +62231,9 @@ proto.clarifai.api.ListModelTypesRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListModelTypesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListTasksRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListModelTypesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListTasksRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -29380,11 +62241,11 @@ proto.clarifai.api.ListModelTypesRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListModelTypesRequest} message + * @param {!proto.clarifai.api.ListTasksRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelTypesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListTasksRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -29408,6 +62269,41 @@ proto.clarifai.api.ListModelTypesRequest.serializeBinaryToWriter = function(mess f ); } + f = message.getWorkerUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } + f = message.getReviewUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getLabelOrderIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 8, + f + ); + } + f = message.getIncludingLabelOrderTasks(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 7, + f + ); + } }; @@ -29415,7 +62311,7 @@ proto.clarifai.api.ListModelTypesRequest.serializeBinaryToWriter = function(mess * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListModelTypesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListTasksRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -29423,18 +62319,18 @@ proto.clarifai.api.ListModelTypesRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListModelTypesRequest} returns this + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListModelTypesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListTasksRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListModelTypesRequest} returns this + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListModelTypesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListTasksRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -29443,7 +62339,7 @@ proto.clarifai.api.ListModelTypesRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelTypesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListTasksRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -29452,16 +62348,16 @@ proto.clarifai.api.ListModelTypesRequest.prototype.hasUserAppId = function() { * optional uint32 page = 2; * @return {number} */ -proto.clarifai.api.ListModelTypesRequest.prototype.getPage = function() { +proto.clarifai.api.ListTasksRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListModelTypesRequest} returns this + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListModelTypesRequest.prototype.setPage = function(value) { +proto.clarifai.api.ListTasksRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -29470,329 +62366,194 @@ proto.clarifai.api.ListModelTypesRequest.prototype.setPage = function(value) { * optional uint32 per_page = 3; * @return {number} */ -proto.clarifai.api.ListModelTypesRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListTasksRequest.prototype.getPerPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListModelTypesRequest} returns this + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListModelTypesRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListTasksRequest.prototype.setPerPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.ListOpenSourceLicensesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListOpenSourceLicensesRequest.toObject(opt_includeInstance, this); -}; - - /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListOpenSourceLicensesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * repeated string worker_user_ids = 4; + * @return {!Array} */ -proto.clarifai.api.ListOpenSourceLicensesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.ListTasksRequest.prototype.getWorkerUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListOpenSourceLicensesRequest} + * @param {!Array} value + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListOpenSourceLicensesRequest; - return proto.clarifai.api.ListOpenSourceLicensesRequest.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ListTasksRequest.prototype.setWorkerUserIdsList = function(value) { + return jspb.Message.setField(this, 4, value || []); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ListOpenSourceLicensesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListOpenSourceLicensesRequest} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ListTasksRequest.prototype.addWorkerUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListOpenSourceLicensesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ListTasksRequest.prototype.clearWorkerUserIdsList = function() { + return this.setWorkerUserIdsList([]); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListOpenSourceLicensesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * repeated string review_user_ids = 5; + * @return {!Array} */ -proto.clarifai.api.ListOpenSourceLicensesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; +proto.clarifai.api.ListTasksRequest.prototype.getReviewUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); }; - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.ListOpenSourceLicensesResponse.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {!Array} value + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListOpenSourceLicensesResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListTasksRequest.prototype.setReviewUserIdsList = function(value) { + return jspb.Message.setField(this, 5, value || []); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListOpenSourceLicensesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - licensesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.clarifai.api.ListTasksRequest.prototype.addReviewUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListOpenSourceLicensesResponse; - return proto.clarifai.api.ListOpenSourceLicensesResponse.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ListTasksRequest.prototype.clearReviewUserIdsList = function() { + return this.setReviewUserIdsList([]); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.ListOpenSourceLicensesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} + * repeated string label_order_ids = 8; + * @return {!Array} */ -proto.clarifai.api.ListOpenSourceLicensesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addLicenses(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ListTasksRequest.prototype.getLabelOrderIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 8)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!Array} value + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListOpenSourceLicensesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ListTasksRequest.prototype.setLabelOrderIdsList = function(value) { + return jspb.Message.setField(this, 8, value || []); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListOpenSourceLicensesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getLicensesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } +proto.clarifai.api.ListTasksRequest.prototype.addLabelOrderIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 8, value, opt_index); }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); -}; - - -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this -*/ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.clarifai.api.ListTasksRequest.prototype.clearLabelOrderIdsList = function() { + return this.setLabelOrderIdsList([]); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this + * optional bool including_label_order_tasks = 6; + * @return {boolean} */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListTasksRequest.prototype.getIncludingLabelOrderTasks = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {boolean} value + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ListTasksRequest.prototype.setIncludingLabelOrderTasks = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); }; /** - * repeated string licenses = 2; + * repeated string additional_fields = 7; * @return {!Array} */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.getLicensesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.ListTasksRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.setLicensesList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.ListTasksRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 7, value || []); }; /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.addLicenses = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.ListTasksRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 7, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListOpenSourceLicensesResponse} returns this + * @return {!proto.clarifai.api.ListTasksRequest} returns this */ -proto.clarifai.api.ListOpenSourceLicensesResponse.prototype.clearLicensesList = function() { - return this.setLicensesList([]); +proto.clarifai.api.ListTasksRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchTasksRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -29808,8 +62569,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleModelTypeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleModelTypeResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchTasksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchTasksRequest.toObject(opt_includeInstance, this); }; @@ -29818,14 +62579,16 @@ proto.clarifai.api.SingleModelTypeResponse.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleModelTypeResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchTasksRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleModelTypeResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchTasksRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelType: (f = msg.getModelType()) && proto_clarifai_api_resources_pb.ModelType.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + tasksList: jspb.Message.toObjectList(msg.getTasksList(), + proto_clarifai_api_resources_pb.Task.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -29839,23 +62602,23 @@ proto.clarifai.api.SingleModelTypeResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleModelTypeResponse} + * @return {!proto.clarifai.api.PatchTasksRequest} */ -proto.clarifai.api.SingleModelTypeResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchTasksRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleModelTypeResponse; - return proto.clarifai.api.SingleModelTypeResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchTasksRequest; + return proto.clarifai.api.PatchTasksRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleModelTypeResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchTasksRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleModelTypeResponse} + * @return {!proto.clarifai.api.PatchTasksRequest} */ -proto.clarifai.api.SingleModelTypeResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchTasksRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -29863,14 +62626,18 @@ proto.clarifai.api.SingleModelTypeResponse.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelType; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelType.deserializeBinaryFromReader); - msg.setModelType(value); + var value = new proto_clarifai_api_resources_pb.Task; + reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); + msg.addTasks(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); break; default: reader.skipField(); @@ -29885,9 +62652,9 @@ proto.clarifai.api.SingleModelTypeResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleModelTypeResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PatchTasksRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleModelTypeResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchTasksRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -29895,56 +62662,63 @@ proto.clarifai.api.SingleModelTypeResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleModelTypeResponse} message + * @param {!proto.clarifai.api.PatchTasksRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleModelTypeResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchTasksRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelType(); - if (f != null) { - writer.writeMessage( + f = message.getTasksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.ModelType.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleModelTypeResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PatchTasksRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchTasksRequest} returns this */ -proto.clarifai.api.SingleModelTypeResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PatchTasksRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this + * @return {!proto.clarifai.api.PatchTasksRequest} returns this */ -proto.clarifai.api.SingleModelTypeResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchTasksRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -29952,45 +62726,64 @@ proto.clarifai.api.SingleModelTypeResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleModelTypeResponse.prototype.hasStatus = function() { +proto.clarifai.api.PatchTasksRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional ModelType model_type = 2; - * @return {?proto.clarifai.api.ModelType} + * repeated Task tasks = 2; + * @return {!Array} */ -proto.clarifai.api.SingleModelTypeResponse.prototype.getModelType = function() { - return /** @type{?proto.clarifai.api.ModelType} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelType, 2)); +proto.clarifai.api.PatchTasksRequest.prototype.getTasksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); }; /** - * @param {?proto.clarifai.api.ModelType|undefined} value - * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PatchTasksRequest} returns this */ -proto.clarifai.api.SingleModelTypeResponse.prototype.setModelType = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.PatchTasksRequest.prototype.setTasksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelTypeResponse} returns this + * @param {!proto.clarifai.api.Task=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Task} */ -proto.clarifai.api.SingleModelTypeResponse.prototype.clearModelType = function() { - return this.setModelType(undefined); +proto.clarifai.api.PatchTasksRequest.prototype.addTasks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Task, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchTasksRequest} returns this */ -proto.clarifai.api.SingleModelTypeResponse.prototype.hasModelType = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PatchTasksRequest.prototype.clearTasksList = function() { + return this.setTasksList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchTasksRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchTasksRequest} returns this + */ +proto.clarifai.api.PatchTasksRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -30000,7 +62793,7 @@ proto.clarifai.api.SingleModelTypeResponse.prototype.hasModelType = function() { * @private {!Array} * @const */ -proto.clarifai.api.MultiModelTypeResponse.repeatedFields_ = [2]; +proto.clarifai.api.DeleteTasksRequest.repeatedFields_ = [2]; @@ -30017,8 +62810,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelTypeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelTypeResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteTasksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteTasksRequest.toObject(opt_includeInstance, this); }; @@ -30027,16 +62820,14 @@ proto.clarifai.api.MultiModelTypeResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelTypeResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteTasksRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelTypeResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteTasksRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelTypesList: jspb.Message.toObjectList(msg.getModelTypesList(), - proto_clarifai_api_resources_pb.ModelType.toObject, includeInstance), - modelImporters: (f = msg.getModelImporters()) && proto_clarifai_api_resources_pb.ModelTypeField.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -30050,23 +62841,23 @@ proto.clarifai.api.MultiModelTypeResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelTypeResponse} + * @return {!proto.clarifai.api.DeleteTasksRequest} */ -proto.clarifai.api.MultiModelTypeResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteTasksRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelTypeResponse; - return proto.clarifai.api.MultiModelTypeResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteTasksRequest; + return proto.clarifai.api.DeleteTasksRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelTypeResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteTasksRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelTypeResponse} + * @return {!proto.clarifai.api.DeleteTasksRequest} */ -proto.clarifai.api.MultiModelTypeResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteTasksRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -30074,19 +62865,13 @@ proto.clarifai.api.MultiModelTypeResponse.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelType; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelType.deserializeBinaryFromReader); - msg.addModelTypes(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.ModelTypeField; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelTypeField.deserializeBinaryFromReader); - msg.setModelImporters(value); + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); break; default: reader.skipField(); @@ -30101,9 +62886,9 @@ proto.clarifai.api.MultiModelTypeResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelTypeResponse.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteTasksRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelTypeResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteTasksRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -30111,64 +62896,55 @@ proto.clarifai.api.MultiModelTypeResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelTypeResponse} message + * @param {!proto.clarifai.api.DeleteTasksRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelTypeResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteTasksRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelTypesList(); + f = message.getIdsList(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeRepeatedString( 2, - f, - proto_clarifai_api_resources_pb.ModelType.serializeBinaryToWriter - ); - } - f = message.getModelImporters(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto_clarifai_api_resources_pb.ModelTypeField.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiModelTypeResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.DeleteTasksRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteTasksRequest} returns this */ -proto.clarifai.api.MultiModelTypeResponse.prototype.setStatus = function(value) { +proto.clarifai.api.DeleteTasksRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this + * @return {!proto.clarifai.api.DeleteTasksRequest} returns this */ -proto.clarifai.api.MultiModelTypeResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteTasksRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -30176,86 +62952,55 @@ proto.clarifai.api.MultiModelTypeResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelTypeResponse.prototype.hasStatus = function() { +proto.clarifai.api.DeleteTasksRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ModelType model_types = 2; - * @return {!Array} + * repeated string ids = 2; + * @return {!Array} */ -proto.clarifai.api.MultiModelTypeResponse.prototype.getModelTypesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelType, 2)); +proto.clarifai.api.DeleteTasksRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this -*/ -proto.clarifai.api.MultiModelTypeResponse.prototype.setModelTypesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteTasksRequest} returns this + */ +proto.clarifai.api.DeleteTasksRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!proto.clarifai.api.ModelType=} opt_value + * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelType} + * @return {!proto.clarifai.api.DeleteTasksRequest} returns this */ -proto.clarifai.api.MultiModelTypeResponse.prototype.addModelTypes = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelType, opt_index); +proto.clarifai.api.DeleteTasksRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this - */ -proto.clarifai.api.MultiModelTypeResponse.prototype.clearModelTypesList = function() { - return this.setModelTypesList([]); -}; - - -/** - * optional ModelTypeField model_importers = 3; - * @return {?proto.clarifai.api.ModelTypeField} + * @return {!proto.clarifai.api.DeleteTasksRequest} returns this */ -proto.clarifai.api.MultiModelTypeResponse.prototype.getModelImporters = function() { - return /** @type{?proto.clarifai.api.ModelTypeField} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelTypeField, 3)); -}; - - -/** - * @param {?proto.clarifai.api.ModelTypeField|undefined} value - * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this -*/ -proto.clarifai.api.MultiModelTypeResponse.prototype.setModelImporters = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.DeleteTasksRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelTypeResponse} returns this - */ -proto.clarifai.api.MultiModelTypeResponse.prototype.clearModelImporters = function() { - return this.setModelImporters(undefined); -}; - /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.MultiModelTypeResponse.prototype.hasModelImporters = function() { - return jspb.Message.getField(this, 3) != null; -}; - - +proto.clarifai.api.MultiTaskResponse.repeatedFields_ = [2]; @@ -30272,8 +63017,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetModelVersionInputExampleRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiTaskResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiTaskResponse.toObject(opt_includeInstance, this); }; @@ -30282,16 +63027,15 @@ proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetModelVersionInputExampleRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiTaskResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelVersionInputExampleRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiTaskResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - exampleId: jspb.Message.getFieldWithDefault(msg, 4, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + tasksList: jspb.Message.toObjectList(msg.getTasksList(), + proto_clarifai_api_resources_pb.Task.toObject, includeInstance) }; if (includeInstance) { @@ -30305,23 +63049,23 @@ proto.clarifai.api.GetModelVersionInputExampleRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} + * @return {!proto.clarifai.api.MultiTaskResponse} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiTaskResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetModelVersionInputExampleRequest; - return proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiTaskResponse; + return proto.clarifai.api.MultiTaskResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetModelVersionInputExampleRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiTaskResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} + * @return {!proto.clarifai.api.MultiTaskResponse} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiTaskResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -30329,21 +63073,14 @@ proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinaryFromReade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setModelVersionId(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setExampleId(value); + var value = new proto_clarifai_api_resources_pb.Task; + reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); + msg.addTasks(value); break; default: reader.skipField(); @@ -30358,9 +63095,9 @@ proto.clarifai.api.GetModelVersionInputExampleRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiTaskResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetModelVersionInputExampleRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiTaskResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -30368,69 +63105,56 @@ proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetModelVersionInputExampleRequest} message + * @param {!proto.clarifai.api.MultiTaskResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetModelVersionInputExampleRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiTaskResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getTasksList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getModelVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getExampleId(); - if (f.length > 0) { - writer.writeString( - 4, - f + f, + proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiTaskResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiTaskResponse} returns this */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiTaskResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this + * @return {!proto.clarifai.api.MultiTaskResponse} returns this */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiTaskResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -30438,62 +63162,46 @@ proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.clearUserAppId = * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiTaskResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this - */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string model_version_id = 3; - * @return {string} + * repeated Task tasks = 2; + * @return {!Array} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.MultiTaskResponse.prototype.getTasksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this - */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + * @param {!Array} value + * @return {!proto.clarifai.api.MultiTaskResponse} returns this +*/ +proto.clarifai.api.MultiTaskResponse.prototype.setTasksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional string example_id = 4; - * @return {string} + * @param {!proto.clarifai.api.Task=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Task} */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.getExampleId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.MultiTaskResponse.prototype.addTasks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Task, opt_index); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetModelVersionInputExampleRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiTaskResponse} returns this */ -proto.clarifai.api.GetModelVersionInputExampleRequest.prototype.setExampleId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.MultiTaskResponse.prototype.clearTasksList = function() { + return this.setTasksList([]); }; @@ -30513,8 +63221,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListModelVersionInputExamplesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleTaskResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleTaskResponse.toObject(opt_includeInstance, this); }; @@ -30523,17 +63231,14 @@ proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.toObject = fun * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListModelVersionInputExamplesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleTaskResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleTaskResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - page: jspb.Message.getFieldWithDefault(msg, 4, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 5, 0) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + task: (f = msg.getTask()) && proto_clarifai_api_resources_pb.Task.toObject(includeInstance, f) }; if (includeInstance) { @@ -30547,23 +63252,23 @@ proto.clarifai.api.ListModelVersionInputExamplesRequest.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} + * @return {!proto.clarifai.api.SingleTaskResponse} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleTaskResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListModelVersionInputExamplesRequest; - return proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleTaskResponse; + return proto.clarifai.api.SingleTaskResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListModelVersionInputExamplesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleTaskResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} + * @return {!proto.clarifai.api.SingleTaskResponse} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleTaskResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -30571,25 +63276,14 @@ proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinaryFromRea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setModelVersionId(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = new proto_clarifai_api_resources_pb.Task; + reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); + msg.setTask(value); break; default: reader.skipField(); @@ -30604,9 +63298,9 @@ proto.clarifai.api.ListModelVersionInputExamplesRequest.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleTaskResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListModelVersionInputExamplesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleTaskResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -30614,76 +63308,56 @@ proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListModelVersionInputExamplesRequest} message + * @param {!proto.clarifai.api.SingleTaskResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleTaskResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelId(); - if (f.length > 0) { - writer.writeString( + f = message.getTask(); + if (f != null) { + writer.writeMessage( 2, - f - ); - } - f = message.getModelVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 5, - f + f, + proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleTaskResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleTaskResponse} returns this */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleTaskResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this + * @return {!proto.clarifai.api.SingleTaskResponse} returns this */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleTaskResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -30691,83 +63365,55 @@ proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.clearUserAppId * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleTaskResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this - */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string model_version_id = 3; - * @return {string} + * optional Task task = 2; + * @return {?proto.clarifai.api.Task} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.SingleTaskResponse.prototype.getTask = function() { + return /** @type{?proto.clarifai.api.Task} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this - */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + * @param {?proto.clarifai.api.Task|undefined} value + * @return {!proto.clarifai.api.SingleTaskResponse} returns this +*/ +proto.clarifai.api.SingleTaskResponse.prototype.setTask = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional uint32 page = 4; - * @return {number} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleTaskResponse} returns this */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.SingleTaskResponse.prototype.clearTask = function() { + return this.setTask(undefined); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.SingleTaskResponse.prototype.hasTask = function() { + return jspb.Message.getField(this, 2) != null; }; -/** - * optional uint32 per_page = 5; - * @return {number} - */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - /** - * @param {number} value - * @return {!proto.clarifai.api.ListModelVersionInputExamplesRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.ListModelVersionInputExamplesRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - +proto.clarifai.api.GetTaskCountRequest.repeatedFields_ = [3]; @@ -30784,8 +63430,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleModelVersionInputExampleResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.GetTaskCountRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetTaskCountRequest.toObject(opt_includeInstance, this); }; @@ -30794,14 +63440,15 @@ proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.toObject = f * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleModelVersionInputExampleResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetTaskCountRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetTaskCountRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelVersionInputExample: (f = msg.getModelVersionInputExample()) && proto_clarifai_api_resources_pb.ModelVersionInputExample.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + taskId: jspb.Message.getFieldWithDefault(msg, 2, ""), + userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -30815,23 +63462,23 @@ proto.clarifai.api.SingleModelVersionInputExampleResponse.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} + * @return {!proto.clarifai.api.GetTaskCountRequest} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.GetTaskCountRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleModelVersionInputExampleResponse; - return proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetTaskCountRequest; + return proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleModelVersionInputExampleResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetTaskCountRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} + * @return {!proto.clarifai.api.GetTaskCountRequest} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -30839,14 +63486,17 @@ proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinaryFromR var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelVersionInputExample; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersionInputExample.deserializeBinaryFromReader); - msg.setModelVersionInputExample(value); + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addUserIds(value); break; default: reader.skipField(); @@ -30861,9 +63511,9 @@ proto.clarifai.api.SingleModelVersionInputExampleResponse.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.serializeBinary = function() { +proto.clarifai.api.GetTaskCountRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleModelVersionInputExampleResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -30871,56 +63521,62 @@ proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleModelVersionInputExampleResponse} message + * @param {!proto.clarifai.api.GetTaskCountRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelVersionInputExample(); - if (f != null) { - writer.writeMessage( + f = message.getTaskId(); + if (f.length > 0) { + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.ModelVersionInputExample.serializeBinaryToWriter + f + ); + } + f = message.getUserIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.GetTaskCountRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetTaskCountRequest} returns this */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.setStatus = function(value) { +proto.clarifai.api.GetTaskCountRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this + * @return {!proto.clarifai.api.GetTaskCountRequest} returns this */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.GetTaskCountRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -30928,45 +63584,63 @@ proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.clearStatus * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.hasStatus = function() { +proto.clarifai.api.GetTaskCountRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional ModelVersionInputExample model_version_input_example = 2; - * @return {?proto.clarifai.api.ModelVersionInputExample} + * optional string task_id = 2; + * @return {string} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.getModelVersionInputExample = function() { - return /** @type{?proto.clarifai.api.ModelVersionInputExample} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModelVersionInputExample, 2)); +proto.clarifai.api.GetTaskCountRequest.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.clarifai.api.ModelVersionInputExample|undefined} value - * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this -*/ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.setModelVersionInputExample = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + */ +proto.clarifai.api.GetTaskCountRequest.prototype.setTaskId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleModelVersionInputExampleResponse} returns this + * repeated string user_ids = 3; + * @return {!Array} */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.clearModelVersionInputExample = function() { - return this.setModelVersionInputExample(undefined); +proto.clarifai.api.GetTaskCountRequest.prototype.getUserIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!Array} value + * @return {!proto.clarifai.api.GetTaskCountRequest} returns this */ -proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.hasModelVersionInputExample = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.GetTaskCountRequest.prototype.setUserIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + */ +proto.clarifai.api.GetTaskCountRequest.prototype.addUserIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + */ +proto.clarifai.api.GetTaskCountRequest.prototype.clearUserIdsList = function() { + return this.setUserIdsList([]); }; @@ -30976,7 +63650,7 @@ proto.clarifai.api.SingleModelVersionInputExampleResponse.prototype.hasModelVers * @private {!Array} * @const */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.repeatedFields_ = [2]; +proto.clarifai.api.SingleTaskCountResponse.repeatedFields_ = [4]; @@ -30993,8 +63667,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelVersionInputExampleResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleTaskCountResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleTaskCountResponse.toObject(opt_includeInstance, this); }; @@ -31003,15 +63677,17 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.toObject = fu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelVersionInputExampleResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleTaskCountResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleTaskCountResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelVersionInputExamplesList: jspb.Message.toObjectList(msg.getModelVersionInputExamplesList(), - proto_clarifai_api_resources_pb.ModelVersionInputExample.toObject, includeInstance) + appId: jspb.Message.getFieldWithDefault(msg, 2, ""), + taskId: jspb.Message.getFieldWithDefault(msg, 3, ""), + countsList: jspb.Message.toObjectList(msg.getCountsList(), + proto_clarifai_api_resources_pb.TaskStatusCountPerUser.toObject, includeInstance) }; if (includeInstance) { @@ -31025,23 +63701,23 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.toObject = function(inc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} + * @return {!proto.clarifai.api.SingleTaskCountResponse} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleTaskCountResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelVersionInputExampleResponse; - return proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleTaskCountResponse; + return proto.clarifai.api.SingleTaskCountResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelVersionInputExampleResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleTaskCountResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} + * @return {!proto.clarifai.api.SingleTaskCountResponse} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleTaskCountResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -31054,9 +63730,17 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinaryFromRe msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelVersionInputExample; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelVersionInputExample.deserializeBinaryFromReader); - msg.addModelVersionInputExamples(value); + var value = /** @type {string} */ (reader.readString()); + msg.setAppId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + case 4: + var value = new proto_clarifai_api_resources_pb.TaskStatusCountPerUser; + reader.readMessage(value,proto_clarifai_api_resources_pb.TaskStatusCountPerUser.deserializeBinaryFromReader); + msg.addCounts(value); break; default: reader.skipField(); @@ -31071,9 +63755,9 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.deserializeBinaryFromRe * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleTaskCountResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelVersionInputExampleResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleTaskCountResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -31081,11 +63765,11 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.serializeBina /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelVersionInputExampleResponse} message + * @param {!proto.clarifai.api.SingleTaskCountResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleTaskCountResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -31095,12 +63779,26 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.serializeBinaryToWriter proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getModelVersionInputExamplesList(); + f = message.getAppId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getTaskId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getCountsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, f, - proto_clarifai_api_resources_pb.ModelVersionInputExample.serializeBinaryToWriter + proto_clarifai_api_resources_pb.TaskStatusCountPerUser.serializeBinaryToWriter ); } }; @@ -31110,7 +63808,7 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.serializeBinaryToWriter * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleTaskCountResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -31118,18 +63816,18 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.getStatus = f /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this + * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleTaskCountResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this + * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleTaskCountResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -31138,50 +63836,93 @@ proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.clearStatus = * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleTaskCountResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ModelVersionInputExample model_version_input_examples = 2; - * @return {!Array} + * optional string app_id = 2; + * @return {string} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.getModelVersionInputExamplesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelVersionInputExample, 2)); +proto.clarifai.api.SingleTaskCountResponse.prototype.getAppId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this + */ +proto.clarifai.api.SingleTaskCountResponse.prototype.setAppId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string task_id = 3; + * @return {string} + */ +proto.clarifai.api.SingleTaskCountResponse.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this + */ +proto.clarifai.api.SingleTaskCountResponse.prototype.setTaskId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated TaskStatusCountPerUser counts = 4; + * @return {!Array} + */ +proto.clarifai.api.SingleTaskCountResponse.prototype.getCountsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskStatusCountPerUser, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.setModelVersionInputExamplesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.SingleTaskCountResponse.prototype.setCountsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * @param {!proto.clarifai.api.ModelVersionInputExample=} opt_value + * @param {!proto.clarifai.api.TaskStatusCountPerUser=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelVersionInputExample} + * @return {!proto.clarifai.api.TaskStatusCountPerUser} */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.addModelVersionInputExamples = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelVersionInputExample, opt_index); +proto.clarifai.api.SingleTaskCountResponse.prototype.addCounts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.TaskStatusCountPerUser, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelVersionInputExampleResponse} returns this + * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this */ -proto.clarifai.api.MultiModelVersionInputExampleResponse.prototype.clearModelVersionInputExamplesList = function() { - return this.setModelVersionInputExamplesList([]); +proto.clarifai.api.SingleTaskCountResponse.prototype.clearCountsList = function() { + return this.setCountsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostLabelOrdersRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -31197,8 +63938,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListModelReferencesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListModelReferencesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostLabelOrdersRequest.toObject(opt_includeInstance, this); }; @@ -31207,16 +63948,15 @@ proto.clarifai.api.ListModelReferencesRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListModelReferencesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostLabelOrdersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelReferencesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostLabelOrdersRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - modelId: jspb.Message.getFieldWithDefault(msg, 2, ""), - page: jspb.Message.getFieldWithDefault(msg, 3, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + labelOrdersList: jspb.Message.toObjectList(msg.getLabelOrdersList(), + proto_clarifai_api_resources_pb.LabelOrder.toObject, includeInstance) }; if (includeInstance) { @@ -31230,23 +63970,23 @@ proto.clarifai.api.ListModelReferencesRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListModelReferencesRequest} + * @return {!proto.clarifai.api.PostLabelOrdersRequest} */ -proto.clarifai.api.ListModelReferencesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostLabelOrdersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListModelReferencesRequest; - return proto.clarifai.api.ListModelReferencesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostLabelOrdersRequest; + return proto.clarifai.api.PostLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListModelReferencesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostLabelOrdersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListModelReferencesRequest} + * @return {!proto.clarifai.api.PostLabelOrdersRequest} */ -proto.clarifai.api.ListModelReferencesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -31256,19 +63996,12 @@ proto.clarifai.api.ListModelReferencesRequest.deserializeBinaryFromReader = func case 1: var value = new proto_clarifai_api_resources_pb.UserAppIDSet; reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setModelId(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + msg.setUserAppId(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.LabelOrder; + reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); + msg.addLabelOrders(value); break; default: reader.skipField(); @@ -31283,9 +64016,9 @@ proto.clarifai.api.ListModelReferencesRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListModelReferencesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostLabelOrdersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListModelReferencesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostLabelOrdersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -31293,11 +64026,11 @@ proto.clarifai.api.ListModelReferencesRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListModelReferencesRequest} message + * @param {!proto.clarifai.api.PostLabelOrdersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListModelReferencesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -31307,25 +64040,12 @@ proto.clarifai.api.ListModelReferencesRequest.serializeBinaryToWriter = function proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelId(); + f = message.getLabelOrdersList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 4, - f + f, + proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter ); } }; @@ -31335,7 +64055,7 @@ proto.clarifai.api.ListModelReferencesRequest.serializeBinaryToWriter = function * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListModelReferencesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostLabelOrdersRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -31343,18 +64063,18 @@ proto.clarifai.api.ListModelReferencesRequest.prototype.getUserAppId = function( /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this + * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this */ -proto.clarifai.api.ListModelReferencesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostLabelOrdersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this + * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this */ -proto.clarifai.api.ListModelReferencesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostLabelOrdersRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -31363,73 +64083,50 @@ proto.clarifai.api.ListModelReferencesRequest.prototype.clearUserAppId = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListModelReferencesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostLabelOrdersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string model_id = 2; - * @return {string} - */ -proto.clarifai.api.ListModelReferencesRequest.prototype.getModelId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this - */ -proto.clarifai.api.ListModelReferencesRequest.prototype.setModelId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 page = 3; - * @return {number} + * repeated LabelOrder label_orders = 2; + * @return {!Array} */ -proto.clarifai.api.ListModelReferencesRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.PostLabelOrdersRequest.prototype.getLabelOrdersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this - */ -proto.clarifai.api.ListModelReferencesRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + * @param {!Array} value + * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this +*/ +proto.clarifai.api.PostLabelOrdersRequest.prototype.setLabelOrdersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * optional uint32 per_page = 4; - * @return {number} + * @param {!proto.clarifai.api.LabelOrder=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.LabelOrder} */ -proto.clarifai.api.ListModelReferencesRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.PostLabelOrdersRequest.prototype.addLabelOrders = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LabelOrder, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListModelReferencesRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this */ -proto.clarifai.api.ListModelReferencesRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.PostLabelOrdersRequest.prototype.clearLabelOrdersList = function() { + return this.setLabelOrdersList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiModelReferenceResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -31445,8 +64142,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiModelReferenceResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.GetLabelOrderRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetLabelOrderRequest.toObject(opt_includeInstance, this); }; @@ -31455,15 +64152,14 @@ proto.clarifai.api.MultiModelReferenceResponse.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiModelReferenceResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetLabelOrderRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelReferenceResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetLabelOrderRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - modelReferencesList: jspb.Message.toObjectList(msg.getModelReferencesList(), - proto_clarifai_api_resources_pb.ModelReference.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + labelOrderId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -31477,23 +64173,23 @@ proto.clarifai.api.MultiModelReferenceResponse.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiModelReferenceResponse} + * @return {!proto.clarifai.api.GetLabelOrderRequest} */ -proto.clarifai.api.MultiModelReferenceResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.GetLabelOrderRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiModelReferenceResponse; - return proto.clarifai.api.MultiModelReferenceResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetLabelOrderRequest; + return proto.clarifai.api.GetLabelOrderRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiModelReferenceResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetLabelOrderRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiModelReferenceResponse} + * @return {!proto.clarifai.api.GetLabelOrderRequest} */ -proto.clarifai.api.MultiModelReferenceResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetLabelOrderRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -31501,14 +64197,13 @@ proto.clarifai.api.MultiModelReferenceResponse.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ModelReference; - reader.readMessage(value,proto_clarifai_api_resources_pb.ModelReference.deserializeBinaryFromReader); - msg.addModelReferences(value); + var value = /** @type {string} */ (reader.readString()); + msg.setLabelOrderId(value); break; default: reader.skipField(); @@ -31523,9 +64218,9 @@ proto.clarifai.api.MultiModelReferenceResponse.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.serializeBinary = function() { +proto.clarifai.api.GetLabelOrderRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiModelReferenceResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetLabelOrderRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -31533,56 +64228,55 @@ proto.clarifai.api.MultiModelReferenceResponse.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiModelReferenceResponse} message + * @param {!proto.clarifai.api.GetLabelOrderRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiModelReferenceResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetLabelOrderRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getModelReferencesList(); + f = message.getLabelOrderId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.ModelReference.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.GetLabelOrderRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetLabelOrderRequest} returns this */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.setStatus = function(value) { +proto.clarifai.api.GetLabelOrderRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this + * @return {!proto.clarifai.api.GetLabelOrderRequest} returns this */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.GetLabelOrderRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -31590,57 +64284,30 @@ proto.clarifai.api.MultiModelReferenceResponse.prototype.clearStatus = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.hasStatus = function() { +proto.clarifai.api.GetLabelOrderRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ModelReference model_references = 2; - * @return {!Array} - */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.getModelReferencesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModelReference, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this -*/ -proto.clarifai.api.MultiModelReferenceResponse.prototype.setModelReferencesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clarifai.api.ModelReference=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ModelReference} + * optional string label_order_id = 2; + * @return {string} */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.addModelReferences = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModelReference, opt_index); +proto.clarifai.api.GetLabelOrderRequest.prototype.getLabelOrderId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiModelReferenceResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetLabelOrderRequest} returns this */ -proto.clarifai.api.MultiModelReferenceResponse.prototype.clearModelReferencesList = function() { - return this.setModelReferencesList([]); +proto.clarifai.api.GetLabelOrderRequest.prototype.setLabelOrderId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiOutputResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -31656,8 +64323,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiOutputResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiOutputResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListLabelOrdersRequest.toObject(opt_includeInstance, this); }; @@ -31666,15 +64333,15 @@ proto.clarifai.api.MultiOutputResponse.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiOutputResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListLabelOrdersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiOutputResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListLabelOrdersRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - outputsList: jspb.Message.toObjectList(msg.getOutputsList(), - proto_clarifai_api_resources_pb.Output.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -31688,23 +64355,23 @@ proto.clarifai.api.MultiOutputResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiOutputResponse} + * @return {!proto.clarifai.api.ListLabelOrdersRequest} */ -proto.clarifai.api.MultiOutputResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListLabelOrdersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiOutputResponse; - return proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListLabelOrdersRequest; + return proto.clarifai.api.ListLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiOutputResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListLabelOrdersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiOutputResponse} + * @return {!proto.clarifai.api.ListLabelOrdersRequest} */ -proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -31712,14 +64379,17 @@ proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Output; - reader.readMessage(value,proto_clarifai_api_resources_pb.Output.deserializeBinaryFromReader); - msg.addOutputs(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -31734,9 +64404,9 @@ proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiOutputResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListLabelOrdersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiOutputResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListLabelOrdersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -31744,56 +64414,62 @@ proto.clarifai.api.MultiOutputResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiOutputResponse} message + * @param {!proto.clarifai.api.ListLabelOrdersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiOutputResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getOutputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 2, - f, - proto_clarifai_api_resources_pb.Output.serializeBinaryToWriter + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiOutputResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.ListLabelOrdersRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiOutputResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this */ -proto.clarifai.api.MultiOutputResponse.prototype.setStatus = function(value) { +proto.clarifai.api.ListLabelOrdersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiOutputResponse} returns this + * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this */ -proto.clarifai.api.MultiOutputResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListLabelOrdersRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -31801,50 +64477,55 @@ proto.clarifai.api.MultiOutputResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiOutputResponse.prototype.hasStatus = function() { +proto.clarifai.api.ListLabelOrdersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Output outputs = 2; - * @return {!Array} + * optional uint32 page = 2; + * @return {number} */ -proto.clarifai.api.MultiOutputResponse.prototype.getOutputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Output, 2)); +proto.clarifai.api.ListLabelOrdersRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiOutputResponse} returns this -*/ -proto.clarifai.api.MultiOutputResponse.prototype.setOutputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {number} value + * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this + */ +proto.clarifai.api.ListLabelOrdersRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Output=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Output} + * optional uint32 per_page = 3; + * @return {number} */ -proto.clarifai.api.MultiOutputResponse.prototype.addOutputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Output, opt_index); +proto.clarifai.api.ListLabelOrdersRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiOutputResponse} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this */ -proto.clarifai.api.MultiOutputResponse.prototype.clearOutputsList = function() { - return this.setOutputsList([]); +proto.clarifai.api.ListLabelOrdersRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchLabelOrdersRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -31860,8 +64541,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListScopesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListScopesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchLabelOrdersRequest.toObject(opt_includeInstance, this); }; @@ -31870,14 +64551,16 @@ proto.clarifai.api.ListScopesRequest.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListScopesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchLabelOrdersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListScopesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchLabelOrdersRequest.toObject = function(includeInstance, msg) { var f, obj = { - keyType: jspb.Message.getFieldWithDefault(msg, 1, ""), - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + labelOrdersList: jspb.Message.toObjectList(msg.getLabelOrdersList(), + proto_clarifai_api_resources_pb.LabelOrder.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -31891,23 +64574,23 @@ proto.clarifai.api.ListScopesRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListScopesRequest} + * @return {!proto.clarifai.api.PatchLabelOrdersRequest} */ -proto.clarifai.api.ListScopesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListScopesRequest; - return proto.clarifai.api.ListScopesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchLabelOrdersRequest; + return proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListScopesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchLabelOrdersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListScopesRequest} + * @return {!proto.clarifai.api.PatchLabelOrdersRequest} */ -proto.clarifai.api.ListScopesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -31915,14 +64598,19 @@ proto.clarifai.api.ListScopesRequest.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKeyType(value); - break; - case 2: var value = new proto_clarifai_api_resources_pb.UserAppIDSet; reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; + case 2: + var value = new proto_clarifai_api_resources_pb.LabelOrder; + reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); + msg.addLabelOrders(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); + break; default: reader.skipField(); break; @@ -31936,9 +64624,9 @@ proto.clarifai.api.ListScopesRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListScopesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PatchLabelOrdersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListScopesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchLabelOrdersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -31946,86 +64634,139 @@ proto.clarifai.api.ListScopesRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListScopesRequest} message + * @param {!proto.clarifai.api.PatchLabelOrdersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListScopesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getKeyType(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } f = message.getUserAppId(); if (f != null) { writer.writeMessage( - 2, + 1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } + f = message.getLabelOrdersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } }; /** - * optional string key_type = 1; - * @return {string} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListScopesRequest.prototype.getKeyType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.clarifai.api.PatchLabelOrdersRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListScopesRequest} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this +*/ +proto.clarifai.api.PatchLabelOrdersRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this */ -proto.clarifai.api.ListScopesRequest.prototype.setKeyType = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.clarifai.api.PatchLabelOrdersRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * optional UserAppIDSet user_app_id = 2; - * @return {?proto.clarifai.api.UserAppIDSet} + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListScopesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 2)); +proto.clarifai.api.PatchLabelOrdersRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListScopesRequest} returns this + * repeated LabelOrder label_orders = 2; + * @return {!Array} + */ +proto.clarifai.api.PatchLabelOrdersRequest.prototype.getLabelOrdersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this */ -proto.clarifai.api.ListScopesRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.PatchLabelOrdersRequest.prototype.setLabelOrdersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.LabelOrder=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.LabelOrder} + */ +proto.clarifai.api.PatchLabelOrdersRequest.prototype.addLabelOrders = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LabelOrder, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this + */ +proto.clarifai.api.PatchLabelOrdersRequest.prototype.clearLabelOrdersList = function() { + return this.setLabelOrdersList([]); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListScopesRequest} returns this + * optional string action = 3; + * @return {string} */ -proto.clarifai.api.ListScopesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.PatchLabelOrdersRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this */ -proto.clarifai.api.ListScopesRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PatchLabelOrdersRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteLabelOrdersRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -32041,8 +64782,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MyScopesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MyScopesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteLabelOrdersRequest.toObject(opt_includeInstance, this); }; @@ -32051,13 +64792,14 @@ proto.clarifai.api.MyScopesRequest.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MyScopesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteLabelOrdersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MyScopesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteLabelOrdersRequest.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -32071,23 +64813,23 @@ proto.clarifai.api.MyScopesRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MyScopesRequest} + * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} */ -proto.clarifai.api.MyScopesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MyScopesRequest; - return proto.clarifai.api.MyScopesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteLabelOrdersRequest; + return proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MyScopesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteLabelOrdersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MyScopesRequest} + * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} */ -proto.clarifai.api.MyScopesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -32099,6 +64841,10 @@ proto.clarifai.api.MyScopesRequest.deserializeBinaryFromReader = function(msg, r reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; default: reader.skipField(); break; @@ -32112,9 +64858,9 @@ proto.clarifai.api.MyScopesRequest.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MyScopesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MyScopesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteLabelOrdersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -32122,11 +64868,11 @@ proto.clarifai.api.MyScopesRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MyScopesRequest} message + * @param {!proto.clarifai.api.DeleteLabelOrdersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MyScopesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -32136,6 +64882,13 @@ proto.clarifai.api.MyScopesRequest.serializeBinaryToWriter = function(message, w proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } }; @@ -32143,7 +64896,7 @@ proto.clarifai.api.MyScopesRequest.serializeBinaryToWriter = function(message, w * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MyScopesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -32151,18 +64904,18 @@ proto.clarifai.api.MyScopesRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.MyScopesRequest} returns this + * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this */ -proto.clarifai.api.MyScopesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MyScopesRequest} returns this + * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this */ -proto.clarifai.api.MyScopesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -32171,11 +64924,55 @@ proto.clarifai.api.MyScopesRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MyScopesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * repeated string ids = 2; + * @return {!Array} + */ +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this + */ +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this + */ +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this + */ +proto.clarifai.api.DeleteLabelOrdersRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiLabelOrderResponse.repeatedFields_ = [2]; @@ -32192,8 +64989,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MyScopesUserRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MyScopesUserRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiLabelOrderResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiLabelOrderResponse.toObject(opt_includeInstance, this); }; @@ -32202,13 +64999,15 @@ proto.clarifai.api.MyScopesUserRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MyScopesUserRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiLabelOrderResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MyScopesUserRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiLabelOrderResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + labelOrdersList: jspb.Message.toObjectList(msg.getLabelOrdersList(), + proto_clarifai_api_resources_pb.LabelOrder.toObject, includeInstance) }; if (includeInstance) { @@ -32222,23 +65021,23 @@ proto.clarifai.api.MyScopesUserRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MyScopesUserRequest} + * @return {!proto.clarifai.api.MultiLabelOrderResponse} */ -proto.clarifai.api.MyScopesUserRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiLabelOrderResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MyScopesUserRequest; - return proto.clarifai.api.MyScopesUserRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiLabelOrderResponse; + return proto.clarifai.api.MultiLabelOrderResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MyScopesUserRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiLabelOrderResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MyScopesUserRequest} + * @return {!proto.clarifai.api.MultiLabelOrderResponse} */ -proto.clarifai.api.MyScopesUserRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiLabelOrderResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -32246,9 +65045,14 @@ proto.clarifai.api.MyScopesUserRequest.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.LabelOrder; + reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); + msg.addLabelOrders(value); break; default: reader.skipField(); @@ -32263,9 +65067,9 @@ proto.clarifai.api.MyScopesUserRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MyScopesUserRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiLabelOrderResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MyScopesUserRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiLabelOrderResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -32273,48 +65077,56 @@ proto.clarifai.api.MyScopesUserRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MyScopesUserRequest} message + * @param {!proto.clarifai.api.MultiLabelOrderResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MyScopesUserRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiLabelOrderResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getLabelOrdersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MyScopesUserRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiLabelOrderResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.MyScopesUserRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this */ -proto.clarifai.api.MyScopesUserRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiLabelOrderResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MyScopesUserRequest} returns this + * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this */ -proto.clarifai.api.MyScopesUserRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiLabelOrderResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -32322,120 +65134,50 @@ proto.clarifai.api.MyScopesUserRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MyScopesUserRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiLabelOrderResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clarifai.api.MyScopesRootRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MyScopesRootRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MyScopesRootRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clarifai.api.MyScopesRootRequest.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MyScopesRootRequest} + * repeated LabelOrder label_orders = 2; + * @return {!Array} */ -proto.clarifai.api.MyScopesRootRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MyScopesRootRequest; - return proto.clarifai.api.MyScopesRootRequest.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.MultiLabelOrderResponse.prototype.getLabelOrdersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.MyScopesRootRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MyScopesRootRequest} - */ -proto.clarifai.api.MyScopesRootRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; + * @param {!Array} value + * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this +*/ +proto.clarifai.api.MultiLabelOrderResponse.prototype.setLabelOrdersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {!proto.clarifai.api.LabelOrder=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.LabelOrder} */ -proto.clarifai.api.MyScopesRootRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MyScopesRootRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.MultiLabelOrderResponse.prototype.addLabelOrders = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LabelOrder, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MyScopesRootRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this */ -proto.clarifai.api.MyScopesRootRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; +proto.clarifai.api.MultiLabelOrderResponse.prototype.clearLabelOrdersList = function() { + return this.setLabelOrdersList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiScopeDepsResponse.repeatedFields_ = [2,3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -32451,8 +65193,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiScopeDepsResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleLabelOrderResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleLabelOrderResponse.toObject(opt_includeInstance, this); }; @@ -32461,17 +65203,14 @@ proto.clarifai.api.MultiScopeDepsResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiScopeDepsResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleLabelOrderResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeDepsResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleLabelOrderResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - scopeDepsList: jspb.Message.toObjectList(msg.getScopeDepsList(), - proto_clarifai_api_resources_pb.ScopeDeps.toObject, includeInstance), - endpointDepsList: jspb.Message.toObjectList(msg.getEndpointDepsList(), - proto_clarifai_api_resources_pb.EndpointDeps.toObject, includeInstance) + labelOrder: (f = msg.getLabelOrder()) && proto_clarifai_api_resources_pb.LabelOrder.toObject(includeInstance, f) }; if (includeInstance) { @@ -32485,23 +65224,23 @@ proto.clarifai.api.MultiScopeDepsResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiScopeDepsResponse} + * @return {!proto.clarifai.api.SingleLabelOrderResponse} */ -proto.clarifai.api.MultiScopeDepsResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleLabelOrderResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiScopeDepsResponse; - return proto.clarifai.api.MultiScopeDepsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleLabelOrderResponse; + return proto.clarifai.api.SingleLabelOrderResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiScopeDepsResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleLabelOrderResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiScopeDepsResponse} + * @return {!proto.clarifai.api.SingleLabelOrderResponse} */ -proto.clarifai.api.MultiScopeDepsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleLabelOrderResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -32514,14 +65253,9 @@ proto.clarifai.api.MultiScopeDepsResponse.deserializeBinaryFromReader = function msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.ScopeDeps; - reader.readMessage(value,proto_clarifai_api_resources_pb.ScopeDeps.deserializeBinaryFromReader); - msg.addScopeDeps(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.EndpointDeps; - reader.readMessage(value,proto_clarifai_api_resources_pb.EndpointDeps.deserializeBinaryFromReader); - msg.addEndpointDeps(value); + var value = new proto_clarifai_api_resources_pb.LabelOrder; + reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); + msg.setLabelOrder(value); break; default: reader.skipField(); @@ -32536,9 +65270,9 @@ proto.clarifai.api.MultiScopeDepsResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleLabelOrderResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiScopeDepsResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleLabelOrderResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -32546,11 +65280,11 @@ proto.clarifai.api.MultiScopeDepsResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiScopeDepsResponse} message + * @param {!proto.clarifai.api.SingleLabelOrderResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeDepsResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleLabelOrderResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -32560,20 +65294,12 @@ proto.clarifai.api.MultiScopeDepsResponse.serializeBinaryToWriter = function(mes proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getScopeDepsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getLabelOrder(); + if (f != null) { + writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.ScopeDeps.serializeBinaryToWriter - ); - } - f = message.getEndpointDepsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.EndpointDeps.serializeBinaryToWriter + proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter ); } }; @@ -32583,7 +65309,7 @@ proto.clarifai.api.MultiScopeDepsResponse.serializeBinaryToWriter = function(mes * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleLabelOrderResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -32591,18 +65317,18 @@ proto.clarifai.api.MultiScopeDepsResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this + * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleLabelOrderResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this + * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleLabelOrderResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -32611,84 +65337,45 @@ proto.clarifai.api.MultiScopeDepsResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleLabelOrderResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated ScopeDeps scope_deps = 2; - * @return {!Array} - */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.getScopeDepsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ScopeDeps, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this -*/ -proto.clarifai.api.MultiScopeDepsResponse.prototype.setScopeDepsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clarifai.api.ScopeDeps=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ScopeDeps} - */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.addScopeDeps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ScopeDeps, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this - */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.clearScopeDepsList = function() { - return this.setScopeDepsList([]); -}; - - -/** - * repeated EndpointDeps endpoint_deps = 3; - * @return {!Array} + * optional LabelOrder label_order = 2; + * @return {?proto.clarifai.api.LabelOrder} */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.getEndpointDepsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.EndpointDeps, 3)); +proto.clarifai.api.SingleLabelOrderResponse.prototype.getLabelOrder = function() { + return /** @type{?proto.clarifai.api.LabelOrder} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this + * @param {?proto.clarifai.api.LabelOrder|undefined} value + * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.setEndpointDepsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.SingleLabelOrderResponse.prototype.setLabelOrder = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.EndpointDeps=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.EndpointDeps} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.addEndpointDeps = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.EndpointDeps, opt_index); +proto.clarifai.api.SingleLabelOrderResponse.prototype.clearLabelOrder = function() { + return this.setLabelOrder(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeDepsResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiScopeDepsResponse.prototype.clearEndpointDepsList = function() { - return this.setEndpointDepsList([]); +proto.clarifai.api.SingleLabelOrderResponse.prototype.hasLabelOrder = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -32698,7 +65385,7 @@ proto.clarifai.api.MultiScopeDepsResponse.prototype.clearEndpointDepsList = func * @private {!Array} * @const */ -proto.clarifai.api.MultiScopeResponse.repeatedFields_ = [2,4]; +proto.clarifai.api.PostCollectorsRequest.repeatedFields_ = [2]; @@ -32715,8 +65402,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiScopeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiScopeResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostCollectorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostCollectorsRequest.toObject(opt_includeInstance, this); }; @@ -32725,16 +65412,15 @@ proto.clarifai.api.MultiScopeResponse.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiScopeResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostCollectorsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostCollectorsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - scopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - app: (f = msg.getApp()) && proto_clarifai_api_resources_pb.App.toObject(includeInstance, f), - endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + collectorsList: jspb.Message.toObjectList(msg.getCollectorsList(), + proto_clarifai_api_resources_pb.Collector.toObject, includeInstance) }; if (includeInstance) { @@ -32748,23 +65434,23 @@ proto.clarifai.api.MultiScopeResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiScopeResponse} + * @return {!proto.clarifai.api.PostCollectorsRequest} */ -proto.clarifai.api.MultiScopeResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostCollectorsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiScopeResponse; - return proto.clarifai.api.MultiScopeResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostCollectorsRequest; + return proto.clarifai.api.PostCollectorsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiScopeResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostCollectorsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiScopeResponse} + * @return {!proto.clarifai.api.PostCollectorsRequest} */ -proto.clarifai.api.MultiScopeResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -32772,22 +65458,14 @@ proto.clarifai.api.MultiScopeResponse.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addScopes(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.App; - reader.readMessage(value,proto_clarifai_api_resources_pb.App.deserializeBinaryFromReader); - msg.setApp(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addEndpoints(value); + var value = new proto_clarifai_api_resources_pb.Collector; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); + msg.addCollectors(value); break; default: reader.skipField(); @@ -32802,9 +65480,9 @@ proto.clarifai.api.MultiScopeResponse.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiScopeResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostCollectorsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiScopeResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostCollectorsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -32812,70 +65490,56 @@ proto.clarifai.api.MultiScopeResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiScopeResponse} message + * @param {!proto.clarifai.api.PostCollectorsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostCollectorsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getScopesList(); + f = message.getCollectorsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getApp(); - if (f != null) { - writer.writeMessage( - 3, f, - proto_clarifai_api_resources_pb.App.serializeBinaryToWriter - ); - } - f = message.getEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f + proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiScopeResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostCollectorsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiScopeResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostCollectorsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiScopeResponse} returns this + * @return {!proto.clarifai.api.PostCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostCollectorsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -32883,119 +65547,46 @@ proto.clarifai.api.MultiScopeResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiScopeResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostCollectorsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string scopes = 2; - * @return {!Array} - */ -proto.clarifai.api.MultiScopeResponse.prototype.getScopesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeResponse} returns this - */ -proto.clarifai.api.MultiScopeResponse.prototype.setScopesList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiScopeResponse} returns this - */ -proto.clarifai.api.MultiScopeResponse.prototype.addScopes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeResponse} returns this - */ -proto.clarifai.api.MultiScopeResponse.prototype.clearScopesList = function() { - return this.setScopesList([]); -}; - - -/** - * optional App app = 3; - * @return {?proto.clarifai.api.App} + * repeated Collector collectors = 2; + * @return {!Array} */ -proto.clarifai.api.MultiScopeResponse.prototype.getApp = function() { - return /** @type{?proto.clarifai.api.App} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.App, 3)); +proto.clarifai.api.PostCollectorsRequest.prototype.getCollectorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); }; /** - * @param {?proto.clarifai.api.App|undefined} value - * @return {!proto.clarifai.api.MultiScopeResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeResponse.prototype.setApp = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiScopeResponse} returns this - */ -proto.clarifai.api.MultiScopeResponse.prototype.clearApp = function() { - return this.setApp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.MultiScopeResponse.prototype.hasApp = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated string endpoints = 4; - * @return {!Array} - */ -proto.clarifai.api.MultiScopeResponse.prototype.getEndpointsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeResponse} returns this - */ -proto.clarifai.api.MultiScopeResponse.prototype.setEndpointsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.PostCollectorsRequest.prototype.setCollectorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Collector=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiScopeResponse} returns this + * @return {!proto.clarifai.api.Collector} */ -proto.clarifai.api.MultiScopeResponse.prototype.addEndpoints = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.PostCollectorsRequest.prototype.addCollectors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collector, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeResponse} returns this + * @return {!proto.clarifai.api.PostCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeResponse.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); +proto.clarifai.api.PostCollectorsRequest.prototype.clearCollectorsList = function() { + return this.setCollectorsList([]); }; @@ -33005,7 +65596,7 @@ proto.clarifai.api.MultiScopeResponse.prototype.clearEndpointsList = function() * @private {!Array} * @const */ -proto.clarifai.api.MultiScopeUserResponse.repeatedFields_ = [2,4]; +proto.clarifai.api.PatchCollectorsRequest.repeatedFields_ = [2]; @@ -33022,8 +65613,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiScopeUserResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiScopeUserResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchCollectorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchCollectorsRequest.toObject(opt_includeInstance, this); }; @@ -33032,15 +65623,16 @@ proto.clarifai.api.MultiScopeUserResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiScopeUserResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchCollectorsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeUserResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchCollectorsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - scopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + collectorsList: jspb.Message.toObjectList(msg.getCollectorsList(), + proto_clarifai_api_resources_pb.Collector.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -33054,23 +65646,23 @@ proto.clarifai.api.MultiScopeUserResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiScopeUserResponse} + * @return {!proto.clarifai.api.PatchCollectorsRequest} */ -proto.clarifai.api.MultiScopeUserResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchCollectorsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiScopeUserResponse; - return proto.clarifai.api.MultiScopeUserResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchCollectorsRequest; + return proto.clarifai.api.PatchCollectorsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiScopeUserResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchCollectorsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiScopeUserResponse} + * @return {!proto.clarifai.api.PatchCollectorsRequest} */ -proto.clarifai.api.MultiScopeUserResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -33078,17 +65670,18 @@ proto.clarifai.api.MultiScopeUserResponse.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addScopes(value); + var value = new proto_clarifai_api_resources_pb.Collector; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); + msg.addCollectors(value); break; - case 4: + case 3: var value = /** @type {string} */ (reader.readString()); - msg.addEndpoints(value); + msg.setAction(value); break; default: reader.skipField(); @@ -33103,9 +65696,9 @@ proto.clarifai.api.MultiScopeUserResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiScopeUserResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PatchCollectorsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiScopeUserResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchCollectorsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -33113,31 +65706,32 @@ proto.clarifai.api.MultiScopeUserResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiScopeUserResponse} message + * @param {!proto.clarifai.api.PatchCollectorsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeUserResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchCollectorsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getScopesList(); + f = message.getCollectorsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter ); } - f = message.getEndpointsList(); + f = message.getAction(); if (f.length > 0) { - writer.writeRepeatedString( - 4, + writer.writeString( + 3, f ); } @@ -33145,30 +65739,30 @@ proto.clarifai.api.MultiScopeUserResponse.serializeBinaryToWriter = function(mes /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiScopeUserResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PatchCollectorsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeUserResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PatchCollectorsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeUserResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchCollectorsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -33176,82 +65770,64 @@ proto.clarifai.api.MultiScopeUserResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiScopeUserResponse.prototype.hasStatus = function() { +proto.clarifai.api.PatchCollectorsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string scopes = 2; - * @return {!Array} + * repeated Collector collectors = 2; + * @return {!Array} */ -proto.clarifai.api.MultiScopeUserResponse.prototype.getScopesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.PatchCollectorsRequest.prototype.getCollectorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this - */ -proto.clarifai.api.MultiScopeUserResponse.prototype.setScopesList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this +*/ +proto.clarifai.api.PatchCollectorsRequest.prototype.setCollectorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Collector=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + * @return {!proto.clarifai.api.Collector} */ -proto.clarifai.api.MultiScopeUserResponse.prototype.addScopes = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.PatchCollectorsRequest.prototype.addCollectors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collector, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this - */ -proto.clarifai.api.MultiScopeUserResponse.prototype.clearScopesList = function() { - return this.setScopesList([]); -}; - - -/** - * repeated string endpoints = 4; - * @return {!Array} + * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeUserResponse.prototype.getEndpointsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.clarifai.api.PatchCollectorsRequest.prototype.clearCollectorsList = function() { + return this.setCollectorsList([]); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + * optional string action = 3; + * @return {string} */ -proto.clarifai.api.MultiScopeUserResponse.prototype.setEndpointsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.PatchCollectorsRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this - */ -proto.clarifai.api.MultiScopeUserResponse.prototype.addEndpoints = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeUserResponse} returns this + * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeUserResponse.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); +proto.clarifai.api.PatchCollectorsRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -33261,7 +65837,7 @@ proto.clarifai.api.MultiScopeUserResponse.prototype.clearEndpointsList = functio * @private {!Array} * @const */ -proto.clarifai.api.MultiScopeRootResponse.repeatedFields_ = [2,4]; +proto.clarifai.api.DeleteCollectorsRequest.repeatedFields_ = [2]; @@ -33278,8 +65854,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiScopeRootResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiScopeRootResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteCollectorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteCollectorsRequest.toObject(opt_includeInstance, this); }; @@ -33288,15 +65864,15 @@ proto.clarifai.api.MultiScopeRootResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiScopeRootResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteCollectorsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeRootResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteCollectorsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - scopesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - endpointsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + deleteAll: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -33310,23 +65886,23 @@ proto.clarifai.api.MultiScopeRootResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiScopeRootResponse} + * @return {!proto.clarifai.api.DeleteCollectorsRequest} */ -proto.clarifai.api.MultiScopeRootResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteCollectorsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiScopeRootResponse; - return proto.clarifai.api.MultiScopeRootResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteCollectorsRequest; + return proto.clarifai.api.DeleteCollectorsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiScopeRootResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteCollectorsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiScopeRootResponse} + * @return {!proto.clarifai.api.DeleteCollectorsRequest} */ -proto.clarifai.api.MultiScopeRootResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -33334,17 +65910,17 @@ proto.clarifai.api.MultiScopeRootResponse.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addScopes(value); + msg.addIds(value); break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addEndpoints(value); + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setDeleteAll(value); break; default: reader.skipField(); @@ -33359,9 +65935,9 @@ proto.clarifai.api.MultiScopeRootResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiScopeRootResponse.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteCollectorsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiScopeRootResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteCollectorsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -33369,31 +65945,31 @@ proto.clarifai.api.MultiScopeRootResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiScopeRootResponse} message + * @param {!proto.clarifai.api.DeleteCollectorsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiScopeRootResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteCollectorsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getScopesList(); + f = message.getIdsList(); if (f.length > 0) { writer.writeRepeatedString( 2, f ); } - f = message.getEndpointsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, + f = message.getDeleteAll(); + if (f) { + writer.writeBool( + 3, f ); } @@ -33401,30 +65977,30 @@ proto.clarifai.api.MultiScopeRootResponse.serializeBinaryToWriter = function(mes /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiScopeRootResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.DeleteCollectorsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeRootResponse.prototype.setStatus = function(value) { +proto.clarifai.api.DeleteCollectorsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeRootResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteCollectorsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -33432,25 +66008,25 @@ proto.clarifai.api.MultiScopeRootResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiScopeRootResponse.prototype.hasStatus = function() { +proto.clarifai.api.DeleteCollectorsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string scopes = 2; + * repeated string ids = 2; * @return {!Array} */ -proto.clarifai.api.MultiScopeRootResponse.prototype.getScopesList = function() { +proto.clarifai.api.DeleteCollectorsRequest.prototype.getIdsList = function() { return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeRootResponse.prototype.setScopesList = function(value) { +proto.clarifai.api.DeleteCollectorsRequest.prototype.setIdsList = function(value) { return jspb.Message.setField(this, 2, value || []); }; @@ -33458,56 +66034,37 @@ proto.clarifai.api.MultiScopeRootResponse.prototype.setScopesList = function(val /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeRootResponse.prototype.addScopes = function(value, opt_index) { +proto.clarifai.api.DeleteCollectorsRequest.prototype.addIds = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this - */ -proto.clarifai.api.MultiScopeRootResponse.prototype.clearScopesList = function() { - return this.setScopesList([]); -}; - - -/** - * repeated string endpoints = 4; - * @return {!Array} - */ -proto.clarifai.api.MultiScopeRootResponse.prototype.getEndpointsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeRootResponse.prototype.setEndpointsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.DeleteCollectorsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + * optional bool delete_all = 3; + * @return {boolean} */ -proto.clarifai.api.MultiScopeRootResponse.prototype.addEndpoints = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.DeleteCollectorsRequest.prototype.getDeleteAll = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiScopeRootResponse} returns this + * @param {boolean} value + * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this */ -proto.clarifai.api.MultiScopeRootResponse.prototype.clearEndpointsList = function() { - return this.setEndpointsList([]); +proto.clarifai.api.DeleteCollectorsRequest.prototype.setDeleteAll = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); }; @@ -33527,8 +66084,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetSearchRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetCollectorRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetCollectorRequest.toObject(opt_includeInstance, this); }; @@ -33537,14 +66094,14 @@ proto.clarifai.api.GetSearchRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetSearchRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetCollectorRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetSearchRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetCollectorRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, "") + collectorId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -33558,23 +66115,23 @@ proto.clarifai.api.GetSearchRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetSearchRequest} + * @return {!proto.clarifai.api.GetCollectorRequest} */ -proto.clarifai.api.GetSearchRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetCollectorRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetSearchRequest; - return proto.clarifai.api.GetSearchRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetCollectorRequest; + return proto.clarifai.api.GetCollectorRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetSearchRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetCollectorRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetSearchRequest} + * @return {!proto.clarifai.api.GetCollectorRequest} */ -proto.clarifai.api.GetSearchRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetCollectorRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -33588,7 +66145,7 @@ proto.clarifai.api.GetSearchRequest.deserializeBinaryFromReader = function(msg, break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setCollectorId(value); break; default: reader.skipField(); @@ -33603,9 +66160,9 @@ proto.clarifai.api.GetSearchRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetSearchRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetCollectorRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetSearchRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetCollectorRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -33613,11 +66170,11 @@ proto.clarifai.api.GetSearchRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetSearchRequest} message + * @param {!proto.clarifai.api.GetCollectorRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetSearchRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetCollectorRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -33627,7 +66184,7 @@ proto.clarifai.api.GetSearchRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getId(); + f = message.getCollectorId(); if (f.length > 0) { writer.writeString( 2, @@ -33641,7 +66198,7 @@ proto.clarifai.api.GetSearchRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetSearchRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetCollectorRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -33649,18 +66206,18 @@ proto.clarifai.api.GetSearchRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetSearchRequest} returns this + * @return {!proto.clarifai.api.GetCollectorRequest} returns this */ -proto.clarifai.api.GetSearchRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetCollectorRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetSearchRequest} returns this + * @return {!proto.clarifai.api.GetCollectorRequest} returns this */ -proto.clarifai.api.GetSearchRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetCollectorRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -33669,25 +66226,25 @@ proto.clarifai.api.GetSearchRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetSearchRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetCollectorRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string id = 2; + * optional string collector_id = 2; * @return {string} */ -proto.clarifai.api.GetSearchRequest.prototype.getId = function() { +proto.clarifai.api.GetCollectorRequest.prototype.getCollectorId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.GetSearchRequest} returns this + * @return {!proto.clarifai.api.GetCollectorRequest} returns this */ -proto.clarifai.api.GetSearchRequest.prototype.setId = function(value) { +proto.clarifai.api.GetCollectorRequest.prototype.setCollectorId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -33708,8 +66265,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListSearchesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListSearchesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListCollectorsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListCollectorsRequest.toObject(opt_includeInstance, this); }; @@ -33718,11 +66275,11 @@ proto.clarifai.api.ListSearchesRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListSearchesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListCollectorsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListSearchesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListCollectorsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), page: jspb.Message.getFieldWithDefault(msg, 2, 0), @@ -33740,23 +66297,23 @@ proto.clarifai.api.ListSearchesRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListSearchesRequest} + * @return {!proto.clarifai.api.ListCollectorsRequest} */ -proto.clarifai.api.ListSearchesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListCollectorsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListSearchesRequest; - return proto.clarifai.api.ListSearchesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListCollectorsRequest; + return proto.clarifai.api.ListCollectorsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListSearchesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListCollectorsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListSearchesRequest} + * @return {!proto.clarifai.api.ListCollectorsRequest} */ -proto.clarifai.api.ListSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -33789,9 +66346,9 @@ proto.clarifai.api.ListSearchesRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListSearchesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListCollectorsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListSearchesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListCollectorsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -33799,11 +66356,11 @@ proto.clarifai.api.ListSearchesRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListSearchesRequest} message + * @param {!proto.clarifai.api.ListCollectorsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListSearchesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListCollectorsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -33834,7 +66391,7 @@ proto.clarifai.api.ListSearchesRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListSearchesRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListCollectorsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -33842,18 +66399,18 @@ proto.clarifai.api.ListSearchesRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListSearchesRequest} returns this + * @return {!proto.clarifai.api.ListCollectorsRequest} returns this */ -proto.clarifai.api.ListSearchesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListCollectorsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListSearchesRequest} returns this + * @return {!proto.clarifai.api.ListCollectorsRequest} returns this */ -proto.clarifai.api.ListSearchesRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListCollectorsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -33862,7 +66419,7 @@ proto.clarifai.api.ListSearchesRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListSearchesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListCollectorsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -33871,16 +66428,16 @@ proto.clarifai.api.ListSearchesRequest.prototype.hasUserAppId = function() { * optional uint32 page = 2; * @return {number} */ -proto.clarifai.api.ListSearchesRequest.prototype.getPage = function() { +proto.clarifai.api.ListCollectorsRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListSearchesRequest} returns this + * @return {!proto.clarifai.api.ListCollectorsRequest} returns this */ -proto.clarifai.api.ListSearchesRequest.prototype.setPage = function(value) { +proto.clarifai.api.ListCollectorsRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -33889,16 +66446,16 @@ proto.clarifai.api.ListSearchesRequest.prototype.setPage = function(value) { * optional uint32 per_page = 3; * @return {number} */ -proto.clarifai.api.ListSearchesRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListCollectorsRequest.prototype.getPerPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListSearchesRequest} returns this + * @return {!proto.clarifai.api.ListCollectorsRequest} returns this */ -proto.clarifai.api.ListSearchesRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListCollectorsRequest.prototype.setPerPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; @@ -33909,7 +66466,7 @@ proto.clarifai.api.ListSearchesRequest.prototype.setPerPage = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.PostSearchesRequest.repeatedFields_ = [3]; +proto.clarifai.api.MultiCollectorResponse.repeatedFields_ = [2]; @@ -33926,8 +66483,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostSearchesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostSearchesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiCollectorResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiCollectorResponse.toObject(opt_includeInstance, this); }; @@ -33936,17 +66493,15 @@ proto.clarifai.api.PostSearchesRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostSearchesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiCollectorResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostSearchesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiCollectorResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - query: (f = msg.getQuery()) && proto_clarifai_api_resources_pb.Query.toObject(includeInstance, f), - searchesList: jspb.Message.toObjectList(msg.getSearchesList(), - proto_clarifai_api_resources_pb.Search.toObject, includeInstance), - pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + collectorsList: jspb.Message.toObjectList(msg.getCollectorsList(), + proto_clarifai_api_resources_pb.Collector.toObject, includeInstance) }; if (includeInstance) { @@ -33960,23 +66515,23 @@ proto.clarifai.api.PostSearchesRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostSearchesRequest} + * @return {!proto.clarifai.api.MultiCollectorResponse} */ -proto.clarifai.api.PostSearchesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiCollectorResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostSearchesRequest; - return proto.clarifai.api.PostSearchesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiCollectorResponse; + return proto.clarifai.api.MultiCollectorResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostSearchesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiCollectorResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostSearchesRequest} + * @return {!proto.clarifai.api.MultiCollectorResponse} */ -proto.clarifai.api.PostSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiCollectorResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -33984,24 +66539,14 @@ proto.clarifai.api.PostSearchesRequest.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Query; - reader.readMessage(value,proto_clarifai_api_resources_pb.Query.deserializeBinaryFromReader); - msg.setQuery(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.addSearches(value); - break; - case 4: - var value = new proto.clarifai.api.Pagination; - reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); + var value = new proto_clarifai_api_resources_pb.Collector; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); + msg.addCollectors(value); break; default: reader.skipField(); @@ -34016,9 +66561,9 @@ proto.clarifai.api.PostSearchesRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostSearchesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiCollectorResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostSearchesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiCollectorResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -34026,72 +66571,56 @@ proto.clarifai.api.PostSearchesRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostSearchesRequest} message + * @param {!proto.clarifai.api.MultiCollectorResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostSearchesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiCollectorResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getQuery(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto_clarifai_api_resources_pb.Query.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getSearchesList(); + f = message.getCollectorsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 4, + 2, f, - proto.clarifai.api.Pagination.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostSearchesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiCollectorResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostSearchesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiCollectorResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostSearchesRequest} returns this + * @return {!proto.clarifai.api.MultiCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiCollectorResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -34099,120 +66628,46 @@ proto.clarifai.api.PostSearchesRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostSearchesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiCollectorResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Query query = 2; - * @return {?proto.clarifai.api.Query} - */ -proto.clarifai.api.PostSearchesRequest.prototype.getQuery = function() { - return /** @type{?proto.clarifai.api.Query} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Query, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Query|undefined} value - * @return {!proto.clarifai.api.PostSearchesRequest} returns this -*/ -proto.clarifai.api.PostSearchesRequest.prototype.setQuery = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostSearchesRequest} returns this - */ -proto.clarifai.api.PostSearchesRequest.prototype.clearQuery = function() { - return this.setQuery(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostSearchesRequest.prototype.hasQuery = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated Search searches = 3; - * @return {!Array} + * repeated Collector collectors = 2; + * @return {!Array} */ -proto.clarifai.api.PostSearchesRequest.prototype.getSearchesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 3)); +proto.clarifai.api.MultiCollectorResponse.prototype.getCollectorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostSearchesRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesRequest.prototype.setSearchesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.MultiCollectorResponse.prototype.setCollectorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Search=} opt_value + * @param {!proto.clarifai.api.Collector=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Search} + * @return {!proto.clarifai.api.Collector} */ -proto.clarifai.api.PostSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Search, opt_index); +proto.clarifai.api.MultiCollectorResponse.prototype.addCollectors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collector, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostSearchesRequest} returns this - */ -proto.clarifai.api.PostSearchesRequest.prototype.clearSearchesList = function() { - return this.setSearchesList([]); -}; - - -/** - * optional Pagination pagination = 4; - * @return {?proto.clarifai.api.Pagination} - */ -proto.clarifai.api.PostSearchesRequest.prototype.getPagination = function() { - return /** @type{?proto.clarifai.api.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 4)); -}; - - -/** - * @param {?proto.clarifai.api.Pagination|undefined} value - * @return {!proto.clarifai.api.PostSearchesRequest} returns this -*/ -proto.clarifai.api.PostSearchesRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostSearchesRequest} returns this - */ -proto.clarifai.api.PostSearchesRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * @return {!proto.clarifai.api.MultiCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.MultiCollectorResponse.prototype.clearCollectorsList = function() { + return this.setCollectorsList([]); }; @@ -34232,8 +66687,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostSearchesByIDRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleCollectorResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleCollectorResponse.toObject(opt_includeInstance, this); }; @@ -34242,15 +66697,14 @@ proto.clarifai.api.PostSearchesByIDRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostSearchesByIDRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleCollectorResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostSearchesByIDRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleCollectorResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + collector: (f = msg.getCollector()) && proto_clarifai_api_resources_pb.Collector.toObject(includeInstance, f) }; if (includeInstance) { @@ -34264,23 +66718,23 @@ proto.clarifai.api.PostSearchesByIDRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostSearchesByIDRequest} + * @return {!proto.clarifai.api.SingleCollectorResponse} */ -proto.clarifai.api.PostSearchesByIDRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleCollectorResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostSearchesByIDRequest; - return proto.clarifai.api.PostSearchesByIDRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleCollectorResponse; + return proto.clarifai.api.SingleCollectorResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostSearchesByIDRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleCollectorResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostSearchesByIDRequest} + * @return {!proto.clarifai.api.SingleCollectorResponse} */ -proto.clarifai.api.PostSearchesByIDRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleCollectorResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -34288,18 +66742,14 @@ proto.clarifai.api.PostSearchesByIDRequest.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 3: - var value = new proto.clarifai.api.Pagination; - reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); + var value = new proto_clarifai_api_resources_pb.Collector; + reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); + msg.setCollector(value); break; default: reader.skipField(); @@ -34314,9 +66764,9 @@ proto.clarifai.api.PostSearchesByIDRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleCollectorResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostSearchesByIDRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleCollectorResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -34324,63 +66774,56 @@ proto.clarifai.api.PostSearchesByIDRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostSearchesByIDRequest} message + * @param {!proto.clarifai.api.SingleCollectorResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostSearchesByIDRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleCollectorResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 2, - f + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getPagination(); + f = message.getCollector(); if (f != null) { writer.writeMessage( - 3, + 2, f, - proto.clarifai.api.Pagination.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleCollectorResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleCollectorResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this + * @return {!proto.clarifai.api.SingleCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleCollectorResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -34388,54 +66831,36 @@ proto.clarifai.api.PostSearchesByIDRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleCollectorResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string id = 2; - * @return {string} - */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this - */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Pagination pagination = 3; - * @return {?proto.clarifai.api.Pagination} + * optional Collector collector = 2; + * @return {?proto.clarifai.api.Collector} */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.getPagination = function() { - return /** @type{?proto.clarifai.api.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); +proto.clarifai.api.SingleCollectorResponse.prototype.getCollector = function() { + return /** @type{?proto.clarifai.api.Collector} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); }; /** - * @param {?proto.clarifai.api.Pagination|undefined} value - * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this + * @param {?proto.clarifai.api.Collector|undefined} value + * @return {!proto.clarifai.api.SingleCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.SingleCollectorResponse.prototype.setCollector = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostSearchesByIDRequest} returns this + * @return {!proto.clarifai.api.SingleCollectorResponse} returns this */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); +proto.clarifai.api.SingleCollectorResponse.prototype.clearCollector = function() { + return this.setCollector(undefined); }; @@ -34443,12 +66868,19 @@ proto.clarifai.api.PostSearchesByIDRequest.prototype.clearPagination = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostSearchesByIDRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.SingleCollectorResponse.prototype.hasCollector = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostStatValuesRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -34464,8 +66896,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteSearchRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteSearchRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostStatValuesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostStatValuesRequest.toObject(opt_includeInstance, this); }; @@ -34474,14 +66906,15 @@ proto.clarifai.api.DeleteSearchRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteSearchRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostStatValuesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteSearchRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostStatValuesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, "") + statValuesList: jspb.Message.toObjectList(msg.getStatValuesList(), + proto_clarifai_api_resources_pb.StatValue.toObject, includeInstance) }; if (includeInstance) { @@ -34495,23 +66928,23 @@ proto.clarifai.api.DeleteSearchRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteSearchRequest} + * @return {!proto.clarifai.api.PostStatValuesRequest} */ -proto.clarifai.api.DeleteSearchRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostStatValuesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteSearchRequest; - return proto.clarifai.api.DeleteSearchRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostStatValuesRequest; + return proto.clarifai.api.PostStatValuesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteSearchRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostStatValuesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteSearchRequest} + * @return {!proto.clarifai.api.PostStatValuesRequest} */ -proto.clarifai.api.DeleteSearchRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostStatValuesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -34524,8 +66957,9 @@ proto.clarifai.api.DeleteSearchRequest.deserializeBinaryFromReader = function(ms msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new proto_clarifai_api_resources_pb.StatValue; + reader.readMessage(value,proto_clarifai_api_resources_pb.StatValue.deserializeBinaryFromReader); + msg.addStatValues(value); break; default: reader.skipField(); @@ -34540,9 +66974,9 @@ proto.clarifai.api.DeleteSearchRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteSearchRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostStatValuesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteSearchRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostStatValuesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -34550,11 +66984,11 @@ proto.clarifai.api.DeleteSearchRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteSearchRequest} message + * @param {!proto.clarifai.api.PostStatValuesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteSearchRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostStatValuesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -34564,11 +66998,12 @@ proto.clarifai.api.DeleteSearchRequest.serializeBinaryToWriter = function(messag proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getId(); + f = message.getStatValuesList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.StatValue.serializeBinaryToWriter ); } }; @@ -34578,7 +67013,7 @@ proto.clarifai.api.DeleteSearchRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteSearchRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostStatValuesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -34586,18 +67021,18 @@ proto.clarifai.api.DeleteSearchRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteSearchRequest} returns this + * @return {!proto.clarifai.api.PostStatValuesRequest} returns this */ -proto.clarifai.api.DeleteSearchRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostStatValuesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteSearchRequest} returns this + * @return {!proto.clarifai.api.PostStatValuesRequest} returns this */ -proto.clarifai.api.DeleteSearchRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostStatValuesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -34606,26 +67041,46 @@ proto.clarifai.api.DeleteSearchRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteSearchRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostStatValuesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string id = 2; - * @return {string} + * repeated StatValue stat_values = 2; + * @return {!Array} */ -proto.clarifai.api.DeleteSearchRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.PostStatValuesRequest.prototype.getStatValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValue, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DeleteSearchRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostStatValuesRequest} returns this +*/ +proto.clarifai.api.PostStatValuesRequest.prototype.setStatValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.StatValue=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.StatValue} + */ +proto.clarifai.api.PostStatValuesRequest.prototype.addStatValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostStatValuesRequest} returns this */ -proto.clarifai.api.DeleteSearchRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.PostStatValuesRequest.prototype.clearStatValuesList = function() { + return this.setStatValuesList([]); }; @@ -34635,7 +67090,7 @@ proto.clarifai.api.DeleteSearchRequest.prototype.setId = function(value) { * @private {!Array} * @const */ -proto.clarifai.api.PostAnnotationsSearchesRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiStatValueResponse.repeatedFields_ = [2]; @@ -34652,8 +67107,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostAnnotationsSearchesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiStatValueResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiStatValueResponse.toObject(opt_includeInstance, this); }; @@ -34662,16 +67117,15 @@ proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostAnnotationsSearchesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiStatValueResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAnnotationsSearchesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiStatValueResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - searchesList: jspb.Message.toObjectList(msg.getSearchesList(), - proto_clarifai_api_resources_pb.Search.toObject, includeInstance), - pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + statValuesList: jspb.Message.toObjectList(msg.getStatValuesList(), + proto_clarifai_api_resources_pb.StatValue.toObject, includeInstance) }; if (includeInstance) { @@ -34685,23 +67139,23 @@ proto.clarifai.api.PostAnnotationsSearchesRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} + * @return {!proto.clarifai.api.MultiStatValueResponse} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiStatValueResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostAnnotationsSearchesRequest; - return proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiStatValueResponse; + return proto.clarifai.api.MultiStatValueResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostAnnotationsSearchesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiStatValueResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} + * @return {!proto.clarifai.api.MultiStatValueResponse} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiStatValueResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -34709,19 +67163,14 @@ proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.addSearches(value); - break; - case 3: - var value = new proto.clarifai.api.Pagination; - reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); + var value = new proto_clarifai_api_resources_pb.StatValue; + reader.readMessage(value,proto_clarifai_api_resources_pb.StatValue.deserializeBinaryFromReader); + msg.addStatValues(value); break; default: reader.skipField(); @@ -34736,9 +67185,9 @@ proto.clarifai.api.PostAnnotationsSearchesRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiStatValueResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostAnnotationsSearchesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiStatValueResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -34746,64 +67195,56 @@ proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostAnnotationsSearchesRequest} message + * @param {!proto.clarifai.api.MultiStatValueResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAnnotationsSearchesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiStatValueResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getSearchesList(); + f = message.getStatValuesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.Pagination.serializeBinaryToWriter + proto_clarifai_api_resources_pb.StatValue.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiStatValueResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiStatValueResponse} returns this */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiStatValueResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this + * @return {!proto.clarifai.api.MultiStatValueResponse} returns this */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiStatValueResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -34811,86 +67252,56 @@ proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearUserAppId = fun * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiStatValueResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Search searches = 2; - * @return {!Array} + * repeated StatValue stat_values = 2; + * @return {!Array} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.getSearchesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 2)); +proto.clarifai.api.MultiStatValueResponse.prototype.getStatValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValue, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiStatValueResponse} returns this */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.setSearchesList = function(value) { +proto.clarifai.api.MultiStatValueResponse.prototype.setStatValuesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Search=} opt_value + * @param {!proto.clarifai.api.StatValue=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Search} + * @return {!proto.clarifai.api.StatValue} */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Search, opt_index); +proto.clarifai.api.MultiStatValueResponse.prototype.addStatValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValue, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this - */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearSearchesList = function() { - return this.setSearchesList([]); -}; - - -/** - * optional Pagination pagination = 3; - * @return {?proto.clarifai.api.Pagination} + * @return {!proto.clarifai.api.MultiStatValueResponse} returns this */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.getPagination = function() { - return /** @type{?proto.clarifai.api.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); -}; - - -/** - * @param {?proto.clarifai.api.Pagination|undefined} value - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this -*/ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.clarifai.api.MultiStatValueResponse.prototype.clearStatValuesList = function() { + return this.setStatValuesList([]); }; -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAnnotationsSearchesRequest} returns this - */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.PostAnnotationsSearchesRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 3) != null; -}; - - +proto.clarifai.api.PostStatValuesAggregateRequest.repeatedFields_ = [2]; @@ -34907,8 +67318,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostStatValuesAggregateRequest.toObject(opt_includeInstance, this); }; @@ -34917,14 +67328,15 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.toObject = fun * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostStatValuesAggregateRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostStatValuesAggregateRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, "") + statValueAggregateQueriesList: jspb.Message.toObjectList(msg.getStatValueAggregateQueriesList(), + proto_clarifai_api_resources_pb.StatValueAggregateQuery.toObject, includeInstance) }; if (includeInstance) { @@ -34938,23 +67350,23 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteAnnotationSearchMetricsRequest; - return proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostStatValuesAggregateRequest; + return proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostStatValuesAggregateRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -34967,8 +67379,9 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromRea msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + var value = new proto_clarifai_api_resources_pb.StatValueAggregateQuery; + reader.readMessage(value,proto_clarifai_api_resources_pb.StatValueAggregateQuery.deserializeBinaryFromReader); + msg.addStatValueAggregateQueries(value); break; default: reader.skipField(); @@ -34983,9 +67396,9 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostStatValuesAggregateRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -34993,11 +67406,11 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} message + * @param {!proto.clarifai.api.PostStatValuesAggregateRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostStatValuesAggregateRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -35007,11 +67420,12 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getId(); + f = message.getStatValueAggregateQueriesList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.StatValueAggregateQuery.serializeBinaryToWriter ); } }; @@ -35021,7 +67435,7 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.serializeBinaryToWriter * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -35029,18 +67443,18 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.getUserAppId = /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -35049,26 +67463,46 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.clearUserAppId * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string id = 2; - * @return {string} + * repeated StatValueAggregateQuery stat_value_aggregate_queries = 2; + * @return {!Array} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.getStatValueAggregateQueriesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValueAggregateQuery, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.DeleteAnnotationSearchMetricsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this +*/ +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.setStatValueAggregateQueriesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.StatValueAggregateQuery=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.StatValueAggregateQuery} */ -proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.addStatValueAggregateQueries = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValueAggregateQuery, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this + */ +proto.clarifai.api.PostStatValuesAggregateRequest.prototype.clearStatValueAggregateQueriesList = function() { + return this.setStatValueAggregateQueriesList([]); }; @@ -35078,7 +67512,7 @@ proto.clarifai.api.DeleteAnnotationSearchMetricsRequest.prototype.setId = functi * @private {!Array} * @const */ -proto.clarifai.api.PostInputsSearchesRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiStatValueAggregateResponse.repeatedFields_ = [2]; @@ -35095,8 +67529,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostInputsSearchesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiStatValueAggregateResponse.toObject(opt_includeInstance, this); }; @@ -35105,16 +67539,15 @@ proto.clarifai.api.PostInputsSearchesRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostInputsSearchesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiStatValueAggregateResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostInputsSearchesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiStatValueAggregateResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - searchesList: jspb.Message.toObjectList(msg.getSearchesList(), - proto_clarifai_api_resources_pb.Search.toObject, includeInstance), - pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + statValueAggregateResultsList: jspb.Message.toObjectList(msg.getStatValueAggregateResultsList(), + proto_clarifai_api_resources_pb.StatValueAggregateResult.toObject, includeInstance) }; if (includeInstance) { @@ -35128,23 +67561,23 @@ proto.clarifai.api.PostInputsSearchesRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostInputsSearchesRequest} + * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} */ -proto.clarifai.api.PostInputsSearchesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostInputsSearchesRequest; - return proto.clarifai.api.PostInputsSearchesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiStatValueAggregateResponse; + return proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostInputsSearchesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiStatValueAggregateResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostInputsSearchesRequest} + * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} */ -proto.clarifai.api.PostInputsSearchesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -35152,19 +67585,14 @@ proto.clarifai.api.PostInputsSearchesRequest.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.addSearches(value); - break; - case 3: - var value = new proto.clarifai.api.Pagination; - reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); - msg.setPagination(value); + var value = new proto_clarifai_api_resources_pb.StatValueAggregateResult; + reader.readMessage(value,proto_clarifai_api_resources_pb.StatValueAggregateResult.deserializeBinaryFromReader); + msg.addStatValueAggregateResults(value); break; default: reader.skipField(); @@ -35179,9 +67607,9 @@ proto.clarifai.api.PostInputsSearchesRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostInputsSearchesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiStatValueAggregateResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -35189,64 +67617,56 @@ proto.clarifai.api.PostInputsSearchesRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostInputsSearchesRequest} message + * @param {!proto.clarifai.api.MultiStatValueAggregateResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostInputsSearchesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiStatValueAggregateResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getSearchesList(); + f = message.getStatValueAggregateResultsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getPagination(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clarifai.api.Pagination.serializeBinaryToWriter + proto_clarifai_api_resources_pb.StatValueAggregateResult.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this + * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -35254,83 +67674,46 @@ proto.clarifai.api.PostInputsSearchesRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Search searches = 2; - * @return {!Array} + * repeated StatValueAggregateResult stat_value_aggregate_results = 2; + * @return {!Array} */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.getSearchesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 2)); +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.getStatValueAggregateResultsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValueAggregateResult, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.setSearchesList = function(value) { +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.setStatValueAggregateResultsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Search=} opt_value + * @param {!proto.clarifai.api.StatValueAggregateResult=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Search} + * @return {!proto.clarifai.api.StatValueAggregateResult} */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.addSearches = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Search, opt_index); +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.addStatValueAggregateResults = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValueAggregateResult, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this - */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.clearSearchesList = function() { - return this.setSearchesList([]); -}; - - -/** - * optional Pagination pagination = 3; - * @return {?proto.clarifai.api.Pagination} - */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.getPagination = function() { - return /** @type{?proto.clarifai.api.Pagination} */ ( - jspb.Message.getWrapperField(this, proto.clarifai.api.Pagination, 3)); -}; - - -/** - * @param {?proto.clarifai.api.Pagination|undefined} value - * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this -*/ -proto.clarifai.api.PostInputsSearchesRequest.prototype.setPagination = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostInputsSearchesRequest} returns this - */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.clearPagination = function() { - return this.setPagination(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this */ -proto.clarifai.api.PostInputsSearchesRequest.prototype.hasPagination = function() { - return jspb.Message.getField(this, 3) != null; +proto.clarifai.api.MultiStatValueAggregateResponse.prototype.clearStatValueAggregateResultsList = function() { + return this.setStatValueAggregateResultsList([]); }; @@ -35350,8 +67733,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleSearchResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostTrendingMetricsViewRequest.toObject(opt_includeInstance, this); }; @@ -35360,14 +67743,15 @@ proto.clarifai.api.SingleSearchResponse.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleSearchResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleSearchResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostTrendingMetricsViewRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - search: (f = msg.getSearch()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + viewType: jspb.Message.getFieldWithDefault(msg, 2, ""), + objectId: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -35381,23 +67765,23 @@ proto.clarifai.api.SingleSearchResponse.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleSearchResponse} + * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} */ -proto.clarifai.api.SingleSearchResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleSearchResponse; - return proto.clarifai.api.SingleSearchResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostTrendingMetricsViewRequest; + return proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleSearchResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleSearchResponse} + * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} */ -proto.clarifai.api.SingleSearchResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -35405,14 +67789,17 @@ proto.clarifai.api.SingleSearchResponse.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; - case 5: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.setSearch(value); + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setViewType(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setObjectId(value); break; default: reader.skipField(); @@ -35427,9 +67814,9 @@ proto.clarifai.api.SingleSearchResponse.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleSearchResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleSearchResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -35437,56 +67824,62 @@ proto.clarifai.api.SingleSearchResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleSearchResponse} message + * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleSearchResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getSearch(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + f = message.getViewType(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getObjectId(); + if (f.length > 0) { + writer.writeString( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleSearchResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleSearchResponse} returns this +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this */ -proto.clarifai.api.SingleSearchResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleSearchResponse} returns this + * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this */ -proto.clarifai.api.SingleSearchResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -35494,56 +67887,48 @@ proto.clarifai.api.SingleSearchResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleSearchResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Search search = 5; - * @return {?proto.clarifai.api.Search} + * optional string view_type = 2; + * @return {string} */ -proto.clarifai.api.SingleSearchResponse.prototype.getSearch = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 5)); +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getViewType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.SingleSearchResponse} returns this -*/ -proto.clarifai.api.SingleSearchResponse.prototype.setSearch = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + * @param {string} value + * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this + */ +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setViewType = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleSearchResponse} returns this + * optional string object_id = 3; + * @return {string} */ -proto.clarifai.api.SingleSearchResponse.prototype.clearSearch = function() { - return this.setSearch(undefined); +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getObjectId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this */ -proto.clarifai.api.SingleSearchResponse.prototype.hasSearch = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setObjectId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiSearchResponse.repeatedFields_ = [3,5]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -35559,8 +67944,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiSearchResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiSearchResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject(opt_includeInstance, this); }; @@ -35569,19 +67954,16 @@ proto.clarifai.api.MultiSearchResponse.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiSearchResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiSearchResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - hitsList: jspb.Message.toObjectList(msg.getHitsList(), - proto_clarifai_api_resources_pb.Hit.toObject, includeInstance), - query: (f = msg.getQuery()) && proto_clarifai_api_resources_pb.Query.toObject(includeInstance, f), - searchesList: jspb.Message.toObjectList(msg.getSearchesList(), - proto_clarifai_api_resources_pb.Search.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + viewType: jspb.Message.getFieldWithDefault(msg, 2, ""), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -35595,23 +67977,23 @@ proto.clarifai.api.MultiSearchResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiSearchResponse} + * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} */ -proto.clarifai.api.MultiSearchResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiSearchResponse; - return proto.clarifai.api.MultiSearchResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListTrendingMetricsViewsRequest; + return proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiSearchResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiSearchResponse} + * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} */ -proto.clarifai.api.MultiSearchResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -35619,28 +68001,21 @@ proto.clarifai.api.MultiSearchResponse.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setViewType(value); break; case 3: - var value = new proto_clarifai_api_resources_pb.Hit; - reader.readMessage(value,proto_clarifai_api_resources_pb.Hit.deserializeBinaryFromReader); - msg.addHits(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); break; case 4: - var value = new proto_clarifai_api_resources_pb.Query; - reader.readMessage(value,proto_clarifai_api_resources_pb.Query.deserializeBinaryFromReader); - msg.setQuery(value); - break; - case 5: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.addSearches(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -35655,9 +68030,9 @@ proto.clarifai.api.MultiSearchResponse.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiSearchResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiSearchResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -35665,79 +68040,69 @@ proto.clarifai.api.MultiSearchResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiSearchResponse} message + * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiSearchResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getId(); + f = message.getViewType(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getHitsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 3, - f, - proto_clarifai_api_resources_pb.Hit.serializeBinaryToWriter + f ); } - f = message.getQuery(); - if (f != null) { - writer.writeMessage( + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( 4, - f, - proto_clarifai_api_resources_pb.Query.serializeBinaryToWriter - ); - } - f = message.getSearchesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiSearchResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiSearchResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this */ -proto.clarifai.api.MultiSearchResponse.prototype.setStatus = function(value) { +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiSearchResponse} returns this + * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this */ -proto.clarifai.api.MultiSearchResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -35745,142 +68110,72 @@ proto.clarifai.api.MultiSearchResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiSearchResponse.prototype.hasStatus = function() { +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string id = 2; + * optional string view_type = 2; * @return {string} */ -proto.clarifai.api.MultiSearchResponse.prototype.getId = function() { +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getViewType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.MultiSearchResponse} returns this + * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this */ -proto.clarifai.api.MultiSearchResponse.prototype.setId = function(value) { +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setViewType = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** - * repeated Hit hits = 3; - * @return {!Array} - */ -proto.clarifai.api.MultiSearchResponse.prototype.getHitsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Hit, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiSearchResponse} returns this -*/ -proto.clarifai.api.MultiSearchResponse.prototype.setHitsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.Hit=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Hit} - */ -proto.clarifai.api.MultiSearchResponse.prototype.addHits = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Hit, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiSearchResponse} returns this - */ -proto.clarifai.api.MultiSearchResponse.prototype.clearHitsList = function() { - return this.setHitsList([]); -}; - - -/** - * optional Query query = 4; - * @return {?proto.clarifai.api.Query} + * optional uint32 page = 3; + * @return {number} */ -proto.clarifai.api.MultiSearchResponse.prototype.getQuery = function() { - return /** @type{?proto.clarifai.api.Query} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Query, 4)); -}; - - -/** - * @param {?proto.clarifai.api.Query|undefined} value - * @return {!proto.clarifai.api.MultiSearchResponse} returns this -*/ -proto.clarifai.api.MultiSearchResponse.prototype.setQuery = function(value) { - return jspb.Message.setWrapperField(this, 4, value); +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiSearchResponse} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this */ -proto.clarifai.api.MultiSearchResponse.prototype.clearQuery = function() { - return this.setQuery(undefined); +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional uint32 per_page = 4; + * @return {number} */ -proto.clarifai.api.MultiSearchResponse.prototype.hasQuery = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * repeated Search searches = 5; - * @return {!Array} + * @param {number} value + * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this */ -proto.clarifai.api.MultiSearchResponse.prototype.getSearchesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Search, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiSearchResponse} returns this -*/ -proto.clarifai.api.MultiSearchResponse.prototype.setSearchesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); +proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; -/** - * @param {!proto.clarifai.api.Search=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Search} - */ -proto.clarifai.api.MultiSearchResponse.prototype.addSearches = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Search, opt_index); -}; - /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiSearchResponse} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.MultiSearchResponse.prototype.clearSearchesList = function() { - return this.setSearchesList([]); -}; - - +proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_ = [2]; @@ -35897,8 +68192,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject(opt_includeInstance, this); }; @@ -35907,18 +68202,15 @@ proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, ""), - groundTruth: (f = msg.getGroundTruth()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), - searchToEval: (f = msg.getSearchToEval()) && proto_clarifai_api_resources_pb.Search.toObject(includeInstance, f), - data: (f = msg.getData()) && proto_clarifai_api_resources_pb.Data.toObject(includeInstance, f), - evaluationType: jspb.Message.getFieldWithDefault(msg, 6, 0) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + metricsList: jspb.Message.toObjectList(msg.getMetricsList(), + proto_clarifai_api_resources_pb.TrendingMetric.toObject, includeInstance) }; if (includeInstance) { @@ -35932,23 +68224,23 @@ proto.clarifai.api.PostAnnotationSearchMetricsRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostAnnotationSearchMetricsRequest; - return proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiTrendingMetricsViewResponse; + return proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -35956,32 +68248,14 @@ proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.setGroundTruth(value); - break; - case 4: - var value = new proto_clarifai_api_resources_pb.Search; - reader.readMessage(value,proto_clarifai_api_resources_pb.Search.deserializeBinaryFromReader); - msg.setSearchToEval(value); - break; - case 5: - var value = new proto_clarifai_api_resources_pb.Data; - reader.readMessage(value,proto_clarifai_api_resources_pb.Data.deserializeBinaryFromReader); - msg.setData(value); - break; - case 6: - var value = /** @type {!proto.clarifai.api.EvaluationType} */ (reader.readEnum()); - msg.setEvaluationType(value); + var value = new proto_clarifai_api_resources_pb.TrendingMetric; + reader.readMessage(value,proto_clarifai_api_resources_pb.TrendingMetric.deserializeBinaryFromReader); + msg.addMetrics(value); break; default: reader.skipField(); @@ -35996,9 +68270,9 @@ proto.clarifai.api.PostAnnotationSearchMetricsRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -36006,178 +68280,56 @@ proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} message + * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getId(); + f = message.getMetricsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getGroundTruth(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getSearchToEval(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto_clarifai_api_resources_pb.Search.serializeBinaryToWriter - ); - } - f = message.getData(); - if (f != null) { - writer.writeMessage( - 5, f, - proto_clarifai_api_resources_pb.Data.serializeBinaryToWriter - ); - } - f = message.getEvaluationType(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f + proto_clarifai_api_resources_pb.TrendingMetric.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string id = 2; - * @return {string} - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Search ground_truth = 3; - * @return {?proto.clarifai.api.Search} - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getGroundTruth = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 3)); -}; - - -/** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this -*/ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setGroundTruth = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearGroundTruth = function() { - return this.setGroundTruth(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasGroundTruth = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Search search_to_eval = 4; - * @return {?proto.clarifai.api.Search} - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getSearchToEval = function() { - return /** @type{?proto.clarifai.api.Search} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Search, 4)); -}; - - -/** - * @param {?proto.clarifai.api.Search|undefined} value - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this -*/ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setSearchToEval = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearSearchToEval = function() { - return this.setSearchToEval(undefined); +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -36185,66 +68337,56 @@ proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearSearchToEva * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasSearchToEval = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional Data data = 5; - * @return {?proto.clarifai.api.Data} + * repeated TrendingMetric metrics = 2; + * @return {!Array} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getData = function() { - return /** @type{?proto.clarifai.api.Data} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Data, 5)); +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getMetricsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TrendingMetric, 2)); }; /** - * @param {?proto.clarifai.api.Data|undefined} value - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setData = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setMetricsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this + * @param {!proto.clarifai.api.TrendingMetric=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.TrendingMetric} */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.clearData = function() { - return this.setData(undefined); +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.addMetrics = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.TrendingMetric, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.hasData = function() { - return jspb.Message.getField(this, 5) != null; +proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearMetricsList = function() { + return this.setMetricsList([]); }; -/** - * optional EvaluationType evaluation_type = 6; - * @return {!proto.clarifai.api.EvaluationType} - */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.getEvaluationType = function() { - return /** @type {!proto.clarifai.api.EvaluationType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - /** - * @param {!proto.clarifai.api.EvaluationType} value - * @return {!proto.clarifai.api.PostAnnotationSearchMetricsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.PostAnnotationSearchMetricsRequest.prototype.setEvaluationType = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - +proto.clarifai.api.GetModuleRequest.repeatedFields_ = [3]; @@ -36261,8 +68403,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetModuleRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModuleRequest.toObject(opt_includeInstance, this); }; @@ -36271,14 +68413,15 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetModuleRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetModuleRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - id: jspb.Message.getFieldWithDefault(msg, 2, "") + moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -36292,23 +68435,23 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.GetModuleRequest} */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetModuleRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetAnnotationSearchMetricsRequest; - return proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetModuleRequest; + return proto.clarifai.api.GetModuleRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetModuleRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.GetModuleRequest} */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetModuleRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -36322,7 +68465,11 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setId(value); + msg.setModuleId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); break; default: reader.skipField(); @@ -36337,9 +68484,9 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetModuleRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetModuleRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -36347,11 +68494,11 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} message + * @param {!proto.clarifai.api.GetModuleRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetModuleRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -36361,13 +68508,20 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter = f proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getId(); + f = message.getModuleId(); if (f.length > 0) { writer.writeString( 2, f ); } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } }; @@ -36375,7 +68529,7 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.serializeBinaryToWriter = f * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetModuleRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -36383,18 +68537,18 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.getUserAppId = fu /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.GetModuleRequest} returns this */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetModuleRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.GetModuleRequest} returns this */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetModuleRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -36403,29 +68557,100 @@ proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.clearUserAppId = * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetModuleRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string id = 2; + * optional string module_id = 2; * @return {string} */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.getId = function() { +proto.clarifai.api.GetModuleRequest.prototype.getModuleId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.GetAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.GetModuleRequest} returns this */ -proto.clarifai.api.GetAnnotationSearchMetricsRequest.prototype.setId = function(value) { +proto.clarifai.api.GetModuleRequest.prototype.setModuleId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * repeated string additional_fields = 3; + * @return {!Array} + */ +proto.clarifai.api.GetModuleRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.GetModuleRequest} returns this + */ +proto.clarifai.api.GetModuleRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.GetModuleRequest} returns this + */ +proto.clarifai.api.GetModuleRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.GetModuleRequest} returns this + */ +proto.clarifai.api.GetModuleRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.ListModulesRequest.repeatedFields_ = [5]; + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.clarifai.api.ListModulesRequest.oneofGroups_ = [[7,8,9]]; + +/** + * @enum {number} + */ +proto.clarifai.api.ListModulesRequest.SortByCase = { + SORT_BY_NOT_SET: 0, + SORT_BY_CREATED_AT: 7, + SORT_BY_STAR_COUNT: 8, + SORT_BY_MODIFIED_AT: 9 +}; + +/** + * @return {proto.clarifai.api.ListModulesRequest.SortByCase} + */ +proto.clarifai.api.ListModulesRequest.prototype.getSortByCase = function() { + return /** @type {proto.clarifai.api.ListModulesRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListModulesRequest.oneofGroups_[0])); +}; @@ -36442,8 +68667,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListAnnotationSearchMetricsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModulesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModulesRequest.toObject(opt_includeInstance, this); }; @@ -36452,13 +68677,22 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListModulesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListModulesRequest.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), + starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), + sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), + sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) }; if (includeInstance) { @@ -36472,23 +68706,23 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.ListModulesRequest} */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListModulesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListAnnotationSearchMetricsRequest; - return proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListModulesRequest; + return proto.clarifai.api.ListModulesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListModulesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} + * @return {!proto.clarifai.api.ListModulesRequest} */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListModulesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -36500,6 +68734,42 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReade reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; + case 2: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setStarredOnly(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.addAdditionalFields(value); + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortAscending(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByCreatedAt(value); + break; + case 8: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByStarCount(value); + break; + case 9: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortByModifiedAt(value); + break; + case 10: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setBookmark(value); + break; default: reader.skipField(); break; @@ -36513,9 +68783,9 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListModulesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListModulesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -36523,11 +68793,11 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} message + * @param {!proto.clarifai.api.ListModulesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListModulesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -36537,6 +68807,69 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter = proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( + 2, + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getStarredOnly(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getAdditionalFieldsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 5, + f + ); + } + f = message.getSortAscending(); + if (f) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBool( + 7, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeBool( + 8, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeBool( + 9, + f + ); + } + f = message.getBookmark(); + if (f) { + writer.writeBool( + 10, + f + ); + } }; @@ -36544,7 +68877,7 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.serializeBinaryToWriter = * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListModulesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -36552,18 +68885,18 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.getUserAppId = f /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListModulesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListAnnotationSearchMetricsRequest} returns this + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListModulesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -36572,172 +68905,144 @@ proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.clearUserAppId = * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAnnotationSearchMetricsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListModulesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * optional uint32 page = 2; + * @return {number} + */ +proto.clarifai.api.ListModulesRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {number} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.repeatedFields_ = [2]; +proto.clarifai.api.ListModulesRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListModulesRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + -if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} + * @param {number} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiAnnotationSearchMetricsResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModulesRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional bool starred_only = 4; + * @return {boolean} */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.toObject = function(includeInstance, msg) { - var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - annotationSearchMetricsList: jspb.Message.toObjectList(msg.getAnnotationSearchMetricsList(), - proto_clarifai_api_resources_pb.AnnotationSearchMetrics.toObject, includeInstance) - }; +proto.clarifai.api.ListModulesRequest.prototype.getStarredOnly = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.setStarredOnly = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} + * repeated string additional_fields = 5; + * @return {!Array} */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiAnnotationSearchMetricsResponse; - return proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinaryFromReader(msg, reader); +proto.clarifai.api.ListModulesRequest.prototype.getAdditionalFieldsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} + * @param {!Array} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); - break; - case 2: - var value = new proto_clarifai_api_resources_pb.AnnotationSearchMetrics; - reader.readMessage(value,proto_clarifai_api_resources_pb.AnnotationSearchMetrics.deserializeBinaryFromReader); - msg.addAnnotationSearchMetrics(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.clarifai.api.ListModulesRequest.prototype.setAdditionalFieldsList = function(value) { + return jspb.Message.setField(this, 5, value || []); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiAnnotationSearchMetricsResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.clarifai.api.ListModulesRequest.prototype.addAdditionalFields = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter - ); - } - f = message.getAnnotationSearchMetricsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto_clarifai_api_resources_pb.AnnotationSearchMetrics.serializeBinaryToWriter - ); - } +proto.clarifai.api.ListModulesRequest.prototype.clearAdditionalFieldsList = function() { + return this.setAdditionalFieldsList([]); }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional bool sort_ascending = 6; + * @return {boolean} */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.ListModulesRequest.prototype.getSortAscending = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this -*/ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {boolean} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.setSortAscending = function(value) { + return jspb.Message.setProto3BooleanField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this + * optional bool sort_by_created_at = 7; + * @return {boolean} */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListModulesRequest.prototype.getSortByCreatedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.setSortByCreatedAt = function(value) { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListModulesRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.clearSortByCreatedAt = function() { + return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListModulesRequest.oneofGroups_[0], undefined); }; @@ -36745,50 +69050,109 @@ proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.clearStatus = * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.ListModulesRequest.prototype.hasSortByCreatedAt = function() { + return jspb.Message.getField(this, 7) != null; }; /** - * repeated AnnotationSearchMetrics annotation_search_metrics = 2; - * @return {!Array} + * optional bool sort_by_star_count = 8; + * @return {boolean} */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.getAnnotationSearchMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AnnotationSearchMetrics, 2)); +proto.clarifai.api.ListModulesRequest.prototype.getSortByStarCount = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this -*/ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.setAnnotationSearchMetricsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {boolean} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.setSortByStarCount = function(value) { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListModulesRequest.oneofGroups_[0], value); }; /** - * @param {!proto.clarifai.api.AnnotationSearchMetrics=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.AnnotationSearchMetrics} + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModulesRequest} returns this */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.addAnnotationSearchMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AnnotationSearchMetrics, opt_index); +proto.clarifai.api.ListModulesRequest.prototype.clearSortByStarCount = function() { + return jspb.Message.setOneofField(this, 8, proto.clarifai.api.ListModulesRequest.oneofGroups_[0], undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiAnnotationSearchMetricsResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiAnnotationSearchMetricsResponse.prototype.clearAnnotationSearchMetricsList = function() { - return this.setAnnotationSearchMetricsList([]); +proto.clarifai.api.ListModulesRequest.prototype.hasSortByStarCount = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional bool sort_by_modified_at = 9; + * @return {boolean} + */ +proto.clarifai.api.ListModulesRequest.prototype.getSortByModifiedAt = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.setSortByModifiedAt = function(value) { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListModulesRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.clearSortByModifiedAt = function() { + return jspb.Message.setOneofField(this, 9, proto.clarifai.api.ListModulesRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModulesRequest.prototype.hasSortByModifiedAt = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional bool bookmark = 10; + * @return {boolean} + */ +proto.clarifai.api.ListModulesRequest.prototype.getBookmark = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.setBookmark = function(value) { + return jspb.Message.setProto3BooleanField(this, 10, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostModulesRequest.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -36804,8 +69168,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostValidatePasswordRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModulesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModulesRequest.toObject(opt_includeInstance, this); }; @@ -36814,14 +69178,15 @@ proto.clarifai.api.PostValidatePasswordRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostValidatePasswordRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModulesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostValidatePasswordRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModulesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - password: (f = msg.getPassword()) && proto_clarifai_api_resources_pb.Password.toObject(includeInstance, f) + modulesList: jspb.Message.toObjectList(msg.getModulesList(), + proto_clarifai_api_resources_pb.Module.toObject, includeInstance) }; if (includeInstance) { @@ -36835,23 +69200,23 @@ proto.clarifai.api.PostValidatePasswordRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostValidatePasswordRequest} + * @return {!proto.clarifai.api.PostModulesRequest} */ -proto.clarifai.api.PostValidatePasswordRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModulesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostValidatePasswordRequest; - return proto.clarifai.api.PostValidatePasswordRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModulesRequest; + return proto.clarifai.api.PostModulesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostValidatePasswordRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModulesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostValidatePasswordRequest} + * @return {!proto.clarifai.api.PostModulesRequest} */ -proto.clarifai.api.PostValidatePasswordRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModulesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -36863,10 +69228,10 @@ proto.clarifai.api.PostValidatePasswordRequest.deserializeBinaryFromReader = fun reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); msg.setUserAppId(value); break; - case 2: - var value = new proto_clarifai_api_resources_pb.Password; - reader.readMessage(value,proto_clarifai_api_resources_pb.Password.deserializeBinaryFromReader); - msg.setPassword(value); + case 3: + var value = new proto_clarifai_api_resources_pb.Module; + reader.readMessage(value,proto_clarifai_api_resources_pb.Module.deserializeBinaryFromReader); + msg.addModules(value); break; default: reader.skipField(); @@ -36881,9 +69246,9 @@ proto.clarifai.api.PostValidatePasswordRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModulesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostValidatePasswordRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModulesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -36891,11 +69256,11 @@ proto.clarifai.api.PostValidatePasswordRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostValidatePasswordRequest} message + * @param {!proto.clarifai.api.PostModulesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostValidatePasswordRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModulesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -36905,12 +69270,12 @@ proto.clarifai.api.PostValidatePasswordRequest.serializeBinaryToWriter = functio proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getPassword(); - if (f != null) { - writer.writeMessage( - 2, + f = message.getModulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, f, - proto_clarifai_api_resources_pb.Password.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Module.serializeBinaryToWriter ); } }; @@ -36920,7 +69285,7 @@ proto.clarifai.api.PostValidatePasswordRequest.serializeBinaryToWriter = functio * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModulesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -36928,18 +69293,18 @@ proto.clarifai.api.PostValidatePasswordRequest.prototype.getUserAppId = function /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this + * @return {!proto.clarifai.api.PostModulesRequest} returns this */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModulesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this + * @return {!proto.clarifai.api.PostModulesRequest} returns this */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModulesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -36948,49 +69313,57 @@ proto.clarifai.api.PostValidatePasswordRequest.prototype.clearUserAppId = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModulesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Password password = 2; - * @return {?proto.clarifai.api.Password} + * repeated Module modules = 3; + * @return {!Array} */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.getPassword = function() { - return /** @type{?proto.clarifai.api.Password} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Password, 2)); +proto.clarifai.api.PostModulesRequest.prototype.getModulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Module, 3)); }; /** - * @param {?proto.clarifai.api.Password|undefined} value - * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostModulesRequest} returns this */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.setPassword = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.PostModulesRequest.prototype.setModulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostValidatePasswordRequest} returns this + * @param {!proto.clarifai.api.Module=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Module} */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.clearPassword = function() { - return this.setPassword(undefined); +proto.clarifai.api.PostModulesRequest.prototype.addModules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Module, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostModulesRequest} returns this */ -proto.clarifai.api.PostValidatePasswordRequest.prototype.hasPassword = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PostModulesRequest.prototype.clearModulesList = function() { + return this.setModulesList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PatchModulesRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -37006,8 +69379,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SinglePasswordValidationResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PatchModulesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PatchModulesRequest.toObject(opt_includeInstance, this); }; @@ -37016,14 +69389,16 @@ proto.clarifai.api.SinglePasswordValidationResponse.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SinglePasswordValidationResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PatchModulesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SinglePasswordValidationResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PatchModulesRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - passwordViolations: (f = msg.getPasswordViolations()) && proto_clarifai_api_resources_pb.PasswordViolations.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + modulesList: jspb.Message.toObjectList(msg.getModulesList(), + proto_clarifai_api_resources_pb.Module.toObject, includeInstance), + action: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -37037,23 +69412,23 @@ proto.clarifai.api.SinglePasswordValidationResponse.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SinglePasswordValidationResponse} + * @return {!proto.clarifai.api.PatchModulesRequest} */ -proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PatchModulesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SinglePasswordValidationResponse; - return proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PatchModulesRequest; + return proto.clarifai.api.PatchModulesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SinglePasswordValidationResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PatchModulesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SinglePasswordValidationResponse} + * @return {!proto.clarifai.api.PatchModulesRequest} */ -proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PatchModulesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -37061,14 +69436,18 @@ proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.PasswordViolations; - reader.readMessage(value,proto_clarifai_api_resources_pb.PasswordViolations.deserializeBinaryFromReader); - msg.setPasswordViolations(value); + var value = new proto_clarifai_api_resources_pb.Module; + reader.readMessage(value,proto_clarifai_api_resources_pb.Module.deserializeBinaryFromReader); + msg.addModules(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setAction(value); break; default: reader.skipField(); @@ -37083,9 +69462,9 @@ proto.clarifai.api.SinglePasswordValidationResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PatchModulesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SinglePasswordValidationResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PatchModulesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -37093,56 +69472,63 @@ proto.clarifai.api.SinglePasswordValidationResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SinglePasswordValidationResponse} message + * @param {!proto.clarifai.api.PatchModulesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SinglePasswordValidationResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PatchModulesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getPasswordViolations(); - if (f != null) { - writer.writeMessage( + f = message.getModulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.PasswordViolations.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Module.serializeBinaryToWriter + ); + } + f = message.getAction(); + if (f.length > 0) { + writer.writeString( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PatchModulesRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PatchModulesRequest} returns this */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PatchModulesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this + * @return {!proto.clarifai.api.PatchModulesRequest} returns this */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PatchModulesRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -37150,45 +69536,64 @@ proto.clarifai.api.SinglePasswordValidationResponse.prototype.clearStatus = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.hasStatus = function() { +proto.clarifai.api.PatchModulesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional PasswordViolations password_violations = 2; - * @return {?proto.clarifai.api.PasswordViolations} + * repeated Module modules = 2; + * @return {!Array} */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.getPasswordViolations = function() { - return /** @type{?proto.clarifai.api.PasswordViolations} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.PasswordViolations, 2)); +proto.clarifai.api.PatchModulesRequest.prototype.getModulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Module, 2)); }; /** - * @param {?proto.clarifai.api.PasswordViolations|undefined} value - * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PatchModulesRequest} returns this */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.setPasswordViolations = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.PatchModulesRequest.prototype.setModulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SinglePasswordValidationResponse} returns this + * @param {!proto.clarifai.api.Module=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Module} */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.clearPasswordViolations = function() { - return this.setPasswordViolations(undefined); +proto.clarifai.api.PatchModulesRequest.prototype.addModules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Module, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PatchModulesRequest} returns this */ -proto.clarifai.api.SinglePasswordValidationResponse.prototype.hasPasswordViolations = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.PatchModulesRequest.prototype.clearModulesList = function() { + return this.setModulesList([]); +}; + + +/** + * optional string action = 3; + * @return {string} + */ +proto.clarifai.api.PatchModulesRequest.prototype.getAction = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PatchModulesRequest} returns this + */ +proto.clarifai.api.PatchModulesRequest.prototype.setAction = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -37198,7 +69603,7 @@ proto.clarifai.api.SinglePasswordValidationResponse.prototype.hasPasswordViolati * @private {!Array} * @const */ -proto.clarifai.api.GetWorkflowRequest.repeatedFields_ = [4]; +proto.clarifai.api.DeleteModulesRequest.repeatedFields_ = [2]; @@ -37215,8 +69620,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetWorkflowRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteModulesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteModulesRequest.toObject(opt_includeInstance, this); }; @@ -37225,16 +69630,14 @@ proto.clarifai.api.GetWorkflowRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetWorkflowRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteModulesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetWorkflowRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteModulesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - favorClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -37248,23 +69651,23 @@ proto.clarifai.api.GetWorkflowRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetWorkflowRequest} + * @return {!proto.clarifai.api.DeleteModulesRequest} */ -proto.clarifai.api.GetWorkflowRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteModulesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetWorkflowRequest; - return proto.clarifai.api.GetWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteModulesRequest; + return proto.clarifai.api.DeleteModulesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteModulesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetWorkflowRequest} + * @return {!proto.clarifai.api.DeleteModulesRequest} */ -proto.clarifai.api.GetWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteModulesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -37278,15 +69681,7 @@ proto.clarifai.api.GetWorkflowRequest.deserializeBinaryFromReader = function(msg break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFavorClarifaiWorkflows(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addAdditionalFields(value); + msg.addIds(value); break; default: reader.skipField(); @@ -37301,9 +69696,9 @@ proto.clarifai.api.GetWorkflowRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetWorkflowRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteModulesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteModulesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -37311,11 +69706,11 @@ proto.clarifai.api.GetWorkflowRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetWorkflowRequest} message + * @param {!proto.clarifai.api.DeleteModulesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteModulesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -37325,24 +69720,10 @@ proto.clarifai.api.GetWorkflowRequest.serializeBinaryToWriter = function(message proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getFavorClarifaiWorkflows(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getAdditionalFieldsList(); + f = message.getIdsList(); if (f.length > 0) { writer.writeRepeatedString( - 4, + 2, f ); } @@ -37353,7 +69734,7 @@ proto.clarifai.api.GetWorkflowRequest.serializeBinaryToWriter = function(message * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetWorkflowRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteModulesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -37361,18 +69742,18 @@ proto.clarifai.api.GetWorkflowRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetWorkflowRequest} returns this + * @return {!proto.clarifai.api.DeleteModulesRequest} returns this */ -proto.clarifai.api.GetWorkflowRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteModulesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetWorkflowRequest} returns this + * @return {!proto.clarifai.api.DeleteModulesRequest} returns this */ -proto.clarifai.api.GetWorkflowRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteModulesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -37381,118 +69762,49 @@ proto.clarifai.api.GetWorkflowRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetWorkflowRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteModulesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; - * @return {string} - */ -proto.clarifai.api.GetWorkflowRequest.prototype.getWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.GetWorkflowRequest} returns this - */ -proto.clarifai.api.GetWorkflowRequest.prototype.setWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool favor_clarifai_workflows = 3; - * @return {boolean} - */ -proto.clarifai.api.GetWorkflowRequest.prototype.getFavorClarifaiWorkflows = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.GetWorkflowRequest} returns this - */ -proto.clarifai.api.GetWorkflowRequest.prototype.setFavorClarifaiWorkflows = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * repeated string additional_fields = 4; + * repeated string ids = 2; * @return {!Array} */ -proto.clarifai.api.GetWorkflowRequest.prototype.getAdditionalFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.clarifai.api.DeleteModulesRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array} value - * @return {!proto.clarifai.api.GetWorkflowRequest} returns this + * @return {!proto.clarifai.api.DeleteModulesRequest} returns this */ -proto.clarifai.api.GetWorkflowRequest.prototype.setAdditionalFieldsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.DeleteModulesRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.GetWorkflowRequest} returns this + * @return {!proto.clarifai.api.DeleteModulesRequest} returns this */ -proto.clarifai.api.GetWorkflowRequest.prototype.addAdditionalFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.DeleteModulesRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.GetWorkflowRequest} returns this + * @return {!proto.clarifai.api.DeleteModulesRequest} returns this */ -proto.clarifai.api.GetWorkflowRequest.prototype.clearAdditionalFieldsList = function() { - return this.setAdditionalFieldsList([]); +proto.clarifai.api.DeleteModulesRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.ListWorkflowsRequest.repeatedFields_ = [10]; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.clarifai.api.ListWorkflowsRequest.oneofGroups_ = [[6,7]]; - -/** - * @enum {number} - */ -proto.clarifai.api.ListWorkflowsRequest.SortByCase = { - SORT_BY_NOT_SET: 0, - SORT_BY_ID: 6, - SORT_BY_MODIFIED_AT: 7 -}; - -/** - * @return {proto.clarifai.api.ListWorkflowsRequest.SortByCase} - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getSortByCase = function() { - return /** @type {proto.clarifai.api.ListWorkflowsRequest.SortByCase} */(jspb.Message.computeOneofCase(this, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0])); -}; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -37508,8 +69820,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListWorkflowsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleModuleResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleModuleResponse.toObject(opt_includeInstance, this); }; @@ -37518,23 +69830,14 @@ proto.clarifai.api.ListWorkflowsRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListWorkflowsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleModuleResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListWorkflowsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleModuleResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), - sortAscending: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - sortById: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - query: jspb.Message.getFieldWithDefault(msg, 8, ""), - id: jspb.Message.getFieldWithDefault(msg, 4, ""), - featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), - additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + module: (f = msg.getModule()) && proto_clarifai_api_resources_pb.Module.toObject(includeInstance, f) }; if (includeInstance) { @@ -37548,23 +69851,23 @@ proto.clarifai.api.ListWorkflowsRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListWorkflowsRequest} + * @return {!proto.clarifai.api.SingleModuleResponse} */ -proto.clarifai.api.ListWorkflowsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleModuleResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListWorkflowsRequest; - return proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleModuleResponse; + return proto.clarifai.api.SingleModuleResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListWorkflowsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleModuleResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListWorkflowsRequest} + * @return {!proto.clarifai.api.SingleModuleResponse} */ -proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleModuleResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -37572,49 +69875,14 @@ proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortAscending(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortById(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSortByModifiedAt(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setQuery(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFeaturedOnly(value); - break; - case 11: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setStarredOnly(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.addAdditionalFields(value); + var value = new proto_clarifai_api_resources_pb.Module; + reader.readMessage(value,proto_clarifai_api_resources_pb.Module.deserializeBinaryFromReader); + msg.setModule(value); break; default: reader.skipField(); @@ -37629,9 +69897,9 @@ proto.clarifai.api.ListWorkflowsRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleModuleResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListWorkflowsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleModuleResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -37639,373 +69907,317 @@ proto.clarifai.api.ListWorkflowsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListWorkflowsRequest} message + * @param {!proto.clarifai.api.SingleModuleResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleModuleResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getSortAscending(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); - if (f != null) { - writer.writeBool( - 6, - f + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + f = message.getModule(); if (f != null) { - writer.writeBool( - 7, - f - ); - } - f = message.getQuery(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getFeaturedOnly(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getStarredOnly(); - if (f) { - writer.writeBool( - 11, - f - ); - } - f = message.getAdditionalFieldsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 10, - f - ); - } -}; - - -/** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); -}; - - -/** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this -*/ -proto.clarifai.api.ListWorkflowsRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional uint32 page = 2; - * @return {number} - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional uint32 per_page = 3; - * @return {number} - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.Module.serializeBinaryToWriter + ); + } }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.SingleModuleResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * optional bool sort_ascending = 5; - * @return {boolean} - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getSortAscending = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleModuleResponse} returns this +*/ +proto.clarifai.api.SingleModuleResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleModuleResponse} returns this */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setSortAscending = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); +proto.clarifai.api.SingleModuleResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * optional bool sort_by_id = 6; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getSortById = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +proto.clarifai.api.SingleModuleResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * optional Module module = 2; + * @return {?proto.clarifai.api.Module} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setSortById = function(value) { - return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], value); +proto.clarifai.api.SingleModuleResponse.prototype.getModule = function() { + return /** @type{?proto.clarifai.api.Module} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Module, 2)); }; /** - * Clears the field making it undefined. - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.clearSortById = function() { - return jspb.Message.setOneofField(this, 6, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], undefined); + * @param {?proto.clarifai.api.Module|undefined} value + * @return {!proto.clarifai.api.SingleModuleResponse} returns this +*/ +proto.clarifai.api.SingleModuleResponse.prototype.setModule = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleModuleResponse} returns this */ -proto.clarifai.api.ListWorkflowsRequest.prototype.hasSortById = function() { - return jspb.Message.getField(this, 6) != null; +proto.clarifai.api.SingleModuleResponse.prototype.clearModule = function() { + return this.setModule(undefined); }; /** - * optional bool sort_by_modified_at = 7; + * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getSortByModifiedAt = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); +proto.clarifai.api.SingleModuleResponse.prototype.hasModule = function() { + return jspb.Message.getField(this, 2) != null; }; + /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setSortByModifiedAt = function(value) { - return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], value); -}; +proto.clarifai.api.MultiModuleResponse.repeatedFields_ = [2]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the field making it undefined. - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.clearSortByModifiedAt = function() { - return jspb.Message.setOneofField(this, 7, proto.clarifai.api.ListWorkflowsRequest.oneofGroups_[0], undefined); +proto.clarifai.api.MultiModuleResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModuleResponse.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.MultiModuleResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListWorkflowsRequest.prototype.hasSortByModifiedAt = function() { - return jspb.Message.getField(this, 7) != null; +proto.clarifai.api.MultiModuleResponse.toObject = function(includeInstance, msg) { + var f, obj = { + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + modulesList: jspb.Message.toObjectList(msg.getModulesList(), + proto_clarifai_api_resources_pb.Module.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional string query = 8; - * @return {string} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.MultiModuleResponse} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getQuery = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); +proto.clarifai.api.MultiModuleResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.MultiModuleResponse; + return proto.clarifai.api.MultiModuleResponse.deserializeBinaryFromReader(msg, reader); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.MultiModuleResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.MultiModuleResponse} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); +proto.clarifai.api.MultiModuleResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); + break; + case 2: + var value = new proto_clarifai_api_resources_pb.Module; + reader.readMessage(value,proto_clarifai_api_resources_pb.Module.deserializeBinaryFromReader); + msg.addModules(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional string id = 4; - * @return {string} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.clarifai.api.MultiModuleResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.MultiModuleResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {string} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.MultiModuleResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); +proto.clarifai.api.MultiModuleResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + ); + } + f = message.getModulesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto_clarifai_api_resources_pb.Module.serializeBinaryToWriter + ); + } }; /** - * optional bool featured_only = 9; - * @return {boolean} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getFeaturedOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); +proto.clarifai.api.MultiModuleResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setFeaturedOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiModuleResponse} returns this +*/ +proto.clarifai.api.MultiModuleResponse.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional bool starred_only = 11; - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.MultiModuleResponse} returns this */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getStarredOnly = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +proto.clarifai.api.MultiModuleResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setStarredOnly = function(value) { - return jspb.Message.setProto3BooleanField(this, 11, value); +proto.clarifai.api.MultiModuleResponse.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * repeated string additional_fields = 10; - * @return {!Array} + * repeated Module modules = 2; + * @return {!Array} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.getAdditionalFieldsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 10)); +proto.clarifai.api.MultiModuleResponse.prototype.getModulesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Module, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this - */ -proto.clarifai.api.ListWorkflowsRequest.prototype.setAdditionalFieldsList = function(value) { - return jspb.Message.setField(this, 10, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModuleResponse} returns this +*/ +proto.clarifai.api.MultiModuleResponse.prototype.setModulesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.Module=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * @return {!proto.clarifai.api.Module} */ -proto.clarifai.api.ListWorkflowsRequest.prototype.addAdditionalFields = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 10, value, opt_index); +proto.clarifai.api.MultiModuleResponse.prototype.addModules = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Module, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListWorkflowsRequest} returns this + * @return {!proto.clarifai.api.MultiModuleResponse} returns this */ -proto.clarifai.api.ListWorkflowsRequest.prototype.clearAdditionalFieldsList = function() { - return this.setAdditionalFieldsList([]); +proto.clarifai.api.MultiModuleResponse.prototype.clearModulesList = function() { + return this.setModulesList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostWorkflowsRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -38021,8 +70233,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostWorkflowsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetModuleVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetModuleVersionRequest.toObject(opt_includeInstance, this); }; @@ -38031,15 +70243,15 @@ proto.clarifai.api.PostWorkflowsRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostWorkflowsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetModuleVersionRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetModuleVersionRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowsList: jspb.Message.toObjectList(msg.getWorkflowsList(), - proto_clarifai_api_resources_pb.Workflow.toObject, includeInstance) + moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""), + moduleVersionId: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -38053,23 +70265,23 @@ proto.clarifai.api.PostWorkflowsRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostWorkflowsRequest} + * @return {!proto.clarifai.api.GetModuleVersionRequest} */ -proto.clarifai.api.PostWorkflowsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetModuleVersionRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostWorkflowsRequest; - return proto.clarifai.api.PostWorkflowsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetModuleVersionRequest; + return proto.clarifai.api.GetModuleVersionRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostWorkflowsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetModuleVersionRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostWorkflowsRequest} + * @return {!proto.clarifai.api.GetModuleVersionRequest} */ -proto.clarifai.api.PostWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetModuleVersionRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -38082,9 +70294,12 @@ proto.clarifai.api.PostWorkflowsRequest.deserializeBinaryFromReader = function(m msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Workflow; - reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); - msg.addWorkflows(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModuleId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setModuleVersionId(value); break; default: reader.skipField(); @@ -38099,9 +70314,9 @@ proto.clarifai.api.PostWorkflowsRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostWorkflowsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetModuleVersionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostWorkflowsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetModuleVersionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -38109,11 +70324,11 @@ proto.clarifai.api.PostWorkflowsRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostWorkflowsRequest} message + * @param {!proto.clarifai.api.GetModuleVersionRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetModuleVersionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -38123,12 +70338,18 @@ proto.clarifai.api.PostWorkflowsRequest.serializeBinaryToWriter = function(messa proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowsList(); + f = message.getModuleId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter + f + ); + } + f = message.getModuleVersionId(); + if (f.length > 0) { + writer.writeString( + 3, + f ); } }; @@ -38138,7 +70359,7 @@ proto.clarifai.api.PostWorkflowsRequest.serializeBinaryToWriter = function(messa * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostWorkflowsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetModuleVersionRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -38146,18 +70367,18 @@ proto.clarifai.api.PostWorkflowsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this + * @return {!proto.clarifai.api.GetModuleVersionRequest} returns this */ -proto.clarifai.api.PostWorkflowsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetModuleVersionRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this + * @return {!proto.clarifai.api.GetModuleVersionRequest} returns this */ -proto.clarifai.api.PostWorkflowsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetModuleVersionRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -38166,57 +70387,48 @@ proto.clarifai.api.PostWorkflowsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostWorkflowsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetModuleVersionRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Workflow workflows = 2; - * @return {!Array} + * optional string module_id = 2; + * @return {string} */ -proto.clarifai.api.PostWorkflowsRequest.prototype.getWorkflowsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); +proto.clarifai.api.GetModuleVersionRequest.prototype.getModuleId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this -*/ -proto.clarifai.api.PostWorkflowsRequest.prototype.setWorkflowsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.GetModuleVersionRequest} returns this + */ +proto.clarifai.api.GetModuleVersionRequest.prototype.setModuleId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Workflow=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Workflow} + * optional string module_version_id = 3; + * @return {string} */ -proto.clarifai.api.PostWorkflowsRequest.prototype.addWorkflows = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Workflow, opt_index); +proto.clarifai.api.GetModuleVersionRequest.prototype.getModuleVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostWorkflowsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetModuleVersionRequest} returns this */ -proto.clarifai.api.PostWorkflowsRequest.prototype.clearWorkflowsList = function() { - return this.setWorkflowsList([]); +proto.clarifai.api.GetModuleVersionRequest.prototype.setModuleVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PatchWorkflowsRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -38232,8 +70444,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchWorkflowsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListModuleVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListModuleVersionsRequest.toObject(opt_includeInstance, this); }; @@ -38242,16 +70454,16 @@ proto.clarifai.api.PatchWorkflowsRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchWorkflowsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListModuleVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchWorkflowsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListModuleVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowsList: jspb.Message.toObjectList(msg.getWorkflowsList(), - proto_clarifai_api_resources_pb.Workflow.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""), + page: jspb.Message.getFieldWithDefault(msg, 3, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -38265,23 +70477,23 @@ proto.clarifai.api.PatchWorkflowsRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchWorkflowsRequest} + * @return {!proto.clarifai.api.ListModuleVersionsRequest} */ -proto.clarifai.api.PatchWorkflowsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListModuleVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchWorkflowsRequest; - return proto.clarifai.api.PatchWorkflowsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListModuleVersionsRequest; + return proto.clarifai.api.ListModuleVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchWorkflowsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListModuleVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchWorkflowsRequest} + * @return {!proto.clarifai.api.ListModuleVersionsRequest} */ -proto.clarifai.api.PatchWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListModuleVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -38294,13 +70506,16 @@ proto.clarifai.api.PatchWorkflowsRequest.deserializeBinaryFromReader = function( msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Workflow; - reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); - msg.addWorkflows(value); + var value = /** @type {string} */ (reader.readString()); + msg.setModuleId(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -38315,9 +70530,9 @@ proto.clarifai.api.PatchWorkflowsRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListModuleVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchWorkflowsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListModuleVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -38325,11 +70540,11 @@ proto.clarifai.api.PatchWorkflowsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchWorkflowsRequest} message + * @param {!proto.clarifai.api.ListModuleVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListModuleVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -38339,21 +70554,27 @@ proto.clarifai.api.PatchWorkflowsRequest.serializeBinaryToWriter = function(mess proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowsList(); + f = message.getModuleId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter + f ); } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 3, f ); } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } }; @@ -38361,7 +70582,7 @@ proto.clarifai.api.PatchWorkflowsRequest.serializeBinaryToWriter = function(mess * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListModuleVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -38369,18 +70590,18 @@ proto.clarifai.api.PatchWorkflowsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this + * @return {!proto.clarifai.api.ListModuleVersionsRequest} returns this */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListModuleVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this + * @return {!proto.clarifai.api.ListModuleVersionsRequest} returns this */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListModuleVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -38389,68 +70610,73 @@ proto.clarifai.api.PatchWorkflowsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListModuleVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Workflow workflows = 2; - * @return {!Array} + * optional string module_id = 2; + * @return {string} */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.getWorkflowsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); +proto.clarifai.api.ListModuleVersionsRequest.prototype.getModuleId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this -*/ -proto.clarifai.api.PatchWorkflowsRequest.prototype.setWorkflowsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.ListModuleVersionsRequest} returns this + */ +proto.clarifai.api.ListModuleVersionsRequest.prototype.setModuleId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Workflow=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Workflow} + * optional uint32 page = 3; + * @return {number} */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.addWorkflows = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Workflow, opt_index); +proto.clarifai.api.ListModuleVersionsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListModuleVersionsRequest} returns this */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.clearWorkflowsList = function() { - return this.setWorkflowsList([]); +proto.clarifai.api.ListModuleVersionsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; /** - * optional string action = 3; - * @return {string} + * optional uint32 per_page = 4; + * @return {number} */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.ListModuleVersionsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PatchWorkflowsRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListModuleVersionsRequest} returns this */ -proto.clarifai.api.PatchWorkflowsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.ListModuleVersionsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PostModuleVersionsRequest.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -38466,8 +70692,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteWorkflowRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostModuleVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostModuleVersionsRequest.toObject(opt_includeInstance, this); }; @@ -38476,14 +70702,16 @@ proto.clarifai.api.DeleteWorkflowRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteWorkflowRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostModuleVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteWorkflowRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostModuleVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, "") + moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""), + moduleVersionsList: jspb.Message.toObjectList(msg.getModuleVersionsList(), + proto_clarifai_api_resources_pb.ModuleVersion.toObject, includeInstance) }; if (includeInstance) { @@ -38497,23 +70725,23 @@ proto.clarifai.api.DeleteWorkflowRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteWorkflowRequest} + * @return {!proto.clarifai.api.PostModuleVersionsRequest} */ -proto.clarifai.api.DeleteWorkflowRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostModuleVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteWorkflowRequest; - return proto.clarifai.api.DeleteWorkflowRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostModuleVersionsRequest; + return proto.clarifai.api.PostModuleVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteWorkflowRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostModuleVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteWorkflowRequest} + * @return {!proto.clarifai.api.PostModuleVersionsRequest} */ -proto.clarifai.api.DeleteWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostModuleVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -38527,7 +70755,12 @@ proto.clarifai.api.DeleteWorkflowRequest.deserializeBinaryFromReader = function( break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); + msg.setModuleId(value); + break; + case 3: + var value = new proto_clarifai_api_resources_pb.ModuleVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModuleVersion.deserializeBinaryFromReader); + msg.addModuleVersions(value); break; default: reader.skipField(); @@ -38542,9 +70775,9 @@ proto.clarifai.api.DeleteWorkflowRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostModuleVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteWorkflowRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostModuleVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -38552,11 +70785,11 @@ proto.clarifai.api.DeleteWorkflowRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteWorkflowRequest} message + * @param {!proto.clarifai.api.PostModuleVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteWorkflowRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostModuleVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -38566,13 +70799,21 @@ proto.clarifai.api.DeleteWorkflowRequest.serializeBinaryToWriter = function(mess proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowId(); + f = message.getModuleId(); if (f.length > 0) { writer.writeString( 2, f ); } + f = message.getModuleVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto_clarifai_api_resources_pb.ModuleVersion.serializeBinaryToWriter + ); + } }; @@ -38580,7 +70821,7 @@ proto.clarifai.api.DeleteWorkflowRequest.serializeBinaryToWriter = function(mess * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostModuleVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -38588,18 +70829,18 @@ proto.clarifai.api.DeleteWorkflowRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteWorkflowRequest} returns this + * @return {!proto.clarifai.api.PostModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostModuleVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteWorkflowRequest} returns this + * @return {!proto.clarifai.api.PostModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostModuleVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -38608,36 +70849,74 @@ proto.clarifai.api.DeleteWorkflowRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostModuleVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; + * optional string module_id = 2; * @return {string} */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.getWorkflowId = function() { +proto.clarifai.api.PostModuleVersionsRequest.prototype.getModuleId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.DeleteWorkflowRequest} returns this + * @return {!proto.clarifai.api.PostModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowRequest.prototype.setWorkflowId = function(value) { +proto.clarifai.api.PostModuleVersionsRequest.prototype.setModuleId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; +/** + * repeated ModuleVersion module_versions = 3; + * @return {!Array} + */ +proto.clarifai.api.PostModuleVersionsRequest.prototype.getModuleVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModuleVersion, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostModuleVersionsRequest} returns this +*/ +proto.clarifai.api.PostModuleVersionsRequest.prototype.setModuleVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.ModuleVersion=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.ModuleVersion} + */ +proto.clarifai.api.PostModuleVersionsRequest.prototype.addModuleVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.ModuleVersion, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PostModuleVersionsRequest} returns this + */ +proto.clarifai.api.PostModuleVersionsRequest.prototype.clearModuleVersionsList = function() { + return this.setModuleVersionsList([]); +}; + + /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.clarifai.api.DeleteWorkflowsRequest.repeatedFields_ = [2]; +proto.clarifai.api.DeleteModuleVersionsRequest.repeatedFields_ = [3]; @@ -38654,8 +70933,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteWorkflowsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteModuleVersionsRequest.toObject(opt_includeInstance, this); }; @@ -38664,15 +70943,15 @@ proto.clarifai.api.DeleteWorkflowsRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteWorkflowsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteModuleVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteWorkflowsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteModuleVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - deleteAll: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + moduleId: jspb.Message.getFieldWithDefault(msg, 2, ""), + idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f }; if (includeInstance) { @@ -38686,23 +70965,23 @@ proto.clarifai.api.DeleteWorkflowsRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} */ -proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteModuleVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteWorkflowsRequest; - return proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteModuleVersionsRequest; + return proto.clarifai.api.DeleteModuleVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteWorkflowsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteModuleVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} */ -proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteModuleVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -38716,11 +70995,11 @@ proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinaryFromReader = function break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + msg.setModuleId(value); break; case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeleteAll(value); + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); break; default: reader.skipField(); @@ -38735,9 +71014,9 @@ proto.clarifai.api.DeleteWorkflowsRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteWorkflowsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteModuleVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -38745,11 +71024,11 @@ proto.clarifai.api.DeleteWorkflowsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteWorkflowsRequest} message + * @param {!proto.clarifai.api.DeleteModuleVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteWorkflowsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteModuleVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -38759,16 +71038,16 @@ proto.clarifai.api.DeleteWorkflowsRequest.serializeBinaryToWriter = function(mes proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getIdsList(); + f = message.getModuleId(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); } - f = message.getDeleteAll(); - if (f) { - writer.writeBool( + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 3, f ); @@ -38780,7 +71059,7 @@ proto.clarifai.api.DeleteWorkflowsRequest.serializeBinaryToWriter = function(mes * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -38788,18 +71067,18 @@ proto.clarifai.api.DeleteWorkflowsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -38808,63 +71087,63 @@ proto.clarifai.api.DeleteWorkflowsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} + * optional string module_id = 2; + * @return {string} */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.getModuleId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.setModuleId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this - */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); + * repeated string ids = 3; + * @return {!Array} + */ +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 3, value || []); }; /** - * optional bool delete_all = 3; - * @return {boolean} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.getDeleteAll = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.DeleteWorkflowsRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteModuleVersionsRequest} returns this */ -proto.clarifai.api.DeleteWorkflowsRequest.prototype.setDeleteAll = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.DeleteModuleVersionsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; @@ -38884,8 +71163,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleWorkflowResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleModuleVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleModuleVersionResponse.toObject(opt_includeInstance, this); }; @@ -38894,14 +71173,14 @@ proto.clarifai.api.SingleWorkflowResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleWorkflowResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleModuleVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleWorkflowResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleModuleVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f) + moduleVersion: (f = msg.getModuleVersion()) && proto_clarifai_api_resources_pb.ModuleVersion.toObject(includeInstance, f) }; if (includeInstance) { @@ -38915,23 +71194,23 @@ proto.clarifai.api.SingleWorkflowResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleWorkflowResponse} + * @return {!proto.clarifai.api.SingleModuleVersionResponse} */ -proto.clarifai.api.SingleWorkflowResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleModuleVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleWorkflowResponse; - return proto.clarifai.api.SingleWorkflowResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleModuleVersionResponse; + return proto.clarifai.api.SingleModuleVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleWorkflowResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleModuleVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleWorkflowResponse} + * @return {!proto.clarifai.api.SingleModuleVersionResponse} */ -proto.clarifai.api.SingleWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleModuleVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -38944,9 +71223,9 @@ proto.clarifai.api.SingleWorkflowResponse.deserializeBinaryFromReader = function msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Workflow; - reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); - msg.setWorkflow(value); + var value = new proto_clarifai_api_resources_pb.ModuleVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModuleVersion.deserializeBinaryFromReader); + msg.setModuleVersion(value); break; default: reader.skipField(); @@ -38961,9 +71240,9 @@ proto.clarifai.api.SingleWorkflowResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleWorkflowResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleModuleVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleWorkflowResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleModuleVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -38971,11 +71250,11 @@ proto.clarifai.api.SingleWorkflowResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleWorkflowResponse} message + * @param {!proto.clarifai.api.SingleModuleVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleWorkflowResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleModuleVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -38985,12 +71264,12 @@ proto.clarifai.api.SingleWorkflowResponse.serializeBinaryToWriter = function(mes proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getWorkflow(); + f = message.getModuleVersion(); if (f != null) { writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter + proto_clarifai_api_resources_pb.ModuleVersion.serializeBinaryToWriter ); } }; @@ -39000,7 +71279,7 @@ proto.clarifai.api.SingleWorkflowResponse.serializeBinaryToWriter = function(mes * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleWorkflowResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleModuleVersionResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -39008,18 +71287,18 @@ proto.clarifai.api.SingleWorkflowResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this + * @return {!proto.clarifai.api.SingleModuleVersionResponse} returns this */ -proto.clarifai.api.SingleWorkflowResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleModuleVersionResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this + * @return {!proto.clarifai.api.SingleModuleVersionResponse} returns this */ -proto.clarifai.api.SingleWorkflowResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleModuleVersionResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -39028,36 +71307,36 @@ proto.clarifai.api.SingleWorkflowResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleWorkflowResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleModuleVersionResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Workflow workflow = 2; - * @return {?proto.clarifai.api.Workflow} + * optional ModuleVersion module_version = 2; + * @return {?proto.clarifai.api.ModuleVersion} */ -proto.clarifai.api.SingleWorkflowResponse.prototype.getWorkflow = function() { - return /** @type{?proto.clarifai.api.Workflow} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); +proto.clarifai.api.SingleModuleVersionResponse.prototype.getModuleVersion = function() { + return /** @type{?proto.clarifai.api.ModuleVersion} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.ModuleVersion, 2)); }; /** - * @param {?proto.clarifai.api.Workflow|undefined} value - * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this + * @param {?proto.clarifai.api.ModuleVersion|undefined} value + * @return {!proto.clarifai.api.SingleModuleVersionResponse} returns this */ -proto.clarifai.api.SingleWorkflowResponse.prototype.setWorkflow = function(value) { +proto.clarifai.api.SingleModuleVersionResponse.prototype.setModuleVersion = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleWorkflowResponse} returns this + * @return {!proto.clarifai.api.SingleModuleVersionResponse} returns this */ -proto.clarifai.api.SingleWorkflowResponse.prototype.clearWorkflow = function() { - return this.setWorkflow(undefined); +proto.clarifai.api.SingleModuleVersionResponse.prototype.clearModuleVersion = function() { + return this.setModuleVersion(undefined); }; @@ -39065,7 +71344,7 @@ proto.clarifai.api.SingleWorkflowResponse.prototype.clearWorkflow = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleWorkflowResponse.prototype.hasWorkflow = function() { +proto.clarifai.api.SingleModuleVersionResponse.prototype.hasModuleVersion = function() { return jspb.Message.getField(this, 2) != null; }; @@ -39076,7 +71355,7 @@ proto.clarifai.api.SingleWorkflowResponse.prototype.hasWorkflow = function() { * @private {!Array} * @const */ -proto.clarifai.api.MultiWorkflowResponse.repeatedFields_ = [2]; +proto.clarifai.api.MultiModuleVersionResponse.repeatedFields_ = [2]; @@ -39093,8 +71372,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiWorkflowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiWorkflowResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiModuleVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiModuleVersionResponse.toObject(opt_includeInstance, this); }; @@ -39103,15 +71382,15 @@ proto.clarifai.api.MultiWorkflowResponse.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiWorkflowResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiModuleVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiWorkflowResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiModuleVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - workflowsList: jspb.Message.toObjectList(msg.getWorkflowsList(), - proto_clarifai_api_resources_pb.Workflow.toObject, includeInstance) + moduleVersionsList: jspb.Message.toObjectList(msg.getModuleVersionsList(), + proto_clarifai_api_resources_pb.ModuleVersion.toObject, includeInstance) }; if (includeInstance) { @@ -39125,23 +71404,23 @@ proto.clarifai.api.MultiWorkflowResponse.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiWorkflowResponse} + * @return {!proto.clarifai.api.MultiModuleVersionResponse} */ -proto.clarifai.api.MultiWorkflowResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiModuleVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiWorkflowResponse; - return proto.clarifai.api.MultiWorkflowResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiModuleVersionResponse; + return proto.clarifai.api.MultiModuleVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiWorkflowResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiModuleVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiWorkflowResponse} + * @return {!proto.clarifai.api.MultiModuleVersionResponse} */ -proto.clarifai.api.MultiWorkflowResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiModuleVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -39154,9 +71433,9 @@ proto.clarifai.api.MultiWorkflowResponse.deserializeBinaryFromReader = function( msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Workflow; - reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); - msg.addWorkflows(value); + var value = new proto_clarifai_api_resources_pb.ModuleVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.ModuleVersion.deserializeBinaryFromReader); + msg.addModuleVersions(value); break; default: reader.skipField(); @@ -39171,9 +71450,9 @@ proto.clarifai.api.MultiWorkflowResponse.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiWorkflowResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiModuleVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiWorkflowResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiModuleVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -39181,11 +71460,11 @@ proto.clarifai.api.MultiWorkflowResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiWorkflowResponse} message + * @param {!proto.clarifai.api.MultiModuleVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiWorkflowResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiModuleVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -39195,12 +71474,12 @@ proto.clarifai.api.MultiWorkflowResponse.serializeBinaryToWriter = function(mess proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getWorkflowsList(); + f = message.getModuleVersionsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter + proto_clarifai_api_resources_pb.ModuleVersion.serializeBinaryToWriter ); } }; @@ -39210,7 +71489,7 @@ proto.clarifai.api.MultiWorkflowResponse.serializeBinaryToWriter = function(mess * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiWorkflowResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiModuleVersionResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -39218,18 +71497,18 @@ proto.clarifai.api.MultiWorkflowResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this + * @return {!proto.clarifai.api.MultiModuleVersionResponse} returns this */ -proto.clarifai.api.MultiWorkflowResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiModuleVersionResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this + * @return {!proto.clarifai.api.MultiModuleVersionResponse} returns this */ -proto.clarifai.api.MultiWorkflowResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiModuleVersionResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -39238,57 +71517,50 @@ proto.clarifai.api.MultiWorkflowResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiWorkflowResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiModuleVersionResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Workflow workflows = 2; - * @return {!Array} + * repeated ModuleVersion module_versions = 2; + * @return {!Array} */ -proto.clarifai.api.MultiWorkflowResponse.prototype.getWorkflowsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); +proto.clarifai.api.MultiModuleVersionResponse.prototype.getModuleVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.ModuleVersion, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiModuleVersionResponse} returns this */ -proto.clarifai.api.MultiWorkflowResponse.prototype.setWorkflowsList = function(value) { +proto.clarifai.api.MultiModuleVersionResponse.prototype.setModuleVersionsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Workflow=} opt_value + * @param {!proto.clarifai.api.ModuleVersion=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Workflow} + * @return {!proto.clarifai.api.ModuleVersion} */ -proto.clarifai.api.MultiWorkflowResponse.prototype.addWorkflows = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Workflow, opt_index); +proto.clarifai.api.MultiModuleVersionResponse.prototype.addModuleVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.ModuleVersion, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiWorkflowResponse} returns this + * @return {!proto.clarifai.api.MultiModuleVersionResponse} returns this */ -proto.clarifai.api.MultiWorkflowResponse.prototype.clearWorkflowsList = function() { - return this.setWorkflowsList([]); +proto.clarifai.api.MultiModuleVersionResponse.prototype.clearModuleVersionsList = function() { + return this.setModuleVersionsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostWorkflowResultsRequest.repeatedFields_ = [3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -39304,8 +71576,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostWorkflowResultsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetInstalledModuleVersionRequest.toObject(opt_includeInstance, this); }; @@ -39314,20 +71586,14 @@ proto.clarifai.api.PostWorkflowResultsRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostWorkflowResultsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetInstalledModuleVersionRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetInstalledModuleVersionRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 7, ""), - inputsList: jspb.Message.toObjectList(msg.getInputsList(), - proto_clarifai_api_resources_pb.Input.toObject, includeInstance), - outputConfig: (f = msg.getOutputConfig()) && proto_clarifai_api_resources_pb.OutputConfig.toObject(includeInstance, f), - favorClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - workflowState: (f = msg.getWorkflowState()) && proto_clarifai_api_resources_pb.WorkflowState.toObject(includeInstance, f) + installedModuleVersionId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -39341,23 +71607,23 @@ proto.clarifai.api.PostWorkflowResultsRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} + * @return {!proto.clarifai.api.GetInstalledModuleVersionRequest} */ -proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetInstalledModuleVersionRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostWorkflowResultsRequest; - return proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetInstalledModuleVersionRequest; + return proto.clarifai.api.GetInstalledModuleVersionRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostWorkflowResultsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetInstalledModuleVersionRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} + * @return {!proto.clarifai.api.GetInstalledModuleVersionRequest} */ -proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetInstalledModuleVersionRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -39371,30 +71637,7 @@ proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinaryFromReader = func break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.addInputs(value); - break; - case 4: - var value = new proto_clarifai_api_resources_pb.OutputConfig; - reader.readMessage(value,proto_clarifai_api_resources_pb.OutputConfig.deserializeBinaryFromReader); - msg.setOutputConfig(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFavorClarifaiWorkflows(value); - break; - case 6: - var value = new proto_clarifai_api_resources_pb.WorkflowState; - reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowState.deserializeBinaryFromReader); - msg.setWorkflowState(value); + msg.setInstalledModuleVersionId(value); break; default: reader.skipField(); @@ -39409,9 +71652,9 @@ proto.clarifai.api.PostWorkflowResultsRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostWorkflowResultsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetInstalledModuleVersionRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -39419,11 +71662,11 @@ proto.clarifai.api.PostWorkflowResultsRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostWorkflowResultsRequest} message + * @param {!proto.clarifai.api.GetInstalledModuleVersionRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetInstalledModuleVersionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -39433,51 +71676,13 @@ proto.clarifai.api.PostWorkflowResultsRequest.serializeBinaryToWriter = function proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowId(); + f = message.getInstalledModuleVersionId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter - ); - } - f = message.getOutputConfig(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto_clarifai_api_resources_pb.OutputConfig.serializeBinaryToWriter - ); - } - f = message.getFavorClarifaiWorkflows(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getWorkflowState(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto_clarifai_api_resources_pb.WorkflowState.serializeBinaryToWriter - ); - } }; @@ -39485,7 +71690,7 @@ proto.clarifai.api.PostWorkflowResultsRequest.serializeBinaryToWriter = function * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -39493,18 +71698,18 @@ proto.clarifai.api.PostWorkflowResultsRequest.prototype.getUserAppId = function( /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this + * @return {!proto.clarifai.api.GetInstalledModuleVersionRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this + * @return {!proto.clarifai.api.GetInstalledModuleVersionRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -39513,184 +71718,29 @@ proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearUserAppId = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; + * optional string installed_module_version_id = 2; * @return {string} */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.getWorkflowId = function() { +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.getInstalledModuleVersionId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this + * @return {!proto.clarifai.api.GetInstalledModuleVersionRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.setWorkflowId = function(value) { +proto.clarifai.api.GetInstalledModuleVersionRequest.prototype.setInstalledModuleVersionId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional string version_id = 7; - * @return {string} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * repeated Input inputs = 3; - * @return {!Array} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.getInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this -*/ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.setInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.Input=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.addInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Input, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearInputsList = function() { - return this.setInputsList([]); -}; - - -/** - * optional OutputConfig output_config = 4; - * @return {?proto.clarifai.api.OutputConfig} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.getOutputConfig = function() { - return /** @type{?proto.clarifai.api.OutputConfig} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.OutputConfig, 4)); -}; - - -/** - * @param {?proto.clarifai.api.OutputConfig|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this -*/ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.setOutputConfig = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearOutputConfig = function() { - return this.setOutputConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.hasOutputConfig = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional bool favor_clarifai_workflows = 5; - * @return {boolean} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.getFavorClarifaiWorkflows = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.setFavorClarifaiWorkflows = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional WorkflowState workflow_state = 6; - * @return {?proto.clarifai.api.WorkflowState} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.getWorkflowState = function() { - return /** @type{?proto.clarifai.api.WorkflowState} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.WorkflowState, 6)); -}; - - -/** - * @param {?proto.clarifai.api.WorkflowState|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this -*/ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.setWorkflowState = function(value) { - return jspb.Message.setWrapperField(this, 6, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.clearWorkflowState = function() { - return this.setWorkflowState(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostWorkflowResultsRequest.prototype.hasWorkflowState = function() { - return jspb.Message.getField(this, 6) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostWorkflowResultsResponse.repeatedFields_ = [3]; @@ -39707,8 +71757,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostWorkflowResultsResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListInstalledModuleVersionsRequest.toObject(opt_includeInstance, this); }; @@ -39717,17 +71767,15 @@ proto.clarifai.api.PostWorkflowResultsResponse.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostWorkflowResultsResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListInstalledModuleVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListInstalledModuleVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - workflow: (f = msg.getWorkflow()) && proto_clarifai_api_resources_pb.Workflow.toObject(includeInstance, f), - resultsList: jspb.Message.toObjectList(msg.getResultsList(), - proto_clarifai_api_resources_pb.WorkflowResult.toObject, includeInstance), - workflowState: (f = msg.getWorkflowState()) && proto_clarifai_api_resources_pb.WorkflowState.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -39741,23 +71789,23 @@ proto.clarifai.api.PostWorkflowResultsResponse.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} + * @return {!proto.clarifai.api.ListInstalledModuleVersionsRequest} */ -proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListInstalledModuleVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostWorkflowResultsResponse; - return proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListInstalledModuleVersionsRequest; + return proto.clarifai.api.ListInstalledModuleVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostWorkflowResultsResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListInstalledModuleVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} + * @return {!proto.clarifai.api.ListInstalledModuleVersionsRequest} */ -proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListInstalledModuleVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -39765,24 +71813,17 @@ proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Workflow; - reader.readMessage(value,proto_clarifai_api_resources_pb.Workflow.deserializeBinaryFromReader); - msg.setWorkflow(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); break; case 3: - var value = new proto_clarifai_api_resources_pb.WorkflowResult; - reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowResult.deserializeBinaryFromReader); - msg.addResults(value); - break; - case 4: - var value = new proto_clarifai_api_resources_pb.WorkflowState; - reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowState.deserializeBinaryFromReader); - msg.setWorkflowState(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -39797,9 +71838,9 @@ proto.clarifai.api.PostWorkflowResultsResponse.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostWorkflowResultsResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListInstalledModuleVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -39807,193 +71848,107 @@ proto.clarifai.api.PostWorkflowResultsResponse.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostWorkflowResultsResponse} message + * @param {!proto.clarifai.api.ListInstalledModuleVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListInstalledModuleVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflow(); - if (f != null) { - writer.writeMessage( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 2, - f, - proto_clarifai_api_resources_pb.Workflow.serializeBinaryToWriter + f ); } - f = message.getResultsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( 3, - f, - proto_clarifai_api_resources_pb.WorkflowResult.serializeBinaryToWriter - ); - } - f = message.getWorkflowState(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto_clarifai_api_resources_pb.WorkflowState.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} - */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); -}; - - -/** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this -*/ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.setStatus = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this - */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasStatus = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Workflow workflow = 2; - * @return {?proto.clarifai.api.Workflow} - */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.getWorkflow = function() { - return /** @type{?proto.clarifai.api.Workflow} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Workflow, 2)); -}; - - -/** - * @param {?proto.clarifai.api.Workflow|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this -*/ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.setWorkflow = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this - */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearWorkflow = function() { - return this.setWorkflow(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasWorkflow = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * repeated WorkflowResult results = 3; - * @return {!Array} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.getResultsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowResult, 3)); +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.setResultsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * @param {!proto.clarifai.api.WorkflowResult=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.WorkflowResult} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ListInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.addResults = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.WorkflowResult, opt_index); +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearResultsList = function() { - return this.setResultsList([]); +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional WorkflowState workflow_state = 4; - * @return {?proto.clarifai.api.WorkflowState} + * optional uint32 page = 2; + * @return {number} */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.getWorkflowState = function() { - return /** @type{?proto.clarifai.api.WorkflowState} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.WorkflowState, 4)); +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {?proto.clarifai.api.WorkflowState|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this -*/ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.setWorkflowState = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * @param {number} value + * @return {!proto.clarifai.api.ListInstalledModuleVersionsRequest} returns this + */ +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsResponse} returns this + * optional uint32 per_page = 3; + * @return {number} */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.clearWorkflowState = function() { - return this.setWorkflowState(undefined); +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.ListInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasWorkflowState = function() { - return jspb.Message.getField(this, 4) != null; +proto.clarifai.api.ListInstalledModuleVersionsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -40003,7 +71958,7 @@ proto.clarifai.api.PostWorkflowResultsResponse.prototype.hasWorkflowState = func * @private {!Array} * @const */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.repeatedFields_ = [4,5]; +proto.clarifai.api.PostInstalledModuleVersionsRequest.repeatedFields_ = [2]; @@ -40020,8 +71975,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostWorkflowResultsSimilarityRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostInstalledModuleVersionsRequest.toObject(opt_includeInstance, this); }; @@ -40030,21 +71985,15 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.toObject = fun * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostInstalledModuleVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostInstalledModuleVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - versionId: jspb.Message.getFieldWithDefault(msg, 7, ""), - modelVersionId: jspb.Message.getFieldWithDefault(msg, 3, ""), - probeInputsList: jspb.Message.toObjectList(msg.getProbeInputsList(), - proto_clarifai_api_resources_pb.Input.toObject, includeInstance), - poolInputsList: jspb.Message.toObjectList(msg.getPoolInputsList(), - proto_clarifai_api_resources_pb.Input.toObject, includeInstance), - favorClarifaiWorkflows: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) + installedModuleVersionsList: jspb.Message.toObjectList(msg.getInstalledModuleVersionsList(), + proto_clarifai_api_resources_pb.InstalledModuleVersion.toObject, includeInstance) }; if (includeInstance) { @@ -40058,23 +72007,23 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} + * @return {!proto.clarifai.api.PostInstalledModuleVersionsRequest} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostInstalledModuleVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostWorkflowResultsSimilarityRequest; - return proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostInstalledModuleVersionsRequest; + return proto.clarifai.api.PostInstalledModuleVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostInstalledModuleVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} + * @return {!proto.clarifai.api.PostInstalledModuleVersionsRequest} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostInstalledModuleVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -40087,30 +72036,9 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromRea msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setVersionId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setModelVersionId(value); - break; - case 4: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.addProbeInputs(value); - break; - case 5: - var value = new proto_clarifai_api_resources_pb.Input; - reader.readMessage(value,proto_clarifai_api_resources_pb.Input.deserializeBinaryFromReader); - msg.addPoolInputs(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setFavorClarifaiWorkflows(value); + var value = new proto_clarifai_api_resources_pb.InstalledModuleVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.InstalledModuleVersion.deserializeBinaryFromReader); + msg.addInstalledModuleVersions(value); break; default: reader.skipField(); @@ -40125,9 +72053,9 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostInstalledModuleVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -40135,11 +72063,11 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} message + * @param {!proto.clarifai.api.PostInstalledModuleVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostInstalledModuleVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -40149,48 +72077,12 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowId(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getVersionId(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getModelVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProbeInputsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter - ); - } - f = message.getPoolInputsList(); + f = message.getInstalledModuleVersionsList(); if (f.length > 0) { writer.writeRepeatedMessage( - 5, + 2, f, - proto_clarifai_api_resources_pb.Input.serializeBinaryToWriter - ); - } - f = message.getFavorClarifaiWorkflows(); - if (f) { - writer.writeBool( - 6, - f + proto_clarifai_api_resources_pb.InstalledModuleVersion.serializeBinaryToWriter ); } }; @@ -40200,7 +72092,7 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.serializeBinaryToWriter * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -40208,18 +72100,18 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getUserAppId = /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this + * @return {!proto.clarifai.api.PostInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this + * @return {!proto.clarifai.api.PostInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -40228,167 +72120,50 @@ proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearUserAppId * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; - * @return {string} - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string version_id = 7; - * @return {string} - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string model_version_id = 3; - * @return {string} - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getModelVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setModelVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated Input probe_inputs = 4; - * @return {!Array} - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getProbeInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this -*/ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setProbeInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.clarifai.api.Input=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.addProbeInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.Input, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearProbeInputsList = function() { - return this.setProbeInputsList([]); -}; - - -/** - * repeated Input pool_inputs = 5; - * @return {!Array} + * repeated InstalledModuleVersion installed_module_versions = 2; + * @return {!Array} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getPoolInputsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Input, 5)); +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.getInstalledModuleVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InstalledModuleVersion, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setPoolInputsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.setInstalledModuleVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Input=} opt_value + * @param {!proto.clarifai.api.InstalledModuleVersion=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Input} + * @return {!proto.clarifai.api.InstalledModuleVersion} */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.addPoolInputs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clarifai.api.Input, opt_index); +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.addInstalledModuleVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InstalledModuleVersion, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this + * @return {!proto.clarifai.api.PostInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.clearPoolInputsList = function() { - return this.setPoolInputsList([]); -}; - - -/** - * optional bool favor_clarifai_workflows = 6; - * @return {boolean} - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.getFavorClarifaiWorkflows = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityRequest} returns this - */ -proto.clarifai.api.PostWorkflowResultsSimilarityRequest.prototype.setFavorClarifaiWorkflows = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); +proto.clarifai.api.PostInstalledModuleVersionsRequest.prototype.clearInstalledModuleVersionsList = function() { + return this.setInstalledModuleVersionsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -40404,8 +72179,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostWorkflowResultsSimilarityResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.toObject(opt_includeInstance, this); }; @@ -40414,15 +72189,14 @@ proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.toObject = fu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - resultsList: jspb.Message.toObjectList(msg.getResultsList(), - proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + installedModuleVersionId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -40436,23 +72210,23 @@ proto.clarifai.api.PostWorkflowResultsSimilarityResponse.toObject = function(inc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} + * @return {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostWorkflowResultsSimilarityResponse; - return proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostInstalledModuleVersionsKeyRequest; + return proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} + * @return {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -40460,14 +72234,13 @@ proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromRe var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.WorkflowResultsSimilarity; - reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.deserializeBinaryFromReader); - msg.addResults(value); + var value = /** @type {string} */ (reader.readString()); + msg.setInstalledModuleVersionId(value); break; default: reader.skipField(); @@ -40482,9 +72255,9 @@ proto.clarifai.api.PostWorkflowResultsSimilarityResponse.deserializeBinaryFromRe * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostWorkflowResultsSimilarityResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -40492,56 +72265,55 @@ proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.serializeBina /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} message + * @param {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getResultsList(); + f = message.getInstalledModuleVersionId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.WorkflowResultsSimilarity.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this + * @return {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -40549,49 +72321,36 @@ proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.clearStatus = * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated WorkflowResultsSimilarity results = 2; - * @return {!Array} + * optional string installed_module_version_id = 2; + * @return {string} */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.getResultsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowResultsSimilarity, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this -*/ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.setResultsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.getInstalledModuleVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!proto.clarifai.api.WorkflowResultsSimilarity=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.WorkflowResultsSimilarity} + * @param {string} value + * @return {!proto.clarifai.api.PostInstalledModuleVersionsKeyRequest} returns this */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.addResults = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.WorkflowResultsSimilarity, opt_index); +proto.clarifai.api.PostInstalledModuleVersionsKeyRequest.prototype.setInstalledModuleVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; + /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostWorkflowResultsSimilarityResponse} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.PostWorkflowResultsSimilarityResponse.prototype.clearResultsList = function() { - return this.setResultsList([]); -}; - - +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.repeatedFields_ = [2]; @@ -40608,8 +72367,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListWorkflowVersionsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteInstalledModuleVersionsRequest.toObject(opt_includeInstance, this); }; @@ -40618,16 +72377,14 @@ proto.clarifai.api.ListWorkflowVersionsRequest.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListWorkflowVersionsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListWorkflowVersionsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - page: jspb.Message.getFieldWithDefault(msg, 3, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -40641,23 +72398,23 @@ proto.clarifai.api.ListWorkflowVersionsRequest.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} + * @return {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} */ -proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListWorkflowVersionsRequest; - return proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteInstalledModuleVersionsRequest; + return proto.clarifai.api.DeleteInstalledModuleVersionsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListWorkflowVersionsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} + * @return {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} */ -proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -40671,15 +72428,7 @@ proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinaryFromReader = fun break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + msg.addIds(value); break; default: reader.skipField(); @@ -40694,9 +72443,9 @@ proto.clarifai.api.ListWorkflowVersionsRequest.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListWorkflowVersionsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteInstalledModuleVersionsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -40704,11 +72453,11 @@ proto.clarifai.api.ListWorkflowVersionsRequest.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListWorkflowVersionsRequest} message + * @param {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListWorkflowVersionsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -40718,27 +72467,13 @@ proto.clarifai.api.ListWorkflowVersionsRequest.serializeBinaryToWriter = functio proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowId(); + f = message.getIdsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 2, f ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } }; @@ -40746,7 +72481,7 @@ proto.clarifai.api.ListWorkflowVersionsRequest.serializeBinaryToWriter = functio * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -40754,18 +72489,18 @@ proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getUserAppId = function /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -40774,62 +72509,45 @@ proto.clarifai.api.ListWorkflowVersionsRequest.prototype.clearUserAppId = functi * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; - * @return {string} - */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this - */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 page = 3; - * @return {number} + * repeated string ids = 2; + * @return {!Array} */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * optional uint32 per_page = 4; - * @return {number} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListWorkflowVersionsRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteInstalledModuleVersionsRequest} returns this */ -proto.clarifai.api.ListWorkflowVersionsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); +proto.clarifai.api.DeleteInstalledModuleVersionsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; @@ -40849,8 +72567,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetWorkflowVersionRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleInstalledModuleVersionResponse.toObject(opt_includeInstance, this); }; @@ -40859,15 +72577,14 @@ proto.clarifai.api.GetWorkflowVersionRequest.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetWorkflowVersionRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleInstalledModuleVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetWorkflowVersionRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleInstalledModuleVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - workflowVersionId: jspb.Message.getFieldWithDefault(msg, 3, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + installedModuleVersion: (f = msg.getInstalledModuleVersion()) && proto_clarifai_api_resources_pb.InstalledModuleVersion.toObject(includeInstance, f) }; if (includeInstance) { @@ -40881,23 +72598,23 @@ proto.clarifai.api.GetWorkflowVersionRequest.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetWorkflowVersionRequest} + * @return {!proto.clarifai.api.SingleInstalledModuleVersionResponse} */ -proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleInstalledModuleVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetWorkflowVersionRequest; - return proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleInstalledModuleVersionResponse; + return proto.clarifai.api.SingleInstalledModuleVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetWorkflowVersionRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleInstalledModuleVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetWorkflowVersionRequest} + * @return {!proto.clarifai.api.SingleInstalledModuleVersionResponse} */ -proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleInstalledModuleVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -40905,17 +72622,14 @@ proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinaryFromReader = funct var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowVersionId(value); + var value = new proto_clarifai_api_resources_pb.InstalledModuleVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.InstalledModuleVersion.deserializeBinaryFromReader); + msg.setInstalledModuleVersion(value); break; default: reader.skipField(); @@ -40930,9 +72644,9 @@ proto.clarifai.api.GetWorkflowVersionRequest.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetWorkflowVersionRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleInstalledModuleVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -40940,62 +72654,56 @@ proto.clarifai.api.GetWorkflowVersionRequest.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetWorkflowVersionRequest} message + * @param {!proto.clarifai.api.SingleInstalledModuleVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetWorkflowVersionRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleInstalledModuleVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getWorkflowId(); - if (f.length > 0) { - writer.writeString( - 2, - f + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getWorkflowVersionId(); - if (f.length > 0) { - writer.writeString( - 3, - f + f = message.getInstalledModuleVersion(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto_clarifai_api_resources_pb.InstalledModuleVersion.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleInstalledModuleVersionResponse} returns this */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this + * @return {!proto.clarifai.api.SingleInstalledModuleVersionResponse} returns this */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -41003,44 +72711,45 @@ proto.clarifai.api.GetWorkflowVersionRequest.prototype.clearUserAppId = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; - * @return {string} + * optional InstalledModuleVersion installed_module_version = 2; + * @return {?proto.clarifai.api.InstalledModuleVersion} */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.getWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.getInstalledModuleVersion = function() { + return /** @type{?proto.clarifai.api.InstalledModuleVersion} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InstalledModuleVersion, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this - */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.setWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {?proto.clarifai.api.InstalledModuleVersion|undefined} value + * @return {!proto.clarifai.api.SingleInstalledModuleVersionResponse} returns this +*/ +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.setInstalledModuleVersion = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * optional string workflow_version_id = 3; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleInstalledModuleVersionResponse} returns this */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.getWorkflowVersionId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.clearInstalledModuleVersion = function() { + return this.setInstalledModuleVersion(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetWorkflowVersionRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.GetWorkflowVersionRequest.prototype.setWorkflowVersionId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.SingleInstalledModuleVersionResponse.prototype.hasInstalledModuleVersion = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -41050,7 +72759,7 @@ proto.clarifai.api.GetWorkflowVersionRequest.prototype.setWorkflowVersionId = fu * @private {!Array} * @const */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.repeatedFields_ = [3]; +proto.clarifai.api.MultiInstalledModuleVersionResponse.repeatedFields_ = [2]; @@ -41067,8 +72776,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteWorkflowVersionsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiInstalledModuleVersionResponse.toObject(opt_includeInstance, this); }; @@ -41077,15 +72786,15 @@ proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteWorkflowVersionsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiInstalledModuleVersionResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiInstalledModuleVersionResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - workflowVersionIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + installedModuleVersionsList: jspb.Message.toObjectList(msg.getInstalledModuleVersionsList(), + proto_clarifai_api_resources_pb.InstalledModuleVersion.toObject, includeInstance) }; if (includeInstance) { @@ -41099,23 +72808,23 @@ proto.clarifai.api.DeleteWorkflowVersionsRequest.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} + * @return {!proto.clarifai.api.MultiInstalledModuleVersionResponse} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiInstalledModuleVersionResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteWorkflowVersionsRequest; - return proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiInstalledModuleVersionResponse; + return proto.clarifai.api.MultiInstalledModuleVersionResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteWorkflowVersionsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiInstalledModuleVersionResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} + * @return {!proto.clarifai.api.MultiInstalledModuleVersionResponse} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiInstalledModuleVersionResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -41123,17 +72832,14 @@ proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addWorkflowVersionIds(value); + var value = new proto_clarifai_api_resources_pb.InstalledModuleVersion; + reader.readMessage(value,proto_clarifai_api_resources_pb.InstalledModuleVersion.deserializeBinaryFromReader); + msg.addInstalledModuleVersions(value); break; default: reader.skipField(); @@ -41148,9 +72854,9 @@ proto.clarifai.api.DeleteWorkflowVersionsRequest.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteWorkflowVersionsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiInstalledModuleVersionResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -41158,62 +72864,56 @@ proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteWorkflowVersionsRequest} message + * @param {!proto.clarifai.api.MultiInstalledModuleVersionResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiInstalledModuleVersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getWorkflowId(); + f = message.getInstalledModuleVersionsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getWorkflowVersionIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f + f, + proto_clarifai_api_resources_pb.InstalledModuleVersion.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiInstalledModuleVersionResponse} returns this */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.MultiInstalledModuleVersionResponse} returns this */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -41221,74 +72921,50 @@ proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.clearUserAppId = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; - * @return {string} - */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.getWorkflowId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this - */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.setWorkflowId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string workflow_version_ids = 3; - * @return {!Array} + * repeated InstalledModuleVersion installed_module_versions = 2; + * @return {!Array} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.getWorkflowVersionIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.getInstalledModuleVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InstalledModuleVersion, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this - */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.setWorkflowVersionIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.MultiInstalledModuleVersionResponse} returns this +*/ +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.setInstalledModuleVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.InstalledModuleVersion=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.InstalledModuleVersion} */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.addWorkflowVersionIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.addInstalledModuleVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InstalledModuleVersion, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.MultiInstalledModuleVersionResponse} returns this */ -proto.clarifai.api.DeleteWorkflowVersionsRequest.prototype.clearWorkflowVersionIdsList = function() { - return this.setWorkflowVersionIdsList([]); +proto.clarifai.api.MultiInstalledModuleVersionResponse.prototype.clearInstalledModuleVersionsList = function() { + return this.setInstalledModuleVersionsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PatchWorkflowVersionsRequest.repeatedFields_ = [3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -41304,8 +72980,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchWorkflowVersionsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListNextTaskAssignmentsRequest.toObject(opt_includeInstance, this); }; @@ -41314,17 +72990,14 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchWorkflowVersionsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListNextTaskAssignmentsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchWorkflowVersionsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListNextTaskAssignmentsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - workflowId: jspb.Message.getFieldWithDefault(msg, 2, ""), - workflowVersionsList: jspb.Message.toObjectList(msg.getWorkflowVersionsList(), - proto_clarifai_api_resources_pb.WorkflowVersion.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 4, "") + taskId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -41338,23 +73011,23 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} + * @return {!proto.clarifai.api.ListNextTaskAssignmentsRequest} */ -proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListNextTaskAssignmentsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchWorkflowVersionsRequest; - return proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListNextTaskAssignmentsRequest; + return proto.clarifai.api.ListNextTaskAssignmentsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchWorkflowVersionsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListNextTaskAssignmentsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} + * @return {!proto.clarifai.api.ListNextTaskAssignmentsRequest} */ -proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListNextTaskAssignmentsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -41368,16 +73041,7 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinaryFromReader = fu break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setWorkflowId(value); - break; - case 3: - var value = new proto_clarifai_api_resources_pb.WorkflowVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowVersion.deserializeBinaryFromReader); - msg.addWorkflowVersions(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.setTaskId(value); break; default: reader.skipField(); @@ -41392,9 +73056,9 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchWorkflowVersionsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListNextTaskAssignmentsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -41402,11 +73066,11 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchWorkflowVersionsRequest} message + * @param {!proto.clarifai.api.ListNextTaskAssignmentsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchWorkflowVersionsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListNextTaskAssignmentsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -41416,28 +73080,13 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.serializeBinaryToWriter = functi proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowId(); + f = message.getTaskId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getWorkflowVersionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto_clarifai_api_resources_pb.WorkflowVersion.serializeBinaryToWriter - ); - } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } }; @@ -41445,7 +73094,7 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.serializeBinaryToWriter = functi * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -41453,18 +73102,18 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getUserAppId = functio /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.ListNextTaskAssignmentsRequest} returns this */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.ListNextTaskAssignmentsRequest} returns this */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -41473,92 +73122,36 @@ proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.clearUserAppId = funct * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string workflow_id = 2; + * optional string task_id = 2; * @return {string} */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getWorkflowId = function() { +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.getTaskId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this + * @return {!proto.clarifai.api.ListNextTaskAssignmentsRequest} returns this */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setWorkflowId = function(value) { +proto.clarifai.api.ListNextTaskAssignmentsRequest.prototype.setTaskId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * repeated WorkflowVersion workflow_versions = 3; - * @return {!Array} - */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getWorkflowVersionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowVersion, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this -*/ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setWorkflowVersionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clarifai.api.WorkflowVersion=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.WorkflowVersion} - */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.addWorkflowVersions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.WorkflowVersion, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this - */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.clearWorkflowVersionsList = function() { - return this.setWorkflowVersionsList([]); -}; - - -/** - * optional string action = 4; - * @return {string} - */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PatchWorkflowVersionsRequest} returns this - */ -proto.clarifai.api.PatchWorkflowVersionsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.clarifai.api.MultiWorkflowVersionResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostBulkOperationsRequest.repeatedFields_ = [2]; @@ -41575,8 +73168,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiWorkflowVersionResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostBulkOperationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostBulkOperationsRequest.toObject(opt_includeInstance, this); }; @@ -41585,15 +73178,15 @@ proto.clarifai.api.MultiWorkflowVersionResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiWorkflowVersionResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostBulkOperationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiWorkflowVersionResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostBulkOperationsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - workflowVersionsList: jspb.Message.toObjectList(msg.getWorkflowVersionsList(), - proto_clarifai_api_resources_pb.WorkflowVersion.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + bulkOperationsList: jspb.Message.toObjectList(msg.getBulkOperationsList(), + proto_clarifai_api_resources_pb.BulkOperation.toObject, includeInstance) }; if (includeInstance) { @@ -41607,23 +73200,23 @@ proto.clarifai.api.MultiWorkflowVersionResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} + * @return {!proto.clarifai.api.PostBulkOperationsRequest} */ -proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostBulkOperationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiWorkflowVersionResponse; - return proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostBulkOperationsRequest; + return proto.clarifai.api.PostBulkOperationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiWorkflowVersionResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostBulkOperationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} + * @return {!proto.clarifai.api.PostBulkOperationsRequest} */ -proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostBulkOperationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -41631,14 +73224,14 @@ proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinaryFromReader = fu var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.WorkflowVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowVersion.deserializeBinaryFromReader); - msg.addWorkflowVersions(value); + var value = new proto_clarifai_api_resources_pb.BulkOperation; + reader.readMessage(value,proto_clarifai_api_resources_pb.BulkOperation.deserializeBinaryFromReader); + msg.addBulkOperations(value); break; default: reader.skipField(); @@ -41653,9 +73246,9 @@ proto.clarifai.api.MultiWorkflowVersionResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostBulkOperationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiWorkflowVersionResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostBulkOperationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -41663,56 +73256,56 @@ proto.clarifai.api.MultiWorkflowVersionResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiWorkflowVersionResponse} message + * @param {!proto.clarifai.api.PostBulkOperationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiWorkflowVersionResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostBulkOperationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowVersionsList(); + f = message.getBulkOperationsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.WorkflowVersion.serializeBinaryToWriter + proto_clarifai_api_resources_pb.BulkOperation.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostBulkOperationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostBulkOperationsRequest} returns this */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostBulkOperationsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this + * @return {!proto.clarifai.api.PostBulkOperationsRequest} returns this */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostBulkOperationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -41720,46 +73313,46 @@ proto.clarifai.api.MultiWorkflowVersionResponse.prototype.clearStatus = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostBulkOperationsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated WorkflowVersion workflow_versions = 2; - * @return {!Array} + * repeated BulkOperation bulk_operations = 2; + * @return {!Array} */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.getWorkflowVersionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.WorkflowVersion, 2)); +proto.clarifai.api.PostBulkOperationsRequest.prototype.getBulkOperationsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.BulkOperation, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostBulkOperationsRequest} returns this */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.setWorkflowVersionsList = function(value) { +proto.clarifai.api.PostBulkOperationsRequest.prototype.setBulkOperationsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.WorkflowVersion=} opt_value + * @param {!proto.clarifai.api.BulkOperation=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.WorkflowVersion} + * @return {!proto.clarifai.api.BulkOperation} */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.addWorkflowVersions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.WorkflowVersion, opt_index); +proto.clarifai.api.PostBulkOperationsRequest.prototype.addBulkOperations = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.BulkOperation, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiWorkflowVersionResponse} returns this + * @return {!proto.clarifai.api.PostBulkOperationsRequest} returns this */ -proto.clarifai.api.MultiWorkflowVersionResponse.prototype.clearWorkflowVersionsList = function() { - return this.setWorkflowVersionsList([]); +proto.clarifai.api.PostBulkOperationsRequest.prototype.clearBulkOperationsList = function() { + return this.setBulkOperationsList([]); }; @@ -41779,8 +73372,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleWorkflowVersionResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListBulkOperationsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListBulkOperationsRequest.toObject(opt_includeInstance, this); }; @@ -41789,14 +73382,15 @@ proto.clarifai.api.SingleWorkflowVersionResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleWorkflowVersionResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListBulkOperationsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleWorkflowVersionResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListBulkOperationsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - workflowVersion: (f = msg.getWorkflowVersion()) && proto_clarifai_api_resources_pb.WorkflowVersion.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -41810,23 +73404,23 @@ proto.clarifai.api.SingleWorkflowVersionResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} + * @return {!proto.clarifai.api.ListBulkOperationsRequest} */ -proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListBulkOperationsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleWorkflowVersionResponse; - return proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListBulkOperationsRequest; + return proto.clarifai.api.ListBulkOperationsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleWorkflowVersionResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListBulkOperationsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} + * @return {!proto.clarifai.api.ListBulkOperationsRequest} */ -proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListBulkOperationsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -41834,14 +73428,17 @@ proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.WorkflowVersion; - reader.readMessage(value,proto_clarifai_api_resources_pb.WorkflowVersion.deserializeBinaryFromReader); - msg.setWorkflowVersion(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -41856,9 +73453,9 @@ proto.clarifai.api.SingleWorkflowVersionResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListBulkOperationsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleWorkflowVersionResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListBulkOperationsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -41866,56 +73463,62 @@ proto.clarifai.api.SingleWorkflowVersionResponse.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleWorkflowVersionResponse} message + * @param {!proto.clarifai.api.ListBulkOperationsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleWorkflowVersionResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListBulkOperationsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getWorkflowVersion(); - if (f != null) { - writer.writeMessage( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 2, - f, - proto_clarifai_api_resources_pb.WorkflowVersion.serializeBinaryToWriter + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.ListBulkOperationsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListBulkOperationsRequest} returns this */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.setStatus = function(value) { +proto.clarifai.api.ListBulkOperationsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this + * @return {!proto.clarifai.api.ListBulkOperationsRequest} returns this */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListBulkOperationsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -41923,56 +73526,48 @@ proto.clarifai.api.SingleWorkflowVersionResponse.prototype.clearStatus = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.hasStatus = function() { +proto.clarifai.api.ListBulkOperationsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional WorkflowVersion workflow_version = 2; - * @return {?proto.clarifai.api.WorkflowVersion} + * optional uint32 page = 2; + * @return {number} */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.getWorkflowVersion = function() { - return /** @type{?proto.clarifai.api.WorkflowVersion} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.WorkflowVersion, 2)); +proto.clarifai.api.ListBulkOperationsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {?proto.clarifai.api.WorkflowVersion|undefined} value - * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this -*/ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.setWorkflowVersion = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {number} value + * @return {!proto.clarifai.api.ListBulkOperationsRequest} returns this + */ +proto.clarifai.api.ListBulkOperationsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleWorkflowVersionResponse} returns this + * optional uint32 per_page = 3; + * @return {number} */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.clearWorkflowVersion = function() { - return this.setWorkflowVersion(undefined); +proto.clarifai.api.ListBulkOperationsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.clarifai.api.ListBulkOperationsRequest} returns this */ -proto.clarifai.api.SingleWorkflowVersionResponse.prototype.hasWorkflowVersion = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.ListBulkOperationsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostAppDuplicationsRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -41988,8 +73583,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostAppDuplicationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetBulkOperationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetBulkOperationRequest.toObject(opt_includeInstance, this); }; @@ -41998,15 +73593,14 @@ proto.clarifai.api.PostAppDuplicationsRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostAppDuplicationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetBulkOperationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAppDuplicationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetBulkOperationRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - appDuplicationsList: jspb.Message.toObjectList(msg.getAppDuplicationsList(), - proto_clarifai_api_resources_pb.AppDuplication.toObject, includeInstance) + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -42020,23 +73614,23 @@ proto.clarifai.api.PostAppDuplicationsRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostAppDuplicationsRequest} + * @return {!proto.clarifai.api.GetBulkOperationRequest} */ -proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetBulkOperationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostAppDuplicationsRequest; - return proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetBulkOperationRequest; + return proto.clarifai.api.GetBulkOperationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostAppDuplicationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetBulkOperationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostAppDuplicationsRequest} + * @return {!proto.clarifai.api.GetBulkOperationRequest} */ -proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetBulkOperationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42049,9 +73643,8 @@ proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinaryFromReader = func msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.AppDuplication; - reader.readMessage(value,proto_clarifai_api_resources_pb.AppDuplication.deserializeBinaryFromReader); - msg.addAppDuplications(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; default: reader.skipField(); @@ -42066,9 +73659,9 @@ proto.clarifai.api.PostAppDuplicationsRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetBulkOperationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostAppDuplicationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetBulkOperationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42076,11 +73669,11 @@ proto.clarifai.api.PostAppDuplicationsRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostAppDuplicationsRequest} message + * @param {!proto.clarifai.api.GetBulkOperationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostAppDuplicationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetBulkOperationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -42090,12 +73683,11 @@ proto.clarifai.api.PostAppDuplicationsRequest.serializeBinaryToWriter = function proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAppDuplicationsList(); + f = message.getId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.AppDuplication.serializeBinaryToWriter + f ); } }; @@ -42105,7 +73697,7 @@ proto.clarifai.api.PostAppDuplicationsRequest.serializeBinaryToWriter = function * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetBulkOperationRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -42113,18 +73705,18 @@ proto.clarifai.api.PostAppDuplicationsRequest.prototype.getUserAppId = function( /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this + * @return {!proto.clarifai.api.GetBulkOperationRequest} returns this */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetBulkOperationRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this + * @return {!proto.clarifai.api.GetBulkOperationRequest} returns this */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetBulkOperationRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -42133,49 +73725,36 @@ proto.clarifai.api.PostAppDuplicationsRequest.prototype.clearUserAppId = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetBulkOperationRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated AppDuplication app_duplications = 2; - * @return {!Array} + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.getAppDuplicationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AppDuplication, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this -*/ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.setAppDuplicationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.GetBulkOperationRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!proto.clarifai.api.AppDuplication=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.AppDuplication} + * @param {string} value + * @return {!proto.clarifai.api.GetBulkOperationRequest} returns this */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.addAppDuplications = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AppDuplication, opt_index); +proto.clarifai.api.GetBulkOperationRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; + /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostAppDuplicationsRequest} returns this + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.clarifai.api.PostAppDuplicationsRequest.prototype.clearAppDuplicationsList = function() { - return this.setAppDuplicationsList([]); -}; - - +proto.clarifai.api.CancelBulkOperationRequest.repeatedFields_ = [2]; @@ -42192,8 +73771,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetAppDuplicationRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.CancelBulkOperationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.CancelBulkOperationRequest.toObject(opt_includeInstance, this); }; @@ -42202,14 +73781,14 @@ proto.clarifai.api.GetAppDuplicationRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetAppDuplicationRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.CancelBulkOperationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAppDuplicationRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.CancelBulkOperationRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - appDuplicationId: jspb.Message.getFieldWithDefault(msg, 2, "") + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -42223,23 +73802,23 @@ proto.clarifai.api.GetAppDuplicationRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetAppDuplicationRequest} + * @return {!proto.clarifai.api.CancelBulkOperationRequest} */ -proto.clarifai.api.GetAppDuplicationRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.CancelBulkOperationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetAppDuplicationRequest; - return proto.clarifai.api.GetAppDuplicationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.CancelBulkOperationRequest; + return proto.clarifai.api.CancelBulkOperationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetAppDuplicationRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.CancelBulkOperationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetAppDuplicationRequest} + * @return {!proto.clarifai.api.CancelBulkOperationRequest} */ -proto.clarifai.api.GetAppDuplicationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.CancelBulkOperationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42253,7 +73832,7 @@ proto.clarifai.api.GetAppDuplicationRequest.deserializeBinaryFromReader = functi break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setAppDuplicationId(value); + msg.addIds(value); break; default: reader.skipField(); @@ -42268,9 +73847,9 @@ proto.clarifai.api.GetAppDuplicationRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.serializeBinary = function() { +proto.clarifai.api.CancelBulkOperationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetAppDuplicationRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.CancelBulkOperationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42278,11 +73857,11 @@ proto.clarifai.api.GetAppDuplicationRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetAppDuplicationRequest} message + * @param {!proto.clarifai.api.CancelBulkOperationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetAppDuplicationRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.CancelBulkOperationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -42292,9 +73871,9 @@ proto.clarifai.api.GetAppDuplicationRequest.serializeBinaryToWriter = function(m proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAppDuplicationId(); + f = message.getIdsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedString( 2, f ); @@ -42306,7 +73885,7 @@ proto.clarifai.api.GetAppDuplicationRequest.serializeBinaryToWriter = function(m * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.getUserAppId = function() { +proto.clarifai.api.CancelBulkOperationRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -42314,18 +73893,18 @@ proto.clarifai.api.GetAppDuplicationRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetAppDuplicationRequest} returns this + * @return {!proto.clarifai.api.CancelBulkOperationRequest} returns this */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.CancelBulkOperationRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetAppDuplicationRequest} returns this + * @return {!proto.clarifai.api.CancelBulkOperationRequest} returns this */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.CancelBulkOperationRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -42334,30 +73913,56 @@ proto.clarifai.api.GetAppDuplicationRequest.prototype.clearUserAppId = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.CancelBulkOperationRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string app_duplication_id = 2; - * @return {string} + * repeated string ids = 2; + * @return {!Array} */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.getAppDuplicationId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.CancelBulkOperationRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.CancelBulkOperationRequest} returns this + */ +proto.clarifai.api.CancelBulkOperationRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value - * @return {!proto.clarifai.api.GetAppDuplicationRequest} returns this + * @param {number=} opt_index + * @return {!proto.clarifai.api.CancelBulkOperationRequest} returns this */ -proto.clarifai.api.GetAppDuplicationRequest.prototype.setAppDuplicationId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.CancelBulkOperationRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.CancelBulkOperationRequest} returns this + */ +proto.clarifai.api.CancelBulkOperationRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteBulkOperationRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -42373,8 +73978,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListAppDuplicationsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteBulkOperationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteBulkOperationRequest.toObject(opt_includeInstance, this); }; @@ -42383,15 +73988,14 @@ proto.clarifai.api.ListAppDuplicationsRequest.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListAppDuplicationsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteBulkOperationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAppDuplicationsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteBulkOperationRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -42405,23 +74009,23 @@ proto.clarifai.api.ListAppDuplicationsRequest.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListAppDuplicationsRequest} + * @return {!proto.clarifai.api.DeleteBulkOperationRequest} */ -proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteBulkOperationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListAppDuplicationsRequest; - return proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteBulkOperationRequest; + return proto.clarifai.api.DeleteBulkOperationRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListAppDuplicationsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteBulkOperationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListAppDuplicationsRequest} + * @return {!proto.clarifai.api.DeleteBulkOperationRequest} */ -proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteBulkOperationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42434,12 +74038,8 @@ proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinaryFromReader = func msg.setUserAppId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); break; default: reader.skipField(); @@ -42454,9 +74054,9 @@ proto.clarifai.api.ListAppDuplicationsRequest.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteBulkOperationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListAppDuplicationsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteBulkOperationRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42464,11 +74064,11 @@ proto.clarifai.api.ListAppDuplicationsRequest.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListAppDuplicationsRequest} message + * @param {!proto.clarifai.api.DeleteBulkOperationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListAppDuplicationsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteBulkOperationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -42478,20 +74078,13 @@ proto.clarifai.api.ListAppDuplicationsRequest.serializeBinaryToWriter = function proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, f ); } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } }; @@ -42499,7 +74092,7 @@ proto.clarifai.api.ListAppDuplicationsRequest.serializeBinaryToWriter = function * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.DeleteBulkOperationRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -42507,18 +74100,18 @@ proto.clarifai.api.ListAppDuplicationsRequest.prototype.getUserAppId = function( /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this + * @return {!proto.clarifai.api.DeleteBulkOperationRequest} returns this */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.DeleteBulkOperationRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this + * @return {!proto.clarifai.api.DeleteBulkOperationRequest} returns this */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.DeleteBulkOperationRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -42527,55 +74120,49 @@ proto.clarifai.api.ListAppDuplicationsRequest.prototype.clearUserAppId = functio * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.DeleteBulkOperationRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} + * repeated string ids = 2; + * @return {!Array} */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.DeleteBulkOperationRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteBulkOperationRequest} returns this */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.DeleteBulkOperationRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * optional uint32 per_page = 3; - * @return {number} + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteBulkOperationRequest} returns this */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.DeleteBulkOperationRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListAppDuplicationsRequest} returns this + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteBulkOperationRequest} returns this */ -proto.clarifai.api.ListAppDuplicationsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.DeleteBulkOperationRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiAppDuplicationsResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -42591,8 +74178,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiAppDuplicationsResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleBulkOperationsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleBulkOperationsResponse.toObject(opt_includeInstance, this); }; @@ -42601,15 +74188,14 @@ proto.clarifai.api.MultiAppDuplicationsResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiAppDuplicationsResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleBulkOperationsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAppDuplicationsResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleBulkOperationsResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - appDuplicationsList: jspb.Message.toObjectList(msg.getAppDuplicationsList(), - proto_clarifai_api_resources_pb.AppDuplication.toObject, includeInstance) + bulkOperation: (f = msg.getBulkOperation()) && proto_clarifai_api_resources_pb.BulkOperation.toObject(includeInstance, f) }; if (includeInstance) { @@ -42623,23 +74209,23 @@ proto.clarifai.api.MultiAppDuplicationsResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} + * @return {!proto.clarifai.api.SingleBulkOperationsResponse} */ -proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleBulkOperationsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiAppDuplicationsResponse; - return proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleBulkOperationsResponse; + return proto.clarifai.api.SingleBulkOperationsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiAppDuplicationsResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleBulkOperationsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} + * @return {!proto.clarifai.api.SingleBulkOperationsResponse} */ -proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleBulkOperationsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42652,9 +74238,9 @@ proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinaryFromReader = fu msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.AppDuplication; - reader.readMessage(value,proto_clarifai_api_resources_pb.AppDuplication.deserializeBinaryFromReader); - msg.addAppDuplications(value); + var value = new proto_clarifai_api_resources_pb.BulkOperation; + reader.readMessage(value,proto_clarifai_api_resources_pb.BulkOperation.deserializeBinaryFromReader); + msg.setBulkOperation(value); break; default: reader.skipField(); @@ -42669,9 +74255,9 @@ proto.clarifai.api.MultiAppDuplicationsResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleBulkOperationsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiAppDuplicationsResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleBulkOperationsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42679,11 +74265,11 @@ proto.clarifai.api.MultiAppDuplicationsResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiAppDuplicationsResponse} message + * @param {!proto.clarifai.api.SingleBulkOperationsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiAppDuplicationsResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleBulkOperationsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -42693,12 +74279,12 @@ proto.clarifai.api.MultiAppDuplicationsResponse.serializeBinaryToWriter = functi proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getAppDuplicationsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getBulkOperation(); + if (f != null) { + writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.AppDuplication.serializeBinaryToWriter + proto_clarifai_api_resources_pb.BulkOperation.serializeBinaryToWriter ); } }; @@ -42708,7 +74294,7 @@ proto.clarifai.api.MultiAppDuplicationsResponse.serializeBinaryToWriter = functi * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleBulkOperationsResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -42716,18 +74302,18 @@ proto.clarifai.api.MultiAppDuplicationsResponse.prototype.getStatus = function() /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this + * @return {!proto.clarifai.api.SingleBulkOperationsResponse} returns this */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleBulkOperationsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this + * @return {!proto.clarifai.api.SingleBulkOperationsResponse} returns this */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleBulkOperationsResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -42736,50 +74322,56 @@ proto.clarifai.api.MultiAppDuplicationsResponse.prototype.clearStatus = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleBulkOperationsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated AppDuplication app_duplications = 2; - * @return {!Array} + * optional BulkOperation bulk_operation = 2; + * @return {?proto.clarifai.api.BulkOperation} */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.getAppDuplicationsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.AppDuplication, 2)); +proto.clarifai.api.SingleBulkOperationsResponse.prototype.getBulkOperation = function() { + return /** @type{?proto.clarifai.api.BulkOperation} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.BulkOperation, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this + * @param {?proto.clarifai.api.BulkOperation|undefined} value + * @return {!proto.clarifai.api.SingleBulkOperationsResponse} returns this */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.setAppDuplicationsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.SingleBulkOperationsResponse.prototype.setBulkOperation = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.AppDuplication=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.AppDuplication} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleBulkOperationsResponse} returns this */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.addAppDuplications = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.AppDuplication, opt_index); +proto.clarifai.api.SingleBulkOperationsResponse.prototype.clearBulkOperation = function() { + return this.setBulkOperation(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiAppDuplicationsResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.MultiAppDuplicationsResponse.prototype.clearAppDuplicationsList = function() { - return this.setAppDuplicationsList([]); +proto.clarifai.api.SingleBulkOperationsResponse.prototype.hasBulkOperation = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiBulkOperationsResponse.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -42795,8 +74387,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleAppDuplicationResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiBulkOperationsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiBulkOperationsResponse.toObject(opt_includeInstance, this); }; @@ -42805,14 +74397,15 @@ proto.clarifai.api.SingleAppDuplicationResponse.prototype.toObject = function(op * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleAppDuplicationResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiBulkOperationsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleAppDuplicationResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiBulkOperationsResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - appDuplication: (f = msg.getAppDuplication()) && proto_clarifai_api_resources_pb.AppDuplication.toObject(includeInstance, f) + bulkOperationList: jspb.Message.toObjectList(msg.getBulkOperationList(), + proto_clarifai_api_resources_pb.BulkOperation.toObject, includeInstance) }; if (includeInstance) { @@ -42826,23 +74419,23 @@ proto.clarifai.api.SingleAppDuplicationResponse.toObject = function(includeInsta /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleAppDuplicationResponse} + * @return {!proto.clarifai.api.MultiBulkOperationsResponse} */ -proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiBulkOperationsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleAppDuplicationResponse; - return proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiBulkOperationsResponse; + return proto.clarifai.api.MultiBulkOperationsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleAppDuplicationResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiBulkOperationsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleAppDuplicationResponse} + * @return {!proto.clarifai.api.MultiBulkOperationsResponse} */ -proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiBulkOperationsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -42855,9 +74448,9 @@ proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinaryFromReader = fu msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.AppDuplication; - reader.readMessage(value,proto_clarifai_api_resources_pb.AppDuplication.deserializeBinaryFromReader); - msg.setAppDuplication(value); + var value = new proto_clarifai_api_resources_pb.BulkOperation; + reader.readMessage(value,proto_clarifai_api_resources_pb.BulkOperation.deserializeBinaryFromReader); + msg.addBulkOperation(value); break; default: reader.skipField(); @@ -42872,9 +74465,9 @@ proto.clarifai.api.SingleAppDuplicationResponse.deserializeBinaryFromReader = fu * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiBulkOperationsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleAppDuplicationResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiBulkOperationsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -42882,11 +74475,11 @@ proto.clarifai.api.SingleAppDuplicationResponse.prototype.serializeBinary = func /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleAppDuplicationResponse} message + * @param {!proto.clarifai.api.MultiBulkOperationsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleAppDuplicationResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiBulkOperationsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -42896,12 +74489,12 @@ proto.clarifai.api.SingleAppDuplicationResponse.serializeBinaryToWriter = functi proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getAppDuplication(); - if (f != null) { - writer.writeMessage( + f = message.getBulkOperationList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.AppDuplication.serializeBinaryToWriter + proto_clarifai_api_resources_pb.BulkOperation.serializeBinaryToWriter ); } }; @@ -42911,7 +74504,7 @@ proto.clarifai.api.SingleAppDuplicationResponse.serializeBinaryToWriter = functi * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiBulkOperationsResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -42919,18 +74512,18 @@ proto.clarifai.api.SingleAppDuplicationResponse.prototype.getStatus = function() /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this + * @return {!proto.clarifai.api.MultiBulkOperationsResponse} returns this */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiBulkOperationsResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this + * @return {!proto.clarifai.api.MultiBulkOperationsResponse} returns this */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -42939,56 +74532,50 @@ proto.clarifai.api.SingleAppDuplicationResponse.prototype.clearStatus = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiBulkOperationsResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional AppDuplication app_duplication = 2; - * @return {?proto.clarifai.api.AppDuplication} + * repeated BulkOperation bulk_operation = 2; + * @return {!Array} */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.getAppDuplication = function() { - return /** @type{?proto.clarifai.api.AppDuplication} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.AppDuplication, 2)); +proto.clarifai.api.MultiBulkOperationsResponse.prototype.getBulkOperationList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.BulkOperation, 2)); }; /** - * @param {?proto.clarifai.api.AppDuplication|undefined} value - * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiBulkOperationsResponse} returns this */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.setAppDuplication = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.clarifai.api.MultiBulkOperationsResponse.prototype.setBulkOperationList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleAppDuplicationResponse} returns this + * @param {!proto.clarifai.api.BulkOperation=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.BulkOperation} */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.clearAppDuplication = function() { - return this.setAppDuplication(undefined); +proto.clarifai.api.MultiBulkOperationsResponse.prototype.addBulkOperation = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.BulkOperation, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiBulkOperationsResponse} returns this */ -proto.clarifai.api.SingleAppDuplicationResponse.prototype.hasAppDuplication = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.MultiBulkOperationsResponse.prototype.clearBulkOperationList = function() { + return this.setBulkOperationList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostTasksRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -43004,8 +74591,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostTasksRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostTasksRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PutTaskAssignmentsRequest.toObject(opt_includeInstance, this); }; @@ -43014,15 +74601,15 @@ proto.clarifai.api.PostTasksRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostTasksRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PutTaskAssignmentsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostTasksRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PutTaskAssignmentsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - tasksList: jspb.Message.toObjectList(msg.getTasksList(), - proto_clarifai_api_resources_pb.Task.toObject, includeInstance) + taskId: jspb.Message.getFieldWithDefault(msg, 2, ""), + inputId: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -43036,23 +74623,23 @@ proto.clarifai.api.PostTasksRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostTasksRequest} + * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} */ -proto.clarifai.api.PostTasksRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostTasksRequest; - return proto.clarifai.api.PostTasksRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PutTaskAssignmentsRequest; + return proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostTasksRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PutTaskAssignmentsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostTasksRequest} + * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} */ -proto.clarifai.api.PostTasksRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PutTaskAssignmentsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -43065,9 +74652,12 @@ proto.clarifai.api.PostTasksRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Task; - reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); - msg.addTasks(value); + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setInputId(value); break; default: reader.skipField(); @@ -43082,9 +74672,9 @@ proto.clarifai.api.PostTasksRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostTasksRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostTasksRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -43092,11 +74682,11 @@ proto.clarifai.api.PostTasksRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostTasksRequest} message + * @param {!proto.clarifai.api.PutTaskAssignmentsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostTasksRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PutTaskAssignmentsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -43106,12 +74696,18 @@ proto.clarifai.api.PostTasksRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getTasksList(); + f = message.getTaskId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter + f + ); + } + f = message.getInputId(); + if (f.length > 0) { + writer.writeString( + 3, + f ); } }; @@ -43121,7 +74717,7 @@ proto.clarifai.api.PostTasksRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostTasksRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -43129,18 +74725,18 @@ proto.clarifai.api.PostTasksRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostTasksRequest} returns this + * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this */ -proto.clarifai.api.PostTasksRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostTasksRequest} returns this + * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this */ -proto.clarifai.api.PostTasksRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -43149,46 +74745,44 @@ proto.clarifai.api.PostTasksRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostTasksRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Task tasks = 2; - * @return {!Array} + * optional string task_id = 2; + * @return {string} */ -proto.clarifai.api.PostTasksRequest.prototype.getTasksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostTasksRequest} returns this -*/ -proto.clarifai.api.PostTasksRequest.prototype.setTasksList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {string} value + * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this + */ +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setTaskId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Task=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.Task} + * optional string input_id = 3; + * @return {string} */ -proto.clarifai.api.PostTasksRequest.prototype.addTasks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Task, opt_index); +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.getInputId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostTasksRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.PutTaskAssignmentsRequest} returns this */ -proto.clarifai.api.PostTasksRequest.prototype.clearTasksList = function() { - return this.setTasksList([]); +proto.clarifai.api.PutTaskAssignmentsRequest.prototype.setInputId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); }; @@ -43208,8 +74802,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetTaskRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetTaskRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListInputsAddJobsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListInputsAddJobsRequest.toObject(opt_includeInstance, this); }; @@ -43218,14 +74812,15 @@ proto.clarifai.api.GetTaskRequest.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetTaskRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListInputsAddJobsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetTaskRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListInputsAddJobsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - taskId: jspb.Message.getFieldWithDefault(msg, 2, "") + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -43239,23 +74834,23 @@ proto.clarifai.api.GetTaskRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetTaskRequest} + * @return {!proto.clarifai.api.ListInputsAddJobsRequest} */ -proto.clarifai.api.GetTaskRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListInputsAddJobsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetTaskRequest; - return proto.clarifai.api.GetTaskRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListInputsAddJobsRequest; + return proto.clarifai.api.ListInputsAddJobsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetTaskRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListInputsAddJobsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetTaskRequest} + * @return {!proto.clarifai.api.ListInputsAddJobsRequest} */ -proto.clarifai.api.GetTaskRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListInputsAddJobsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -43268,8 +74863,12 @@ proto.clarifai.api.GetTaskRequest.deserializeBinaryFromReader = function(msg, re msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskId(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -43284,9 +74883,9 @@ proto.clarifai.api.GetTaskRequest.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetTaskRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListInputsAddJobsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetTaskRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListInputsAddJobsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -43294,11 +74893,11 @@ proto.clarifai.api.GetTaskRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetTaskRequest} message + * @param {!proto.clarifai.api.ListInputsAddJobsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetTaskRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListInputsAddJobsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -43308,13 +74907,20 @@ proto.clarifai.api.GetTaskRequest.serializeBinaryToWriter = function(message, wr proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getTaskId(); - if (f.length > 0) { - writer.writeString( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 2, f ); } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } }; @@ -43322,7 +74928,7 @@ proto.clarifai.api.GetTaskRequest.serializeBinaryToWriter = function(message, wr * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetTaskRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListInputsAddJobsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -43330,18 +74936,18 @@ proto.clarifai.api.GetTaskRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetTaskRequest} returns this + * @return {!proto.clarifai.api.ListInputsAddJobsRequest} returns this */ -proto.clarifai.api.GetTaskRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListInputsAddJobsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetTaskRequest} returns this + * @return {!proto.clarifai.api.ListInputsAddJobsRequest} returns this */ -proto.clarifai.api.GetTaskRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListInputsAddJobsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -43350,36 +74956,47 @@ proto.clarifai.api.GetTaskRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetTaskRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListInputsAddJobsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string task_id = 2; - * @return {string} + * optional uint32 page = 2; + * @return {number} */ -proto.clarifai.api.GetTaskRequest.prototype.getTaskId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.ListInputsAddJobsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetTaskRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListInputsAddJobsRequest} returns this */ -proto.clarifai.api.GetTaskRequest.prototype.setTaskId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.ListInputsAddJobsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; +/** + * optional uint32 per_page = 3; + * @return {number} + */ +proto.clarifai.api.ListInputsAddJobsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {number} value + * @return {!proto.clarifai.api.ListInputsAddJobsRequest} returns this */ -proto.clarifai.api.ListTasksRequest.repeatedFields_ = [4,5]; +proto.clarifai.api.ListInputsAddJobsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + @@ -43396,8 +75013,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListTasksRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListTasksRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetInputsAddJobRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetInputsAddJobRequest.toObject(opt_includeInstance, this); }; @@ -43406,18 +75023,14 @@ proto.clarifai.api.ListTasksRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListTasksRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetInputsAddJobRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListTasksRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetInputsAddJobRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0), - workerUserIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, - reviewUserIdsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, - includingLabelOrderTasks: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) + id: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -43431,23 +75044,23 @@ proto.clarifai.api.ListTasksRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListTasksRequest} + * @return {!proto.clarifai.api.GetInputsAddJobRequest} */ -proto.clarifai.api.ListTasksRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetInputsAddJobRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListTasksRequest; - return proto.clarifai.api.ListTasksRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetInputsAddJobRequest; + return proto.clarifai.api.GetInputsAddJobRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListTasksRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetInputsAddJobRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListTasksRequest} + * @return {!proto.clarifai.api.GetInputsAddJobRequest} */ -proto.clarifai.api.ListTasksRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetInputsAddJobRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -43460,24 +75073,8 @@ proto.clarifai.api.ListTasksRequest.deserializeBinaryFromReader = function(msg, msg.setUserAppId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addWorkerUserIds(value); - break; - case 5: var value = /** @type {string} */ (reader.readString()); - msg.addReviewUserIds(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIncludingLabelOrderTasks(value); + msg.setId(value); break; default: reader.skipField(); @@ -43492,9 +75089,9 @@ proto.clarifai.api.ListTasksRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListTasksRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetInputsAddJobRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListTasksRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetInputsAddJobRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -43502,11 +75099,11 @@ proto.clarifai.api.ListTasksRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListTasksRequest} message + * @param {!proto.clarifai.api.GetInputsAddJobRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListTasksRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetInputsAddJobRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -43516,38 +75113,10 @@ proto.clarifai.api.ListTasksRequest.serializeBinaryToWriter = function(message, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getWorkerUserIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } - f = message.getReviewUserIdsList(); + f = message.getId(); if (f.length > 0) { - writer.writeRepeatedString( - 5, - f - ); - } - f = message.getIncludingLabelOrderTasks(); - if (f) { - writer.writeBool( - 6, + writer.writeString( + 2, f ); } @@ -43558,7 +75127,7 @@ proto.clarifai.api.ListTasksRequest.serializeBinaryToWriter = function(message, * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListTasksRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetInputsAddJobRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -43566,18 +75135,18 @@ proto.clarifai.api.ListTasksRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * @return {!proto.clarifai.api.GetInputsAddJobRequest} returns this */ -proto.clarifai.api.ListTasksRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetInputsAddJobRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * @return {!proto.clarifai.api.GetInputsAddJobRequest} returns this */ -proto.clarifai.api.ListTasksRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetInputsAddJobRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -43586,136 +75155,207 @@ proto.clarifai.api.ListTasksRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListTasksRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetInputsAddJobRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.ListTasksRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.GetInputsAddJobRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.GetInputsAddJobRequest} returns this */ -proto.clarifai.api.ListTasksRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.GetInputsAddJobRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional uint32 per_page = 3; - * @return {number} + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} */ -proto.clarifai.api.ListTasksRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.CancelInputsAddJobRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.CancelInputsAddJobRequest.toObject(opt_includeInstance, this); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.CancelInputsAddJobRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListTasksRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.CancelInputsAddJobRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + id: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * repeated string worker_user_ids = 4; - * @return {!Array} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.CancelInputsAddJobRequest} */ -proto.clarifai.api.ListTasksRequest.prototype.getWorkerUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +proto.clarifai.api.CancelInputsAddJobRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.CancelInputsAddJobRequest; + return proto.clarifai.api.CancelInputsAddJobRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.CancelInputsAddJobRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.CancelInputsAddJobRequest} */ -proto.clarifai.api.ListTasksRequest.prototype.setWorkerUserIdsList = function(value) { - return jspb.Message.setField(this, 4, value || []); +proto.clarifai.api.CancelInputsAddJobRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.clarifai.api.ListTasksRequest.prototype.addWorkerUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +proto.clarifai.api.CancelInputsAddJobRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.CancelInputsAddJobRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.CancelInputsAddJobRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListTasksRequest.prototype.clearWorkerUserIdsList = function() { - return this.setWorkerUserIdsList([]); +proto.clarifai.api.CancelInputsAddJobRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } }; /** - * repeated string review_user_ids = 5; - * @return {!Array} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListTasksRequest.prototype.getReviewUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); +proto.clarifai.api.CancelInputsAddJobRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.ListTasksRequest} returns this - */ -proto.clarifai.api.ListTasksRequest.prototype.setReviewUserIdsList = function(value) { - return jspb.Message.setField(this, 5, value || []); + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.CancelInputsAddJobRequest} returns this +*/ +proto.clarifai.api.CancelInputsAddJobRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.CancelInputsAddJobRequest} returns this */ -proto.clarifai.api.ListTasksRequest.prototype.addReviewUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 5, value, opt_index); +proto.clarifai.api.CancelInputsAddJobRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.ListTasksRequest.prototype.clearReviewUserIdsList = function() { - return this.setReviewUserIdsList([]); +proto.clarifai.api.CancelInputsAddJobRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional bool including_label_order_tasks = 6; - * @return {boolean} + * optional string id = 2; + * @return {string} */ -proto.clarifai.api.ListTasksRequest.prototype.getIncludingLabelOrderTasks = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); +proto.clarifai.api.CancelInputsAddJobRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {boolean} value - * @return {!proto.clarifai.api.ListTasksRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.CancelInputsAddJobRequest} returns this */ -proto.clarifai.api.ListTasksRequest.prototype.setIncludingLabelOrderTasks = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); +proto.clarifai.api.CancelInputsAddJobRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -43725,7 +75365,7 @@ proto.clarifai.api.ListTasksRequest.prototype.setIncludingLabelOrderTasks = func * @private {!Array} * @const */ -proto.clarifai.api.PatchTasksRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiInputsAddJobResponse.repeatedFields_ = [2]; @@ -43742,8 +75382,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchTasksRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchTasksRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiInputsAddJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiInputsAddJobResponse.toObject(opt_includeInstance, this); }; @@ -43752,16 +75392,15 @@ proto.clarifai.api.PatchTasksRequest.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchTasksRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiInputsAddJobResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchTasksRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiInputsAddJobResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - tasksList: jspb.Message.toObjectList(msg.getTasksList(), - proto_clarifai_api_resources_pb.Task.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + inputsAddJobsList: jspb.Message.toObjectList(msg.getInputsAddJobsList(), + proto_clarifai_api_resources_pb.InputsAddJob.toObject, includeInstance) }; if (includeInstance) { @@ -43775,23 +75414,23 @@ proto.clarifai.api.PatchTasksRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchTasksRequest} + * @return {!proto.clarifai.api.MultiInputsAddJobResponse} */ -proto.clarifai.api.PatchTasksRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiInputsAddJobResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchTasksRequest; - return proto.clarifai.api.PatchTasksRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiInputsAddJobResponse; + return proto.clarifai.api.MultiInputsAddJobResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchTasksRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiInputsAddJobResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchTasksRequest} + * @return {!proto.clarifai.api.MultiInputsAddJobResponse} */ -proto.clarifai.api.PatchTasksRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiInputsAddJobResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -43799,18 +75438,14 @@ proto.clarifai.api.PatchTasksRequest.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Task; - reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); - msg.addTasks(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + var value = new proto_clarifai_api_resources_pb.InputsAddJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputsAddJob.deserializeBinaryFromReader); + msg.addInputsAddJobs(value); break; default: reader.skipField(); @@ -43825,9 +75460,9 @@ proto.clarifai.api.PatchTasksRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchTasksRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiInputsAddJobResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchTasksRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiInputsAddJobResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -43835,63 +75470,56 @@ proto.clarifai.api.PatchTasksRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchTasksRequest} message + * @param {!proto.clarifai.api.MultiInputsAddJobResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchTasksRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiInputsAddJobResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getTasksList(); + f = message.getInputsAddJobsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter - ); - } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( - 3, - f + proto_clarifai_api_resources_pb.InputsAddJob.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PatchTasksRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiInputsAddJobResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchTasksRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiInputsAddJobResponse} returns this */ -proto.clarifai.api.PatchTasksRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiInputsAddJobResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchTasksRequest} returns this + * @return {!proto.clarifai.api.MultiInputsAddJobResponse} returns this */ -proto.clarifai.api.PatchTasksRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiInputsAddJobResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -43899,75 +75527,50 @@ proto.clarifai.api.PatchTasksRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchTasksRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiInputsAddJobResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Task tasks = 2; - * @return {!Array} + * repeated InputsAddJob inputs_add_jobs = 2; + * @return {!Array} */ -proto.clarifai.api.PatchTasksRequest.prototype.getTasksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); +proto.clarifai.api.MultiInputsAddJobResponse.prototype.getInputsAddJobsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsAddJob, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchTasksRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiInputsAddJobResponse} returns this */ -proto.clarifai.api.PatchTasksRequest.prototype.setTasksList = function(value) { +proto.clarifai.api.MultiInputsAddJobResponse.prototype.setInputsAddJobsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Task=} opt_value + * @param {!proto.clarifai.api.InputsAddJob=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Task} + * @return {!proto.clarifai.api.InputsAddJob} */ -proto.clarifai.api.PatchTasksRequest.prototype.addTasks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Task, opt_index); +proto.clarifai.api.MultiInputsAddJobResponse.prototype.addInputsAddJobs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsAddJob, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchTasksRequest} returns this - */ -proto.clarifai.api.PatchTasksRequest.prototype.clearTasksList = function() { - return this.setTasksList([]); -}; - - -/** - * optional string action = 3; - * @return {string} - */ -proto.clarifai.api.PatchTasksRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PatchTasksRequest} returns this + * @return {!proto.clarifai.api.MultiInputsAddJobResponse} returns this */ -proto.clarifai.api.PatchTasksRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.MultiInputsAddJobResponse.prototype.clearInputsAddJobsList = function() { + return this.setInputsAddJobsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.DeleteTasksRequest.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -43983,8 +75586,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteTasksRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteTasksRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleInputsAddJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleInputsAddJobResponse.toObject(opt_includeInstance, this); }; @@ -43993,14 +75596,14 @@ proto.clarifai.api.DeleteTasksRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteTasksRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleInputsAddJobResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteTasksRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleInputsAddJobResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + inputsAddJob: (f = msg.getInputsAddJob()) && proto_clarifai_api_resources_pb.InputsAddJob.toObject(includeInstance, f) }; if (includeInstance) { @@ -44014,23 +75617,23 @@ proto.clarifai.api.DeleteTasksRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteTasksRequest} + * @return {!proto.clarifai.api.SingleInputsAddJobResponse} */ -proto.clarifai.api.DeleteTasksRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleInputsAddJobResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteTasksRequest; - return proto.clarifai.api.DeleteTasksRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleInputsAddJobResponse; + return proto.clarifai.api.SingleInputsAddJobResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteTasksRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleInputsAddJobResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteTasksRequest} + * @return {!proto.clarifai.api.SingleInputsAddJobResponse} */ -proto.clarifai.api.DeleteTasksRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleInputsAddJobResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -44038,13 +75641,14 @@ proto.clarifai.api.DeleteTasksRequest.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + var value = new proto_clarifai_api_resources_pb.InputsAddJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputsAddJob.deserializeBinaryFromReader); + msg.setInputsAddJob(value); break; default: reader.skipField(); @@ -44059,9 +75663,9 @@ proto.clarifai.api.DeleteTasksRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteTasksRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleInputsAddJobResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteTasksRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleInputsAddJobResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -44069,55 +75673,56 @@ proto.clarifai.api.DeleteTasksRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteTasksRequest} message + * @param {!proto.clarifai.api.SingleInputsAddJobResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteTasksRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleInputsAddJobResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getInputsAddJob(); + if (f != null) { + writer.writeMessage( 2, - f + f, + proto_clarifai_api_resources_pb.InputsAddJob.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.DeleteTasksRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleInputsAddJobResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteTasksRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleInputsAddJobResponse} returns this */ -proto.clarifai.api.DeleteTasksRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleInputsAddJobResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteTasksRequest} returns this + * @return {!proto.clarifai.api.SingleInputsAddJobResponse} returns this */ -proto.clarifai.api.DeleteTasksRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleInputsAddJobResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -44125,45 +75730,45 @@ proto.clarifai.api.DeleteTasksRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteTasksRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleInputsAddJobResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} + * optional InputsAddJob inputs_add_job = 2; + * @return {?proto.clarifai.api.InputsAddJob} */ -proto.clarifai.api.DeleteTasksRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.SingleInputsAddJobResponse.prototype.getInputsAddJob = function() { + return /** @type{?proto.clarifai.api.InputsAddJob} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InputsAddJob, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteTasksRequest} returns this - */ -proto.clarifai.api.DeleteTasksRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {?proto.clarifai.api.InputsAddJob|undefined} value + * @return {!proto.clarifai.api.SingleInputsAddJobResponse} returns this +*/ +proto.clarifai.api.SingleInputsAddJobResponse.prototype.setInputsAddJob = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteTasksRequest} returns this + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleInputsAddJobResponse} returns this */ -proto.clarifai.api.DeleteTasksRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.SingleInputsAddJobResponse.prototype.clearInputsAddJob = function() { + return this.setInputsAddJob(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteTasksRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.DeleteTasksRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); +proto.clarifai.api.SingleInputsAddJobResponse.prototype.hasInputsAddJob = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -44173,7 +75778,7 @@ proto.clarifai.api.DeleteTasksRequest.prototype.clearIdsList = function() { * @private {!Array} * @const */ -proto.clarifai.api.MultiTaskResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostUploadsRequest.repeatedFields_ = [2]; @@ -44190,8 +75795,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiTaskResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiTaskResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostUploadsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostUploadsRequest.toObject(opt_includeInstance, this); }; @@ -44200,15 +75805,15 @@ proto.clarifai.api.MultiTaskResponse.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiTaskResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostUploadsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiTaskResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostUploadsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - tasksList: jspb.Message.toObjectList(msg.getTasksList(), - proto_clarifai_api_resources_pb.Task.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + uploadsList: jspb.Message.toObjectList(msg.getUploadsList(), + proto_clarifai_api_resources_pb.Upload.toObject, includeInstance) }; if (includeInstance) { @@ -44222,23 +75827,23 @@ proto.clarifai.api.MultiTaskResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiTaskResponse} + * @return {!proto.clarifai.api.PostUploadsRequest} */ -proto.clarifai.api.MultiTaskResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostUploadsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiTaskResponse; - return proto.clarifai.api.MultiTaskResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostUploadsRequest; + return proto.clarifai.api.PostUploadsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiTaskResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostUploadsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiTaskResponse} + * @return {!proto.clarifai.api.PostUploadsRequest} */ -proto.clarifai.api.MultiTaskResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostUploadsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -44246,14 +75851,14 @@ proto.clarifai.api.MultiTaskResponse.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Task; - reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); - msg.addTasks(value); + var value = new proto_clarifai_api_resources_pb.Upload; + reader.readMessage(value,proto_clarifai_api_resources_pb.Upload.deserializeBinaryFromReader); + msg.addUploads(value); break; default: reader.skipField(); @@ -44268,9 +75873,9 @@ proto.clarifai.api.MultiTaskResponse.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiTaskResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostUploadsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiTaskResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostUploadsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -44278,56 +75883,56 @@ proto.clarifai.api.MultiTaskResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiTaskResponse} message + * @param {!proto.clarifai.api.PostUploadsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiTaskResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostUploadsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getTasksList(); + f = message.getUploadsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Upload.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiTaskResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostUploadsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiTaskResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostUploadsRequest} returns this */ -proto.clarifai.api.MultiTaskResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostUploadsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiTaskResponse} returns this + * @return {!proto.clarifai.api.PostUploadsRequest} returns this */ -proto.clarifai.api.MultiTaskResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostUploadsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -44335,50 +75940,57 @@ proto.clarifai.api.MultiTaskResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiTaskResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostUploadsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Task tasks = 2; - * @return {!Array} + * repeated Upload uploads = 2; + * @return {!Array} */ -proto.clarifai.api.MultiTaskResponse.prototype.getTasksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); +proto.clarifai.api.PostUploadsRequest.prototype.getUploadsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Upload, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiTaskResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostUploadsRequest} returns this */ -proto.clarifai.api.MultiTaskResponse.prototype.setTasksList = function(value) { +proto.clarifai.api.PostUploadsRequest.prototype.setUploadsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Task=} opt_value + * @param {!proto.clarifai.api.Upload=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Task} + * @return {!proto.clarifai.api.Upload} */ -proto.clarifai.api.MultiTaskResponse.prototype.addTasks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Task, opt_index); +proto.clarifai.api.PostUploadsRequest.prototype.addUploads = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Upload, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiTaskResponse} returns this + * @return {!proto.clarifai.api.PostUploadsRequest} returns this */ -proto.clarifai.api.MultiTaskResponse.prototype.clearTasksList = function() { - return this.setTasksList([]); +proto.clarifai.api.PostUploadsRequest.prototype.clearUploadsList = function() { + return this.setUploadsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteUploadsRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -44394,8 +76006,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleTaskResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleTaskResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteUploadsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteUploadsRequest.toObject(opt_includeInstance, this); }; @@ -44404,14 +76016,14 @@ proto.clarifai.api.SingleTaskResponse.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleTaskResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteUploadsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleTaskResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteUploadsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - task: (f = msg.getTask()) && proto_clarifai_api_resources_pb.Task.toObject(includeInstance, f) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -44425,23 +76037,23 @@ proto.clarifai.api.SingleTaskResponse.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleTaskResponse} + * @return {!proto.clarifai.api.DeleteUploadsRequest} */ -proto.clarifai.api.SingleTaskResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.DeleteUploadsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleTaskResponse; - return proto.clarifai.api.SingleTaskResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.DeleteUploadsRequest; + return proto.clarifai.api.DeleteUploadsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleTaskResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.DeleteUploadsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleTaskResponse} + * @return {!proto.clarifai.api.DeleteUploadsRequest} */ -proto.clarifai.api.SingleTaskResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.DeleteUploadsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -44449,14 +76061,13 @@ proto.clarifai.api.SingleTaskResponse.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Task; - reader.readMessage(value,proto_clarifai_api_resources_pb.Task.deserializeBinaryFromReader); - msg.setTask(value); + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); break; default: reader.skipField(); @@ -44471,9 +76082,9 @@ proto.clarifai.api.SingleTaskResponse.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleTaskResponse.prototype.serializeBinary = function() { +proto.clarifai.api.DeleteUploadsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleTaskResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.DeleteUploadsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -44481,56 +76092,55 @@ proto.clarifai.api.SingleTaskResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleTaskResponse} message + * @param {!proto.clarifai.api.DeleteUploadsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleTaskResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.DeleteUploadsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getTask(); - if (f != null) { - writer.writeMessage( + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( 2, - f, - proto_clarifai_api_resources_pb.Task.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleTaskResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.DeleteUploadsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleTaskResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteUploadsRequest} returns this */ -proto.clarifai.api.SingleTaskResponse.prototype.setStatus = function(value) { +proto.clarifai.api.DeleteUploadsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleTaskResponse} returns this + * @return {!proto.clarifai.api.DeleteUploadsRequest} returns this */ -proto.clarifai.api.SingleTaskResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.DeleteUploadsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -44538,56 +76148,49 @@ proto.clarifai.api.SingleTaskResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleTaskResponse.prototype.hasStatus = function() { +proto.clarifai.api.DeleteUploadsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Task task = 2; - * @return {?proto.clarifai.api.Task} + * repeated string ids = 2; + * @return {!Array} */ -proto.clarifai.api.SingleTaskResponse.prototype.getTask = function() { - return /** @type{?proto.clarifai.api.Task} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Task, 2)); +proto.clarifai.api.DeleteUploadsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {?proto.clarifai.api.Task|undefined} value - * @return {!proto.clarifai.api.SingleTaskResponse} returns this -*/ -proto.clarifai.api.SingleTaskResponse.prototype.setTask = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteUploadsRequest} returns this + */ +proto.clarifai.api.DeleteUploadsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleTaskResponse} returns this + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteUploadsRequest} returns this */ -proto.clarifai.api.SingleTaskResponse.prototype.clearTask = function() { - return this.setTask(undefined); +proto.clarifai.api.DeleteUploadsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteUploadsRequest} returns this */ -proto.clarifai.api.SingleTaskResponse.prototype.hasTask = function() { - return jspb.Message.getField(this, 2) != null; +proto.clarifai.api.DeleteUploadsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.GetTaskCountRequest.repeatedFields_ = [3]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -44603,8 +76206,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetTaskCountRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetTaskCountRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListUploadsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListUploadsRequest.toObject(opt_includeInstance, this); }; @@ -44613,15 +76216,15 @@ proto.clarifai.api.GetTaskCountRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetTaskCountRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListUploadsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetTaskCountRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListUploadsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - taskId: jspb.Message.getFieldWithDefault(msg, 2, ""), - userIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -44635,23 +76238,23 @@ proto.clarifai.api.GetTaskCountRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetTaskCountRequest} + * @return {!proto.clarifai.api.ListUploadsRequest} */ -proto.clarifai.api.GetTaskCountRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListUploadsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetTaskCountRequest; - return proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListUploadsRequest; + return proto.clarifai.api.ListUploadsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetTaskCountRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListUploadsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetTaskCountRequest} + * @return {!proto.clarifai.api.ListUploadsRequest} */ -proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListUploadsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -44664,12 +76267,12 @@ proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader = function(ms msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskId(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addUserIds(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -44684,9 +76287,9 @@ proto.clarifai.api.GetTaskCountRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetTaskCountRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListUploadsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListUploadsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -44694,11 +76297,11 @@ proto.clarifai.api.GetTaskCountRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetTaskCountRequest} message + * @param {!proto.clarifai.api.ListUploadsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListUploadsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -44708,16 +76311,16 @@ proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter = function(messag proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getTaskId(); - if (f.length > 0) { - writer.writeString( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 2, f ); } - f = message.getUserIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( 3, f ); @@ -44729,7 +76332,7 @@ proto.clarifai.api.GetTaskCountRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetTaskCountRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListUploadsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -44737,18 +76340,18 @@ proto.clarifai.api.GetTaskCountRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + * @return {!proto.clarifai.api.ListUploadsRequest} returns this */ -proto.clarifai.api.GetTaskCountRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListUploadsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + * @return {!proto.clarifai.api.ListUploadsRequest} returns this */ -proto.clarifai.api.GetTaskCountRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListUploadsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -44757,74 +76360,48 @@ proto.clarifai.api.GetTaskCountRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetTaskCountRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListUploadsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string task_id = 2; - * @return {string} - */ -proto.clarifai.api.GetTaskCountRequest.prototype.getTaskId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.GetTaskCountRequest} returns this - */ -proto.clarifai.api.GetTaskCountRequest.prototype.setTaskId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated string user_ids = 3; - * @return {!Array} + * optional uint32 page = 2; + * @return {number} */ -proto.clarifai.api.GetTaskCountRequest.prototype.getUserIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +proto.clarifai.api.ListUploadsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListUploadsRequest} returns this */ -proto.clarifai.api.GetTaskCountRequest.prototype.setUserIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); +proto.clarifai.api.ListUploadsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + * optional uint32 per_page = 3; + * @return {number} */ -proto.clarifai.api.GetTaskCountRequest.prototype.addUserIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +proto.clarifai.api.ListUploadsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.GetTaskCountRequest} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListUploadsRequest} returns this */ -proto.clarifai.api.GetTaskCountRequest.prototype.clearUserIdsList = function() { - return this.setUserIdsList([]); +proto.clarifai.api.ListUploadsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.SingleTaskCountResponse.repeatedFields_ = [4]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -44840,8 +76417,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleTaskCountResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleTaskCountResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.GetUploadRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetUploadRequest.toObject(opt_includeInstance, this); }; @@ -44850,17 +76427,14 @@ proto.clarifai.api.SingleTaskCountResponse.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleTaskCountResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetUploadRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleTaskCountResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetUploadRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - appId: jspb.Message.getFieldWithDefault(msg, 2, ""), - taskId: jspb.Message.getFieldWithDefault(msg, 3, ""), - countsList: jspb.Message.toObjectList(msg.getCountsList(), - proto_clarifai_api_resources_pb.TaskStatusCountPerUser.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + uploadId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -44874,23 +76448,23 @@ proto.clarifai.api.SingleTaskCountResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleTaskCountResponse} + * @return {!proto.clarifai.api.GetUploadRequest} */ -proto.clarifai.api.SingleTaskCountResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.GetUploadRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleTaskCountResponse; - return proto.clarifai.api.SingleTaskCountResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetUploadRequest; + return proto.clarifai.api.GetUploadRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleTaskCountResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetUploadRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleTaskCountResponse} + * @return {!proto.clarifai.api.GetUploadRequest} */ -proto.clarifai.api.SingleTaskCountResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetUploadRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -44898,22 +76472,13 @@ proto.clarifai.api.SingleTaskCountResponse.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setAppId(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskId(value); - break; - case 4: - var value = new proto_clarifai_api_resources_pb.TaskStatusCountPerUser; - reader.readMessage(value,proto_clarifai_api_resources_pb.TaskStatusCountPerUser.deserializeBinaryFromReader); - msg.addCounts(value); + msg.setUploadId(value); break; default: reader.skipField(); @@ -44928,9 +76493,9 @@ proto.clarifai.api.SingleTaskCountResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleTaskCountResponse.prototype.serializeBinary = function() { +proto.clarifai.api.GetUploadRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleTaskCountResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetUploadRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -44938,70 +76503,55 @@ proto.clarifai.api.SingleTaskCountResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleTaskCountResponse} message + * @param {!proto.clarifai.api.GetUploadRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleTaskCountResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetUploadRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getAppId(); + f = message.getUploadId(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getTaskId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCountsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto_clarifai_api_resources_pb.TaskStatusCountPerUser.serializeBinaryToWriter - ); - } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.SingleTaskCountResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.GetUploadRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.GetUploadRequest} returns this */ -proto.clarifai.api.SingleTaskCountResponse.prototype.setStatus = function(value) { +proto.clarifai.api.GetUploadRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this + * @return {!proto.clarifai.api.GetUploadRequest} returns this */ -proto.clarifai.api.SingleTaskCountResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.GetUploadRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -45009,92 +76559,29 @@ proto.clarifai.api.SingleTaskCountResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleTaskCountResponse.prototype.hasStatus = function() { +proto.clarifai.api.GetUploadRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string app_id = 2; + * optional string upload_id = 2; * @return {string} */ -proto.clarifai.api.SingleTaskCountResponse.prototype.getAppId = function() { +proto.clarifai.api.GetUploadRequest.prototype.getUploadId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this + * @return {!proto.clarifai.api.GetUploadRequest} returns this */ -proto.clarifai.api.SingleTaskCountResponse.prototype.setAppId = function(value) { +proto.clarifai.api.GetUploadRequest.prototype.setUploadId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * optional string task_id = 3; - * @return {string} - */ -proto.clarifai.api.SingleTaskCountResponse.prototype.getTaskId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this - */ -proto.clarifai.api.SingleTaskCountResponse.prototype.setTaskId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated TaskStatusCountPerUser counts = 4; - * @return {!Array} - */ -proto.clarifai.api.SingleTaskCountResponse.prototype.getCountsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TaskStatusCountPerUser, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this -*/ -proto.clarifai.api.SingleTaskCountResponse.prototype.setCountsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.clarifai.api.TaskStatusCountPerUser=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.TaskStatusCountPerUser} - */ -proto.clarifai.api.SingleTaskCountResponse.prototype.addCounts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.TaskStatusCountPerUser, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.SingleTaskCountResponse} returns this - */ -proto.clarifai.api.SingleTaskCountResponse.prototype.clearCountsList = function() { - return this.setCountsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.PostLabelOrdersRequest.repeatedFields_ = [2]; @@ -45111,8 +76598,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostLabelOrdersRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleUploadResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleUploadResponse.toObject(opt_includeInstance, this); }; @@ -45121,15 +76608,14 @@ proto.clarifai.api.PostLabelOrdersRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostLabelOrdersRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleUploadResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostLabelOrdersRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleUploadResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - labelOrdersList: jspb.Message.toObjectList(msg.getLabelOrdersList(), - proto_clarifai_api_resources_pb.LabelOrder.toObject, includeInstance) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + upload: (f = msg.getUpload()) && proto_clarifai_api_resources_pb.Upload.toObject(includeInstance, f) }; if (includeInstance) { @@ -45143,23 +76629,23 @@ proto.clarifai.api.PostLabelOrdersRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostLabelOrdersRequest} + * @return {!proto.clarifai.api.SingleUploadResponse} */ -proto.clarifai.api.PostLabelOrdersRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleUploadResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostLabelOrdersRequest; - return proto.clarifai.api.PostLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleUploadResponse; + return proto.clarifai.api.SingleUploadResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostLabelOrdersRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleUploadResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostLabelOrdersRequest} + * @return {!proto.clarifai.api.SingleUploadResponse} */ -proto.clarifai.api.PostLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleUploadResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -45167,14 +76653,14 @@ proto.clarifai.api.PostLabelOrdersRequest.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.LabelOrder; - reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); - msg.addLabelOrders(value); + var value = new proto_clarifai_api_resources_pb.Upload; + reader.readMessage(value,proto_clarifai_api_resources_pb.Upload.deserializeBinaryFromReader); + msg.setUpload(value); break; default: reader.skipField(); @@ -45189,9 +76675,9 @@ proto.clarifai.api.PostLabelOrdersRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.serializeBinary = function() { +proto.clarifai.api.SingleUploadResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostLabelOrdersRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleUploadResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -45199,56 +76685,56 @@ proto.clarifai.api.PostLabelOrdersRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostLabelOrdersRequest} message + * @param {!proto.clarifai.api.SingleUploadResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleUploadResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getLabelOrdersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getUpload(); + if (f != null) { + writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Upload.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.SingleUploadResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.SingleUploadResponse} returns this */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.SingleUploadResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.SingleUploadResponse} returns this */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.SingleUploadResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -45256,50 +76742,56 @@ proto.clarifai.api.PostLabelOrdersRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.SingleUploadResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated LabelOrder label_orders = 2; - * @return {!Array} + * optional Upload upload = 2; + * @return {?proto.clarifai.api.Upload} */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.getLabelOrdersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); +proto.clarifai.api.SingleUploadResponse.prototype.getUpload = function() { + return /** @type{?proto.clarifai.api.Upload} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Upload, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this + * @param {?proto.clarifai.api.Upload|undefined} value + * @return {!proto.clarifai.api.SingleUploadResponse} returns this */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.setLabelOrdersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.SingleUploadResponse.prototype.setUpload = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.LabelOrder=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.LabelOrder} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.SingleUploadResponse} returns this */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.addLabelOrders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LabelOrder, opt_index); +proto.clarifai.api.SingleUploadResponse.prototype.clearUpload = function() { + return this.setUpload(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostLabelOrdersRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PostLabelOrdersRequest.prototype.clearLabelOrdersList = function() { - return this.setLabelOrdersList([]); +proto.clarifai.api.SingleUploadResponse.prototype.hasUpload = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.MultiUploadResponse.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -45315,8 +76807,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetLabelOrderRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetLabelOrderRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiUploadResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiUploadResponse.toObject(opt_includeInstance, this); }; @@ -45325,14 +76817,15 @@ proto.clarifai.api.GetLabelOrderRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetLabelOrderRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiUploadResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetLabelOrderRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiUploadResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - labelOrderId: jspb.Message.getFieldWithDefault(msg, 2, "") + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + uploadsList: jspb.Message.toObjectList(msg.getUploadsList(), + proto_clarifai_api_resources_pb.Upload.toObject, includeInstance) }; if (includeInstance) { @@ -45346,23 +76839,23 @@ proto.clarifai.api.GetLabelOrderRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetLabelOrderRequest} + * @return {!proto.clarifai.api.MultiUploadResponse} */ -proto.clarifai.api.GetLabelOrderRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiUploadResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetLabelOrderRequest; - return proto.clarifai.api.GetLabelOrderRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiUploadResponse; + return proto.clarifai.api.MultiUploadResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetLabelOrderRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiUploadResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetLabelOrderRequest} + * @return {!proto.clarifai.api.MultiUploadResponse} */ -proto.clarifai.api.GetLabelOrderRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiUploadResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -45370,13 +76863,14 @@ proto.clarifai.api.GetLabelOrderRequest.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLabelOrderId(value); + var value = new proto_clarifai_api_resources_pb.Upload; + reader.readMessage(value,proto_clarifai_api_resources_pb.Upload.deserializeBinaryFromReader); + msg.addUploads(value); break; default: reader.skipField(); @@ -45391,9 +76885,9 @@ proto.clarifai.api.GetLabelOrderRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetLabelOrderRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiUploadResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetLabelOrderRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiUploadResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -45401,55 +76895,56 @@ proto.clarifai.api.GetLabelOrderRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetLabelOrderRequest} message + * @param {!proto.clarifai.api.MultiUploadResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetLabelOrderRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiUploadResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getLabelOrderId(); + f = message.getUploadsList(); if (f.length > 0) { - writer.writeString( + writer.writeRepeatedMessage( 2, - f + f, + proto_clarifai_api_resources_pb.Upload.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.GetLabelOrderRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiUploadResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetLabelOrderRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiUploadResponse} returns this */ -proto.clarifai.api.GetLabelOrderRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiUploadResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetLabelOrderRequest} returns this + * @return {!proto.clarifai.api.MultiUploadResponse} returns this */ -proto.clarifai.api.GetLabelOrderRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiUploadResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -45457,30 +76952,57 @@ proto.clarifai.api.GetLabelOrderRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetLabelOrderRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiUploadResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string label_order_id = 2; - * @return {string} + * repeated Upload uploads = 2; + * @return {!Array} */ -proto.clarifai.api.GetLabelOrderRequest.prototype.getLabelOrderId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.MultiUploadResponse.prototype.getUploadsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Upload, 2)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.GetLabelOrderRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiUploadResponse} returns this +*/ +proto.clarifai.api.MultiUploadResponse.prototype.setUploadsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.clarifai.api.Upload=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.Upload} */ -proto.clarifai.api.GetLabelOrderRequest.prototype.setLabelOrderId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.clarifai.api.MultiUploadResponse.prototype.addUploads = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Upload, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.MultiUploadResponse} returns this + */ +proto.clarifai.api.MultiUploadResponse.prototype.clearUploadsList = function() { + return this.setUploadsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.PutUploadContentPartsRequest.repeatedFields_ = [3]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -45496,8 +77018,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListLabelOrdersRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PutUploadContentPartsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PutUploadContentPartsRequest.toObject(opt_includeInstance, this); }; @@ -45506,15 +77028,16 @@ proto.clarifai.api.ListLabelOrdersRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListLabelOrdersRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PutUploadContentPartsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListLabelOrdersRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PutUploadContentPartsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - page: jspb.Message.getFieldWithDefault(msg, 2, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) + uploadId: jspb.Message.getFieldWithDefault(msg, 2, ""), + contentPartsList: jspb.Message.toObjectList(msg.getContentPartsList(), + proto_clarifai_api_resources_pb.UploadContentPart.toObject, includeInstance) }; if (includeInstance) { @@ -45528,23 +77051,23 @@ proto.clarifai.api.ListLabelOrdersRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListLabelOrdersRequest} + * @return {!proto.clarifai.api.PutUploadContentPartsRequest} */ -proto.clarifai.api.ListLabelOrdersRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PutUploadContentPartsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListLabelOrdersRequest; - return proto.clarifai.api.ListLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PutUploadContentPartsRequest; + return proto.clarifai.api.PutUploadContentPartsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListLabelOrdersRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PutUploadContentPartsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListLabelOrdersRequest} + * @return {!proto.clarifai.api.PutUploadContentPartsRequest} */ -proto.clarifai.api.ListLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PutUploadContentPartsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -45557,12 +77080,13 @@ proto.clarifai.api.ListLabelOrdersRequest.deserializeBinaryFromReader = function msg.setUserAppId(value); break; case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); + var value = /** @type {string} */ (reader.readString()); + msg.setUploadId(value); break; case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = new proto_clarifai_api_resources_pb.UploadContentPart; + reader.readMessage(value,proto_clarifai_api_resources_pb.UploadContentPart.deserializeBinaryFromReader); + msg.addContentParts(value); break; default: reader.skipField(); @@ -45577,9 +77101,9 @@ proto.clarifai.api.ListLabelOrdersRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PutUploadContentPartsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListLabelOrdersRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PutUploadContentPartsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -45587,11 +77111,11 @@ proto.clarifai.api.ListLabelOrdersRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListLabelOrdersRequest} message + * @param {!proto.clarifai.api.PutUploadContentPartsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PutUploadContentPartsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -45601,18 +77125,19 @@ proto.clarifai.api.ListLabelOrdersRequest.serializeBinaryToWriter = function(mes proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getUploadId(); + if (f.length > 0) { + writer.writeString( 2, f ); } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( + f = message.getContentPartsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 3, - f + f, + proto_clarifai_api_resources_pb.UploadContentPart.serializeBinaryToWriter ); } }; @@ -45622,7 +77147,7 @@ proto.clarifai.api.ListLabelOrdersRequest.serializeBinaryToWriter = function(mes * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PutUploadContentPartsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -45630,18 +77155,18 @@ proto.clarifai.api.ListLabelOrdersRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.PutUploadContentPartsRequest} returns this */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PutUploadContentPartsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.PutUploadContentPartsRequest} returns this */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PutUploadContentPartsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -45650,44 +77175,64 @@ proto.clarifai.api.ListLabelOrdersRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PutUploadContentPartsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional uint32 page = 2; - * @return {number} + * optional string upload_id = 2; + * @return {string} */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.clarifai.api.PutUploadContentPartsRequest.prototype.getUploadId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.PutUploadContentPartsRequest} returns this */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.clarifai.api.PutUploadContentPartsRequest.prototype.setUploadId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional uint32 per_page = 3; - * @return {number} + * repeated UploadContentPart content_parts = 3; + * @return {!Array} */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.clarifai.api.PutUploadContentPartsRequest.prototype.getContentPartsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.UploadContentPart, 3)); }; /** - * @param {number} value - * @return {!proto.clarifai.api.ListLabelOrdersRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PutUploadContentPartsRequest} returns this +*/ +proto.clarifai.api.PutUploadContentPartsRequest.prototype.setContentPartsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.clarifai.api.UploadContentPart=} opt_value + * @param {number=} opt_index + * @return {!proto.clarifai.api.UploadContentPart} */ -proto.clarifai.api.ListLabelOrdersRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); +proto.clarifai.api.PutUploadContentPartsRequest.prototype.addContentParts = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.UploadContentPart, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.PutUploadContentPartsRequest} returns this + */ +proto.clarifai.api.PutUploadContentPartsRequest.prototype.clearContentPartsList = function() { + return this.setContentPartsList([]); }; @@ -45697,7 +77242,7 @@ proto.clarifai.api.ListLabelOrdersRequest.prototype.setPerPage = function(value) * @private {!Array} * @const */ -proto.clarifai.api.PatchLabelOrdersRequest.repeatedFields_ = [2]; +proto.clarifai.api.PostInputsDataSourcesRequest.repeatedFields_ = [2]; @@ -45714,8 +77259,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchLabelOrdersRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostInputsDataSourcesRequest.toObject(opt_includeInstance, this); }; @@ -45724,16 +77269,17 @@ proto.clarifai.api.PatchLabelOrdersRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchLabelOrdersRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostInputsDataSourcesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchLabelOrdersRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostInputsDataSourcesRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - labelOrdersList: jspb.Message.toObjectList(msg.getLabelOrdersList(), - proto_clarifai_api_resources_pb.LabelOrder.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + dataSourcesList: jspb.Message.toObjectList(msg.getDataSourcesList(), + proto_clarifai_api_resources_pb.InputsDataSource.toObject, includeInstance), + callBackUrl: jspb.Message.getFieldWithDefault(msg, 3, ""), + appPat: jspb.Message.getFieldWithDefault(msg, 4, "") }; if (includeInstance) { @@ -45747,23 +77293,23 @@ proto.clarifai.api.PatchLabelOrdersRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchLabelOrdersRequest} + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} */ -proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchLabelOrdersRequest; - return proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostInputsDataSourcesRequest; + return proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchLabelOrdersRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostInputsDataSourcesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchLabelOrdersRequest} + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} */ -proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostInputsDataSourcesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -45776,13 +77322,17 @@ proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinaryFromReader = functio msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.LabelOrder; - reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); - msg.addLabelOrders(value); + var value = new proto_clarifai_api_resources_pb.InputsDataSource; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputsDataSource.deserializeBinaryFromReader); + msg.addDataSources(value); break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.setCallBackUrl(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setAppPat(value); break; default: reader.skipField(); @@ -45797,9 +77347,9 @@ proto.clarifai.api.PatchLabelOrdersRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchLabelOrdersRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostInputsDataSourcesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -45807,11 +77357,11 @@ proto.clarifai.api.PatchLabelOrdersRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchLabelOrdersRequest} message + * @param {!proto.clarifai.api.PostInputsDataSourcesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostInputsDataSourcesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -45821,21 +77371,28 @@ proto.clarifai.api.PatchLabelOrdersRequest.serializeBinaryToWriter = function(me proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getLabelOrdersList(); + f = message.getDataSourcesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter + proto_clarifai_api_resources_pb.InputsDataSource.serializeBinaryToWriter ); } - f = message.getAction(); + f = message.getCallBackUrl(); if (f.length > 0) { writer.writeString( 3, f ); } + f = message.getAppPat(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } }; @@ -45843,7 +77400,7 @@ proto.clarifai.api.PatchLabelOrdersRequest.serializeBinaryToWriter = function(me * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -45851,18 +77408,18 @@ proto.clarifai.api.PatchLabelOrdersRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -45871,74 +77428,85 @@ proto.clarifai.api.PatchLabelOrdersRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; -/** - * repeated LabelOrder label_orders = 2; - * @return {!Array} +/** + * repeated InputsDataSource data_sources = 2; + * @return {!Array} */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.getLabelOrdersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getDataSourcesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsDataSource, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.setLabelOrdersList = function(value) { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setDataSourcesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.LabelOrder=} opt_value + * @param {!proto.clarifai.api.InputsDataSource=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.LabelOrder} + * @return {!proto.clarifai.api.InputsDataSource} */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.addLabelOrders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LabelOrder, opt_index); +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.addDataSources = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsDataSource, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.clearLabelOrdersList = function() { - return this.setLabelOrdersList([]); +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.clearDataSourcesList = function() { + return this.setDataSourcesList([]); }; /** - * optional string action = 3; + * optional string call_back_url = 3; * @return {string} */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.getAction = function() { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getCallBackUrl = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.PatchLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this */ -proto.clarifai.api.PatchLabelOrdersRequest.prototype.setAction = function(value) { +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setCallBackUrl = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; +/** + * optional string app_pat = 4; + * @return {string} + */ +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.getAppPat = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @param {string} value + * @return {!proto.clarifai.api.PostInputsDataSourcesRequest} returns this */ -proto.clarifai.api.DeleteLabelOrdersRequest.repeatedFields_ = [2]; +proto.clarifai.api.PostInputsDataSourcesRequest.prototype.setAppPat = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + @@ -45955,8 +77523,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteLabelOrdersRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetInputsExtractionJobRequest.toObject(opt_includeInstance, this); }; @@ -45965,14 +77533,14 @@ proto.clarifai.api.DeleteLabelOrdersRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteLabelOrdersRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetInputsExtractionJobRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteLabelOrdersRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetInputsExtractionJobRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + inputsExtractionJobId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -45986,23 +77554,23 @@ proto.clarifai.api.DeleteLabelOrdersRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} + * @return {!proto.clarifai.api.GetInputsExtractionJobRequest} */ -proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteLabelOrdersRequest; - return proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetInputsExtractionJobRequest; + return proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteLabelOrdersRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetInputsExtractionJobRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} + * @return {!proto.clarifai.api.GetInputsExtractionJobRequest} */ -proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetInputsExtractionJobRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -46016,7 +77584,7 @@ proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinaryFromReader = functi break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); + msg.setInputsExtractionJobId(value); break; default: reader.skipField(); @@ -46031,9 +77599,9 @@ proto.clarifai.api.DeleteLabelOrdersRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteLabelOrdersRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetInputsExtractionJobRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -46041,11 +77609,11 @@ proto.clarifai.api.DeleteLabelOrdersRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteLabelOrdersRequest} message + * @param {!proto.clarifai.api.GetInputsExtractionJobRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteLabelOrdersRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetInputsExtractionJobRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -46055,9 +77623,9 @@ proto.clarifai.api.DeleteLabelOrdersRequest.serializeBinaryToWriter = function(m proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getIdsList(); + f = message.getInputsExtractionJobId(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeString( 2, f ); @@ -46069,7 +77637,7 @@ proto.clarifai.api.DeleteLabelOrdersRequest.serializeBinaryToWriter = function(m * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -46077,18 +77645,18 @@ proto.clarifai.api.DeleteLabelOrdersRequest.prototype.getUserAppId = function() /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -46097,56 +77665,30 @@ proto.clarifai.api.DeleteLabelOrdersRequest.prototype.clearUserAppId = function( * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} - */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this + * optional string inputs_extraction_job_id = 2; + * @return {string} */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.getInputsExtractionJobId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this - */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteLabelOrdersRequest} returns this + * @return {!proto.clarifai.api.GetInputsExtractionJobRequest} returns this */ -proto.clarifai.api.DeleteLabelOrdersRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); +proto.clarifai.api.GetInputsExtractionJobRequest.prototype.setInputsExtractionJobId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiLabelOrderResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -46162,8 +77704,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiLabelOrderResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListInputsExtractionJobsRequest.toObject(opt_includeInstance, this); }; @@ -46172,15 +77714,15 @@ proto.clarifai.api.MultiLabelOrderResponse.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiLabelOrderResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiLabelOrderResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListInputsExtractionJobsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - labelOrdersList: jspb.Message.toObjectList(msg.getLabelOrdersList(), - proto_clarifai_api_resources_pb.LabelOrder.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + page: jspb.Message.getFieldWithDefault(msg, 2, 0), + perPage: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -46194,23 +77736,23 @@ proto.clarifai.api.MultiLabelOrderResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiLabelOrderResponse} + * @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} */ -proto.clarifai.api.MultiLabelOrderResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiLabelOrderResponse; - return proto.clarifai.api.MultiLabelOrderResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListInputsExtractionJobsRequest; + return proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiLabelOrderResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiLabelOrderResponse} + * @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} */ -proto.clarifai.api.MultiLabelOrderResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListInputsExtractionJobsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -46218,14 +77760,17 @@ proto.clarifai.api.MultiLabelOrderResponse.deserializeBinaryFromReader = functio var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.LabelOrder; - reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); - msg.addLabelOrders(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setPage(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPerPage(value); break; default: reader.skipField(); @@ -46240,9 +77785,9 @@ proto.clarifai.api.MultiLabelOrderResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiLabelOrderResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListInputsExtractionJobsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -46250,56 +77795,62 @@ proto.clarifai.api.MultiLabelOrderResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiLabelOrderResponse} message + * @param {!proto.clarifai.api.ListInputsExtractionJobsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiLabelOrderResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListInputsExtractionJobsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getLabelOrdersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getPage(); + if (f !== 0) { + writer.writeUint32( 2, - f, - proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter + f + ); + } + f = message.getPerPage(); + if (f !== 0) { + writer.writeUint32( + 3, + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.setStatus = function(value) { +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this + * @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -46307,46 +77858,44 @@ proto.clarifai.api.MultiLabelOrderResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.hasStatus = function() { +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated LabelOrder label_orders = 2; - * @return {!Array} + * optional uint32 page = 2; + * @return {number} */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.getLabelOrdersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this -*/ -proto.clarifai.api.MultiLabelOrderResponse.prototype.setLabelOrdersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {number} value + * @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this + */ +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setPage = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * @param {!proto.clarifai.api.LabelOrder=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.LabelOrder} + * optional uint32 per_page = 3; + * @return {number} */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.addLabelOrders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.LabelOrder, opt_index); +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.getPerPage = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiLabelOrderResponse} returns this + * @param {number} value + * @return {!proto.clarifai.api.ListInputsExtractionJobsRequest} returns this */ -proto.clarifai.api.MultiLabelOrderResponse.prototype.clearLabelOrdersList = function() { - return this.setLabelOrdersList([]); +proto.clarifai.api.ListInputsExtractionJobsRequest.prototype.setPerPage = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -46366,8 +77915,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleLabelOrderResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleInputsExtractionJobResponse.toObject(opt_includeInstance, this); }; @@ -46376,14 +77925,14 @@ proto.clarifai.api.SingleLabelOrderResponse.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleLabelOrderResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleLabelOrderResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.SingleInputsExtractionJobResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - labelOrder: (f = msg.getLabelOrder()) && proto_clarifai_api_resources_pb.LabelOrder.toObject(includeInstance, f) + inputsExtractionJob: (f = msg.getInputsExtractionJob()) && proto_clarifai_api_resources_pb.InputsExtractionJob.toObject(includeInstance, f) }; if (includeInstance) { @@ -46397,23 +77946,23 @@ proto.clarifai.api.SingleLabelOrderResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleLabelOrderResponse} + * @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} */ -proto.clarifai.api.SingleLabelOrderResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleLabelOrderResponse; - return proto.clarifai.api.SingleLabelOrderResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleInputsExtractionJobResponse; + return proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleLabelOrderResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleLabelOrderResponse} + * @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} */ -proto.clarifai.api.SingleLabelOrderResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleInputsExtractionJobResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -46426,9 +77975,9 @@ proto.clarifai.api.SingleLabelOrderResponse.deserializeBinaryFromReader = functi msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.LabelOrder; - reader.readMessage(value,proto_clarifai_api_resources_pb.LabelOrder.deserializeBinaryFromReader); - msg.setLabelOrder(value); + var value = new proto_clarifai_api_resources_pb.InputsExtractionJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputsExtractionJob.deserializeBinaryFromReader); + msg.setInputsExtractionJob(value); break; default: reader.skipField(); @@ -46443,9 +77992,9 @@ proto.clarifai.api.SingleLabelOrderResponse.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleLabelOrderResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleInputsExtractionJobResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -46453,11 +78002,11 @@ proto.clarifai.api.SingleLabelOrderResponse.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleLabelOrderResponse} message + * @param {!proto.clarifai.api.SingleInputsExtractionJobResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleLabelOrderResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleInputsExtractionJobResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -46467,12 +78016,12 @@ proto.clarifai.api.SingleLabelOrderResponse.serializeBinaryToWriter = function(m proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getLabelOrder(); + f = message.getInputsExtractionJob(); if (f != null) { writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.LabelOrder.serializeBinaryToWriter + proto_clarifai_api_resources_pb.InputsExtractionJob.serializeBinaryToWriter ); } }; @@ -46482,7 +78031,7 @@ proto.clarifai.api.SingleLabelOrderResponse.serializeBinaryToWriter = function(m * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -46490,18 +78039,18 @@ proto.clarifai.api.SingleLabelOrderResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this + * @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this + * @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -46510,36 +78059,36 @@ proto.clarifai.api.SingleLabelOrderResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional LabelOrder label_order = 2; - * @return {?proto.clarifai.api.LabelOrder} + * optional InputsExtractionJob inputs_extraction_job = 2; + * @return {?proto.clarifai.api.InputsExtractionJob} */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.getLabelOrder = function() { - return /** @type{?proto.clarifai.api.LabelOrder} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.LabelOrder, 2)); +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.getInputsExtractionJob = function() { + return /** @type{?proto.clarifai.api.InputsExtractionJob} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.InputsExtractionJob, 2)); }; /** - * @param {?proto.clarifai.api.LabelOrder|undefined} value - * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this + * @param {?proto.clarifai.api.InputsExtractionJob|undefined} value + * @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.setLabelOrder = function(value) { +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.setInputsExtractionJob = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleLabelOrderResponse} returns this + * @return {!proto.clarifai.api.SingleInputsExtractionJobResponse} returns this */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.clearLabelOrder = function() { - return this.setLabelOrder(undefined); +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.clearInputsExtractionJob = function() { + return this.setInputsExtractionJob(undefined); }; @@ -46547,7 +78096,7 @@ proto.clarifai.api.SingleLabelOrderResponse.prototype.clearLabelOrder = function * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleLabelOrderResponse.prototype.hasLabelOrder = function() { +proto.clarifai.api.SingleInputsExtractionJobResponse.prototype.hasInputsExtractionJob = function() { return jspb.Message.getField(this, 2) != null; }; @@ -46558,7 +78107,7 @@ proto.clarifai.api.SingleLabelOrderResponse.prototype.hasLabelOrder = function() * @private {!Array} * @const */ -proto.clarifai.api.PostCollectorsRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiInputsExtractionJobResponse.repeatedFields_ = [2]; @@ -46575,8 +78124,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostCollectorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostCollectorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiInputsExtractionJobResponse.toObject(opt_includeInstance, this); }; @@ -46585,15 +78134,15 @@ proto.clarifai.api.PostCollectorsRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostCollectorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostCollectorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiInputsExtractionJobResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - collectorsList: jspb.Message.toObjectList(msg.getCollectorsList(), - proto_clarifai_api_resources_pb.Collector.toObject, includeInstance) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + inputsExtractionJobsList: jspb.Message.toObjectList(msg.getInputsExtractionJobsList(), + proto_clarifai_api_resources_pb.InputsExtractionJob.toObject, includeInstance) }; if (includeInstance) { @@ -46607,23 +78156,23 @@ proto.clarifai.api.PostCollectorsRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostCollectorsRequest} + * @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} */ -proto.clarifai.api.PostCollectorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostCollectorsRequest; - return proto.clarifai.api.PostCollectorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiInputsExtractionJobResponse; + return proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostCollectorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostCollectorsRequest} + * @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} */ -proto.clarifai.api.PostCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiInputsExtractionJobResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -46631,14 +78180,14 @@ proto.clarifai.api.PostCollectorsRequest.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Collector; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); - msg.addCollectors(value); + var value = new proto_clarifai_api_resources_pb.InputsExtractionJob; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputsExtractionJob.deserializeBinaryFromReader); + msg.addInputsExtractionJobs(value); break; default: reader.skipField(); @@ -46653,9 +78202,9 @@ proto.clarifai.api.PostCollectorsRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostCollectorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostCollectorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiInputsExtractionJobResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -46663,56 +78212,56 @@ proto.clarifai.api.PostCollectorsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostCollectorsRequest} message + * @param {!proto.clarifai.api.MultiInputsExtractionJobResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostCollectorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiInputsExtractionJobResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getCollectorsList(); + f = message.getInputsExtractionJobsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter + proto_clarifai_api_resources_pb.InputsExtractionJob.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostCollectorsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostCollectorsRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this */ -proto.clarifai.api.PostCollectorsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostCollectorsRequest} returns this + * @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this */ -proto.clarifai.api.PostCollectorsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -46720,46 +78269,46 @@ proto.clarifai.api.PostCollectorsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostCollectorsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Collector collectors = 2; - * @return {!Array} + * repeated InputsExtractionJob inputs_extraction_jobs = 2; + * @return {!Array} */ -proto.clarifai.api.PostCollectorsRequest.prototype.getCollectorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.getInputsExtractionJobsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsExtractionJob, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostCollectorsRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this */ -proto.clarifai.api.PostCollectorsRequest.prototype.setCollectorsList = function(value) { +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.setInputsExtractionJobsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.Collector=} opt_value + * @param {!proto.clarifai.api.InputsExtractionJob=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Collector} + * @return {!proto.clarifai.api.InputsExtractionJob} */ -proto.clarifai.api.PostCollectorsRequest.prototype.addCollectors = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collector, opt_index); +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.addInputsExtractionJobs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsExtractionJob, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostCollectorsRequest} returns this + * @return {!proto.clarifai.api.MultiInputsExtractionJobResponse} returns this */ -proto.clarifai.api.PostCollectorsRequest.prototype.clearCollectorsList = function() { - return this.setCollectorsList([]); +proto.clarifai.api.MultiInputsExtractionJobResponse.prototype.clearInputsExtractionJobsList = function() { + return this.setInputsExtractionJobsList([]); }; @@ -46769,7 +78318,7 @@ proto.clarifai.api.PostCollectorsRequest.prototype.clearCollectorsList = functio * @private {!Array} * @const */ -proto.clarifai.api.PatchCollectorsRequest.repeatedFields_ = [2]; +proto.clarifai.api.CancelInputsExtractionJobsRequest.repeatedFields_ = [2]; @@ -46786,8 +78335,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PatchCollectorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PatchCollectorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.CancelInputsExtractionJobsRequest.toObject(opt_includeInstance, this); }; @@ -46796,16 +78345,14 @@ proto.clarifai.api.PatchCollectorsRequest.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PatchCollectorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.CancelInputsExtractionJobsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchCollectorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.CancelInputsExtractionJobsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - collectorsList: jspb.Message.toObjectList(msg.getCollectorsList(), - proto_clarifai_api_resources_pb.Collector.toObject, includeInstance), - action: jspb.Message.getFieldWithDefault(msg, 3, "") + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { @@ -46819,23 +78366,23 @@ proto.clarifai.api.PatchCollectorsRequest.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PatchCollectorsRequest} + * @return {!proto.clarifai.api.CancelInputsExtractionJobsRequest} */ -proto.clarifai.api.PatchCollectorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.CancelInputsExtractionJobsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PatchCollectorsRequest; - return proto.clarifai.api.PatchCollectorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.CancelInputsExtractionJobsRequest; + return proto.clarifai.api.CancelInputsExtractionJobsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PatchCollectorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.CancelInputsExtractionJobsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PatchCollectorsRequest} + * @return {!proto.clarifai.api.CancelInputsExtractionJobsRequest} */ -proto.clarifai.api.PatchCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.CancelInputsExtractionJobsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -46848,13 +78395,8 @@ proto.clarifai.api.PatchCollectorsRequest.deserializeBinaryFromReader = function msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Collector; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); - msg.addCollectors(value); - break; - case 3: var value = /** @type {string} */ (reader.readString()); - msg.setAction(value); + msg.addIds(value); break; default: reader.skipField(); @@ -46869,9 +78411,9 @@ proto.clarifai.api.PatchCollectorsRequest.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PatchCollectorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PatchCollectorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.CancelInputsExtractionJobsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -46879,11 +78421,11 @@ proto.clarifai.api.PatchCollectorsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PatchCollectorsRequest} message + * @param {!proto.clarifai.api.CancelInputsExtractionJobsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PatchCollectorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.CancelInputsExtractionJobsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -46893,18 +78435,10 @@ proto.clarifai.api.PatchCollectorsRequest.serializeBinaryToWriter = function(mes proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getCollectorsList(); + f = message.getIdsList(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeRepeatedString( 2, - f, - proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter - ); - } - f = message.getAction(); - if (f.length > 0) { - writer.writeString( - 3, f ); } @@ -46915,7 +78449,7 @@ proto.clarifai.api.PatchCollectorsRequest.serializeBinaryToWriter = function(mes * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PatchCollectorsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -46923,18 +78457,18 @@ proto.clarifai.api.PatchCollectorsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this + * @return {!proto.clarifai.api.CancelInputsExtractionJobsRequest} returns this */ -proto.clarifai.api.PatchCollectorsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this + * @return {!proto.clarifai.api.CancelInputsExtractionJobsRequest} returns this */ -proto.clarifai.api.PatchCollectorsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -46943,64 +78477,45 @@ proto.clarifai.api.PatchCollectorsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PatchCollectorsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Collector collectors = 2; - * @return {!Array} + * repeated string ids = 2; + * @return {!Array} */ -proto.clarifai.api.PatchCollectorsRequest.prototype.getCollectorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this -*/ -proto.clarifai.api.PatchCollectorsRequest.prototype.setCollectorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {!Array} value + * @return {!proto.clarifai.api.CancelInputsExtractionJobsRequest} returns this + */ +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); }; /** - * @param {!proto.clarifai.api.Collector=} opt_value + * @param {string} value * @param {number=} opt_index - * @return {!proto.clarifai.api.Collector} + * @return {!proto.clarifai.api.CancelInputsExtractionJobsRequest} returns this */ -proto.clarifai.api.PatchCollectorsRequest.prototype.addCollectors = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collector, opt_index); +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this - */ -proto.clarifai.api.PatchCollectorsRequest.prototype.clearCollectorsList = function() { - return this.setCollectorsList([]); -}; - - -/** - * optional string action = 3; - * @return {string} - */ -proto.clarifai.api.PatchCollectorsRequest.prototype.getAction = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.PatchCollectorsRequest} returns this + * @return {!proto.clarifai.api.CancelInputsExtractionJobsRequest} returns this */ -proto.clarifai.api.PatchCollectorsRequest.prototype.setAction = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.CancelInputsExtractionJobsRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); }; @@ -47010,7 +78525,7 @@ proto.clarifai.api.PatchCollectorsRequest.prototype.setAction = function(value) * @private {!Array} * @const */ -proto.clarifai.api.DeleteCollectorsRequest.repeatedFields_ = [2]; +proto.clarifai.api.PostInputsUploadsRequest.repeatedFields_ = [2]; @@ -47027,8 +78542,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.DeleteCollectorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostInputsUploadsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostInputsUploadsRequest.toObject(opt_includeInstance, this); }; @@ -47037,15 +78552,15 @@ proto.clarifai.api.DeleteCollectorsRequest.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.DeleteCollectorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostInputsUploadsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteCollectorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostInputsUploadsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - deleteAll: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + inputsUploadsList: jspb.Message.toObjectList(msg.getInputsUploadsList(), + proto_clarifai_api_resources_pb.InputsUpload.toObject, includeInstance) }; if (includeInstance) { @@ -47059,23 +78574,23 @@ proto.clarifai.api.DeleteCollectorsRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.DeleteCollectorsRequest} + * @return {!proto.clarifai.api.PostInputsUploadsRequest} */ -proto.clarifai.api.DeleteCollectorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostInputsUploadsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.DeleteCollectorsRequest; - return proto.clarifai.api.DeleteCollectorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostInputsUploadsRequest; + return proto.clarifai.api.PostInputsUploadsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.DeleteCollectorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostInputsUploadsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.DeleteCollectorsRequest} + * @return {!proto.clarifai.api.PostInputsUploadsRequest} */ -proto.clarifai.api.DeleteCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostInputsUploadsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -47088,12 +78603,9 @@ proto.clarifai.api.DeleteCollectorsRequest.deserializeBinaryFromReader = functio msg.setUserAppId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDeleteAll(value); + var value = new proto_clarifai_api_resources_pb.InputsUpload; + reader.readMessage(value,proto_clarifai_api_resources_pb.InputsUpload.deserializeBinaryFromReader); + msg.addInputsUploads(value); break; default: reader.skipField(); @@ -47108,9 +78620,9 @@ proto.clarifai.api.DeleteCollectorsRequest.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostInputsUploadsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.DeleteCollectorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostInputsUploadsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -47118,11 +78630,11 @@ proto.clarifai.api.DeleteCollectorsRequest.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.DeleteCollectorsRequest} message + * @param {!proto.clarifai.api.PostInputsUploadsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.DeleteCollectorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostInputsUploadsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -47132,18 +78644,12 @@ proto.clarifai.api.DeleteCollectorsRequest.serializeBinaryToWriter = function(me proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getIdsList(); + f = message.getInputsUploadsList(); if (f.length > 0) { - writer.writeRepeatedString( + writer.writeRepeatedMessage( 2, - f - ); - } - f = message.getDeleteAll(); - if (f) { - writer.writeBool( - 3, - f + f, + proto_clarifai_api_resources_pb.InputsUpload.serializeBinaryToWriter ); } }; @@ -47153,7 +78659,7 @@ proto.clarifai.api.DeleteCollectorsRequest.serializeBinaryToWriter = function(me * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostInputsUploadsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -47161,18 +78667,18 @@ proto.clarifai.api.DeleteCollectorsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this + * @return {!proto.clarifai.api.PostInputsUploadsRequest} returns this */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostInputsUploadsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this + * @return {!proto.clarifai.api.PostInputsUploadsRequest} returns this */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostInputsUploadsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -47181,63 +78687,46 @@ proto.clarifai.api.DeleteCollectorsRequest.prototype.clearUserAppId = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostInputsUploadsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated string ids = 2; - * @return {!Array} + * repeated InputsUpload inputs_uploads = 2; + * @return {!Array} */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +proto.clarifai.api.PostInputsUploadsRequest.prototype.getInputsUploadsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.InputsUpload, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this - */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); + * @param {!Array} value + * @return {!proto.clarifai.api.PostInputsUploadsRequest} returns this +*/ +proto.clarifai.api.PostInputsUploadsRequest.prototype.setInputsUploadsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {string} value + * @param {!proto.clarifai.api.InputsUpload=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this + * @return {!proto.clarifai.api.InputsUpload} */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +proto.clarifai.api.PostInputsUploadsRequest.prototype.addInputsUploads = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.InputsUpload, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this - */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.clearIdsList = function() { - return this.setIdsList([]); -}; - - -/** - * optional bool delete_all = 3; - * @return {boolean} - */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.getDeleteAll = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clarifai.api.DeleteCollectorsRequest} returns this + * @return {!proto.clarifai.api.PostInputsUploadsRequest} returns this */ -proto.clarifai.api.DeleteCollectorsRequest.prototype.setDeleteAll = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); +proto.clarifai.api.PostInputsUploadsRequest.prototype.clearInputsUploadsList = function() { + return this.setInputsUploadsList([]); }; @@ -47257,8 +78746,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.GetCollectorRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.GetCollectorRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.GetRunnerRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.GetRunnerRequest.toObject(opt_includeInstance, this); }; @@ -47267,14 +78756,14 @@ proto.clarifai.api.GetCollectorRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.GetCollectorRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.GetRunnerRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetCollectorRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.GetRunnerRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - collectorId: jspb.Message.getFieldWithDefault(msg, 2, "") + runnerId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -47288,23 +78777,23 @@ proto.clarifai.api.GetCollectorRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.GetCollectorRequest} + * @return {!proto.clarifai.api.GetRunnerRequest} */ -proto.clarifai.api.GetCollectorRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.GetRunnerRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.GetCollectorRequest; - return proto.clarifai.api.GetCollectorRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.GetRunnerRequest; + return proto.clarifai.api.GetRunnerRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.GetCollectorRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.GetRunnerRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.GetCollectorRequest} + * @return {!proto.clarifai.api.GetRunnerRequest} */ -proto.clarifai.api.GetCollectorRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.GetRunnerRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -47318,7 +78807,7 @@ proto.clarifai.api.GetCollectorRequest.deserializeBinaryFromReader = function(ms break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setCollectorId(value); + msg.setRunnerId(value); break; default: reader.skipField(); @@ -47333,9 +78822,9 @@ proto.clarifai.api.GetCollectorRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.GetCollectorRequest.prototype.serializeBinary = function() { +proto.clarifai.api.GetRunnerRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.GetCollectorRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.GetRunnerRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -47343,11 +78832,11 @@ proto.clarifai.api.GetCollectorRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.GetCollectorRequest} message + * @param {!proto.clarifai.api.GetRunnerRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.GetCollectorRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.GetRunnerRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -47357,7 +78846,7 @@ proto.clarifai.api.GetCollectorRequest.serializeBinaryToWriter = function(messag proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getCollectorId(); + f = message.getRunnerId(); if (f.length > 0) { writer.writeString( 2, @@ -47371,7 +78860,7 @@ proto.clarifai.api.GetCollectorRequest.serializeBinaryToWriter = function(messag * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.GetCollectorRequest.prototype.getUserAppId = function() { +proto.clarifai.api.GetRunnerRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -47379,18 +78868,18 @@ proto.clarifai.api.GetCollectorRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.GetCollectorRequest} returns this + * @return {!proto.clarifai.api.GetRunnerRequest} returns this */ -proto.clarifai.api.GetCollectorRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.GetRunnerRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.GetCollectorRequest} returns this + * @return {!proto.clarifai.api.GetRunnerRequest} returns this */ -proto.clarifai.api.GetCollectorRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.GetRunnerRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -47399,25 +78888,25 @@ proto.clarifai.api.GetCollectorRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.GetCollectorRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.GetRunnerRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional string collector_id = 2; + * optional string runner_id = 2; * @return {string} */ -proto.clarifai.api.GetCollectorRequest.prototype.getCollectorId = function() { +proto.clarifai.api.GetRunnerRequest.prototype.getRunnerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.clarifai.api.GetCollectorRequest} returns this + * @return {!proto.clarifai.api.GetRunnerRequest} returns this */ -proto.clarifai.api.GetCollectorRequest.prototype.setCollectorId = function(value) { +proto.clarifai.api.GetRunnerRequest.prototype.setRunnerId = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; @@ -47438,8 +78927,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListCollectorsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListCollectorsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.ListRunnersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListRunnersRequest.toObject(opt_includeInstance, this); }; @@ -47448,11 +78937,11 @@ proto.clarifai.api.ListCollectorsRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListCollectorsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListRunnersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListCollectorsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListRunnersRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), page: jspb.Message.getFieldWithDefault(msg, 2, 0), @@ -47470,23 +78959,23 @@ proto.clarifai.api.ListCollectorsRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListCollectorsRequest} + * @return {!proto.clarifai.api.ListRunnersRequest} */ -proto.clarifai.api.ListCollectorsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.ListRunnersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListCollectorsRequest; - return proto.clarifai.api.ListCollectorsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListRunnersRequest; + return proto.clarifai.api.ListRunnersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListCollectorsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListRunnersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListCollectorsRequest} + * @return {!proto.clarifai.api.ListRunnersRequest} */ -proto.clarifai.api.ListCollectorsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListRunnersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -47519,9 +79008,9 @@ proto.clarifai.api.ListCollectorsRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListCollectorsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.ListRunnersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListCollectorsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListRunnersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -47529,11 +79018,11 @@ proto.clarifai.api.ListCollectorsRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListCollectorsRequest} message + * @param {!proto.clarifai.api.ListRunnersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListCollectorsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListRunnersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -47564,7 +79053,7 @@ proto.clarifai.api.ListCollectorsRequest.serializeBinaryToWriter = function(mess * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.ListCollectorsRequest.prototype.getUserAppId = function() { +proto.clarifai.api.ListRunnersRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -47572,18 +79061,18 @@ proto.clarifai.api.ListCollectorsRequest.prototype.getUserAppId = function() { /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListCollectorsRequest} returns this + * @return {!proto.clarifai.api.ListRunnersRequest} returns this */ -proto.clarifai.api.ListCollectorsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.ListRunnersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListCollectorsRequest} returns this + * @return {!proto.clarifai.api.ListRunnersRequest} returns this */ -proto.clarifai.api.ListCollectorsRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.ListRunnersRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -47592,7 +79081,7 @@ proto.clarifai.api.ListCollectorsRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListCollectorsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.ListRunnersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -47601,16 +79090,16 @@ proto.clarifai.api.ListCollectorsRequest.prototype.hasUserAppId = function() { * optional uint32 page = 2; * @return {number} */ -proto.clarifai.api.ListCollectorsRequest.prototype.getPage = function() { +proto.clarifai.api.ListRunnersRequest.prototype.getPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListCollectorsRequest} returns this + * @return {!proto.clarifai.api.ListRunnersRequest} returns this */ -proto.clarifai.api.ListCollectorsRequest.prototype.setPage = function(value) { +proto.clarifai.api.ListRunnersRequest.prototype.setPage = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; @@ -47619,16 +79108,16 @@ proto.clarifai.api.ListCollectorsRequest.prototype.setPage = function(value) { * optional uint32 per_page = 3; * @return {number} */ -proto.clarifai.api.ListCollectorsRequest.prototype.getPerPage = function() { +proto.clarifai.api.ListRunnersRequest.prototype.getPerPage = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value - * @return {!proto.clarifai.api.ListCollectorsRequest} returns this + * @return {!proto.clarifai.api.ListRunnersRequest} returns this */ -proto.clarifai.api.ListCollectorsRequest.prototype.setPerPage = function(value) { +proto.clarifai.api.ListRunnersRequest.prototype.setPerPage = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; @@ -47639,7 +79128,7 @@ proto.clarifai.api.ListCollectorsRequest.prototype.setPerPage = function(value) * @private {!Array} * @const */ -proto.clarifai.api.MultiCollectorResponse.repeatedFields_ = [2]; +proto.clarifai.api.PostRunnersRequest.repeatedFields_ = [3]; @@ -47656,8 +79145,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiCollectorResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiCollectorResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.PostRunnersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostRunnersRequest.toObject(opt_includeInstance, this); }; @@ -47666,15 +79155,15 @@ proto.clarifai.api.MultiCollectorResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiCollectorResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostRunnersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiCollectorResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostRunnersRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - collectorsList: jspb.Message.toObjectList(msg.getCollectorsList(), - proto_clarifai_api_resources_pb.Collector.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + runnersList: jspb.Message.toObjectList(msg.getRunnersList(), + proto_clarifai_api_resources_pb.Runner.toObject, includeInstance) }; if (includeInstance) { @@ -47688,23 +79177,23 @@ proto.clarifai.api.MultiCollectorResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiCollectorResponse} + * @return {!proto.clarifai.api.PostRunnersRequest} */ -proto.clarifai.api.MultiCollectorResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.PostRunnersRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiCollectorResponse; - return proto.clarifai.api.MultiCollectorResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostRunnersRequest; + return proto.clarifai.api.PostRunnersRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiCollectorResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostRunnersRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiCollectorResponse} + * @return {!proto.clarifai.api.PostRunnersRequest} */ -proto.clarifai.api.MultiCollectorResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostRunnersRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -47712,14 +79201,14 @@ proto.clarifai.api.MultiCollectorResponse.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; - case 2: - var value = new proto_clarifai_api_resources_pb.Collector; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); - msg.addCollectors(value); + case 3: + var value = new proto_clarifai_api_resources_pb.Runner; + reader.readMessage(value,proto_clarifai_api_resources_pb.Runner.deserializeBinaryFromReader); + msg.addRunners(value); break; default: reader.skipField(); @@ -47734,9 +79223,9 @@ proto.clarifai.api.MultiCollectorResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiCollectorResponse.prototype.serializeBinary = function() { +proto.clarifai.api.PostRunnersRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiCollectorResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostRunnersRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -47744,56 +79233,56 @@ proto.clarifai.api.MultiCollectorResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiCollectorResponse} message + * @param {!proto.clarifai.api.PostRunnersRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiCollectorResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostRunnersRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getCollectorsList(); + f = message.getRunnersList(); if (f.length > 0) { writer.writeRepeatedMessage( - 2, + 3, f, - proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Runner.serializeBinaryToWriter ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiCollectorResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.PostRunnersRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiCollectorResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.PostRunnersRequest} returns this */ -proto.clarifai.api.MultiCollectorResponse.prototype.setStatus = function(value) { +proto.clarifai.api.PostRunnersRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiCollectorResponse} returns this + * @return {!proto.clarifai.api.PostRunnersRequest} returns this */ -proto.clarifai.api.MultiCollectorResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.PostRunnersRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -47801,50 +79290,57 @@ proto.clarifai.api.MultiCollectorResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiCollectorResponse.prototype.hasStatus = function() { +proto.clarifai.api.PostRunnersRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated Collector collectors = 2; - * @return {!Array} + * repeated Runner runners = 3; + * @return {!Array} */ -proto.clarifai.api.MultiCollectorResponse.prototype.getCollectorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); +proto.clarifai.api.PostRunnersRequest.prototype.getRunnersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Runner, 3)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiCollectorResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.PostRunnersRequest} returns this */ -proto.clarifai.api.MultiCollectorResponse.prototype.setCollectorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PostRunnersRequest.prototype.setRunnersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** - * @param {!proto.clarifai.api.Collector=} opt_value + * @param {!proto.clarifai.api.Runner=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.Collector} + * @return {!proto.clarifai.api.Runner} */ -proto.clarifai.api.MultiCollectorResponse.prototype.addCollectors = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Collector, opt_index); +proto.clarifai.api.PostRunnersRequest.prototype.addRunners = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clarifai.api.Runner, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiCollectorResponse} returns this + * @return {!proto.clarifai.api.PostRunnersRequest} returns this */ -proto.clarifai.api.MultiCollectorResponse.prototype.clearCollectorsList = function() { - return this.setCollectorsList([]); +proto.clarifai.api.PostRunnersRequest.prototype.clearRunnersList = function() { + return this.setRunnersList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.clarifai.api.DeleteRunnersRequest.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -47860,8 +79356,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.SingleCollectorResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.SingleCollectorResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.DeleteRunnersRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.DeleteRunnersRequest.toObject(opt_includeInstance, this); }; @@ -47870,14 +79366,214 @@ proto.clarifai.api.SingleCollectorResponse.prototype.toObject = function(opt_inc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.SingleCollectorResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.DeleteRunnersRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleCollectorResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.DeleteRunnersRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.DeleteRunnersRequest} + */ +proto.clarifai.api.DeleteRunnersRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.DeleteRunnersRequest; + return proto.clarifai.api.DeleteRunnersRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.DeleteRunnersRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.DeleteRunnersRequest} + */ +proto.clarifai.api.DeleteRunnersRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addIds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.DeleteRunnersRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.DeleteRunnersRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.DeleteRunnersRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserAppId(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + ); + } + f = message.getIdsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +}; + + +/** + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.DeleteRunnersRequest} returns this +*/ +proto.clarifai.api.DeleteRunnersRequest.prototype.setUserAppId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.DeleteRunnersRequest} returns this + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.hasUserAppId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string ids = 2; + * @return {!Array} + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.getIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.DeleteRunnersRequest} returns this + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.setIdsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.clarifai.api.DeleteRunnersRequest} returns this + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.addIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.clarifai.api.DeleteRunnersRequest} returns this + */ +proto.clarifai.api.DeleteRunnersRequest.prototype.clearIdsList = function() { + return this.setIdsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.SingleRunnerResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.SingleRunnerResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.SingleRunnerResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.SingleRunnerResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - collector: (f = msg.getCollector()) && proto_clarifai_api_resources_pb.Collector.toObject(includeInstance, f) + runner: (f = msg.getRunner()) && proto_clarifai_api_resources_pb.Runner.toObject(includeInstance, f) }; if (includeInstance) { @@ -47891,23 +79587,23 @@ proto.clarifai.api.SingleCollectorResponse.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.SingleCollectorResponse} + * @return {!proto.clarifai.api.SingleRunnerResponse} */ -proto.clarifai.api.SingleCollectorResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.SingleRunnerResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.SingleCollectorResponse; - return proto.clarifai.api.SingleCollectorResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.SingleRunnerResponse; + return proto.clarifai.api.SingleRunnerResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.SingleCollectorResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.SingleRunnerResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.SingleCollectorResponse} + * @return {!proto.clarifai.api.SingleRunnerResponse} */ -proto.clarifai.api.SingleCollectorResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.SingleRunnerResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -47920,9 +79616,9 @@ proto.clarifai.api.SingleCollectorResponse.deserializeBinaryFromReader = functio msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.Collector; - reader.readMessage(value,proto_clarifai_api_resources_pb.Collector.deserializeBinaryFromReader); - msg.setCollector(value); + var value = new proto_clarifai_api_resources_pb.Runner; + reader.readMessage(value,proto_clarifai_api_resources_pb.Runner.deserializeBinaryFromReader); + msg.setRunner(value); break; default: reader.skipField(); @@ -47937,9 +79633,9 @@ proto.clarifai.api.SingleCollectorResponse.deserializeBinaryFromReader = functio * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.SingleCollectorResponse.prototype.serializeBinary = function() { +proto.clarifai.api.SingleRunnerResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.SingleCollectorResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.SingleRunnerResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -47947,11 +79643,11 @@ proto.clarifai.api.SingleCollectorResponse.prototype.serializeBinary = function( /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.SingleCollectorResponse} message + * @param {!proto.clarifai.api.SingleRunnerResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.SingleCollectorResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.SingleRunnerResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -47961,12 +79657,12 @@ proto.clarifai.api.SingleCollectorResponse.serializeBinaryToWriter = function(me proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getCollector(); + f = message.getRunner(); if (f != null) { writer.writeMessage( 2, f, - proto_clarifai_api_resources_pb.Collector.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Runner.serializeBinaryToWriter ); } }; @@ -47976,7 +79672,7 @@ proto.clarifai.api.SingleCollectorResponse.serializeBinaryToWriter = function(me * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.SingleCollectorResponse.prototype.getStatus = function() { +proto.clarifai.api.SingleRunnerResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -47984,18 +79680,18 @@ proto.clarifai.api.SingleCollectorResponse.prototype.getStatus = function() { /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.SingleCollectorResponse} returns this + * @return {!proto.clarifai.api.SingleRunnerResponse} returns this */ -proto.clarifai.api.SingleCollectorResponse.prototype.setStatus = function(value) { +proto.clarifai.api.SingleRunnerResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleCollectorResponse} returns this + * @return {!proto.clarifai.api.SingleRunnerResponse} returns this */ -proto.clarifai.api.SingleCollectorResponse.prototype.clearStatus = function() { +proto.clarifai.api.SingleRunnerResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -48004,36 +79700,36 @@ proto.clarifai.api.SingleCollectorResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleCollectorResponse.prototype.hasStatus = function() { +proto.clarifai.api.SingleRunnerResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Collector collector = 2; - * @return {?proto.clarifai.api.Collector} + * optional Runner runner = 2; + * @return {?proto.clarifai.api.Runner} */ -proto.clarifai.api.SingleCollectorResponse.prototype.getCollector = function() { - return /** @type{?proto.clarifai.api.Collector} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Collector, 2)); +proto.clarifai.api.SingleRunnerResponse.prototype.getRunner = function() { + return /** @type{?proto.clarifai.api.Runner} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Runner, 2)); }; /** - * @param {?proto.clarifai.api.Collector|undefined} value - * @return {!proto.clarifai.api.SingleCollectorResponse} returns this + * @param {?proto.clarifai.api.Runner|undefined} value + * @return {!proto.clarifai.api.SingleRunnerResponse} returns this */ -proto.clarifai.api.SingleCollectorResponse.prototype.setCollector = function(value) { +proto.clarifai.api.SingleRunnerResponse.prototype.setRunner = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.SingleCollectorResponse} returns this + * @return {!proto.clarifai.api.SingleRunnerResponse} returns this */ -proto.clarifai.api.SingleCollectorResponse.prototype.clearCollector = function() { - return this.setCollector(undefined); +proto.clarifai.api.SingleRunnerResponse.prototype.clearRunner = function() { + return this.setRunner(undefined); }; @@ -48041,7 +79737,7 @@ proto.clarifai.api.SingleCollectorResponse.prototype.clearCollector = function() * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.SingleCollectorResponse.prototype.hasCollector = function() { +proto.clarifai.api.SingleRunnerResponse.prototype.hasRunner = function() { return jspb.Message.getField(this, 2) != null; }; @@ -48052,7 +79748,7 @@ proto.clarifai.api.SingleCollectorResponse.prototype.hasCollector = function() { * @private {!Array} * @const */ -proto.clarifai.api.PostStatValuesRequest.repeatedFields_ = [2]; +proto.clarifai.api.MultiRunnerResponse.repeatedFields_ = [2]; @@ -48069,8 +79765,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostStatValuesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostStatValuesRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiRunnerResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiRunnerResponse.toObject(opt_includeInstance, this); }; @@ -48079,15 +79775,15 @@ proto.clarifai.api.PostStatValuesRequest.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostStatValuesRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiRunnerResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostStatValuesRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiRunnerResponse.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - statValuesList: jspb.Message.toObjectList(msg.getStatValuesList(), - proto_clarifai_api_resources_pb.StatValue.toObject, includeInstance) + status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), + runnersList: jspb.Message.toObjectList(msg.getRunnersList(), + proto_clarifai_api_resources_pb.Runner.toObject, includeInstance) }; if (includeInstance) { @@ -48101,23 +79797,23 @@ proto.clarifai.api.PostStatValuesRequest.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostStatValuesRequest} + * @return {!proto.clarifai.api.MultiRunnerResponse} */ -proto.clarifai.api.PostStatValuesRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiRunnerResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostStatValuesRequest; - return proto.clarifai.api.PostStatValuesRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiRunnerResponse; + return proto.clarifai.api.MultiRunnerResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostStatValuesRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiRunnerResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostStatValuesRequest} + * @return {!proto.clarifai.api.MultiRunnerResponse} */ -proto.clarifai.api.PostStatValuesRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiRunnerResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -48125,14 +79821,14 @@ proto.clarifai.api.PostStatValuesRequest.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = new proto_clarifai_api_status_status_pb.Status; + reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); + msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.StatValue; - reader.readMessage(value,proto_clarifai_api_resources_pb.StatValue.deserializeBinaryFromReader); - msg.addStatValues(value); + var value = new proto_clarifai_api_resources_pb.Runner; + reader.readMessage(value,proto_clarifai_api_resources_pb.Runner.deserializeBinaryFromReader); + msg.addRunners(value); break; default: reader.skipField(); @@ -48147,9 +79843,9 @@ proto.clarifai.api.PostStatValuesRequest.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostStatValuesRequest.prototype.serializeBinary = function() { +proto.clarifai.api.MultiRunnerResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostStatValuesRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiRunnerResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -48157,56 +79853,56 @@ proto.clarifai.api.PostStatValuesRequest.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostStatValuesRequest} message + * @param {!proto.clarifai.api.MultiRunnerResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostStatValuesRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiRunnerResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getStatus(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getStatValuesList(); + f = message.getRunnersList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.StatValue.serializeBinaryToWriter + proto_clarifai_api_resources_pb.Runner.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional status.Status status = 1; + * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.PostStatValuesRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.MultiRunnerResponse.prototype.getStatus = function() { + return /** @type{?proto.clarifai.api.status.Status} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostStatValuesRequest} returns this + * @param {?proto.clarifai.api.status.Status|undefined} value + * @return {!proto.clarifai.api.MultiRunnerResponse} returns this */ -proto.clarifai.api.PostStatValuesRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.MultiRunnerResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostStatValuesRequest} returns this + * @return {!proto.clarifai.api.MultiRunnerResponse} returns this */ -proto.clarifai.api.PostStatValuesRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.MultiRunnerResponse.prototype.clearStatus = function() { + return this.setStatus(undefined); }; @@ -48214,57 +79910,50 @@ proto.clarifai.api.PostStatValuesRequest.prototype.clearUserAppId = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostStatValuesRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.MultiRunnerResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated StatValue stat_values = 2; - * @return {!Array} + * repeated Runner runners = 2; + * @return {!Array} */ -proto.clarifai.api.PostStatValuesRequest.prototype.getStatValuesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValue, 2)); +proto.clarifai.api.MultiRunnerResponse.prototype.getRunnersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.Runner, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostStatValuesRequest} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiRunnerResponse} returns this */ -proto.clarifai.api.PostStatValuesRequest.prototype.setStatValuesList = function(value) { +proto.clarifai.api.MultiRunnerResponse.prototype.setRunnersList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.StatValue=} opt_value + * @param {!proto.clarifai.api.Runner=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValue} + * @return {!proto.clarifai.api.Runner} */ -proto.clarifai.api.PostStatValuesRequest.prototype.addStatValues = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValue, opt_index); +proto.clarifai.api.MultiRunnerResponse.prototype.addRunners = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.Runner, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostStatValuesRequest} returns this + * @return {!proto.clarifai.api.MultiRunnerResponse} returns this */ -proto.clarifai.api.PostStatValuesRequest.prototype.clearStatValuesList = function() { - return this.setStatValuesList([]); +proto.clarifai.api.MultiRunnerResponse.prototype.clearRunnersList = function() { + return this.setRunnersList([]); }; -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clarifai.api.MultiStatValueResponse.repeatedFields_ = [2]; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -48280,8 +79969,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiStatValueResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiStatValueResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.ListRunnerItemsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ListRunnerItemsRequest.toObject(opt_includeInstance, this); }; @@ -48290,15 +79979,14 @@ proto.clarifai.api.MultiStatValueResponse.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiStatValueResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.ListRunnerItemsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiStatValueResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.ListRunnerItemsRequest.toObject = function(includeInstance, msg) { var f, obj = { - status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - statValuesList: jspb.Message.toObjectList(msg.getStatValuesList(), - proto_clarifai_api_resources_pb.StatValue.toObject, includeInstance) + userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), + runnerId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -48312,23 +80000,23 @@ proto.clarifai.api.MultiStatValueResponse.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiStatValueResponse} + * @return {!proto.clarifai.api.ListRunnerItemsRequest} */ -proto.clarifai.api.MultiStatValueResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.ListRunnerItemsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiStatValueResponse; - return proto.clarifai.api.MultiStatValueResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.ListRunnerItemsRequest; + return proto.clarifai.api.ListRunnerItemsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiStatValueResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.ListRunnerItemsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiStatValueResponse} + * @return {!proto.clarifai.api.ListRunnerItemsRequest} */ -proto.clarifai.api.MultiStatValueResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.ListRunnerItemsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -48336,14 +80024,13 @@ proto.clarifai.api.MultiStatValueResponse.deserializeBinaryFromReader = function var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_status_status_pb.Status; - reader.readMessage(value,proto_clarifai_api_status_status_pb.Status.deserializeBinaryFromReader); - msg.setStatus(value); + var value = new proto_clarifai_api_resources_pb.UserAppIDSet; + reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); + msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.StatValue; - reader.readMessage(value,proto_clarifai_api_resources_pb.StatValue.deserializeBinaryFromReader); - msg.addStatValues(value); + var value = /** @type {string} */ (reader.readString()); + msg.setRunnerId(value); break; default: reader.skipField(); @@ -48358,9 +80045,9 @@ proto.clarifai.api.MultiStatValueResponse.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiStatValueResponse.prototype.serializeBinary = function() { +proto.clarifai.api.ListRunnerItemsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiStatValueResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.ListRunnerItemsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -48368,56 +80055,55 @@ proto.clarifai.api.MultiStatValueResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiStatValueResponse} message + * @param {!proto.clarifai.api.ListRunnerItemsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiStatValueResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.ListRunnerItemsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStatus(); + f = message.getUserAppId(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter + proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getStatValuesList(); + f = message.getRunnerId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, - f, - proto_clarifai_api_resources_pb.StatValue.serializeBinaryToWriter + f ); } }; /** - * optional status.Status status = 1; - * @return {?proto.clarifai.api.status.Status} + * optional UserAppIDSet user_app_id = 1; + * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.MultiStatValueResponse.prototype.getStatus = function() { - return /** @type{?proto.clarifai.api.status.Status} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); +proto.clarifai.api.ListRunnerItemsRequest.prototype.getUserAppId = function() { + return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; /** - * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiStatValueResponse} returns this + * @param {?proto.clarifai.api.UserAppIDSet|undefined} value + * @return {!proto.clarifai.api.ListRunnerItemsRequest} returns this */ -proto.clarifai.api.MultiStatValueResponse.prototype.setStatus = function(value) { +proto.clarifai.api.ListRunnerItemsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiStatValueResponse} returns this + * @return {!proto.clarifai.api.ListRunnerItemsRequest} returns this */ -proto.clarifai.api.MultiStatValueResponse.prototype.clearStatus = function() { - return this.setStatus(undefined); +proto.clarifai.api.ListRunnerItemsRequest.prototype.clearUserAppId = function() { + return this.setUserAppId(undefined); }; @@ -48425,46 +80111,26 @@ proto.clarifai.api.MultiStatValueResponse.prototype.clearStatus = function() { * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiStatValueResponse.prototype.hasStatus = function() { +proto.clarifai.api.ListRunnerItemsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated StatValue stat_values = 2; - * @return {!Array} - */ -proto.clarifai.api.MultiStatValueResponse.prototype.getStatValuesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValue, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiStatValueResponse} returns this -*/ -proto.clarifai.api.MultiStatValueResponse.prototype.setStatValuesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clarifai.api.StatValue=} opt_value - * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValue} + * optional string runner_id = 2; + * @return {string} */ -proto.clarifai.api.MultiStatValueResponse.prototype.addStatValues = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValue, opt_index); +proto.clarifai.api.ListRunnerItemsRequest.prototype.getRunnerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiStatValueResponse} returns this + * @param {string} value + * @return {!proto.clarifai.api.ListRunnerItemsRequest} returns this */ -proto.clarifai.api.MultiStatValueResponse.prototype.clearStatValuesList = function() { - return this.setStatValuesList([]); +proto.clarifai.api.ListRunnerItemsRequest.prototype.setRunnerId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; @@ -48474,7 +80140,7 @@ proto.clarifai.api.MultiStatValueResponse.prototype.clearStatValuesList = functi * @private {!Array} * @const */ -proto.clarifai.api.PostStatValuesAggregateRequest.repeatedFields_ = [2]; +proto.clarifai.api.PostRunnerItemOutputsRequest.repeatedFields_ = [4]; @@ -48491,8 +80157,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostStatValuesAggregateRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.PostRunnerItemOutputsRequest.toObject(opt_includeInstance, this); }; @@ -48501,15 +80167,17 @@ proto.clarifai.api.PostStatValuesAggregateRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostStatValuesAggregateRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.PostRunnerItemOutputsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostStatValuesAggregateRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.PostRunnerItemOutputsRequest.toObject = function(includeInstance, msg) { var f, obj = { userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - statValueAggregateQueriesList: jspb.Message.toObjectList(msg.getStatValueAggregateQueriesList(), - proto_clarifai_api_resources_pb.StatValueAggregateQuery.toObject, includeInstance) + runnerId: jspb.Message.getFieldWithDefault(msg, 2, ""), + itemId: jspb.Message.getFieldWithDefault(msg, 3, ""), + runnerItemOutputsList: jspb.Message.toObjectList(msg.getRunnerItemOutputsList(), + proto.clarifai.api.RunnerItemOutput.toObject, includeInstance) }; if (includeInstance) { @@ -48523,23 +80191,23 @@ proto.clarifai.api.PostStatValuesAggregateRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} */ -proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.PostRunnerItemOutputsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostStatValuesAggregateRequest; - return proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.PostRunnerItemOutputsRequest; + return proto.clarifai.api.PostRunnerItemOutputsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostStatValuesAggregateRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.PostRunnerItemOutputsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} */ -proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.PostRunnerItemOutputsRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -48552,9 +80220,17 @@ proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinaryFromReader = msg.setUserAppId(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.StatValueAggregateQuery; - reader.readMessage(value,proto_clarifai_api_resources_pb.StatValueAggregateQuery.deserializeBinaryFromReader); - msg.addStatValueAggregateQueries(value); + var value = /** @type {string} */ (reader.readString()); + msg.setRunnerId(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setItemId(value); + break; + case 4: + var value = new proto.clarifai.api.RunnerItemOutput; + reader.readMessage(value,proto.clarifai.api.RunnerItemOutput.deserializeBinaryFromReader); + msg.addRunnerItemOutputs(value); break; default: reader.skipField(); @@ -48569,9 +80245,9 @@ proto.clarifai.api.PostStatValuesAggregateRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.serializeBinary = function() { +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostStatValuesAggregateRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.PostRunnerItemOutputsRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -48579,11 +80255,11 @@ proto.clarifai.api.PostStatValuesAggregateRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostStatValuesAggregateRequest} message + * @param {!proto.clarifai.api.PostRunnerItemOutputsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostStatValuesAggregateRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.PostRunnerItemOutputsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUserAppId(); if (f != null) { @@ -48593,12 +80269,26 @@ proto.clarifai.api.PostStatValuesAggregateRequest.serializeBinaryToWriter = func proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter ); } - f = message.getStatValueAggregateQueriesList(); + f = message.getRunnerId(); if (f.length > 0) { - writer.writeRepeatedMessage( + writer.writeString( 2, + f + ); + } + f = message.getItemId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getRunnerItemOutputsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, f, - proto_clarifai_api_resources_pb.StatValueAggregateQuery.serializeBinaryToWriter + proto.clarifai.api.RunnerItemOutput.serializeBinaryToWriter ); } }; @@ -48608,7 +80298,7 @@ proto.clarifai.api.PostStatValuesAggregateRequest.serializeBinaryToWriter = func * optional UserAppIDSet user_app_id = 1; * @return {?proto.clarifai.api.UserAppIDSet} */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.getUserAppId = function() { +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getUserAppId = function() { return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); }; @@ -48616,18 +80306,18 @@ proto.clarifai.api.PostStatValuesAggregateRequest.prototype.getUserAppId = funct /** * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setUserAppId = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.clearUserAppId = function() { +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.clearUserAppId = function() { return this.setUserAppId(undefined); }; @@ -48636,46 +80326,82 @@ proto.clarifai.api.PostStatValuesAggregateRequest.prototype.clearUserAppId = fun * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.hasUserAppId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated StatValueAggregateQuery stat_value_aggregate_queries = 2; - * @return {!Array} + * optional string runner_id = 2; + * @return {string} */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.getStatValueAggregateQueriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValueAggregateQuery, 2)); +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getRunnerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this + * @param {string} value + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this + */ +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRunnerId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string item_id = 3; + * @return {string} + */ +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getItemId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this + */ +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setItemId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * repeated RunnerItemOutput runner_item_outputs = 4; + * @return {!Array} + */ +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.getRunnerItemOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.RunnerItemOutput, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.setStatValueAggregateQueriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.setRunnerItemOutputsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); }; /** - * @param {!proto.clarifai.api.StatValueAggregateQuery=} opt_value + * @param {!proto.clarifai.api.RunnerItemOutput=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValueAggregateQuery} + * @return {!proto.clarifai.api.RunnerItemOutput} */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.addStatValueAggregateQueries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValueAggregateQuery, opt_index); +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.addRunnerItemOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clarifai.api.RunnerItemOutput, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.PostStatValuesAggregateRequest} returns this + * @return {!proto.clarifai.api.PostRunnerItemOutputsRequest} returns this */ -proto.clarifai.api.PostStatValuesAggregateRequest.prototype.clearStatValueAggregateQueriesList = function() { - return this.setStatValueAggregateQueriesList([]); +proto.clarifai.api.PostRunnerItemOutputsRequest.prototype.clearRunnerItemOutputsList = function() { + return this.setRunnerItemOutputsList([]); }; @@ -48685,7 +80411,7 @@ proto.clarifai.api.PostStatValuesAggregateRequest.prototype.clearStatValueAggreg * @private {!Array} * @const */ -proto.clarifai.api.MultiStatValueAggregateResponse.repeatedFields_ = [2]; +proto.clarifai.api.MultiRunnerItemResponse.repeatedFields_ = [2]; @@ -48702,8 +80428,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiStatValueAggregateResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiRunnerItemResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiRunnerItemResponse.toObject(opt_includeInstance, this); }; @@ -48712,15 +80438,15 @@ proto.clarifai.api.MultiStatValueAggregateResponse.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiStatValueAggregateResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiRunnerItemResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiStatValueAggregateResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiRunnerItemResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - statValueAggregateResultsList: jspb.Message.toObjectList(msg.getStatValueAggregateResultsList(), - proto_clarifai_api_resources_pb.StatValueAggregateResult.toObject, includeInstance) + itemsList: jspb.Message.toObjectList(msg.getItemsList(), + proto.clarifai.api.RunnerItem.toObject, includeInstance) }; if (includeInstance) { @@ -48734,23 +80460,23 @@ proto.clarifai.api.MultiStatValueAggregateResponse.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} + * @return {!proto.clarifai.api.MultiRunnerItemResponse} */ -proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiRunnerItemResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiStatValueAggregateResponse; - return proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiRunnerItemResponse; + return proto.clarifai.api.MultiRunnerItemResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiStatValueAggregateResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiRunnerItemResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} + * @return {!proto.clarifai.api.MultiRunnerItemResponse} */ -proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiRunnerItemResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -48763,9 +80489,9 @@ proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinaryFromReader = msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.StatValueAggregateResult; - reader.readMessage(value,proto_clarifai_api_resources_pb.StatValueAggregateResult.deserializeBinaryFromReader); - msg.addStatValueAggregateResults(value); + var value = new proto.clarifai.api.RunnerItem; + reader.readMessage(value,proto.clarifai.api.RunnerItem.deserializeBinaryFromReader); + msg.addItems(value); break; default: reader.skipField(); @@ -48780,9 +80506,9 @@ proto.clarifai.api.MultiStatValueAggregateResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiRunnerItemResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiStatValueAggregateResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiRunnerItemResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -48790,11 +80516,11 @@ proto.clarifai.api.MultiStatValueAggregateResponse.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiStatValueAggregateResponse} message + * @param {!proto.clarifai.api.MultiRunnerItemResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiStatValueAggregateResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiRunnerItemResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -48804,12 +80530,12 @@ proto.clarifai.api.MultiStatValueAggregateResponse.serializeBinaryToWriter = fun proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getStatValueAggregateResultsList(); + f = message.getItemsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.StatValueAggregateResult.serializeBinaryToWriter + proto.clarifai.api.RunnerItem.serializeBinaryToWriter ); } }; @@ -48819,7 +80545,7 @@ proto.clarifai.api.MultiStatValueAggregateResponse.serializeBinaryToWriter = fun * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiRunnerItemResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -48827,18 +80553,18 @@ proto.clarifai.api.MultiStatValueAggregateResponse.prototype.getStatus = functio /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this + * @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiRunnerItemResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this + * @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiRunnerItemResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -48847,46 +80573,46 @@ proto.clarifai.api.MultiStatValueAggregateResponse.prototype.clearStatus = funct * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiRunnerItemResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated StatValueAggregateResult stat_value_aggregate_results = 2; - * @return {!Array} + * repeated RunnerItem items = 2; + * @return {!Array} */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.getStatValueAggregateResultsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.StatValueAggregateResult, 2)); +proto.clarifai.api.MultiRunnerItemResponse.prototype.getItemsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.RunnerItem, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.setStatValueAggregateResultsList = function(value) { +proto.clarifai.api.MultiRunnerItemResponse.prototype.setItemsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.StatValueAggregateResult=} opt_value + * @param {!proto.clarifai.api.RunnerItem=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.StatValueAggregateResult} + * @return {!proto.clarifai.api.RunnerItem} */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.addStatValueAggregateResults = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.StatValueAggregateResult, opt_index); +proto.clarifai.api.MultiRunnerItemResponse.prototype.addItems = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.RunnerItem, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiStatValueAggregateResponse} returns this + * @return {!proto.clarifai.api.MultiRunnerItemResponse} returns this */ -proto.clarifai.api.MultiStatValueAggregateResponse.prototype.clearStatValueAggregateResultsList = function() { - return this.setStatValueAggregateResultsList([]); +proto.clarifai.api.MultiRunnerItemResponse.prototype.clearItemsList = function() { + return this.setItemsList([]); }; @@ -48906,8 +80632,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.PostTrendingMetricsViewRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.RunnerItem.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.RunnerItem.toObject(opt_includeInstance, this); }; @@ -48916,15 +80642,15 @@ proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.RunnerItem} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostTrendingMetricsViewRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.RunnerItem.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - viewType: jspb.Message.getFieldWithDefault(msg, 2, ""), - objectId: jspb.Message.getFieldWithDefault(msg, 3, "") + id: jspb.Message.getFieldWithDefault(msg, 1, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + postModelOutputsRequest: (f = msg.getPostModelOutputsRequest()) && proto.clarifai.api.PostModelOutputsRequest.toObject(includeInstance, f) }; if (includeInstance) { @@ -48938,23 +80664,23 @@ proto.clarifai.api.PostTrendingMetricsViewRequest.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} + * @return {!proto.clarifai.api.RunnerItem} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.RunnerItem.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.PostTrendingMetricsViewRequest; - return proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.RunnerItem; + return proto.clarifai.api.RunnerItem.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.RunnerItem} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} + * @return {!proto.clarifai.api.RunnerItem} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.RunnerItem.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -48962,17 +80688,17 @@ proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setViewType(value); + msg.setDescription(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setObjectId(value); + var value = new proto.clarifai.api.PostModelOutputsRequest; + reader.readMessage(value,proto.clarifai.api.PostModelOutputsRequest.deserializeBinaryFromReader); + msg.setPostModelOutputsRequest(value); break; default: reader.skipField(); @@ -48987,9 +80713,9 @@ proto.clarifai.api.PostTrendingMetricsViewRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.serializeBinary = function() { +proto.clarifai.api.RunnerItem.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.RunnerItem.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -48997,107 +80723,107 @@ proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.PostTrendingMetricsViewRequest} message + * @param {!proto.clarifai.api.RunnerItem} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.PostTrendingMetricsViewRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.RunnerItem.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); - if (f != null) { - writer.writeMessage( + f = message.getId(); + if (f.length > 0) { + writer.writeString( 1, - f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter + f ); } - f = message.getViewType(); + f = message.getDescription(); if (f.length > 0) { writer.writeString( 2, f ); } - f = message.getObjectId(); - if (f.length > 0) { - writer.writeString( + f = message.getPostModelOutputsRequest(); + if (f != null) { + writer.writeMessage( 3, - f + f, + proto.clarifai.api.PostModelOutputsRequest.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional string id = 1; + * @return {string} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.RunnerItem.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this -*/ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setUserAppId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.clarifai.api.RunnerItem} returns this + */ +proto.clarifai.api.RunnerItem.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this + * optional string description = 2; + * @return {string} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.RunnerItem.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {string} value + * @return {!proto.clarifai.api.RunnerItem} returns this */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.hasUserAppId = function() { - return jspb.Message.getField(this, 1) != null; +proto.clarifai.api.RunnerItem.prototype.setDescription = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); }; /** - * optional string view_type = 2; - * @return {string} + * optional PostModelOutputsRequest post_model_outputs_request = 3; + * @return {?proto.clarifai.api.PostModelOutputsRequest} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getViewType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.clarifai.api.RunnerItem.prototype.getPostModelOutputsRequest = function() { + return /** @type{?proto.clarifai.api.PostModelOutputsRequest} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.PostModelOutputsRequest, 3)); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this - */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setViewType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + * @param {?proto.clarifai.api.PostModelOutputsRequest|undefined} value + * @return {!proto.clarifai.api.RunnerItem} returns this +*/ +proto.clarifai.api.RunnerItem.prototype.setPostModelOutputsRequest = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** - * optional string object_id = 3; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.RunnerItem} returns this */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.getObjectId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.clarifai.api.RunnerItem.prototype.clearPostModelOutputsRequest = function() { + return this.setPostModelOutputsRequest(undefined); }; /** - * @param {string} value - * @return {!proto.clarifai.api.PostTrendingMetricsViewRequest} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.clarifai.api.PostTrendingMetricsViewRequest.prototype.setObjectId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.clarifai.api.RunnerItem.prototype.hasPostModelOutputsRequest = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -49117,8 +80843,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject(opt_includeInstance, this); +proto.clarifai.api.RunnerItemOutput.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.RunnerItemOutput.toObject(opt_includeInstance, this); }; @@ -49127,16 +80853,13 @@ proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The msg instance to transform. + * @param {!proto.clarifai.api.RunnerItemOutput} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject = function(includeInstance, msg) { +proto.clarifai.api.RunnerItemOutput.toObject = function(includeInstance, msg) { var f, obj = { - userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f), - viewType: jspb.Message.getFieldWithDefault(msg, 2, ""), - page: jspb.Message.getFieldWithDefault(msg, 3, 0), - perPage: jspb.Message.getFieldWithDefault(msg, 4, 0) + multiOutputResponse: (f = msg.getMultiOutputResponse()) && proto.clarifai.api.MultiOutputResponse.toObject(includeInstance, f) }; if (includeInstance) { @@ -49150,23 +80873,23 @@ proto.clarifai.api.ListTrendingMetricsViewsRequest.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} + * @return {!proto.clarifai.api.RunnerItemOutput} */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinary = function(bytes) { +proto.clarifai.api.RunnerItemOutput.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.ListTrendingMetricsViewsRequest; - return proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.RunnerItemOutput; + return proto.clarifai.api.RunnerItemOutput.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} msg The message object to deserialize into. + * @param {!proto.clarifai.api.RunnerItemOutput} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} + * @return {!proto.clarifai.api.RunnerItemOutput} */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.RunnerItemOutput.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -49174,21 +80897,9 @@ proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto_clarifai_api_resources_pb.UserAppIDSet; - reader.readMessage(value,proto_clarifai_api_resources_pb.UserAppIDSet.deserializeBinaryFromReader); - msg.setUserAppId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setViewType(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPage(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPerPage(value); + var value = new proto.clarifai.api.MultiOutputResponse; + reader.readMessage(value,proto.clarifai.api.MultiOutputResponse.deserializeBinaryFromReader); + msg.setMultiOutputResponse(value); break; default: reader.skipField(); @@ -49203,9 +80914,9 @@ proto.clarifai.api.ListTrendingMetricsViewsRequest.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.serializeBinary = function() { +proto.clarifai.api.RunnerItemOutput.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter(this, writer); + proto.clarifai.api.RunnerItemOutput.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -49213,69 +80924,48 @@ proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.ListTrendingMetricsViewsRequest} message + * @param {!proto.clarifai.api.RunnerItemOutput} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.RunnerItemOutput.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getUserAppId(); + f = message.getMultiOutputResponse(); if (f != null) { writer.writeMessage( 1, f, - proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter - ); - } - f = message.getViewType(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPage(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getPerPage(); - if (f !== 0) { - writer.writeUint32( - 4, - f + proto.clarifai.api.MultiOutputResponse.serializeBinaryToWriter ); } }; /** - * optional UserAppIDSet user_app_id = 1; - * @return {?proto.clarifai.api.UserAppIDSet} + * optional MultiOutputResponse multi_output_response = 1; + * @return {?proto.clarifai.api.MultiOutputResponse} */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getUserAppId = function() { - return /** @type{?proto.clarifai.api.UserAppIDSet} */ ( - jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.UserAppIDSet, 1)); +proto.clarifai.api.RunnerItemOutput.prototype.getMultiOutputResponse = function() { + return /** @type{?proto.clarifai.api.MultiOutputResponse} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.MultiOutputResponse, 1)); }; /** - * @param {?proto.clarifai.api.UserAppIDSet|undefined} value - * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this + * @param {?proto.clarifai.api.MultiOutputResponse|undefined} value + * @return {!proto.clarifai.api.RunnerItemOutput} returns this */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setUserAppId = function(value) { +proto.clarifai.api.RunnerItemOutput.prototype.setMultiOutputResponse = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this + * @return {!proto.clarifai.api.RunnerItemOutput} returns this */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.clearUserAppId = function() { - return this.setUserAppId(undefined); +proto.clarifai.api.RunnerItemOutput.prototype.clearMultiOutputResponse = function() { + return this.setMultiOutputResponse(undefined); }; @@ -49283,72 +80973,18 @@ proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.clearUserAppId = fu * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.hasUserAppId = function() { +proto.clarifai.api.RunnerItemOutput.prototype.hasMultiOutputResponse = function() { return jspb.Message.getField(this, 1) != null; }; -/** - * optional string view_type = 2; - * @return {string} - */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getViewType = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this - */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setViewType = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 page = 3; - * @return {number} - */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this - */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPage = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint32 per_page = 4; - * @return {number} - */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.getPerPage = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clarifai.api.ListTrendingMetricsViewsRequest} returns this - */ -proto.clarifai.api.ListTrendingMetricsViewsRequest.prototype.setPerPage = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - /** * List of repeated fields within this message type. * @private {!Array} * @const */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.repeatedFields_ = [2]; +proto.clarifai.api.MultiRunnerItemOutputResponse.repeatedFields_ = [2]; @@ -49365,8 +81001,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.toObject = function(opt_includeInstance) { - return proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject(opt_includeInstance, this); +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.MultiRunnerItemOutputResponse.toObject(opt_includeInstance, this); }; @@ -49375,15 +81011,15 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.toObject = functio * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The msg instance to transform. + * @param {!proto.clarifai.api.MultiRunnerItemOutputResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject = function(includeInstance, msg) { +proto.clarifai.api.MultiRunnerItemOutputResponse.toObject = function(includeInstance, msg) { var f, obj = { status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f), - metricsList: jspb.Message.toObjectList(msg.getMetricsList(), - proto_clarifai_api_resources_pb.TrendingMetric.toObject, includeInstance) + runnerItemOutputsList: jspb.Message.toObjectList(msg.getRunnerItemOutputsList(), + proto.clarifai.api.RunnerItemOutput.toObject, includeInstance) }; if (includeInstance) { @@ -49397,23 +81033,23 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.toObject = function(includeI /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} + * @return {!proto.clarifai.api.MultiRunnerItemOutputResponse} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinary = function(bytes) { +proto.clarifai.api.MultiRunnerItemOutputResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clarifai.api.MultiTrendingMetricsViewResponse; - return proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.clarifai.api.MultiRunnerItemOutputResponse; + return proto.clarifai.api.MultiRunnerItemOutputResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} msg The message object to deserialize into. + * @param {!proto.clarifai.api.MultiRunnerItemOutputResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} + * @return {!proto.clarifai.api.MultiRunnerItemOutputResponse} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.clarifai.api.MultiRunnerItemOutputResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -49426,9 +81062,9 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader msg.setStatus(value); break; case 2: - var value = new proto_clarifai_api_resources_pb.TrendingMetric; - reader.readMessage(value,proto_clarifai_api_resources_pb.TrendingMetric.deserializeBinaryFromReader); - msg.addMetrics(value); + var value = new proto.clarifai.api.RunnerItemOutput; + reader.readMessage(value,proto.clarifai.api.RunnerItemOutput.deserializeBinaryFromReader); + msg.addRunnerItemOutputs(value); break; default: reader.skipField(); @@ -49443,9 +81079,9 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.serializeBinary = function() { +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter(this, writer); + proto.clarifai.api.MultiRunnerItemOutputResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -49453,11 +81089,11 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.clarifai.api.MultiTrendingMetricsViewResponse} message + * @param {!proto.clarifai.api.MultiRunnerItemOutputResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter = function(message, writer) { +proto.clarifai.api.MultiRunnerItemOutputResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStatus(); if (f != null) { @@ -49467,12 +81103,12 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter = fu proto_clarifai_api_status_status_pb.Status.serializeBinaryToWriter ); } - f = message.getMetricsList(); + f = message.getRunnerItemOutputsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, - proto_clarifai_api_resources_pb.TrendingMetric.serializeBinaryToWriter + proto.clarifai.api.RunnerItemOutput.serializeBinaryToWriter ); } }; @@ -49482,7 +81118,7 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.serializeBinaryToWriter = fu * optional status.Status status = 1; * @return {?proto.clarifai.api.status.Status} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getStatus = function() { +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.getStatus = function() { return /** @type{?proto.clarifai.api.status.Status} */ ( jspb.Message.getWrapperField(this, proto_clarifai_api_status_status_pb.Status, 1)); }; @@ -49490,18 +81126,18 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getStatus = functi /** * @param {?proto.clarifai.api.status.Status|undefined} value - * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this + * @return {!proto.clarifai.api.MultiRunnerItemOutputResponse} returns this */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setStatus = function(value) { +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.setStatus = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this + * @return {!proto.clarifai.api.MultiRunnerItemOutputResponse} returns this */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearStatus = function() { +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.clearStatus = function() { return this.setStatus(undefined); }; @@ -49510,46 +81146,46 @@ proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearStatus = func * Returns whether this field is set. * @return {boolean} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.hasStatus = function() { +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; /** - * repeated TrendingMetric metrics = 2; - * @return {!Array} + * repeated RunnerItemOutput runner_item_outputs = 2; + * @return {!Array} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.getMetricsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto_clarifai_api_resources_pb.TrendingMetric, 2)); +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.getRunnerItemOutputsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.clarifai.api.RunnerItemOutput, 2)); }; /** - * @param {!Array} value - * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this + * @param {!Array} value + * @return {!proto.clarifai.api.MultiRunnerItemOutputResponse} returns this */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.setMetricsList = function(value) { +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.setRunnerItemOutputsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** - * @param {!proto.clarifai.api.TrendingMetric=} opt_value + * @param {!proto.clarifai.api.RunnerItemOutput=} opt_value * @param {number=} opt_index - * @return {!proto.clarifai.api.TrendingMetric} + * @return {!proto.clarifai.api.RunnerItemOutput} */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.addMetrics = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.TrendingMetric, opt_index); +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.addRunnerItemOutputs = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clarifai.api.RunnerItemOutput, opt_index); }; /** * Clears the list making it empty but non-null. - * @return {!proto.clarifai.api.MultiTrendingMetricsViewResponse} returns this + * @return {!proto.clarifai.api.MultiRunnerItemOutputResponse} returns this */ -proto.clarifai.api.MultiTrendingMetricsViewResponse.prototype.clearMetricsList = function() { - return this.setMetricsList([]); +proto.clarifai.api.MultiRunnerItemOutputResponse.prototype.clearRunnerItemOutputsList = function() { + return this.setRunnerItemOutputsList([]); }; diff --git a/proto/clarifai/api/service_processed.proto b/proto/clarifai/api/service_processed.proto index 0a25815..01a44d6 100644 --- a/proto/clarifai/api/service_processed.proto +++ b/proto/clarifai/api/service_processed.proto @@ -18,7 +18,7 @@ import "google/protobuf/timestamp.proto"; package clarifai.api; -option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api/api"; +option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api"; option java_multiple_files = true; option java_package = "com.clarifai.grpc.api"; option objc_class_prefix = "CAIP"; @@ -28,6 +28,18 @@ option objc_class_prefix = "CAIP"; read this before contributing to this file and other *.proto files for the API. https://cloud.google.com/service-management/reference/rpc/google.api#google.api.HttpRule + + For the cl_depending_scopes in this file, see the docstring that explains the two types of + scope dependencies in clarifai/auth/scope/scope.proto + + For new endpoints you should typically only add the fully qualified url that includes the user_id + and app_id. + + You should typicaly use KeyAuth (the most restricted auth type) for new endpoints unless they are + for resources not contained in an app or need access from things across apps. See more about the + auth types here: + https://clarifai.atlassian.net/wiki/spaces/TT/pages/1821409336/API+Authorizers+and+Resource+Access + */ @@ -46,6 +58,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -58,6 +71,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -69,6 +83,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Delete; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -83,6 +98,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -97,6 +113,7 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -109,7 +126,22 @@ service V2 { } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + } + + // List models concepts. + rpc ListModelConcepts (ListModelConceptsRequest) returns (MultiConceptResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/concepts" + additional_bindings5 { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/concepts" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } // Search over the concepts to find one or more you're looking for. @@ -119,12 +151,13 @@ service V2 { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/searches" body: "*" - additional_bindings5 { + additional_bindings6 { post: "/v2/concepts/searches" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // as it needs to know the concepts in your workflow's models. @@ -135,12 +168,13 @@ service V2 { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts" body: "*" - additional_bindings6 { + additional_bindings7 { post: "/v2/concepts" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -150,12 +184,13 @@ service V2 { option (google.api.http) = { patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts" body: "*" - additional_bindings7 { + additional_bindings8 { patch: "/v2/concepts" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -174,11 +209,12 @@ service V2 { rpc GetConceptLanguage (GetConceptLanguageRequest) returns (SingleConceptLanguageResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/{concept_id}/languages/{language}" - additional_bindings8 { + additional_bindings9 { get: "/v2/concepts/{concept_id}/languages/{language}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -186,11 +222,12 @@ service V2 { rpc ListConceptLanguages (ListConceptLanguagesRequest) returns (MultiConceptLanguageResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/{concept_id}/languages" - additional_bindings9 { + additional_bindings10 { get: "/v2/concepts/{concept_id}/languages" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -199,12 +236,13 @@ service V2 { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/{concept_id}/languages" body: "*" - additional_bindings10 { + additional_bindings11 { post: "/v2/concepts/{concept_id}/languages" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -215,12 +253,13 @@ service V2 { option (google.api.http) = { patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/{concept_id}/languages" body: "*" - additional_bindings11 { + additional_bindings12 { patch: "/v2/concepts/{concept_id}/languages" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -232,11 +271,12 @@ service V2 { rpc ListKnowledgeGraphs (ListKnowledgeGraphsRequest) returns (MultiKnowledgeGraphResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/knowledge_graphs" - additional_bindings12 { + additional_bindings13 { get: "/v2/concepts/knowledge_graphs" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -245,12 +285,13 @@ service V2 { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/knowledge_graphs" body: "*" - additional_bindings13 { + additional_bindings14 { post: "/v2/concepts/knowledge_graphs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -260,12 +301,13 @@ service V2 { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/concepts/mappings/jobs" body: "*" - additional_bindings14 { + additional_bindings15 { post: "/v2/concepts/mappings/jobs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; } @@ -276,11 +318,12 @@ service V2 { rpc GetAnnotation (GetAnnotationRequest) returns (SingleAnnotationResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/{input_id}/annotations/{annotation_id}" - additional_bindings15 { + additional_bindings16 { get: "/v2/inputs/{input_id}/annotations/{annotation_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // to get the model for the worker. @@ -290,11 +333,12 @@ service V2 { rpc ListAnnotations (ListAnnotationsRequest) returns (MultiAnnotationResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations" - additional_bindings16 { + additional_bindings17 { get: "/v2/annotations" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // to get the model for the worker. @@ -305,12 +349,13 @@ service V2 { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations" body: "*" - additional_bindings17 { + additional_bindings18 { post: "/v2/annotations" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -324,12 +369,13 @@ service V2 { option (google.api.http) = { patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations" body: "*" - additional_bindings18 { + additional_bindings19 { patch: "/v2/annotations" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -345,6 +391,7 @@ service V2 { body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -356,11 +403,12 @@ service V2 { rpc DeleteAnnotation (DeleteAnnotationRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/{input_id}/annotations/{annotation_id}" - additional_bindings19 { + additional_bindings20 { delete: "/v2/inputs/{input_id}/annotations/{annotation_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -373,20 +421,21 @@ service V2 { option (google.api.http) = { delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/annotations" body: "*" - additional_bindings20 { + additional_bindings21 { delete: "/v2/inputs/annotations" body: "*" } - additional_bindings21 { + additional_bindings22 { delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations" body: "*" } - additional_bindings22 { + additional_bindings23 { delete: "/v2/annotations" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -394,17 +443,34 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // Execute a search over annotation + // Patch saved annotations searches by ids. + rpc PatchAnnotationsSearches (PatchAnnotationsSearchesRequest) returns (MultiSearchResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches" + body: "*" + additional_bindings24 { + patch: "/v2/annotations/searches" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Execute a search over annotations rpc PostAnnotationsSearches(PostAnnotationsSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches" body: "*" - additional_bindings23 { + additional_bindings25 { post: "/v2/annotations/searches" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -417,11 +483,12 @@ service V2 { rpc GetInputCount (GetInputCountRequest) returns (SingleInputCountResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/status" - additional_bindings24 { + additional_bindings26 { get: "/v2/inputs/status" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -431,11 +498,12 @@ service V2 { rpc StreamInputs (StreamInputsRequest) returns (MultiInputResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/stream" - additional_bindings25 { + additional_bindings27 { get: "/v2/inputs/stream" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -445,11 +513,12 @@ service V2 { rpc GetInputSamples (GetInputSamplesRequest) returns (MultiInputAnnotationResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/inputs/samples" - additional_bindings26 { + additional_bindings28 { get: "/v2/tasks/{task_id}/inputs/samples" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -459,43 +528,58 @@ service V2 { rpc GetInput (GetInputRequest) returns (SingleInputResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/{input_id}" - additional_bindings27 { + additional_bindings29 { get: "/v2/inputs/{input_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; } + // Get a video input manifest. + rpc GetInputVideoManifest (GetVideoManifestRequest) returns (GetVideoManifestResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/{input_id}/video_manifest" + additional_bindings30 { + get: "/v2/inputs/{input_id}/video_manifest" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + // List all the inputs. rpc ListInputs (ListInputsRequest) returns (MultiInputResponse) { option (google.api.http) = { get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs" - additional_bindings28 { + additional_bindings31 { get: "/v2/inputs" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; } - // Add an input (or set of inputs) to an app. - // This call is synchronous if the PostInputsRequest contains exactly one image input. Otherwise, - // it is asynchronous. + // Add 1 or more input to an app. + // The actual inputs processing is asynchronous. rpc PostInputs (PostInputsRequest) returns (MultiInputResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs" body: "*" - additional_bindings29 { + additional_bindings32 { post: "/v2/inputs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -514,12 +598,13 @@ service V2 { option (google.api.http) = { patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs" body: "*" - additional_bindings30 { + additional_bindings33 { patch: "/v2/inputs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; @@ -532,11 +617,12 @@ service V2 { rpc DeleteInput (DeleteInputRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/{input_id}" - additional_bindings31 { + additional_bindings34 { delete: "/v2/inputs/{input_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -553,12 +639,13 @@ service V2 { option (google.api.http) = { delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs" body: "*" - additional_bindings32 { + additional_bindings35 { delete: "/v2/inputs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; @@ -569,17 +656,34 @@ service V2 { option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Execute a search over input + // Patch saved inputs searches by ids. + rpc PatchInputsSearches (PatchInputsSearchesRequest) returns (MultiSearchResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/searches" + body: "*" + additional_bindings36 { + patch: "/v2/inputs/searches" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Execute a search over inputs rpc PostInputsSearches(PostInputsSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/searches" body: "*" - additional_bindings33 { + additional_bindings37 { post: "/v2/inputs/searches" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; @@ -593,874 +697,977 @@ service V2 { option (google.api.http) = { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/outputs" body: "*" - additional_bindings34 { + additional_bindings38 { post: "/v2/models/{model_id}/versions/{version_id}/outputs" body: "*" } - additional_bindings35 { + additional_bindings39 { post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/outputs" body: "*" } - additional_bindings36 { + additional_bindings40 { post: "/v2/models/{model_id}/outputs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Predict; } - - - - - - - - - - - - - - - - - - - - - - //////////////////////////////////////// - // Models - //////////////////////////////////////// - - // Get a specific model type. - rpc GetModelType (GetModelTypeRequest) returns (SingleModelTypeResponse) { + // List all the datasets. + rpc ListDatasets (ListDatasetsRequest) returns (MultiDatasetResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/types/{model_type_id}" - additional_bindings37 { - get: "/v2/models/types/{model_type_id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + additional_bindings41 { + get: "/v2/users/{user_app_id.user_id}/datasets" + } + additional_bindings42 { + get: "/v2/datasets" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // List all the supported open source licenses in the platform. - rpc ListOpenSourceLicenses (ListOpenSourceLicensesRequest) returns (ListOpenSourceLicensesResponse) { + // Get a specific dataset. + rpc GetDataset (GetDatasetRequest) returns (SingleDatasetResponse) { option (google.api.http) = { - get: "/v2/open_source_licenses" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}" + additional_bindings43 { + get: "/v2/datasets/{dataset_id}" + } }; - option (clarifai.auth.util.cl_auth_type) = NoAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // List all the model types available in the platform. - // This MUST be above ListModels so that the /models/types endpoint takes precedence. - rpc ListModelTypes (ListModelTypesRequest) returns (MultiModelTypeResponse) { + // Add datasets to an app. + // The process is atomic, i.e. either all or no datasets are added. + // If there is an error for one dataset, + // the process will stop, revert the transaction and return the error. + rpc PostDatasets (PostDatasetsRequest) returns (MultiDatasetResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/types" - additional_bindings38 { - get: "/v2/models/types" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + body: "*" + additional_bindings44 { + post: "/v2/datasets" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // Get a specific model from an app. - rpc GetModel (GetModelRequest) returns (SingleModelResponse) { + // Patch one or more datasets. + // The process is atomic, i.e. either all or no datasets are patched. + // If there is an error for one dataset, + // the process will stop, revert the transaction and return the error. + rpc PatchDatasets (PatchDatasetsRequest) returns (MultiDatasetResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}" - additional_bindings39 { - get: "/v2/models/{model_id}" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + body: "*" + additional_bindings45 { + patch: "/v2/datasets" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // Get a the output info for a given model_id or model_id/version_id - // combo. - rpc GetModelOutputInfo (GetModelRequest) returns (SingleModelResponse) { + // Delete one or more datasets in a single request. + rpc DeleteDatasets (DeleteDatasetsRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/output_info" - additional_bindings40 { - get: "/v2/models/{model_id}/output_info" - } - additional_bindings41 { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/output_info" - } - additional_bindings42 { - get: "/v2/models/{model_id}/versions/{version_id}/output_info" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets" + body: "*" + additional_bindings46 { + delete: "/v2/datasets" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Delete; } - // List all the models. - rpc ListModels (ListModelsRequest) returns (MultiModelResponse) { + // List all the dataset inputs in a dataset. + rpc ListDatasetInputs (ListDatasetInputsRequest) returns (MultiDatasetInputResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" - additional_bindings43 { - get: "/v2/users/{user_app_id.user_id}/models" - } - additional_bindings44 { - get: "/v2/models" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs" + additional_bindings47 { + get: "/v2/datasets/{dataset_id}/inputs" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - - - // Search over the models to find one or more you're looking for. - // This leverage the "body" parameter because we also have page and - // per_page as url query param variables in this request. - rpc PostModelsSearches (PostModelsSearchesRequest) returns (MultiModelResponse) { + // Get a specific dataset input. + rpc GetDatasetInput (GetDatasetInputRequest) returns (SingleDatasetInputResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/searches" - body: "*" - additional_bindings45 { - post: "/v2/models/searches" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs/{input_id}" + additional_bindings48 { + get: "/v2/datasets/{dataset_id}/inputs/{input_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // Add a models to an app. - rpc PostModels (PostModelsRequest) returns (SingleModelResponse) { + // Add dataset inputs to a dataset. + // The process is not atomic, i.e. if there are errors with some dataset + // inputs, others might still be added. The response reports + // - SUCCESS if all dataset inputs were added, + // - MIXED_STATUS if only some dataset inputs were added, and + // - FAILURE if no dataset inputs were added. + // Each individual dataset input in the response has the status set to + // indicate if it was successful or if there was an error. + rpc PostDatasetInputs (PostDatasetInputsRequest) returns (MultiDatasetInputResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs" body: "*" - additional_bindings46 { - post: "/v2/models" + additional_bindings49 { + post: "/v2/datasets/{dataset_id}/inputs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Add; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Train; // Train is needed because it creates a new version. - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // Needs to check the base workflow to build off of. } - // Patch one or more models. - rpc PatchModels (PatchModelsRequest) returns (MultiModelResponse) { + // Delete one or more dataset inputs in a single request. + rpc DeleteDatasetInputs (DeleteDatasetInputsRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/inputs" body: "*" - additional_bindings47 { - patch: "/v2/models" + additional_bindings50 { + delete: "/v2/datasets/{dataset_id}/inputs" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Add; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; } - // Delete a single model. - rpc DeleteModel (DeleteModelRequest) returns (clarifai.api.status.BaseResponse) { + // List all the dataset versions. + rpc ListDatasetVersions (ListDatasetVersionsRequest) returns (MultiDatasetVersionResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}" - additional_bindings48 { - delete: "/v2/models/{model_id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" + additional_bindings51 { + get: "/v2/datasets/{dataset_id}/versions" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + // Get a specific dataset version. + rpc GetDatasetVersion (GetDatasetVersionRequest) returns (SingleDatasetVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions/{dataset_version_id}" + additional_bindings52 { + get: "/v2/datasets/{dataset_id}/versions/{dataset_version_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + + rpc ListDatasetVersionMetricsGroups (ListDatasetVersionMetricsGroupsRequest) returns (MultiDatasetVersionMetricsGroupResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions/{dataset_version_id}/metrics" + additional_bindings53 { + get: "/v2/datasets/{dataset_id}/versions/{dataset_version_id}/metrics" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Add; - option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; } - // Delete multiple models in one request. - rpc DeleteModels (DeleteModelsRequest) returns (clarifai.api.status.BaseResponse) { + // Add dataset versions to a dataset. + rpc PostDatasetVersions (PostDatasetVersionsRequest) returns (MultiDatasetVersionResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" body: "*" - additional_bindings49 { - delete: "/v2/models" + additional_bindings54 { + post: "/v2/datasets/{dataset_id}/versions" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Add; - option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - - - // Update model toolkits tags - rpc PatchModelToolkits (PatchModelToolkitsRequest) returns (MultiModelToolkitResponse) { + // Patch one or more dataset versions. + rpc PatchDatasetVersions (PatchDatasetVersionsRequest) returns (MultiDatasetVersionResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/toolkits" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" body: "*" - additional_bindings50 { - patch: "/v2/models/{model_id}/toolkits" + additional_bindings55 { + patch: "/v2/datasets/{dataset_id}/versions" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; } - // Update model use_cases tags - rpc PatchModelUseCases (PatchModelUseCasesRequest) returns (MultiModelUseCaseResponse) { + // Delete one or more dataset versions in a single request. + rpc DeleteDatasetVersions (DeleteDatasetVersionsRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/usecases" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions" body: "*" - additional_bindings51 { - patch: "/v2/models/{model_id}/usecases" + additional_bindings56 { + delete: "/v2/datasets/{dataset_id}/versions" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Delete; } - // Update model languages tags - rpc PatchModelLanguages (PatchModelLanguagesRequest) returns (MultiModelLanguageResponse) { + // Create export of a dataset version. + rpc PutDatasetVersionExports (PutDatasetVersionExportsRequest) returns (MultiDatasetVersionExportResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/languages" + put: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/{dataset_id}/versions/{dataset_version_id}/exports" body: "*" - additional_bindings52 { - patch: "/v2/models/{model_id}/languages" + additional_bindings57 { + put: "/v2/datasets/{dataset_id}/versions/{dataset_version_id}/exports" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Add; } - // List all the inputs. - rpc ListModelInputs (ListModelInputsRequest) returns (MultiInputResponse) { + + //////////////////////////////////////// + // Models + //////////////////////////////////////// + + // Get a specific model type. + rpc GetModelType (GetModelTypeRequest) returns (SingleModelTypeResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/inputs" - additional_bindings53 { - get: "/v2/models/{model_id}/inputs" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/types/{model_type_id}" + additional_bindings58 { + get: "/v2/models/types/{model_type_id}" } - additional_bindings54 { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/inputs" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + } + + // List all the supported open source licenses in the platform. + rpc ListOpenSourceLicenses (ListOpenSourceLicensesRequest) returns (ListOpenSourceLicensesResponse) { + option (google.api.http) = { + get: "/v2/open_source_licenses" + }; + option (clarifai.auth.util.cl_auth_type) = NoAuth; + } + + // List all the model types available in the platform. + // This MUST be above ListModels so that the /models/types endpoint takes precedence. + rpc ListModelTypes (ListModelTypesRequest) returns (MultiModelTypeResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/types" + additional_bindings59 { + get: "/v2/models/types" } - additional_bindings55 { - get: "/v2/models/{model_id}/versions/{version_id}/inputs" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + } + + // Get a specific model from an app. + rpc GetModel (GetModelRequest) returns (SingleModelResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}" + additional_bindings60 { + get: "/v2/models/{model_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // Get a specific model from an app. - rpc GetModelVersion (GetModelVersionRequest) returns (SingleModelVersionResponse) { + // Get a the output info for a given model_id or model_id/version_id + // combo. + rpc GetModelOutputInfo (GetModelRequest) returns (SingleModelResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}" - additional_bindings56 { - get: "/v2/models/{model_id}/versions/{version_id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/output_info" + additional_bindings61 { + get: "/v2/models/{model_id}/output_info" + } + additional_bindings62 { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/output_info" + } + additional_bindings63 { + get: "/v2/models/{model_id}/versions/{version_id}/output_info" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } // List all the models. - rpc ListModelVersions (ListModelVersionsRequest) returns (MultiModelVersionResponse) { + rpc ListModels (ListModelsRequest) returns (MultiModelResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions" - additional_bindings57 { - get: "/v2/models/{model_id}/versions" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" + additional_bindings64 { + get: "/v2/users/{user_app_id.user_id}/models" + } + additional_bindings65 { + get: "/v2/models" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // PostModelVersionsPublish - rpc PostModelVersionsPublish (PostModelVersionsPublishRequest) returns (clarifai.api.status.BaseResponse) { + // List the resource counts for the app. + rpc GetResourceCounts (GetResourceCountsRequest) returns (GetResourceCountsResponse){ option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/publish" - body: "*" - additional_bindings58 { - post: "/v2/models/{model_id}/publish" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/resource_counts" + additional_bindings66 { + get: "/v2/resource_counts" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Train; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + } - // PostModelVersionsUnPublish - rpc PostModelVersionsUnPublish (PostModelVersionsUnPublishRequest) returns (clarifai.api.status.BaseResponse) { + // Search over the models to find one or more you're looking for. + // This leverage the "body" parameter because we also have page and + // per_page as url query param variables in this request. + rpc PostModelsSearches (PostModelsSearchesRequest) returns (MultiModelResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/unpublish" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/searches" body: "*" - additional_bindings59 { - post: "/v2/models/{model_id}/unpublish" + additional_bindings67 { + post: "/v2/models/searches" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Train; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - - // NOTE: inconsistency: do we want this to return a SingleModelResponse? - - // Create a new model version to trigger training of the model. - rpc PostModelVersions (PostModelVersionsRequest) returns (SingleModelResponse) { + // Add a models to an app. + rpc PostModels (PostModelsRequest) returns (SingleModelResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" body: "*" - additional_bindings60 { - post: "/v2/models/{model_id}/versions" + additional_bindings68 { + post: "/v2/models" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; // Train is needed because it creates a new version. option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // Needs to check the base workflow to build off of. - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - // PatchModelVersions - rpc PatchModelVersions (PatchModelVersionsRequest) returns (MultiModelVersionResponse) { + // Patch one or more models. + rpc PatchModels (PatchModelsRequest) returns (MultiModelResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" body: "*" + additional_bindings69 { + patch: "/v2/models" + body: "*" + } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Train; } - // Delete a single model. - rpc DeleteModelVersion (DeleteModelVersionRequest) returns (clarifai.api.status.BaseResponse) { + // Patch one or more models ids. + rpc PatchModelIds (PatchModelIdsRequest) returns (MultiModelResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}" - additional_bindings61 { - delete: "/v2/models/{model_id}/versions/{version_id}" - } + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/ids" + body: "*" }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; - option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Get the evaluation metrics for a model version. - rpc GetModelVersionMetrics (GetModelVersionMetricsRequest) returns (SingleModelVersionResponse) { + // Delete a single model. + rpc DeleteModel (DeleteModelRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/metrics" - additional_bindings62 { - get: "/v2/models/{model_id}/versions/{version_id}/metrics" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}" + additional_bindings70 { + delete: "/v2/models/{model_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Run the evaluation metrics for a model version. - rpc PostModelVersionMetrics (PostModelVersionMetricsRequest) returns (SingleModelVersionResponse) { + // Delete multiple models in one request. + rpc DeleteModels (DeleteModelsRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/metrics" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models" body: "*" - additional_bindings63 { - post: "/v2/models/{model_id}/versions/{version_id}/metrics" + additional_bindings71 { + delete: "/v2/models" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Train; - option (clarifai.auth.util.cl_depending_scopes) = Predict; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // Needs to check the base workflow to build off of. - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Lists model references tied to a particular model id. - rpc ListModelReferences (ListModelReferencesRequest) returns (MultiModelReferenceResponse) { + // Update model check consents + rpc PatchModelCheckConsents (PatchModelCheckConsentsRequest) returns (MultiModelCheckConsentResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/references" - additional_bindings64 { - get: "/v2/models/{model_id}/references" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/check_consents" + body: "*" + additional_bindings72 { + patch: "/v2/models/{model_id}/check_consents" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - - - // GetModelVersionInputExample - rpc GetModelVersionInputExample (GetModelVersionInputExampleRequest) returns (SingleModelVersionInputExampleResponse) { + // Update model toolkits tags + rpc PatchModelToolkits (PatchModelToolkitsRequest) returns (MultiModelToolkitResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/input_examples/{example_id}" - additional_bindings65 { - get: "/v2/models/{model_id}/versions/{model_version_id}/input_examples/{example_id}" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/toolkits" + body: "*" + additional_bindings73 { + patch: "/v2/models/{model_id}/toolkits" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // ListModelVersionInputExamples - rpc ListModelVersionInputExamples (ListModelVersionInputExamplesRequest) returns (MultiModelVersionInputExampleResponse) { + // Update model use_cases tags + rpc PatchModelUseCases (PatchModelUseCasesRequest) returns (MultiModelUseCaseResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/input_examples" - additional_bindings66 { - get: "/v2/models/{model_id}/versions/{model_version_id}/input_examples" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/usecases" + body: "*" + additional_bindings74 { + patch: "/v2/models/{model_id}/usecases" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - - - - - - - - - - - //////////////////////////////////////// - - //////////////////////////////////////// - // Workflows - //////////////////////////////////////// - - // Get a specific workflow from an app. - rpc GetWorkflow (GetWorkflowRequest) returns (SingleWorkflowResponse) { + // Update model languages tags + rpc PatchModelLanguages (PatchModelLanguagesRequest) returns (MultiModelLanguageResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}" - additional_bindings67 { - get: "/v2/workflows/{workflow_id}" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/languages" + body: "*" + additional_bindings75 { + patch: "/v2/models/{model_id}/languages" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // List all the workflows. - rpc ListWorkflows (ListWorkflowsRequest) returns (MultiWorkflowResponse) { + // List all the inputs. + rpc ListModelInputs (ListModelInputsRequest) returns (MultiInputResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" - additional_bindings68 { - get: "/v2/users/{user_app_id.user_id}/workflows" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/inputs" + additional_bindings76 { + get: "/v2/models/{model_id}/inputs" } - additional_bindings69 { - get: "/v2/workflows" + additional_bindings77 { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/inputs" + } + additional_bindings78 { + get: "/v2/models/{model_id}/versions/{version_id}/inputs" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - - // Add a workflow to an app. - rpc PostWorkflows (PostWorkflowsRequest) returns (MultiWorkflowResponse) { + // Get a specific model from an app. + rpc GetModelVersion (GetModelVersionRequest) returns (SingleModelVersionResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" - body: "*" - additional_bindings70 { - post: "/v2/workflows" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}" + additional_bindings79 { + get: "/v2/models/{model_id}/versions/{version_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Patch one or more workflows. - rpc PatchWorkflows (PatchWorkflowsRequest) returns (MultiWorkflowResponse) { + // List all the models. + rpc ListModelVersions (ListModelVersionsRequest) returns (MultiModelVersionResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" - body: "*" - additional_bindings71 { - patch: "/v2/workflows" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions" + additional_bindings80 { + get: "/v2/models/{model_id}/versions" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Delete a single workflow. - rpc DeleteWorkflow (DeleteWorkflowRequest) returns (clarifai.api.status.BaseResponse) { + rpc PostWorkflowVersionsUnPublish (PostWorkflowVersionsUnPublishRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}" - additional_bindings72 { - delete: "/v2/workflows/{workflow_id}" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/unpublish" + body: "*" + additional_bindings81 { + post: "/v2/workflows/{workflow_id}/unpublish" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = WorkflowPublications_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - // Delete multiple workflows in one request. - rpc DeleteWorkflows (DeleteWorkflowsRequest) returns (clarifai.api.status.BaseResponse) { + rpc PostWorkflowVersionsPublish (PostWorkflowVersionsPublishRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/publish" body: "*" - additional_bindings73 { - delete: "/v2/workflows" + additional_bindings82 { + post: "/v2/workflows/{workflow_id}/publish" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = WorkflowPublications_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - // Predict using a workflow. - rpc PostWorkflowResults (PostWorkflowResultsRequest) returns (PostWorkflowResultsResponse) { + // PostModelVersionsPublish + rpc PostModelVersionsPublish (PostModelVersionsPublishRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{version_id}/results" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/publish" body: "*" - additional_bindings74 { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/results" - body: "*" - } - additional_bindings75 { - post: "/v2/workflows/{workflow_id}/results" + additional_bindings83 { + post: "/v2/models/{model_id}/publish" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = ModelVersionPublications_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - // Compare embeddings distances using a workflow - rpc PostWorkflowResultsSimilarity(PostWorkflowResultsSimilarityRequest) returns (PostWorkflowResultsSimilarityResponse) { + // PostModelVersionsUnPublish + rpc PostModelVersionsUnPublish (PostModelVersionsUnPublishRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{version_id}/results/similarity" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/unpublish" body: "*" - additional_bindings76 { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/results/similarity" - body: "*" - } - additional_bindings77 { - post: "/v2/workflows/{workflow_id}/results/similarity" + additional_bindings84 { + post: "/v2/models/{model_id}/unpublish" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = ModelVersionPublications_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - // List workflow versions. - rpc ListWorkflowVersions (ListWorkflowVersionsRequest) returns (MultiWorkflowVersionResponse) { + + // NOTE: inconsistency: do we want this to return a SingleModelResponse? + + // Create a new model version to trigger training of the model. + rpc PostModelVersions (PostModelVersionsRequest) returns (SingleModelResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" - additional_bindings78 { - get: "/v2/workflows/{workflow_id}/versions" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions" + body: "*" + additional_bindings85 { + post: "/v2/models/{model_id}/versions" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - } - - // Get single workflow version. - rpc GetWorkflowVersion (GetWorkflowVersionRequest) returns (SingleWorkflowVersionResponse) { - option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{workflow_version_id}" - additional_bindings79 { - get: "/v2/workflows/{workflow_id}/versions/{workflow_version_id}" - } - }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - } - - // Delete workflow versions. - rpc DeleteWorkflowVersions (DeleteWorkflowVersionsRequest) returns (clarifai.api.status.BaseResponse) { - option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" - body: "*" - additional_bindings80 { - delete: "/v2/workflows/{workflow_id}/versions" - body: "*" - } - }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; - } - - // Patch workflow versions. - rpc PatchWorkflowVersions (PatchWorkflowVersionsRequest) returns (MultiWorkflowVersionResponse) { - option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" - body: "*" - additional_bindings81 { - patch: "/v2/workflows/{workflow_id}/versions" - body: "*" - } - }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // Needs to check the base workflow to build off of. + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - - - - - - // Get a specific key from an app. - rpc GetKey (GetKeyRequest) returns (SingleKeyResponse) { + // PatchModelVersions + rpc PatchModelVersions (PatchModelVersionsRequest) returns (MultiModelVersionResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/keys/{key_id}" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions" + body: "*" }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; } - // List all the keys. - rpc ListKeys (ListKeysRequest) returns (MultiKeyResponse) { + // Delete a single model. + rpc DeleteModelVersion (DeleteModelVersionRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/keys" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}" + additional_bindings86 { + delete: "/v2/models/{model_id}/versions/{version_id}" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // List keys by app_id - rpc ListAppKeys (ListAppKeysRequest) returns (MultiKeyResponse) { + // Deprecated: Use GetEvaluation instead + // Get the evaluation metrics for a model version. + rpc GetModelVersionMetrics (GetModelVersionMetricsRequest) returns (SingleModelVersionResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/keys" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/metrics" + additional_bindings87 { + get: "/v2/models/{model_id}/versions/{version_id}/metrics" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } - // Search over the keys to find one or more you're looking for. - // This leverage the "body" parameter because we also have page and - // per_page as url query param variables in this request. - rpc DeleteKey (DeleteKeyRequest) returns (clarifai.api.status.BaseResponse) { + // Deprecated, use PostEvaluations instead + // Run the evaluation metrics for a model version. + rpc PostModelVersionMetrics (PostModelVersionMetricsRequest) returns (SingleModelVersionResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/keys/{key_id}" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{version_id}/metrics" + body: "*" + additional_bindings88 { + post: "/v2/models/{model_id}/versions/{version_id}/metrics" + body: "*" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // Needs to check the base workflow to build off of. + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - // Add a key to an app. - rpc PostKeys (PostKeysRequest) returns (MultiKeyResponse) { + // Deprecated, use PostEvaluations instead + rpc PostModelVersionEvaluations (PostModelVersionEvaluationsRequest) returns (MultiEvalMetricsResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/keys" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/evaluations" body: "*" + additional_bindings89 { + post: "/v2/models/{model_id}/versions/{model_version_id}/evaluations" + body: "*" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - // Patch one or more keys. - rpc PatchKeys (PatchKeysRequest) returns (MultiKeyResponse) { + // Deprecated, use GetEvaluation instead + // List the evaluation metrics for a model version. + rpc ListModelVersionEvaluations (ListModelVersionEvaluationsRequest) returns (MultiEvalMetricsResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/keys" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/evaluations" + additional_bindings90 { + get: "/v2/models/{model_id}/versions/{model_version_id}/evaluations" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; - option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } - // API Keys in the public API -- request is itself Key authorized, and will tell - // the user the scopes/access of the key/credential they're providing, as computed by - // our authorizer: - rpc MyScopes (MyScopesRequest) returns (MultiScopeResponse) { + // Deprecated, use GetEvaluation instead + // Get an evaluation metrics for a model version. + rpc GetModelVersionEvaluation (GetModelVersionEvaluationRequest) returns (SingleEvalMetricsResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/myscopes" - additional_bindings82 { - get: "/v2/myscopes" - } - additional_bindings83 { - get: "/v2/my_scopes" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/evaluations/{evaluation_id}" + additional_bindings91 { + get: "/v2/models/{model_id}/versions/{model_version_id}/evaluations/{evaluation_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } - rpc MyScopesUser (MyScopesUserRequest) returns (MultiScopeUserResponse) { + rpc PostEvaluations (PostEvaluationsRequest) returns (MultiEvalMetricsResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/myscopes" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/evaluations" + body: "*" + additional_bindings92 { + post: "/v2/evaluations" + body: "*" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; } - rpc MyScopesRoot (MyScopesRootRequest) returns (MultiScopeRootResponse) { + rpc ListEvaluations (ListEvaluationsRequest) returns (MultiEvalMetricsResponse) { option (google.api.http) = { - get: "/v2/myscopesroot" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/evaluations" + additional_bindings93 { + get: "/v2/users/{user_app_id.user_id}/evaluations" + } + additional_bindings94 { + get: "/v2/evaluations" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } - // List all auth scopes available to me as a user. - rpc ListScopes (ListScopesRequest) returns (MultiScopeDepsResponse) { + rpc GetEvaluation (GetEvaluationRequest) returns (SingleEvalMetricsResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/scopes" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/evaluations/{evaluation_id}" + additional_bindings95 { + get: "/v2/evaluations/{evaluation_id}" + } }; - option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } - // Get a specific app from an app. - rpc GetApp (GetAppRequest) returns (SingleAppResponse) { + // Lists model references tied to a particular model id. + rpc ListModelReferences (ListModelReferencesRequest) returns (MultiModelReferenceResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/references" + additional_bindings96 { + get: "/v2/models/{model_id}/references" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // List all the apps. - rpc ListApps (ListAppsRequest) returns (MultiAppResponse) { + + + // GetModelVersionInputExample + rpc GetModelVersionInputExample (GetModelVersionInputExampleRequest) returns (SingleModelVersionInputExampleResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps" - additional_bindings84 { - get: "/v2/apps" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/input_examples/{example_id}" + additional_bindings97 { + get: "/v2/models/{model_id}/versions/{model_version_id}/input_examples/{example_id}" } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // Search over the apps to find one or more you're looking for. - // This leverage the "body" parameter because we also have page and - // per_page as url query param variables in this request. - rpc DeleteApp (DeleteAppRequest) returns (clarifai.api.status.BaseResponse) { + // ListModelVersionInputExamples + rpc ListModelVersionInputExamples (ListModelVersionInputExamplesRequest) returns (MultiModelVersionInputExampleResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/models/{model_id}/versions/{model_version_id}/input_examples" + additional_bindings98 { + get: "/v2/models/{model_id}/versions/{model_version_id}/input_examples" + } }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; - option (clarifai.auth.util.cl_depending_scopes) = Apps_Delete; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; } - // Add a app to an app. - // This needs to load the default workflow to make a copy, validating all the models in it, and - // then writing the new workflow back to this new app. - rpc PostApps (PostAppsRequest) returns (MultiAppResponse) { - option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps" - body: "*" - }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; - option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - } - // Patch one or more apps. - rpc PatchApps (PatchAppsRequest) returns (MultiAppResponse) { - option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps" - body: "*" - }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; - option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; - } - // Search over the applications to find one or more you're looking for. - rpc PostAppsSearches (PostAppsSearchesRequest) returns (MultiAppResponse) { - option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/searches" - body: "*" - }; - option (clarifai.auth.util.cl_auth_type) = PATAuth; - option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - } @@ -1473,244 +1680,226 @@ service V2 { + //////////////////////////////////////// - // Validate new password in real-time for a user - rpc PostValidatePassword (PostValidatePasswordRequest) returns (SinglePasswordValidationResponse) { + //////////////////////////////////////// + // Workflows + //////////////////////////////////////// + + // Get a specific workflow from an app. + rpc GetWorkflow (GetWorkflowRequest) returns (SingleWorkflowResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/validate_password" - body: "*" - additional_bindings85 { - post: "/v2/validate_password" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}" + additional_bindings99 { + get: "/v2/workflows/{workflow_id}" } }; - option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Get a saved search. - rpc GetSearch (GetSearchRequest) returns (SingleSearchResponse) { + // List all the workflows. + rpc ListWorkflows (ListWorkflowsRequest) returns (MultiWorkflowResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" - additional_bindings86 { - get: "/v2/searches/{id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" + additional_bindings100 { + get: "/v2/users/{user_app_id.user_id}/workflows" + } + additional_bindings101 { + get: "/v2/workflows" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // List all saved searches. - rpc ListSearches (ListSearchesRequest) returns (MultiSearchResponse) { + + // Add a workflow to an app. + rpc PostWorkflows (PostWorkflowsRequest) returns (MultiWorkflowResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" - additional_bindings87 { - get: "/v2/searches" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" + body: "*" + additional_bindings102 { + post: "/v2/workflows" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Execute a new search and optionally save it. - rpc PostSearches (PostSearchesRequest) returns (MultiSearchResponse) { + // Patch one or more workflows. + rpc PatchWorkflows (PatchWorkflowsRequest) returns (MultiWorkflowResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" body: "*" - additional_bindings88 { - post: "/v2/searches" + additional_bindings103 { + patch: "/v2/workflows" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - // option (clarifai.auth.util.cl_depending_scopes) = Predict; // optional - option (clarifai.auth.util.cl_depending_scopes) = Search; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // to know the concepts and models in your default workflow. + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Execute a previously saved search. - rpc PostSearchesByID (PostSearchesByIDRequest) returns (MultiSearchResponse) { + // Patch one or more workflows ids. + rpc PatchWorkflowIds (PatchWorkflowIdsRequest) returns (MultiWorkflowResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/ids" body: "*" - additional_bindings89 { - post: "/v2/searches/{id}" - body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + } + + // Delete a single workflow. + rpc DeleteWorkflow (DeleteWorkflowRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}" + additional_bindings104 { + delete: "/v2/workflows/{workflow_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Evaluate the results of two search requests - rpc PostAnnotationSearchMetrics(PostAnnotationSearchMetricsRequest) returns (MultiAnnotationSearchMetricsResponse) { + // Delete multiple workflows in one request. + rpc DeleteWorkflows (DeleteWorkflowsRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows" body: "*" - additional_bindings90 { - post: "/v2/annotations/searches/metrics" + additional_bindings105 { + delete: "/v2/workflows" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // as it needs to know the concepts in your workflow's models. + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Get the evaluation results between two search requests - rpc GetAnnotationSearchMetrics(GetAnnotationSearchMetricsRequest) returns (MultiAnnotationSearchMetricsResponse) { + // Predict using a workflow. + rpc PostWorkflowResults (PostWorkflowResultsRequest) returns (PostWorkflowResultsResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics/{id}" - additional_bindings91 { - get: "/v2/annotations/searches/metrics/{id}" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{version_id}/results" + body: "*" + additional_bindings106 { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/results" + body: "*" + } + additional_bindings107 { + post: "/v2/workflows/{workflow_id}/results" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - - - // List the evaluation results between two search requests - rpc ListAnnotationSearchMetrics(ListAnnotationSearchMetricsRequest) returns (MultiAnnotationSearchMetricsResponse) { + // Compare embeddings distances using a workflow + rpc PostWorkflowResultsSimilarity(PostWorkflowResultsSimilarityRequest) returns (PostWorkflowResultsSimilarityResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics" - additional_bindings92 { - get: "/v2/annotations/searches/metrics" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{version_id}/results/similarity" + body: "*" + additional_bindings108 { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/results/similarity" + body: "*" + } + additional_bindings109 { + post: "/v2/workflows/{workflow_id}/results/similarity" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // DeleteAnnotationSearchMetrics - rpc DeleteAnnotationSearchMetrics (DeleteAnnotationSearchMetricsRequest) returns (clarifai.api.status.BaseResponse) { + // List workflow versions. + rpc ListWorkflowVersions (ListWorkflowVersionsRequest) returns (MultiWorkflowVersionResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics/{id}" - additional_bindings93 { - delete: "/v2/annotations/searches/metrics/{id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" + additional_bindings110 { + get: "/v2/workflows/{workflow_id}/versions" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; - option (clarifai.auth.util.cl_depending_scopes) = Metrics_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Delete a saved search. - rpc DeleteSearch (DeleteSearchRequest) returns (clarifai.api.status.BaseResponse) { + // Get single workflow version. + rpc GetWorkflowVersion (GetWorkflowVersionRequest) returns (SingleWorkflowVersionResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" - additional_bindings94 { - delete: "/v2/searches/{id}" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions/{workflow_version_id}" + additional_bindings111 { + get: "/v2/workflows/{workflow_id}/versions/{workflow_version_id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // List all status codes. - rpc ListStatusCodes (ListStatusCodesRequest) returns (MultiStatusCodeResponse) { + // Delete workflow versions. + rpc DeleteWorkflowVersions (DeleteWorkflowVersionsRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - get: "/v2/status_codes" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" + body: "*" + additional_bindings112 { + delete: "/v2/workflows/{workflow_id}/versions" + body: "*" + } }; - option (clarifai.auth.util.cl_auth_type) = NoAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Delete; } - // Get more details for a status code. - rpc GetStatusCode (GetStatusCodeRequest) returns (SingleStatusCodeResponse) { + // Patch workflow versions. + rpc PatchWorkflowVersions (PatchWorkflowVersionsRequest) returns (MultiWorkflowVersionResponse) { option (google.api.http) = { - get: "/v2/status_codes/{status_code_id}" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/workflows/{workflow_id}/versions" + body: "*" + additional_bindings113 { + patch: "/v2/workflows/{workflow_id}/versions" + body: "*" + } }; - option (clarifai.auth.util.cl_auth_type) = NoAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; } @@ -1718,455 +1907,523 @@ service V2 { + // Get a specific key from an app. + rpc GetKey (GetKeyRequest) returns (SingleKeyResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/keys/{key_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + // List all the keys. + rpc ListKeys (ListKeysRequest) returns (MultiKeyResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/keys" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } - // owner list users who the app is shared with - rpc ListCollaborators (ListCollaboratorsRequest) returns (MultiCollaboratorsResponse) { + // List keys by app_id + rpc ListAppKeys (ListAppKeysRequest) returns (MultiKeyResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/keys" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; } - // add collaborators to an app. - rpc PostCollaborators (PostCollaboratorsRequest) returns (MultiCollaboratorsResponse) { + // Search over the keys to find one or more you're looking for. + // This leverage the "body" parameter because we also have page and + // per_page as url query param variables in this request. + rpc DeleteKey (DeleteKeyRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" - body: "*" + delete: "/v2/users/{user_app_id.user_id}/keys/{key_id}" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; } - // Patch existing collaborators. - rpc PatchCollaborators (PatchCollaboratorsRequest) returns (MultiCollaboratorsResponse) { + // Add a key to an app. + rpc PostKeys (PostKeysRequest) returns (MultiKeyResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" + post: "/v2/users/{user_app_id.user_id}/keys" body: "*" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Delete; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; } - // Delete existing collaborators. - rpc DeleteCollaborators (DeleteCollaboratorsRequest) returns (clarifai.api.status.BaseResponse){ + // Patch one or more keys. + rpc PatchKeys (PatchKeysRequest) returns (MultiKeyResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" + patch: "/v2/users/{user_app_id.user_id}/keys" body: "*" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; - option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Delete; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; // when deleting a collaborator, we also delete task workers associated to this collaborator - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; } - // Collaboration includes the app user are invitied to work on - rpc ListCollaborations (ListCollaborationsRequest) returns (MultiCollaborationsResponse) { + // API Keys in the public API -- request is itself Key authorized, and will tell + // the user the scopes/access of the key/credential they're providing, as computed by + // our authorizer: + rpc MyScopes (MyScopesRequest) returns (MultiScopeResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/collaborations" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/myscopes" + additional_bindings114 { + get: "/v2/myscopes" + } + additional_bindings115 { + get: "/v2/my_scopes" + } }; - option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; } - - - - - // start to duplicate an app which copies all the inputs, annotations, models, concepts etc. to a new app. - // this is an async process, you should use ListAppDuplications or GetAppDuplication to check the status. - rpc PostAppDuplications (PostAppDuplicationsRequest) returns (MultiAppDuplicationsResponse) { + rpc MyScopesUser (MyScopesUserRequest) returns (MultiScopeUserResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/duplications" - body: "*" + get: "/v2/users/{user_app_id.user_id}/myscopes" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Models_Add; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Train; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; } - // list all the app duplications user triggers - rpc ListAppDuplications (ListAppDuplicationsRequest) returns (MultiAppDuplicationsResponse){ + rpc MyScopesRoot (MyScopesRootRequest) returns (MultiScopeRootResponse) { option (google.api.http) = { - get : "/v2/users/{user_app_id.user_id}/duplications" + get: "/v2/myscopesroot" }; - option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; + option (clarifai.auth.util.cl_auth_type) = PATAuth; } - // get the app duplication status - rpc GetAppDuplication (GetAppDuplicationRequest) returns (SingleAppDuplicationResponse) { + // List all auth scopes available to me as a user. + rpc ListScopes (ListScopesRequest) returns (MultiScopeDepsResponse) { option (google.api.http) = { - get : "/v2/users/{user_app_id.user_id}/duplications/{app_duplication_id}" + get: "/v2/users/{user_app_id.user_id}/scopes" }; option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; } - // Add tasks to an app. - rpc PostTasks (PostTasksRequest) returns (MultiTaskResponse) { + // Get a specific app from an app. + rpc GetApp (GetAppRequest) returns (SingleAppResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" - body: "*" - additional_bindings95 { - post: "/v2/tasks" - body: "*" - } + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids - // option (clarifai.auth.util.cl_depending_scopes) = Predict; // optional, needed for add_task_annotations.go when saved search uses visual search - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; // needed for add_task_annotations.go - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; // needed for add_task_annotations.go } - // Task annotation count - rpc GetTaskAnnotationCount (GetTaskCountRequest) returns (SingleTaskCountResponse) { + // List all the apps. + rpc ListApps (ListAppsRequest) returns (MultiAppResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/annotations/count" - additional_bindings96 { - get: "/v2/tasks/{task_id}/annotations/count" + get: "/v2/users/{user_app_id.user_id}/apps" + additional_bindings116 { + get: "/v2/apps" } }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Task Input count - rpc GetTaskInputCount (GetTaskCountRequest) returns (SingleTaskCountResponse) { + // Search over the apps to find one or more you're looking for. + // This leverage the "body" parameter because we also have page and + // per_page as url query param variables in this request. + rpc DeleteApp (DeleteAppRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/inputs/count" - additional_bindings97 { - get: "/v2/tasks/{task_id}/inputs/count" - } + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; } - // Get a specific task from an app. - rpc GetTask (GetTaskRequest) returns (SingleTaskResponse) { + // Add a app to an app. + // This needs to load the default workflow to make a copy, validating all the models in it, and + // then writing the new workflow back to this new app. + rpc PostApps (PostAppsRequest) returns (MultiAppResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}" - additional_bindings98 { - get: "/v2/tasks/{task_id}" - } + post: "/v2/users/{user_app_id.user_id}/apps" + body: "*" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; } - // List tasks from an app. - rpc ListTasks (ListTasksRequest) returns (MultiTaskResponse) { + // Patch one or more apps. + rpc PatchApps (PatchAppsRequest) returns (MultiAppResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" - additional_bindings99 { - get: "/v2/tasks" - } + patch: "/v2/users/{user_app_id.user_id}/apps" + body: "*" }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; } - // Patch one or more tasks. - rpc PatchTasks (PatchTasksRequest) returns (MultiTaskResponse) { + // Patch apps ids. + rpc PatchAppsIds (PatchAppsIdsRequest) returns (MultiAppResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" + patch: "/v2/users/{user_app_id.user_id}/apps/ids" body: "*" - additional_bindings100 { - patch: "/v2/tasks" - body: "*" - } }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids - // option (clarifai.auth.util.cl_depending_scopes) = Predict; // optional, needed for add_task_annotations.go when saved search uses visual search - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; // needed for add_task_annotations.go - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; // needed for add_task_annotations.go + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; } - // Delete multiple tasks in one request. - rpc DeleteTasks (DeleteTasksRequest) returns (clarifai.api.status.BaseResponse) { + // Patch one app. + rpc PatchApp (PatchAppRequest) returns (SingleAppResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}" body: "*" - additional_bindings101 { - delete: "/v2/tasks" - body: "*" - } }; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Delete; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; } - // Add Label orders. - rpc PostLabelOrders (PostLabelOrdersRequest) returns (MultiLabelOrderResponse) { + + // Search over the applications to find one or more you're looking for. + rpc PostAppsSearches (PostAppsSearchesRequest) returns (MultiAppResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" + post: "/v2/users/{user_app_id.user_id}/apps/searches" body: "*" - additional_bindings102 { - post: "/v2/label_orders" - body: "*" - } }; - option (clarifai.auth.util.cl_private_rpc) = false; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; - option (clarifai.auth.util.cl_depending_scopes) = Search; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; - option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + } + + // Get user information + rpc GetUser (GetUserRequest) returns (SingleUserResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; } - // Get a label order. - rpc GetLabelOrder (GetLabelOrderRequest) returns (SingleLabelOrderResponse) { + + + + + + + + + + // Validate new password in real-time for a user + rpc PostValidatePassword (PostValidatePasswordRequest) returns (SinglePasswordValidationResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders/{label_order_id}" - additional_bindings103 { - get: "/v2/label_orders/{label_order_id}" + post: "/v2/users/{user_app_id.user_id}/validate_password" + body: "*" + additional_bindings117 { + post: "/v2/validate_password" + body: "*" } }; - option (clarifai.auth.util.cl_private_rpc) = false; - option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; // needed because task is embedded + option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; } - // List label orders. - rpc ListLabelOrders (ListLabelOrdersRequest) returns (MultiLabelOrderResponse) { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + // Get a saved legacy search. + rpc GetSearch (GetSearchRequest) returns (SingleSearchResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" - additional_bindings104 { - get: "/v2/label_orders" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" + additional_bindings118 { + get: "/v2/searches/{id}" } }; - option (clarifai.auth.util.cl_private_rpc) = false; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; // needed because task is embedded + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // Patch one or more label orders. - rpc PatchLabelOrders (PatchLabelOrdersRequest) returns (MultiLabelOrderResponse) { + // List all saved legacy searches. + rpc ListSearches (ListSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" - body: "*" - additional_bindings105 { - patch: "/v2/label_orders" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" + additional_bindings119 { + get: "/v2/searches" } }; - option (clarifai.auth.util.cl_private_rpc) = false; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; - option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // Delete multiple label orders in one request. - // this do not change task status - rpc DeleteLabelOrders (DeleteLabelOrdersRequest) returns (clarifai.api.status.BaseResponse) { + // Patch saved legacy searches by ids. + rpc PatchSearches (PatchSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" body: "*" - additional_bindings106 { - delete: "/v2/label_orders" + additional_bindings120 { + patch: "/v2/searches" body: "*" } }; - option (clarifai.auth.util.cl_private_rpc) = false; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Delete; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; - option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; - option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; } - // Add a list of Collectors to an app. - // In the handler of this endpoint we also check for all the scopes of the POST /inputs - // endpoint. - // Those current scopes are listed here as a hard requirement. - // They are needed when adding the collectors just so we now that you have permission with - // that key at least to do the writing to this app with POST /inputs. - rpc PostCollectors (PostCollectorsRequest) returns (MultiCollectorResponse) { + // Execute a new search and optionally save it. + // + // Deprecated: Use PostInputsSearches or PostAnnotationsSearches instead. + rpc PostSearches (PostSearchesRequest) returns (MultiSearchResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches" body: "*" - additional_bindings107 { - post: "/v2/collectors" + additional_bindings121 { + post: "/v2/searches" body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; - option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; - option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; option (clarifai.auth.util.cl_depending_scopes) = Models_Get; - option (clarifai.auth.util.cl_depending_scopes) = Predict; - option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + // option (clarifai.auth.util.cl_depending_scopes) = Predict; // optional + option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // to know the concepts and models in your default workflow. + option deprecated = true; } - // Get a specific collector from an app. - rpc GetCollector (GetCollectorRequest) returns (SingleCollectorResponse) { + // Execute a previously saved legacy search. + rpc PostSearchesByID (PostSearchesByIDRequest) returns (MultiSearchResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors/{collector_id}" - additional_bindings108 { - get: "/v2/collectors/{collector_id}" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" + body: "*" + additional_bindings122 { + post: "/v2/searches/{id}" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = Search; } - // List all the collectors. - rpc ListCollectors (ListCollectorsRequest) returns (MultiCollectorResponse) { + // Evaluate the results of two search requests + rpc PostAnnotationSearchMetrics(PostAnnotationSearchMetricsRequest) returns (MultiAnnotationSearchMetricsResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" - additional_bindings109 { - get: "/v2/collectors" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics" + body: "*" + additional_bindings123 { + post: "/v2/annotations/searches/metrics" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; // as it needs to know the concepts in your workflow's models. } - // Patch one or more collectors. - rpc PatchCollectors (PatchCollectorsRequest) returns (MultiCollectorResponse) { + // Get the evaluation results between two search requests + rpc GetAnnotationSearchMetrics(GetAnnotationSearchMetricsRequest) returns (MultiAnnotationSearchMetricsResponse) { option (google.api.http) = { - patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" - body: "*" - additional_bindings110 { - patch: "/v2/collectors" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics/{id}" + additional_bindings124 { + get: "/v2/annotations/searches/metrics/{id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } - // Delete multiple collectors in one request. - // This call is asynchronous. Use DeleteCollector if you want a synchronous version. - rpc DeleteCollectors (DeleteCollectorsRequest) returns (clarifai.api.status.BaseResponse) { + // List the evaluation results between two search requests + rpc ListAnnotationSearchMetrics(ListAnnotationSearchMetricsRequest) returns (MultiAnnotationSearchMetricsResponse) { option (google.api.http) = { - delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" - body: "*" - additional_bindings111 { - delete: "/v2/collectors" - body: "*" + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics" + additional_bindings125 { + get: "/v2/annotations/searches/metrics" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Delete; - option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; } - // PostStatValues - rpc PostStatValues (PostStatValuesRequest) returns (MultiStatValueResponse) { + // DeleteAnnotationSearchMetrics + rpc DeleteAnnotationSearchMetrics (DeleteAnnotationSearchMetricsRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/stats/values" - body: "*" - additional_bindings112 { - post: "/v2/stats/values" - body: "*" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotations/searches/metrics/{id}" + additional_bindings126 { + delete: "/v2/annotations/searches/metrics/{id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Get; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Add; + option (clarifai.auth.util.cl_depending_scopes) = Metrics_Delete; } - // PostStatValuesAggregate - rpc PostStatValuesAggregate (PostStatValuesAggregateRequest) returns (MultiStatValueAggregateResponse) { + // Delete a saved search. + rpc DeleteSearch (DeleteSearchRequest) returns (clarifai.api.status.BaseResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/stats/values/aggregate" - body: "*" - additional_bindings113 { - post: "/v2/stats/values/aggregate" - body: "*" + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/searches/{id}" + additional_bindings127 { + delete: "/v2/searches/{id}" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Delete; } + // List all the annotation filters. + rpc ListAnnotationFilters (ListAnnotationFiltersRequest) returns (MultiAnnotationFilterResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" + additional_bindings128 { + get: "/v2/annotation_filters" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } + // Get a specific annotation filter. + rpc GetAnnotationFilter (GetAnnotationFilterRequest) returns (SingleAnnotationFilterResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters/{annotation_filter_id}" + additional_bindings129 { + get: "/v2/annotation_filters/{annotation_filter_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + } - - - - - // Increase the view metric for a detail view - rpc PostTrendingMetricsView (PostTrendingMetricsViewRequest) returns (clarifai.api.status.BaseResponse) { + // Add annotation filters. + rpc PostAnnotationFilters (PostAnnotationFiltersRequest) returns (MultiAnnotationFilterResponse) { option (google.api.http) = { - post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/trending_metrics/views/{view_type}/{object_id}" + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" body: "*" + additional_bindings130 { + post: "/v2/annotation_filters" + body: "*" + } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; } - // List the view metrics for a detail view - rpc ListTrendingMetricsViews (ListTrendingMetricsViewsRequest) returns (MultiTrendingMetricsViewResponse) { + // Patch one or more annotation filters. + rpc PatchAnnotationFilters (PatchAnnotationFiltersRequest) returns (MultiAnnotationFilterResponse) { option (google.api.http) = { - get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/trending_metrics/views/{view_type}" - additional_bindings114 { - get: "/v2/trending_metrics/views/{view_type}" + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" + body: "*" + additional_bindings131 { + patch: "/v2/annotation_filters" + body: "*" } }; option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; } + // Delete one or more annotation filters in a single request. + rpc DeleteAnnotationFilters (DeleteAnnotationFiltersRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/annotation_filters" + body: "*" + additional_bindings132 { + delete: "/v2/annotation_filters" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Add; + } @@ -2188,123 +2445,1261 @@ service V2 { - -} -// Split the results into pages. -message Pagination { - // (optional URL parameter) The page number. Pagination is used to split the results into chunks. Defaults to 1. - uint32 page = 1; - // (optional URL parameter) The number of results that will be contained in each page. Defaults to 128. - uint32 per_page = 2; -} -// GetAnnotationRequest -message GetAnnotationRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - string annotation_id = 2; - string input_id = 3; -} -// ListAnnotationsRequest -message ListAnnotationsRequest { - reserved 4; - clarifai.api.UserAppIDSet user_app_id = 1; - // List annotations for these IDs - repeated string ids = 2; - // List annotations for these Input IDs - // Note that 'ids' are optional but if the are provided the number and order in - // 'ids' and 'input_ids' should match - // If you do not specify 'ids' all the annotations for 'input_ids' are returned - // If a you do not specify both 'input_ids' and 'ids' all the annotations in the app are returned - repeated string input_ids = 3; - // Only return the annotations that has one of these user IDs, effectively operating as an - // OR among them to filter down the results. - // If model_version_ids are also provided these user_ids are OR'd with them as well since - // annotations are either provided by users or model versions and we want the union of any - // provided user or model version annotations in the results of ListAnnotations request. - // If no user_ids are provided then annotations from all users are returned. - repeated string user_ids = 9; - // Only return the annotations that has one of these model version IDs, effectively operating as an - // OR among them to filter down the results. - // If user_ids are also provided these model_versions_ids are OR'd with them as well since - // annotations are either provided by users or model versions and we want the union of any - // provided user or model version annotations in the results of ListAnnotations request. - // If no model_version_ids are provided then annotations from all model versions are returned. - repeated string model_version_ids = 10; - // Set status to filter by a list of statuses - // If not statuses are provided then annotations with any status will be returned. - repeated clarifai.api.status.Status statuses = 5; + // List all status codes. + rpc ListStatusCodes (ListStatusCodesRequest) returns (MultiStatusCodeResponse) { + option (google.api.http) = { + get: "/v2/status_codes" + }; + option (clarifai.auth.util.cl_auth_type) = NoAuth; + } - // Set this flag to list both trusted and not trusted annotations - // by default it's listing only trusted annotations - bool list_all_annotations = 6; - // (optional URL parameter) The page number. Pagination is used to split the results into chunks. - // Defaults to 1. - uint32 page = 7; - // (optional URL parameter) The number of results that will be contained in each page. Defaults - // to 128. - uint32 per_page = 8; - // Flag to filter annotations by task_id - string task_id = 11; -} + // Get more details for a status code. + rpc GetStatusCode (GetStatusCodeRequest) returns (SingleStatusCodeResponse) { + option (google.api.http) = { + get: "/v2/status_codes/{status_code_id}" + }; + option (clarifai.auth.util.cl_auth_type) = NoAuth; + } -// PostAnnotationsRequest -message PostAnnotationsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - repeated Annotation annotations = 2; -} -// PatchAnnotationsRequest -message PatchAnnotationsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - repeated Annotation annotations = 2; - // The action to perform on the patched objects - // For now actions 'merge', 'overwrite', and 'remove' are supported - string action = 3; -} -// PatchAnnotationsStatusRequest -message PatchAnnotationsStatusRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - // Annotation Status code - clarifai.api.status.StatusCode status_code = 2; - repeated string user_ids = 3; - string task_id = 4; - // 'overwrite' is supported - string action = 5; -} -// PatchAnnotationsStatusResponse -message PatchAnnotationsStatusResponse { - clarifai.api.status.Status status = 1; - repeated string user_ids = 2; - uint32 updated_count = 3; -} -// DeleteAnnotationRequest -message DeleteAnnotationRequest { - clarifai.api.UserAppIDSet user_app_id = 1; + // owner list users who the app is shared with + rpc ListCollaborators (ListCollaboratorsRequest) returns (MultiCollaboratorsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; + } - string input_id = 2; + // add collaborators to an app. + rpc PostCollaborators (PostCollaboratorsRequest) returns (MultiCollaboratorsResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; + } - string annotation_id = 3; -} + // Patch existing collaborators. + rpc PatchCollaborators (PatchCollaboratorsRequest) returns (MultiCollaboratorsResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Delete; + } -// Request to delete several things by the list of ids. -message DeleteAnnotationsRequest { + // Delete existing collaborators. + rpc DeleteCollaborators (DeleteCollaboratorsRequest) returns (clarifai.api.status.BaseResponse){ + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collaborators" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Add; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collaborators_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; // when deleting a collaborator, we also delete task workers associated to this collaborator + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + } + + // Collaboration includes the app user are invitied to work on + rpc ListCollaborations (ListCollaborationsRequest) returns (MultiCollaborationsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/collaborations" + }; + option (clarifai.auth.util.cl_auth_type) = SessionTokenAuth; + } + + + + + + // start to duplicate an app which copies all the inputs, annotations, models, concepts etc. to a new app. + // this is an async process, you should use ListAppDuplications or GetAppDuplication to check the status. + rpc PostAppDuplications (PostAppDuplicationsRequest) returns (MultiAppDuplicationsResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/duplications" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Add; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Train; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Add; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Add; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + } + + // list all the app duplications user triggers + rpc ListAppDuplications (ListAppDuplicationsRequest) returns (MultiAppDuplicationsResponse){ + option (google.api.http) = { + get : "/v2/users/{user_app_id.user_id}/duplications" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + } + + // get the app duplication status + rpc GetAppDuplication (GetAppDuplicationRequest) returns (SingleAppDuplicationResponse) { + option (google.api.http) = { + get : "/v2/users/{user_app_id.user_id}/duplications/{app_duplication_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + } + + // Add tasks to an app. + rpc PostTasks (PostTasksRequest) returns (MultiTaskResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" + body: "*" + additional_bindings133 { + post: "/v2/tasks" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Search; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + // option (clarifai.auth.util.cl_depending_scopes) = Predict; // optional, needed for add_task_annotations.go when saved search uses visual search + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; // needed for add_task_annotations.go + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; // needed for add_task_annotations.go + } + + // Task annotation count + rpc GetTaskAnnotationCount (GetTaskCountRequest) returns (SingleTaskCountResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/annotations/count" + additional_bindings134 { + get: "/v2/tasks/{task_id}/annotations/count" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + } + + // Task Input count + rpc GetTaskInputCount (GetTaskCountRequest) returns (SingleTaskCountResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/inputs/count" + additional_bindings135 { + get: "/v2/tasks/{task_id}/inputs/count" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + } + + // Get a specific task from an app. + rpc GetTask (GetTaskRequest) returns (SingleTaskResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}" + additional_bindings136 { + get: "/v2/tasks/{task_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + } + + // List tasks from an app. + rpc ListTasks (ListTasksRequest) returns (MultiTaskResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" + additional_bindings137 { + get: "/v2/tasks" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + } + + // Patch one or more tasks. + rpc PatchTasks (PatchTasksRequest) returns (MultiTaskResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" + body: "*" + additional_bindings138 { + patch: "/v2/tasks" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + // option (clarifai.auth.util.cl_depending_scopes) = Predict; // optional, needed for add_task_annotations.go when saved search uses visual search + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; // needed for add_task_annotations.go + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; // needed for add_task_annotations.go + } + + // Delete multiple tasks in one request. + rpc DeleteTasks (DeleteTasksRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks" + body: "*" + additional_bindings139 { + delete: "/v2/tasks" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Delete; + } + + + + //////////////////////////////////////// + // Label Order + //////////////////////////////////////// + + // Add Label orders. + rpc PostLabelOrders (PostLabelOrdersRequest) returns (MultiLabelOrderResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" + body: "*" + additional_bindings140 { + post: "/v2/label_orders" + body: "*" + } + }; + + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = SavedSearch_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; // needed for converting workers internal ids to external ids + } + + // Get a label order. + rpc GetLabelOrder (GetLabelOrderRequest) returns (SingleLabelOrderResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders/{label_order_id}" + additional_bindings141 { + get: "/v2/label_orders/{label_order_id}" + } + }; + + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; // needed because task is embedded + } + + // List label orders. + rpc ListLabelOrders (ListLabelOrdersRequest) returns (MultiLabelOrderResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" + additional_bindings142 { + get: "/v2/label_orders" + } + }; + + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; // needed because task is embedded + } + + // Patch one or more label orders. + rpc PatchLabelOrders (PatchLabelOrdersRequest) returns (MultiLabelOrderResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" + body: "*" + additional_bindings143 { + patch: "/v2/label_orders" + body: "*" + } + }; + + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Delete; + } + + // Delete multiple label orders in one request. + // this do not change task status + rpc DeleteLabelOrders (DeleteLabelOrdersRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/label_orders" + body: "*" + additional_bindings144 { + delete: "/v2/label_orders" + body: "*" + } + }; + + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Delete; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Get; + option (clarifai.auth.util.cl_depending_scopes) = LabelOrders_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Add; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + } + + // Add a list of Collectors to an app. + // In the handler of this endpoint we also check for all the scopes of the POST /inputs + // endpoint. + // Those current scopes are listed here as a hard requirement. + // They are needed when adding the collectors just so we now that you have permission with + // that key at least to do the writing to this app with POST /inputs. + rpc PostCollectors (PostCollectorsRequest) returns (MultiCollectorResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" + body: "*" + additional_bindings145 { + post: "/v2/collectors" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + } + + // Get a specific collector from an app. + rpc GetCollector (GetCollectorRequest) returns (SingleCollectorResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors/{collector_id}" + additional_bindings146 { + get: "/v2/collectors/{collector_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + } + + // List all the collectors. + rpc ListCollectors (ListCollectorsRequest) returns (MultiCollectorResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" + additional_bindings147 { + get: "/v2/collectors" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + } + + // Patch one or more collectors. + rpc PatchCollectors (PatchCollectorsRequest) returns (MultiCollectorResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" + body: "*" + additional_bindings148 { + patch: "/v2/collectors" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + } + + + + // Delete multiple collectors in one request. + // This call is asynchronous. Use DeleteCollector if you want a synchronous version. + rpc DeleteCollectors (DeleteCollectorsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/collectors" + body: "*" + additional_bindings149 { + delete: "/v2/collectors" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Add; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Collectors_Get; + } + + // PostStatValues + rpc PostStatValues (PostStatValuesRequest) returns (MultiStatValueResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/stats/values" + body: "*" + additional_bindings150 { + post: "/v2/stats/values" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + } + + // PostStatValuesAggregate + rpc PostStatValuesAggregate (PostStatValuesAggregateRequest) returns (MultiStatValueAggregateResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/stats/values/aggregate" + body: "*" + additional_bindings151 { + post: "/v2/stats/values/aggregate" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + } + + + + + + + + + // Increase the view metric for a detail view + rpc PostTrendingMetricsView (PostTrendingMetricsViewRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/trending_metrics/views/{view_type}/{object_id}" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + } + + // List the view metrics for a detail view + rpc ListTrendingMetricsViews (ListTrendingMetricsViewsRequest) returns (MultiTrendingMetricsViewResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/trending_metrics/views/{view_type}" + additional_bindings152 { + get: "/v2/trending_metrics/views/{view_type}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + } + + + + + + + + + + // Get a specific module from an app. + rpc GetModule (GetModuleRequest) returns (SingleModuleResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + + // List all the modules in community, by user or by app. + rpc ListModules (ListModulesRequest) returns (MultiModuleResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + additional_bindings153 { + get: "/v2/users/{user_app_id.user_id}/modules" + } + additional_bindings154 { + get: "/v2/modules" + } + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + + // Add a modules to an app. + rpc PostModules (PostModulesRequest) returns (MultiModuleResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + + // Patch one or more modules. + rpc PatchModules (PatchModulesRequest) returns (MultiModuleResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + + // Delete multiple modules in one request. + rpc DeleteModules (DeleteModulesRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; // Needed to cascade delete to IMV + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + } + + // Get a specific module version for a module. + rpc GetModuleVersion (GetModuleVersionRequest) returns (SingleModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions/{module_version_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + + // List all the modules versions for a given module. + rpc ListModuleVersions (ListModuleVersionsRequest) returns (MultiModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + + // Create a new module version to trigger training of the module. + rpc PostModuleVersions (PostModuleVersionsRequest) returns (MultiModuleVersionResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + } + + // Delete a multiple module version. + rpc DeleteModuleVersions (DeleteModuleVersionsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/modules/{module_id}/versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Add; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; // Needed to cascade delete to IMV + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + } + + // Get installed modules vesrions for an app. + rpc GetInstalledModuleVersion (GetInstalledModuleVersionRequest) returns (SingleInstalledModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions/{installed_module_version_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + + // List installed modules vesrions for an app. + rpc ListInstalledModuleVersions (ListInstalledModuleVersionsRequest) returns (MultiInstalledModuleVersionResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + + // Install a new module version which will deploy the specific ModuleVersion to the app in the url. + rpc PostInstalledModuleVersions (PostInstalledModuleVersionsRequest) returns (MultiInstalledModuleVersionResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; // since adding Keys needs that. + } + + // Uninstall an installed module version which will deploy the specific ModuleVersion to the app + // in the url. + // This cleaned up any associated caller keys so needs the Keys_Delete scope. + rpc DeleteInstalledModuleVersions (DeleteInstalledModuleVersionsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Delete; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + + // Assign a key that the caller owns to be used when accessing this installed module version + // If this endpoint is called with a different key then it overwrites what is there. + rpc PostInstalledModuleVersionsKey (PostInstalledModuleVersionsKeyRequest) returns (SingleKeyResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/installed_module_versions/{installed_module_version_id}/key" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Add; + option (clarifai.auth.util.cl_depending_scopes) = InstalledModuleVersions_Get; + option (clarifai.auth.util.cl_depending_scopes) = Modules_Get; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; // since adding Keys needs that. + option (clarifai.auth.util.cl_depending_scopes) = Keys_Add; + option (clarifai.auth.util.cl_depending_scopes) = Keys_Get; + } + + // Perform bulk operations on a list of inputs based on input source. + // Operation include add, update, delete of concepts, metadata and geo data. + // This is an Asynchronous process. Use ListBulkOperations or GetBulkOperation to check the status. + rpc PostBulkOperations (PostBulkOperationsRequest) returns (MultiBulkOperationsResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + body: "*" + additional_bindings155 { + post: "/v2/bulk_operations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; + } + + // List all the bulk operations + rpc ListBulkOperations (ListBulkOperationsRequest) returns (MultiBulkOperationsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + additional_bindings156 { + get: "/v2/bulk_operations" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + } + + // Get the bulk operation details by ID + rpc GetBulkOperation (GetBulkOperationRequest) returns (SingleBulkOperationsResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations/{id}" + additional_bindings157 { + get: "/v2/bulk_operations/{id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + } + + // Cancel one or more bulk operations + rpc CancelBulkOperations (CancelBulkOperationRequest) returns (MultiBulkOperationsResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + body: "*" + additional_bindings158 { + patch: "/v2/bulk_operations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Add; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + } + + // delete one or more terminated bulk operations + rpc DeleteBulkOperations (DeleteBulkOperationRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/bulk_operations" + body: "*" + additional_bindings159 { + delete: "/v2/bulk_operations" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Delete; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Add; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Get; + option (clarifai.auth.util.cl_depending_scopes) = BulkOperation_Delete; + } + + // Get a specific job. + rpc GetDatasetInputsSearchAddJob (GetDatasetInputsSearchAddJobRequest) returns (SingleDatasetInputsSearchAddJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/datasets/inputs/search_add/jobs/{job_id}" + additional_bindings160 { + get: "/v2/datasets/inputs/search_add/jobs/{job_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + } + + // List next non-labeled and unassigned inputs from task's dataset + rpc ListNextTaskAssignments (ListNextTaskAssignmentsRequest) returns (MultiInputResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/assignments" + additional_bindings161 { + get: "/v2/tasks/{task_id}/assignments" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + } + + // PutTaskAssignments evaluates all the annotations by labeler (authenticated user) for given task (task_id) and input (input_id). + rpc PutTaskAssignments (PutTaskAssignmentsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + put: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/tasks/{task_id}/assignments" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Tasks_Get; + option (clarifai.auth.util.cl_depending_scopes) = Datasets_Get; + } + + + + // List all the inputs add jobs + rpc ListInputsAddJobs (ListInputsAddJobsRequest) returns (MultiInputsAddJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/add" + additional_bindings162 { + get: "/v2/inputs/jobs/add" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // Get the input add job details by ID + rpc GetInputsAddJob (GetInputsAddJobRequest) returns (SingleInputsAddJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/add/{id}" + additional_bindings163 { + get: "/v2/inputs/jobs/add/{id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // cancel the input add job by ID + rpc CancelInputsAddJob (CancelInputsAddJobRequest) returns (SingleInputsAddJobResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/add/{id}" + body: "*" + additional_bindings164 { + patch: "/v2/inputs/jobs/add/{id}" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + rpc PostUploads (PostUploadsRequest) returns (MultiUploadResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads" + body: "*" + additional_bindings165 { + post: "/v2/uploads" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + // Upload a part of a multipart upload. + // Behaviour on completion depends on the endpoint that was used to initiate the upload. + rpc PutUploadContentParts (PutUploadContentPartsRequest) returns (SingleUploadResponse) { + option (google.api.http) = { + put: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads/{upload_id}/content_parts" + additional_bindings166 { + put: "/v2/uploads/{upload_id}/content_parts" + } + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + rpc GetUpload (GetUploadRequest) returns (SingleUploadResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads/{upload_id}" + additional_bindings167 { + get: "/v2/uploads/{upload_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + rpc ListUploads (ListUploadsRequest) returns (MultiUploadResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads" + additional_bindings168 { + get: "/v2/uploads" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + rpc DeleteUploads (DeleteUploadsRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/uploads" + body: "*" + additional_bindings169 { + delete: "/v2/uploads" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Delete; + } + + // Initiates retrieval of inputs from cloud storage from a user provided data source. + // Will create and return an inputs-add-job for tracking progress. + // Archives will be extracted and their contents will be processed as inputs. + // + // The cloud URL will be treated as a filter prefix. For example s3:/bucket/images_folder/abc will process + // files in the images_folder beginning with abc or in a subfolder beginning with abc. + // For example: + // bucket/images_folder/abcImage.png + // bucket/images_folder/abc-1/Data.zip + // + // If given URL is for a private bucket or file, then credentials should be provided to access the bucket. + // Credentials should include rights to list the objects in the bucket, except when pointed directly at a file archive, + // in which case it only requires rights to access that particular file. + rpc PostInputsDataSources (PostInputsDataSourcesRequest) returns (MultiInputsAddJobResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/data_sources" + body: "*" + additional_bindings170 { + post: "/v2/inputs/data_sources" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + } + + // Get the input extraction job details by ID + rpc GetInputsExtractionJob (GetInputsExtractionJobRequest) returns (SingleInputsExtractionJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/extraction/{inputs_extraction_job_id}" + additional_bindings171 { + get: "/v2/inputs/jobs/extraction/{inputs_extraction_job_id}" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // List all the input extraction jobs + rpc ListInputsExtractionJobs (ListInputsExtractionJobsRequest) returns (MultiInputsExtractionJobResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/extraction" + additional_bindings172 { + get: "/v2/inputs/jobs/extraction" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + rpc CancelInputsExtractionJobs (CancelInputsExtractionJobsRequest) returns (MultiInputsExtractionJobResponse) { + option (google.api.http) = { + patch: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/jobs/extraction" + body: "*" + additional_bindings173 { + patch: "/v2/inputs/jobs/extraction" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + } + + // Start uploading a file archive containing inputs. + // Will create and return an inputs-add-job for tracking progress. + // + // Associated inputs-add-job contains an upload id which should be completed through `PutUploadContentParts` endpoint. + // Completing the upload will automatically begin unpacking the archive and uploading the contents as inputs. + rpc PostInputsUploads (PostInputsUploadsRequest) returns (MultiInputsAddJobResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/apps/{user_app_id.app_id}/inputs/uploads" + body: "*" + additional_bindings174 { + post: "/v2/inputs/uploads" + body: "*" + } + }; + option (clarifai.auth.util.cl_auth_type) = KeyAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Add; + option (clarifai.auth.util.cl_depending_scopes) = Annotations_Get; + option (clarifai.auth.util.cl_depending_scopes) = Concepts_Get; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Add; + option (clarifai.auth.util.cl_depending_scopes) = Inputs_Get; + option (clarifai.auth.util.cl_depending_scopes) = Models_Get; + option (clarifai.auth.util.cl_depending_scopes) = Predict; + option (clarifai.auth.util.cl_depending_scopes) = Workflows_Get; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Add; + option (clarifai.auth.util.cl_depending_scopes) = Uploads_Get; + } + + + + // Get a specific runner from an app. + rpc GetRunner (GetRunnerRequest) returns (SingleRunnerResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/runners/{runner_id}" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + } + + // List all the runners in community, by user or by app. + rpc ListRunners (ListRunnersRequest) returns (MultiRunnerResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/runners" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + } + + // Add a runners to an app. + rpc PostRunners (PostRunnersRequest) returns (MultiRunnerResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/runners" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Add; + } + + // Delete multiple runners in one request. + rpc DeleteRunners (DeleteRunnersRequest) returns (clarifai.api.status.BaseResponse) { + option (google.api.http) = { + delete: "/v2/users/{user_app_id.user_id}/runners" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Add; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Delete; + } + + // List items for the remote runner to work on. + rpc ListRunnerItems (ListRunnerItemsRequest) returns (MultiRunnerItemResponse) { + option (google.api.http) = { + get: "/v2/users/{user_app_id.user_id}/runners/{runner_id}/items" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = RunnerItems_Get; + } + + // Post back outputs from remote runners + rpc PostRunnerItemOutputs (PostRunnerItemOutputsRequest) returns (MultiRunnerItemOutputResponse) { + option (google.api.http) = { + post: "/v2/users/{user_app_id.user_id}/runners/{runner_id}/items/{item_id}/outputs" + body: "*" + }; + option (clarifai.auth.util.cl_auth_type) = PATAuth; + option (clarifai.auth.util.cl_depending_scopes) = Apps_Get; + option (clarifai.auth.util.cl_depending_scopes) = Runners_Get; + option (clarifai.auth.util.cl_depending_scopes) = RunnerItems_Get; + option (clarifai.auth.util.cl_depending_scopes) = RunnerItems_Add; + }} + + + + + + +// Split the results into pages. +message Pagination { + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. Defaults to 1. + uint32 page = 1; + // (optional URL parameter) The number of results that will be contained in each page. Defaults to 128. + uint32 per_page = 2; +} + +// GetAnnotationRequest +message GetAnnotationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string annotation_id = 2; + string input_id = 3; +} + +// ListAnnotationsRequest +message ListAnnotationsRequest { + reserved 4; + + clarifai.api.UserAppIDSet user_app_id = 1; + + // List annotations for these IDs + repeated string ids = 2; + + // List annotations for these Input IDs + // Note that 'ids' are optional but if the are provided the number and order in + // 'ids' and 'input_ids' should match + // If you do not specify 'ids' all the annotations for 'input_ids' are returned + // If a you do not specify both 'input_ids' and 'ids' all the annotations in the app are returned + repeated string input_ids = 3; + + // Only return the annotations that has one of these user IDs, effectively operating as an + // OR among them to filter down the results. + // If model_version_ids are also provided these user_ids are OR'd with them as well since + // annotations are either provided by users or model versions and we want the union of any + // provided user or model version annotations in the results of ListAnnotations request. + // If no user_ids are provided then annotations from all users are returned. + repeated string user_ids = 9; + + // Only return the annotations that has one of these model version IDs, effectively operating as an + // OR among them to filter down the results. + // If user_ids are also provided these model_versions_ids are OR'd with them as well since + // annotations are either provided by users or model versions and we want the union of any + // provided user or model version annotations in the results of ListAnnotations request. + // If no model_version_ids are provided then annotations from all model versions are returned. + repeated string model_version_ids = 10; + + // Set status to filter by a list of statuses + // If not statuses are provided then annotations with any status will be returned. + repeated clarifai.api.status.Status statuses = 5; + + // Set this flag to list both trusted and not trusted annotations + // by default it's listing only trusted annotations + bool list_all_annotations = 6; + + // Set this flag to return the model output for model annotations in the response. + bool return_model_output = 12; + + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 7; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 8; + // Flag to filter annotations by task_id + string task_id = 11; +} + +// PostAnnotationsRequest +message PostAnnotationsRequest { + + clarifai.api.UserAppIDSet user_app_id = 1; + + repeated Annotation annotations = 2; +} + +// PatchAnnotationsRequest +message PatchAnnotationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + repeated Annotation annotations = 2; + + // The action to perform on the patched objects + // For now actions 'merge', 'overwrite', and 'remove' are supported + string action = 3; + + // If the request is a "remove" action and the annotation is left with empty data, + // then setting delete_if_empty_data to true will delete the annotation, + // if possible (for example, will not delete an input-level annotation). + bool delete_if_empty_data = 4; +} + +// PatchAnnotationsStatusRequest +message PatchAnnotationsStatusRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Annotation Status code + clarifai.api.status.StatusCode status_code = 2; + repeated string user_ids = 3; + string task_id = 4; + // 'overwrite' is supported + string action = 5; + +} + +// PatchAnnotationsStatusResponse +message PatchAnnotationsStatusResponse { + clarifai.api.status.Status status = 1; + repeated string user_ids = 2; + uint32 updated_count = 3; +} + +// DeleteAnnotationRequest +message DeleteAnnotationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + string input_id = 2; + + string annotation_id = 3; +} + +// Request to delete several things by the list of ids. +message DeleteAnnotationsRequest { clarifai.api.UserAppIDSet user_app_id = 1; // Delete annotations with IDs @@ -2356,8 +3751,12 @@ message ListAppsRequest { // Whether to order by the name bool sort_by_name = 6; // Whether to order by the modified_at time. - // If neither sort option is set to true, will sort by modified_at. + // If none of the sort options is set to true, will sort by modified_at. bool sort_by_modified_at = 7; + // Whether to order by the created_at time. + bool sort_by_created_at = 12; + // Whether to order by the number of users stared the app + bool sort_by_star_count = 13; } // Filtering options: @@ -2401,6 +3800,35 @@ message PatchAppsRequest { bool reindex = 5; } +// PatchAppRequest +message PatchAppRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + App app = 2; + + // The action to perform on the patched App object except App.Metadata + // For now only action 'overwrite' is supported + string action = 3; + + // The action to perform on the patched App.Metadata + clarifai.api.PatchAction metadata_action = 4; + + // If set, the app will be automatically reindexed upon change of its base workflow. + bool reindex = 5; +} + + +// PatchAppsIdsRequest +message PatchAppsIdsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Array containing 1 entry + repeated IdUpdateSource ids = 3; + + // The action to perform on the patched objects + // Only 'overwrite' is supported + string action = 4; +} + // Search over the available applications. message PostAppsSearchesRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -2429,6 +3857,12 @@ message ListCollaboratorsRequest { // Set this flag to list both deleted and not deleted collaborators // by default it's listing only not deleted collaborators bool list_all_collaborators = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; } // PostCollaboratorsRequest @@ -2549,6 +3983,22 @@ message ListConceptsRequest { uint32 per_page = 3; } +// ListModelConceptsRequest +message ListModelConceptsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Model id + string model_id = 2; + // Model version Id. Optional, if not provided latest model version is used. + string version_id = 3; + + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 4; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 5; +} + // PostConceptsSearchesRequest message PostConceptsSearchesRequest { // Ids present in the url of the request. @@ -2798,6 +4248,10 @@ message MultiConceptLanguageResponse { message GetInputRequest { clarifai.api.UserAppIDSet user_app_id = 1; string input_id = 2; +}// GetInputRequest +message GetVideoManifestRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string input_id = 2; } // GetInputSamplesRequest @@ -2832,7 +4286,9 @@ message StreamInputsRequest { uint32 per_page = 2; string last_id = 3; - + // By default, the endpoint return inputs by the time when it is added. + // If this is set to true, we will return inputs by id. + bool order_by_id = 5; bool descending = 4; } @@ -2846,101 +4302,365 @@ message PostInputsRequest { // * data // * dataset_ids repeated Input inputs = 2; + + // Collect statistics about created inputs in job with given ID. + // * If job ID is empty, then job is not created. + // * If job ID is non-empty and doesn't already exist, then a new job will be created with given ID. + // * If job ID does already exist, then new inputs statistics are merged with previous inputs statistics. + string inputs_add_job_id = 3; + + // How to handle input ID conflicts. + InputIDConflictResolution input_id_conflict_resolution = 4; +} + + + + + +// PatchInputsRequest +message PatchInputsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // List of inputs to patch. + // Inputs are identified by id field. + // For each input, the following fields are patchable: + // * data + repeated Input inputs = 2; + + // The action to perform on the patched objects + // For now actions 'merge', 'overwrite', and 'remove' are supported + string action = 3; +} + +// DeleteInputRequest +message DeleteInputRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string input_id = 2; +} + +// Request to delete several things by the list of ids. +message DeleteInputsRequest { + reserved 3; + + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} + +// SingleInputResponse +message SingleInputResponse { + clarifai.api.status.Status status = 1; + Input input = 2; +} + +message GetVideoManifestResponse { + clarifai.api.status.Status status = 1; + + // MPEG-dash manifest as data-URI, base64-encoded + // Can be empty if status is FAILED + // Can be fallback manifest if status is MIXED_STATUS + string manifest_url = 2; +} + +// MultiInputResponse +message MultiInputResponse { + + clarifai.api.status.Status status = 1; + repeated Input inputs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + + InputsAddJob inputs_add_job = 3; +} + +// MultiInputAnnotationResponse +message MultiInputAnnotationResponse { + + clarifai.api.status.Status status = 1; + repeated Hit hits = 3 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// SingleInputCountResponse +message SingleInputCountResponse { + clarifai.api.status.Status status = 1; + + InputCount counts = 2; +} + +// GetInputCountRequest +message GetInputCountRequest { + clarifai.api.UserAppIDSet user_app_id = 1; +} + +// ListDatasetsRequest +message ListDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; + bool starred_only = 4; + repeated string additional_fields = 5; + // Sorting opitons: + // Whether to sort in ascending order. If false, will order in descending order. + bool sort_ascending = 6; + oneof sort_by { + // Whether to order by the created_at time. + bool sort_by_created_at = 7; + // Whether to order by the number of users stared the app + bool sort_by_star_count = 8; + // If neither sort option is set to true, will sort by modified_at. + bool sort_by_modified_at = 9; + } + // Filter datasets by bookmark. If set, only return bookmarked datasets. Otherwise none bookmarked datasets only. + bool bookmark = 10; +} + +// GetDatasetRequest +message GetDatasetRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + repeated string additional_fields = 3; +} + +// Request to add one or more datasets. +message PostDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // List of datasets that are requested to be added. + repeated Dataset datasets = 2; +} + +// Request to patch several datasets. +message PatchDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // List of datasets that are requested to be updated. + repeated Dataset datasets = 2; + + // The action to perform on the patched objects + // Supported values: 'overwrite' and 'merge' + string action = 3; +} + +// Request to delete several datasets by list of ids. +message DeleteDatasetsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string dataset_ids = 2; +} + +// MultiDatasetResponse +message MultiDatasetResponse { + clarifai.api.status.Status status = 1; + repeated Dataset datasets = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// SingleDatasetResponse +message SingleDatasetResponse { + clarifai.api.status.Status status = 1; + Dataset dataset = 2; +} + +// ListDatasetInputsRequest +message ListDatasetInputsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; } +// GetDatasetInputRequest +message GetDatasetInputRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // Identify dataset input by id. + string input_id = 3; +} - -// PatchInputsRequest -message PatchInputsRequest { +// Request to add one or more datasets. +message PostDatasetInputsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - // List of inputs to patch. - // Inputs are identified by id field. - // For each input, the following fields are patchable: - // * data - repeated Input inputs = 2; + // Identify dataset by id. + string dataset_id = 2; - // The action to perform on the patched objects - // For now actions 'merge', 'overwrite', and 'remove' are supported - string action = 3; + // List of inputs that are requested to be added to this dataset. + // Identify each input by id field. All other inputs fields are ignored. + repeated DatasetInput dataset_inputs = 3; + + // Query to search inputs to be added to this dataset. + Search search = 4; } -// DeleteInputRequest -message DeleteInputRequest { +// Request to delete several dataset inputs by list of ids. +message DeleteDatasetInputsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - string input_id = 2; -} -// Request to delete several things by the list of ids. -message DeleteInputsRequest { - reserved 3; + // Identify dataset by id. + string dataset_id = 2; - clarifai.api.UserAppIDSet user_app_id = 1; - repeated string ids = 2; + // Specify which inputs to delete from dataset. + repeated string input_ids = 3; } -// SingleInputResponse -message SingleInputResponse { +// MultiDatasetInputResponse +message MultiDatasetInputResponse { clarifai.api.status.Status status = 1; - Input input = 2; + repeated DatasetInput dataset_inputs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + DatasetInputsSearchAddJob dataset_inputs_search_add_job = 3; } -// MultiInputResponse -message MultiInputResponse { - +// SingleDatasetInputResponse +message SingleDatasetInputResponse { clarifai.api.status.Status status = 1; - repeated Input inputs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + DatasetInput dataset_input = 2; } -// MultiInputAnnotationResponse -message MultiInputAnnotationResponse { +// ListDatasetVersionsRequest +message ListDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; - clarifai.api.status.Status status = 1; - repeated Hit hits = 3 [(clarifai.api.utils.cl_show_if_empty) = true]; -} + // Identify dataset by id. + string dataset_id = 2; -// SingleInputCountResponse -message SingleInputCountResponse { - clarifai.api.status.Status status = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; - InputCount counts = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; } -// GetInputCountRequest -message GetInputCountRequest { +// GetDatasetVersionRequest +message GetDatasetVersionRequest { clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify dataset by id. + string dataset_id = 2; + + // Identify dataset version by id. + string dataset_version_id = 3; } +// ListDatasetVersionMetricsGroupsRequest +message ListDatasetVersionMetricsGroupsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // Identify dataset version by id. + string dataset_version_id = 3; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 4; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 5; + // Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter. + repeated string parent_paths = 6; + // Filter by parent type. Multiple types are OR-ed. Empty list results in no filter. + repeated DatasetVersionMetricsGroupType types = 7; + // Filter by value. Multiple values are OR-ed. Empty list results in no filter. + repeated google.protobuf.Value values = 8; +} +// Request to add one or more dataset versions. +message PostDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // List of dataset versions that are requested to be added. + repeated DatasetVersion dataset_versions = 3; +} +// Request to patch several dataset versions. +message PatchDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // List of dataset versions that are requested to be updated. + repeated DatasetVersion dataset_versions = 3; + // The action to perform on the patched objects + // For now, only 'overwrite' action is supported + string action = 4; +} +// Request to delete several dataset versions by list of ids. +message DeleteDatasetVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + repeated string dataset_version_ids = 3; +} +// Request to create exports of a dataset version. +message PutDatasetVersionExportsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Identify dataset by id. + string dataset_id = 2; + // Identify dataset version by id. + string dataset_version_id = 3; + // exports is the list of requested dataset version exports. + // Only setting the 'format' field of the export is supported. + repeated DatasetVersionExport exports = 4; +} +message MultiDatasetVersionResponse { + clarifai.api.status.Status status = 1; + repeated DatasetVersion dataset_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message MultiDatasetVersionExportResponse { + clarifai.api.status.Status status = 1; + repeated DatasetVersionExport exports = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message MultiDatasetVersionMetricsGroupResponse { + clarifai.api.status.Status status = 1; + repeated DatasetVersionMetricsGroup dataset_version_metrics_groups = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message SingleDatasetVersionResponse { + clarifai.api.status.Status status = 1; + DatasetVersion dataset_version = 2; +} +message GetDatasetInputsSearchAddJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string job_id = 2; +} +message SingleDatasetInputsSearchAddJobResponse { + clarifai.api.status.Status status = 1; + DatasetInputsSearchAddJob job = 2; +} //////////////////////////////////////////////////// // Model prediction related stuff needs inputs and produces outputs. @@ -2984,6 +4704,9 @@ message ListKeysRequest { // (optional URL parameter) The number of results that will be contained in each page. Defaults // to 128. uint32 per_page = 3; + bool not_expired = 4; + repeated string scopes = 5; + repeated string endpoints = 6; } // ListAppKeysRequest @@ -3048,7 +4771,7 @@ message GetModelRequest { string version_id = 3; string language = 4; bool trained_before = 5; - // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets repeated string additional_fields = 19; } @@ -3072,16 +4795,21 @@ message ListModelsRequest { // Whether to order by the number of training inputs bool sort_by_num_inputs = 12; // Whether to order by the modified_at time of the latest model version. - // If neither sort option is set to true, will sort by modified_at. + // If none of the sort options is set to true, will sort by modified_at. bool sort_by_modified_at = 13; + // Whether to order by the created_at + bool sort_by_created_at = 24; + // Whether to order by count of stars + bool sort_by_star_count = 25; } // Filtering options: // Query name, description and id fields, that can contain the words in the query string. Does NOT support wildcards - full words only. Supports operators "OR" and "-" as NOT. string query = 14; - // Filter by the name, description and id of the model. This supports wildcard queries like "gen*" to match "general" as an example. - // Deprecated in favor of query - string name = 5 [deprecated = true]; + // Filter by the description and id of the model. This supports wildcard queries like "gen*" to match "general" as an example. + string name = 5; + // Extends the name filter to include the user_id of the application owner that the model belongs to. + bool filter_by_user_id = 22; // Filter models by the specific model_type_id. See ListModelTypes for the list of ModelType.Id's // supported. string model_type_id = 6; @@ -3105,8 +4833,30 @@ message ListModelsRequest { repeated string use_cases = 18; // List of language tags to filter by repeated string languages = 21; - // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets repeated string additional_fields = 19; + // Old API behavior resulted in returning clarifai main models when calling ListModels while scoped to an app. While we transition + // away from that, we can use this flag to not always fetch clarifai main models, unless that is the app we are explicitly listing for. + bool dont_fetch_from_main = 23; + + // Filter models by bookmark. If set, only return bookmarked models. Otherwise none bookmarked models only. + // Note: you can not filter `trained_only` and bookmark at the same time. + // When filter by bookmark, we will return trained and untrained models. + bool bookmark = 26; +} + +// ResourceCountRequest +message GetResourceCountsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; +} + +// ResourceCountResponse +message GetResourceCountsResponse { + clarifai.api.status.Status status = 1; + int64 datasets = 2; + int64 models = 3; + int64 workflows = 4; + int64 modules = 5; } message PatchModelToolkitsRequest { @@ -3119,6 +4869,17 @@ message PatchModelToolkitsRequest { string action = 4; } +// PatchModelCheckConsentsRequest +message PatchModelCheckConsentsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // the model id + string model_id = 2; + // the consents + repeated string check_consents = 3; + //overwrite supported + string action = 4; +} + message PatchModelUseCasesRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -3146,6 +4907,11 @@ message MultiModelToolkitResponse { repeated string toolkits = 2; } +message MultiModelCheckConsentResponse { + clarifai.api.status.Status status = 1; + repeated string check_consents = 2; +} + message MultiModelUseCaseResponse { clarifai.api.status.Status status = 1; repeated string usecases = 2; @@ -3179,6 +4945,25 @@ message PatchModelsRequest { string action = 3; } +message IdUpdateSource { + //old id + string id = 1; + //new id + string new_id = 2; +} + +// PatchModelIdsRequest +message PatchModelIdsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Array containing 1 entry + repeated IdUpdateSource ids = 3; + + // The action to perform on the patched objects + // Only 'overwrite' is supported + string action = 4; +} + // DeleteModelRequest message DeleteModelRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -3242,8 +5027,27 @@ message ListModelVersionsRequest { // (optional URL parameter) The number of results that will be contained in each page. Defaults // to 128. uint32 per_page = 4; + + // Filtering options: // To list only the model versions that have these concept ids present in them. repeated string concept_ids = 5; + // To list only the model versions that have been trained. + bool trained_only = 6; + + // Sorting options: + // Whether to sort in ascending order. If false, will order in descending order. + bool sort_ascending = 7; + oneof sort_by { + // Whether to order by the status code + bool sort_by_status_code = 8; + // Whether to order by the number of training inputs + bool sort_by_num_inputs = 9; + // Whether to sort by the description + bool sort_by_description = 10; + // Whether to order by the created_at time + // If neither sort option is set to true, will sort by created_at. + bool sort_by_created_at = 11; + } } // DeleteModelVersionRequest @@ -3267,36 +5071,40 @@ message MultiModelVersionResponse { // Create (train) a new model version. message PostModelVersionsRequest { + reserved 4, 5, 6, 7, 9; clarifai.api.UserAppIDSet user_app_id = 1; string model_id = 2; - // This lets you post an existing model version rather than training a new one. - // For internal Clarifai use only to start. repeated ModelVersion model_versions = 3; - // Use this to filter inputs that are used in training - // Alternatively, use train_search & test_search fields OR dataset_version field. - clarifai.api.Search search = 4 [deprecated = true]; - //train_search is used to specify what data to train on. - // Alternatively, use dataset_version field. - clarifai.api.Search train_search = 5; - //test_search is used to specify what data to test on. - // Alternatively, use dataset_version field. - clarifai.api.Search test_search = 6; - - // whether to evaluate the transfer trained model after training - bool evaluate_after_training = 7; - // Description about this training run string description = 8; - // Use the data from this dataset version for training. - // Set dataset_version.dataset_id to identify the dataset that you would like to use. - // When dataset_version.id field is set, - // the system will reuse the data from provided dataset version. - // When dataset_version.id is not set, - // a new dataset version will be created in the dataset using provided dataset_version fields. - DatasetVersion dataset_version = 9; + // When evaluate_after_training set to true, we will do evaluation immediately after training finishes. + // We will merge this with default_eval_info. + EvalInfo eval_info = 10; +} + +message PostWorkflowVersionsUnPublishRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string workflow_id = 2; + repeated WorkflowVersionUnPublishRequest publications = 3; +} + + + +message PostWorkflowVersionsPublishRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string workflow_id = 2; + repeated WorkflowVersionPublishRequest publications = 3; +} + +message WorkflowVersionPublishRequest { + string version_id = 1; +} + +message WorkflowVersionUnPublishRequest { + string version_id = 1; } // ModelVersionPublishRequest @@ -3323,17 +5131,108 @@ message PostModelVersionsUnPublishRequest { repeated ModelVersionUnpublishRequest publications = 3; } +// Evaluate this model vesion +message PostEvaluationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // eval_info, id, model, and ground_truth_dataset will be used when creating the evaluation + // If no dataset is provided, all app data that is annotated with concepts from the model will be used. + repeated EvalMetrics eval_metrics = 2; +} + +message ListEvaluationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; + // If true, sort in ascending order, otherwise sort in descending order. + bool sort_ascending = 4; + oneof sort_by { + // Whether to order by application id + bool sort_by_app_id = 5; + // Whether to order by eval metric summary.macro_avg_roc_auc + bool sort_by_roc_auc = 6; + // Whether to order by eval metric summary.f1 + bool sort_by_f1 = 7; + // Whether to order by when the metric was created + bool sort_by_created_at = 8; + // Whether to order by eval metric summary.mean_avg_precision_iou_50 + bool sort_by_mean_avg_precision = 9; + // Whether to order by eval metric summary.macro_avg_precision + bool sort_by_precision = 10; + // Whether to order by eval metric summary.macro_avg_recall + bool sort_by_recall = 11; + } +} + +message GetEvaluationRequest{ + clarifai.api.UserAppIDSet user_app_id = 1; + string evaluation_id = 2; + // Any of the fields you wish to return in the metrics + // By default, only the summary is returned. + FieldsValue fields = 3; +} + + + +// Evaluate this model vesion +message PostModelVersionEvaluationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string model_version_id = 3; + // EvalInfo and ID will be used when creating the evaluation + repeated EvalMetrics eval_metrics = 4; +} + +message ListModelVersionEvaluationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string model_version_id = 3; + + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 4; + + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 5; +} + +message GetModelVersionEvaluationRequest{ + clarifai.api.UserAppIDSet user_app_id = 1; + string model_id = 2; + string model_version_id = 3; + string evaluation_id = 4; + + // Any of the fields you wish to return from multiclass_metrics + // By default, only the summary is returned. + FieldsValue fields = 5; +} + +message SingleEvalMetricsResponse { + clarifai.api.status.Status status = 1; + EvalMetrics eval_metrics = 2; +} +message MultiEvalMetricsResponse { + clarifai.api.status.Status status = 1; + repeated EvalMetrics eval_metrics = 2; +} // Evaluate this model version. message PostModelVersionMetricsRequest { + reserved 4; clarifai.api.UserAppIDSet user_app_id = 1; string model_id = 2; string version_id = 3; - uint32 max_examples = 4; // Use this to filter inputs that are used in evaluation clarifai.api.Search test_search = 5; + + // evaluation info. Such as dataset used for evaluation. + EvalInfo eval_info = 10; } // Get the already computed evaluation metrics for this model @@ -3344,6 +5243,7 @@ message GetModelVersionMetricsRequest { string version_id = 3; // Any of the fields you wish to return from multiclass_metrics + // By default, only the summary will be returned FieldsValue fields = 4; } @@ -3402,6 +5302,8 @@ message MultiModelTypeResponse { repeated ModelType model_types = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; // List of model importers ModelTypeField model_importers = 3; + // Triton model envs that can be used for model upload + repeated TritonCondaEnvInfo triton_conda_envs_info= 4; } // GetModelVersionInputExampleRequest @@ -3519,6 +5421,7 @@ message MultiScopeResponse { App app = 3; // This is a list of endpoint permissions that your key has. repeated string endpoints = 4; + string user_feature_flags = 5; } // MultiScopeUserResponse @@ -3529,6 +5432,7 @@ message MultiScopeUserResponse { repeated string scopes = 2; // This is a list of endpoint permissions that your key has. repeated string endpoints = 4; + string user_feature_flags = 5; } // MultiScopeRootResponse @@ -3539,6 +5443,7 @@ message MultiScopeRootResponse { repeated string scopes = 2; // This is a list of endpoint permissions that your key has. repeated string endpoints = 4; + string user_feature_flags = 5; } // GetSearchRequest @@ -3575,6 +5480,43 @@ message PostSearchesRequest { Pagination pagination = 4; } +message PatchInputsSearchesRequest{ + // The user_id and app_id to query from. + clarifai.api.UserAppIDSet user_app_id = 1; + + // The searches to be patched + repeated Search searches = 2; + + // The action to perform on the patched Search objects + // For now only action 'overwrite' is supported + string action = 3; +} + +message PatchAnnotationsSearchesRequest { + // The user_id and app_id to query from. + clarifai.api.UserAppIDSet user_app_id = 1; + + // The searches to be patched + repeated Search searches = 2; + + // The action to perform on the patched Search objects + // For now only action 'overwrite' is supported + string action = 3; +} + +// PatchSearchesRequest +message PatchSearchesRequest { + // The user_id and app_id to query from. + clarifai.api.UserAppIDSet user_app_id = 1; + + // The searches to be patched + repeated Search searches = 2; + + // The action to perform on the patched Search objects + // For now only action 'overwrite' is supported + string action = 3; +} + // PostSearchesByIDRequest performs returns results of a saved search given its ID message PostSearchesByIDRequest { clarifai.api.UserAppIDSet user_app_id = 1; @@ -3622,6 +5564,10 @@ message PostInputsSearchesRequest { // Pagination information to paginate through search result Hits. Pagination pagination = 3; + + // If only_count is set, then the response will not contain hits, + // but hit_counts instead. + bool only_count = 4; } // SingleSearchResponse returns saved search in response to GetSearchRequest @@ -3647,6 +5593,10 @@ message MultiSearchResponse { // The original Searches provided in the request. repeated Search searches = 5; + + // The counts of hits for each search, in the same order as searches. + // Only returned if the request set only_count. + repeated HitCount hit_counts = 6; } // PostAnnotationSearchMetricsRequest @@ -3659,37 +5609,102 @@ message PostAnnotationSearchMetricsRequest { // The ground truth we are evaluating against clarifai.api.Search ground_truth = 3; - // The set we are evaluating - clarifai.api.Search search_to_eval = 4; + // The set we are evaluating + clarifai.api.Search search_to_eval = 4; + + // List of concepts to evaluate are expected to be in data.concepts + // If nil, then all app concepts are used + Data data = 5; + + // The type of evaluation to use + EvaluationType evaluation_type = 6; +} + +// GetAnnotationSearchMetricsRequest +message GetAnnotationSearchMetricsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Unique custom facing id that identifies the eval to get + string id = 2; +} + +// ListAnnotationSearchMetricsRequest +message ListAnnotationSearchMetricsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; +} + +// MultiAnnotationSearchMetricsResponse +message MultiAnnotationSearchMetricsResponse { + // Status of the request + clarifai.api.status.Status status = 1; + repeated AnnotationSearchMetrics annotation_search_metrics = 2; +} + +// ListAnnotationFiltersRequest +message ListAnnotationFiltersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +// GetAnnotationFilterRequest +message GetAnnotationFilterRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Identify annotation filter by id. + string annotation_filter_id = 2; +} - // List of concepts to evaluate are expected to be in data.concepts - // If nil, then all app concepts are used - Data data = 5; +// Request to add one or more annotation filters. +message PostAnnotationFiltersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; - // The type of evaluation to use - EvaluationType evaluation_type = 6; + // List of annotation filters that are requested to be added. + repeated AnnotationFilter annotation_filters = 2; } -// GetAnnotationSearchMetricsRequest -message GetAnnotationSearchMetricsRequest { +// Request to patch several annotation filters. +message PatchAnnotationFiltersRequest { clarifai.api.UserAppIDSet user_app_id = 1; - // Unique custom facing id that identifies the eval to get - string id = 2; + // List of annotation filters that are requested to be updated. + repeated AnnotationFilter annotation_filters = 2; + + // The action to perform on the patched objects + // For now, only 'overwrite' action is supported + string action = 3; } -// ListAnnotationSearchMetricsRequest -message ListAnnotationSearchMetricsRequest { +// Request to delete several annotation filters by list of ids. +message DeleteAnnotationFiltersRequest { clarifai.api.UserAppIDSet user_app_id = 1; + + // Specify which filters to delete. + repeated string annotation_filter_ids = 2; } -// MultiAnnotationSearchMetricsResponse -message MultiAnnotationSearchMetricsResponse { - // Status of the request +// MultiAnnotationFilterResponse +message MultiAnnotationFilterResponse { clarifai.api.status.Status status = 1; - repeated AnnotationSearchMetrics annotation_search_metrics = 2; + + repeated AnnotationFilter annotation_filters = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; } +// SingleAnnotationFilterResponse +message SingleAnnotationFilterResponse { + clarifai.api.status.Status status = 1; + + AnnotationFilter annotation_filter = 2; +} + + + + + @@ -3718,9 +5733,23 @@ message MultiAnnotationSearchMetricsResponse { +// GetUserRequest +message GetUserRequest { + // we used to have user_id but moved to the standard convention. Since this endpoint + // hasn't been exposed and only used by portal as a url this won't effect anything external. + clarifai.api.UserAppIDSet user_app_id = 1; + + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars + repeated string additional_fields = 2; +} +// SingleUserResponse +message SingleUserResponse { + clarifai.api.status.Status status = 1; + User user = 2; +} @@ -3768,6 +5797,9 @@ message SinglePasswordValidationResponse { + + + @@ -3830,172 +5862,555 @@ enum OrganizationInvitationStatus { -// GetWorkflowRequest -message GetWorkflowRequest { + +// GetWorkflowRequest +message GetWorkflowRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Workflow ID to retrieve + // If no ID is specified we return default workflow of the application + // If an ID is specified by default we first looks into Clarifai workflows for a Workflow ID + string workflow_id = 2; + + // Use this flag to look into clarifai published workflows first for a Workflow ID + bool favor_clarifai_workflows = 3; + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars + repeated string additional_fields = 4; + + // if true will not expand search to clarifai workflows + bool exclude_clarifai_workflows = 5; +} + +// ListWorkflowsRequest +message ListWorkflowsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; + + // Sorting options: + // Whether to sort in ascending order. If false, will order in descending order. + bool sort_ascending = 5; + oneof sort_by { + // Whether to order by the name + bool sort_by_id = 6; + // Whether to order by the modified_at time. + // If none of the sort options is set to true, will sort by modified_at. + bool sort_by_modified_at = 7; + // Whether to order by the created_at time. + bool sort_by_created_at = 13; + // Whether to order by the number of users stared the workflow + bool sort_by_star_count = 14; + } + + // Query various text fields that can contain the words in the query string. + string query = 8; + // Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example. + // Deprecated in favor of query + string id = 4 [deprecated = true]; + // If true, we only return workflows that are handpicked by clarifai staff + bool featured_only = 9; + // If true, we only return workflows that are starred by the requesting user + bool starred_only = 11; + // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars + repeated string additional_fields = 10; + + // (optional) search_term. Full text and prefix matching on description, id, owner id. Searchable fields may be added + string search_term = 12; + + // Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only. + bool bookmark = 15; +} + + +// PostWorkflowsRequest +message PostWorkflowsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated Workflow workflows = 2; +} + +// PatchWorkflowsRequest +message PatchWorkflowsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated Workflow workflows = 2; + + // The action to perform on the patched objects + // For now actions 'merge', 'overwrite', and 'remove' are supported + string action = 3; +} + +// PatchWorkflowIdsRequest +message PatchWorkflowIdsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Array containing 1 entry + repeated IdUpdateSource ids = 3; + + // The action to perform on the patched objects + // Only 'overwrite' is supported + string action = 4; +} + +// DeleteWorkflowRequest +message DeleteWorkflowRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string workflow_id = 2; +} + +// Request to delete several things by the list of ids. +message DeleteWorkflowsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; + bool delete_all = 3; +} + +// SingleWorkflowResponse +message SingleWorkflowResponse { + clarifai.api.status.Status status = 1; + Workflow workflow = 2; +} + +// MultiWorkflowResponse +message MultiWorkflowResponse { + clarifai.api.status.Status status = 1; + repeated Workflow workflows = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// PostWorkflowResultsRequest +message PostWorkflowResultsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + // Workflow ID to retrieve + // If no ID is specified we return default workflow of the application + // If an ID is specified by default we first looks into Clarifai workflows for a Workflow ID + string workflow_id = 2; + + // Workflow version ID to retrieve + // If no ID is specified, latest workflow version is used + string version_id = 7; + + repeated Input inputs = 3; + // FIXME(zeiler): the request for post workflows is using an outputconfig object that is supposed + // to be within models. This is not consistent with setting this on the request for post model + // outputs where it is inside a model object. To make this consistent we would send in the + // workflow object so that each model can have it's own output config. If nobody is setting + // this OutputConfig it would probably be easier to just remove it for now to keep things simpler + // and then it's more consistent we just don't support the OutputConfig on workflows. + OutputConfig output_config = 4; + + // Use this flag to look into clarifai published workflows first for a Workflow ID + bool favor_clarifai_workflows = 5; + + // A workflow state to be maintained across PostWorkflowResults requests/responses. + // If it is not sent in the initial request with workflow_state.id = "init" then no + // state will be saved or returned in PostWorkflowResultsResponse. + WorkflowState workflow_state = 6; +} + +// PostWorkflowResultsResponse +message PostWorkflowResultsResponse { + // The status of the request. + clarifai.api.status.Status status = 1; + // The workflow that was used in predictions with PostWorkflowResults + Workflow workflow = 2; + // The resulting predictions of all models in the workflow. + repeated WorkflowResult results = 3; + // A workflow state to be maintained across PostWorkflowResults requests/responses. + // This WorkflowState should be passed in to subsequent PostWorkflowResults calls + // if you want to keep track of state across requests. + // If no WorkflowState was initialized in a request then no WorkflowState will be returned in this + // response. + WorkflowState workflow_state = 4; +} + +// PostWorkflowResultsSimilarityRequest +message PostWorkflowResultsSimilarityRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string workflow_id = 2; + // Workflow version ID to retrieve + // If no ID is specified, latest workflow version is used + string version_id = 7; + // The specific model version whose outputs we are comparing + string model_version_id = 3; + // Each probe is compared against every pool input + repeated Input probe_inputs = 4; + // Each pool input is compared against ever probe input + repeated Input pool_inputs = 5; + // Use this flag to look into clarifai published workflows first for a Workflow ID + bool favor_clarifai_workflows = 6; +} + +// PostWorkflowResultsSimilarityResponse +message PostWorkflowResultsSimilarityResponse { + clarifai.api.status.Status status = 1; + repeated WorkflowResultsSimilarity results = 2; +} + +// ListWorkflowVersionsRequest +message ListWorkflowVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // List versions for the workflow identified by this id + string workflow_id = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; +} + +// GetWorkflowVersionRequest +message GetWorkflowVersionRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // The id of the workflow that has the requested version. + string workflow_id = 2; + // Get the identified by this id + string workflow_version_id = 3; +} + +// DeleteWorkflowVersionsRequest +message DeleteWorkflowVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // The id of the workflow that has the requested versions to delete. + string workflow_id = 2; + // Delete the versions identified by these ids + repeated string workflow_version_ids = 3; +} + +// PatchWorkflowVersionsRequest +message PatchWorkflowVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // The id of the workflow that has the requested versions to patch. + string workflow_id = 2; + // Patch these versions. + repeated WorkflowVersion workflow_versions = 3; + // The action to perform on the patched objects + // For now actions 'merge', 'overwrite', and 'remove' are supported + string action = 4; +} + +// MultiWorkflowVersionResponse +message MultiWorkflowVersionResponse { + clarifai.api.status.Status status = 1; + repeated WorkflowVersion workflow_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// SingleWorkflowVersionResponse +message SingleWorkflowVersionResponse { + clarifai.api.status.Status status = 1; + WorkflowVersion workflow_version = 2; +} + + + + + + + + + +//Request to start a app duplication process +message PostAppDuplicationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated AppDuplication app_duplications = 2; +} + +//Request to check app duplication status +message GetAppDuplicationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + //The app duplication id + string app_duplication_id = 2; +} + +//Request to list all the app duplication that user triggered. +message ListAppDuplicationsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +// MultiAppDuplicationsResponse +message MultiAppDuplicationsResponse { + clarifai.api.status.Status status = 1; + repeated AppDuplication app_duplications = 2; +} + +// SingleAppDuplicationResponse +message SingleAppDuplicationResponse { + clarifai.api.status.Status status = 1; + AppDuplication app_duplication = 2; +} + +// Request to create Tasks. +message PostTasksRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated Task tasks = 2; +} + +// Request to get one task. +message GetTaskRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string task_id = 2; + + // (optional URL parameter) List of additional fields to be included in the response. + // Currently supported: all, worker.users, review.users. + repeated string additional_fields = 3; +} + +// Request to list multiple tasks. +message ListTasksRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; + // Get tasks that have ANY user from this list assigned as worker. + repeated string worker_user_ids = 4; + // Get tasks that have ANY user from this list assigned as reviewer. + repeated string review_user_ids = 5; + // Get tasks that are associated to ANY label order from this list. + repeated string label_order_ids = 8; + + // Get label order tasks as well + // It is automatically set to true if label_order_ids is set. + bool including_label_order_tasks = 6; + + // (optional URL parameter) List of additional fields to be included in the response. + // Currently supported: all, worker.users, review.users. + repeated string additional_fields = 7; +} + +// Request to patch a list of tasks. +message PatchTasksRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated Task tasks = 2; + // The action to perform on the patched objects + // For now actions 'merge', 'overwrite', and 'remove' are supported + string action = 3; +} + +// Request to delete a list of tasks. +message DeleteTasksRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} + +// Response with multiple Tasks. +message MultiTaskResponse { + clarifai.api.status.Status status = 1; + repeated Task tasks = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// Response with a single Task. +message SingleTaskResponse { + clarifai.api.status.Status status = 1; + Task task = 2; +} + +// GetTaskCountRequest can be used for fetching - +// 1. Task annotation count per user, per status +// 1. Task input (anchor annotations) count per user, per status +message GetTaskCountRequest{ + clarifai.api.UserAppIDSet user_app_id = 1; + + // task_id for which count per user per status is needed + string task_id = 2; + + // for given task_id, user_ids to filter on (optional) + repeated string user_ids= 3; +} + + + +// SingleTaskCountResponse represent counts of annotations or inputs(anchor annotations) for labelers in given task +message SingleTaskCountResponse { + clarifai.api.status.Status status = 1; + string app_id = 2; + string task_id = 3; + repeated TaskStatusCountPerUser counts = 4; +} + + + +//////////////////////////////////////////////////////////////////////////////// +// Label Orders +//////////////////////////////////////////////////////////////////////////////// + +// Request to create label orders. +message PostLabelOrdersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated LabelOrder label_orders = 2; +} + +// Request to get one label order. +message GetLabelOrderRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string label_order_id = 2; +} + +// Request to list multiple label orders. +message ListLabelOrdersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} + +// Request to patch a list of label orders. +message PatchLabelOrdersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + + repeated LabelOrder label_orders = 2; + + // The action to perform on the patched objects + // For now actions 'merge', 'overwrite', and 'remove' are supported + string action = 3; +} + +// Request to delete a list of label orders. +message DeleteLabelOrdersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} + +// Response with multiple label order. +message MultiLabelOrderResponse { + clarifai.api.status.Status status = 1; + repeated LabelOrder label_orders = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} + +// Response with a label order. +message SingleLabelOrderResponse { + clarifai.api.status.Status status = 1; + LabelOrder label_order = 2; +} + +// Request to create Collectors. +message PostCollectorsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - - // Workflow ID to retrieve - // If no ID is specified we return default workflow of the application - // If an ID is specified by default we first looks into Clarifai workflows for a Workflow ID - string workflow_id = 2; - - // Use this flag to look into clarifai published workflows first for a Workflow ID - bool favor_clarifai_workflows = 3; - // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars - repeated string additional_fields = 4; + repeated Collector collectors = 2; } -// ListWorkflowsRequest -message ListWorkflowsRequest { +// PatchCollectorsRequest +message PatchCollectorsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - // (optional URL parameter) The page number. Pagination is used to split the results into chunks. - // Defaults to 1. - uint32 page = 2; - // (optional URL parameter) The number of results that will be contained in each page. Defaults - // to 128. - uint32 per_page = 3; - // Sorting options: - // Whether to sort in ascending order. If false, will order in descending order. - bool sort_ascending = 5; - oneof sort_by { - // Whether to order by the name - bool sort_by_id = 6; - // Whether to order by the modified_at time. - // If neither sort option is set to true, will sort by modified_at. - bool sort_by_modified_at = 7; - } + repeated Collector collectors = 2; - // Query various text fields that can contain the words in the query string. - string query = 8; - // Filter by the id of the workflow. This supports wilcard queries like "gen*" to match "general" as an example. - // Deprecated in favor of query - string id = 4 [deprecated = true]; - // If true, we only return workflows that are handpicked by clarifai staff - bool featured_only = 9; - // If true, we only return workflows that are starred by the requesting user - bool starred_only = 11; - // (optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars - repeated string additional_fields = 10; + // The action to perform on the patched objects + // Only 'overwrite' is supported + string action = 3; } +// Request to delete several things by the list of ids. +message DeleteCollectorsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; + bool delete_all = 3; +} -// PostWorkflowsRequest -message PostWorkflowsRequest { +// Request to GET a single Collector. +message GetCollectorRequest { clarifai.api.UserAppIDSet user_app_id = 1; - repeated Workflow workflows = 2; + //The collecgtor id + string collector_id = 2; } -// PatchWorkflowsRequest -message PatchWorkflowsRequest { +// Request to GET all the Collectors. +message ListCollectorsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - repeated Workflow workflows = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} - // The action to perform on the patched objects - // For now actions 'merge', 'overwrite', and 'remove' are supported - string action = 3; +// Response with multiple Collectors. +message MultiCollectorResponse { + clarifai.api.status.Status status = 1; + repeated Collector collectors = 2; } -// DeleteWorkflowRequest -message DeleteWorkflowRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - string workflow_id = 2; +// Response with a single Collector. +message SingleCollectorResponse { + clarifai.api.status.Status status = 1; + Collector collector = 2; } -// Request to delete several things by the list of ids. -message DeleteWorkflowsRequest { +// PostStatValuesRequest +message PostStatValuesRequest { + // The user and app information for the request. clarifai.api.UserAppIDSet user_app_id = 1; - repeated string ids = 2; - bool delete_all = 3; + // The stats to post, can post more than one at a time. + repeated StatValue stat_values = 2; } -// SingleWorkflowResponse -message SingleWorkflowResponse { +// MultiStatValueResponse +message MultiStatValueResponse { + // The response status. clarifai.api.status.Status status = 1; - Workflow workflow = 2; + // The returned stats values. + repeated StatValue stat_values = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; } -// MultiWorkflowResponse -message MultiWorkflowResponse { +// PostStatValuesAggregateRequest +message PostStatValuesAggregateRequest { + // Ids present in the url of the request. + clarifai.api.UserAppIDSet user_app_id = 1; + + // Query to retrieve aggregate values. + repeated StatValueAggregateQuery stat_value_aggregate_queries = 2; +} + +// MultiStatValueAggregateResponse +message MultiStatValueAggregateResponse { + // The response status. clarifai.api.status.Status status = 1; - repeated Workflow workflows = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + + // The aggregate results for each query passedin. + repeated StatValueAggregateResult stat_value_aggregate_results = 2; } -// PostWorkflowResultsRequest -message PostWorkflowResultsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - // Workflow ID to retrieve - // If no ID is specified we return default workflow of the application - // If an ID is specified by default we first looks into Clarifai workflows for a Workflow ID - string workflow_id = 2; - // Workflow version ID to retrieve - // If no ID is specified, latest workflow version is used - string version_id = 7; - repeated Input inputs = 3; - // FIXME(zeiler): the request for post workflows is using an outputconfig object that is supposed - // to be within models. This is not consistent with setting this on the request for post model - // outputs where it is inside a model object. To make this consistent we would send in the - // workflow object so that each model can have it's own output config. If nobody is setting - // this OutputConfig it would probably be easier to just remove it for now to keep things simpler - // and then it's more consistent we just don't support the OutputConfig on workflows. - OutputConfig output_config = 4; - // Use this flag to look into clarifai published workflows first for a Workflow ID - bool favor_clarifai_workflows = 5; - // A workflow state to be maintained across PostWorkflowResults requests/responses. - // If it is not sent in the initial request with workflow_state.id = "init" then no - // state will be saved or returned in PostWorkflowResultsResponse. - WorkflowState workflow_state = 6; -} -// PostWorkflowResultsResponse -message PostWorkflowResultsResponse { - // The status of the request. - clarifai.api.status.Status status = 1; - // The workflow that was used in predictions with PostWorkflowResults - Workflow workflow = 2; - // The resulting predictions of all models in the workflow. - repeated WorkflowResult results = 3; - // A workflow state to be maintained across PostWorkflowResults requests/responses. - // This WorkflowState should be passed in to subsequent PostWorkflowResults calls - // if you want to keep track of state across requests. - // If no WorkflowState was initialized in a request then no WorkflowState will be returned in this - // response. - WorkflowState workflow_state = 4; -} -// PostWorkflowResultsSimilarityRequest -message PostWorkflowResultsSimilarityRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - string workflow_id = 2; - // Workflow version ID to retrieve - // If no ID is specified, latest workflow version is used - string version_id = 7; - // The specific model version whose outputs we are comparing - string model_version_id = 3; - // Each probe is compared against every pool input - repeated Input probe_inputs = 4; - // Each pool input is compared against ever probe input - repeated Input pool_inputs = 5; - // Use this flag to look into clarifai published workflows first for a Workflow ID - bool favor_clarifai_workflows = 6; -} -// PostWorkflowResultsSimilarityResponse -message PostWorkflowResultsSimilarityResponse { - clarifai.api.status.Status status = 1; - repeated WorkflowResultsSimilarity results = 2; + + +// PostTrendingMetricsViewRequest +message PostTrendingMetricsViewRequest { + // The user_id and app_id information. + clarifai.api.UserAppIDSet user_app_id = 1; + // For now view types 'apps', 'workflows', and 'models' are supported. + string view_type = 2; + // ID of the views object. + string object_id = 3; } -// ListWorkflowVersionsRequest -message ListWorkflowVersionsRequest { +// ListTrendingMetricsViewsRequest +message ListTrendingMetricsViewsRequest { + // The user_id and app_id information. clarifai.api.UserAppIDSet user_app_id = 1; - // List versions for the workflow identified by this id - string workflow_id = 2; + // For now view types 'apps', 'workflows', and 'models' are supported. + string view_type = 2; // (optional URL parameter) The page number. Pagination is used to split the results into chunks. // Defaults to 1. uint32 page = 3; @@ -4004,47 +6419,15 @@ message ListWorkflowVersionsRequest { uint32 per_page = 4; } -// GetWorkflowVersionRequest -message GetWorkflowVersionRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - // The id of the workflow that has the requested version. - string workflow_id = 2; - // Get the identified by this id - string workflow_version_id = 3; +// MultiTrendingMetricsViewResponse +message MultiTrendingMetricsViewResponse { + clarifai.api.status.Status status = 1; + repeated TrendingMetric metrics = 2; } -// DeleteWorkflowVersionsRequest -message DeleteWorkflowVersionsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - // The id of the workflow that has the requested versions to delete. - string workflow_id = 2; - // Delete the versions identified by these ids - repeated string workflow_version_ids = 3; -} -// PatchWorkflowVersionsRequest -message PatchWorkflowVersionsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - // The id of the workflow that has the requested versions to patch. - string workflow_id = 2; - // Patch these versions. - repeated WorkflowVersion workflow_versions = 3; - // The action to perform on the patched objects - // For now actions 'merge', 'overwrite', and 'remove' are supported - string action = 4; -} -// MultiWorkflowVersionResponse -message MultiWorkflowVersionResponse { - clarifai.api.status.Status status = 1; - repeated WorkflowVersion workflow_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; -} -// SingleWorkflowVersionResponse -message SingleWorkflowVersionResponse { - clarifai.api.status.Status status = 1; - WorkflowVersion workflow_version = 2; -} @@ -4054,56 +6437,47 @@ message SingleWorkflowVersionResponse { -//Request to start a app duplication process -message PostAppDuplicationsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - repeated AppDuplication app_duplications = 2; -} -//Request to check app duplication status -message GetAppDuplicationRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - //The app duplication id - string app_duplication_id = 2; -} -//Request to list all the app duplication that user triggered. -message ListAppDuplicationsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - // (optional URL parameter) The page number. Pagination is used to split the results into chunks. - // Defaults to 1. - uint32 page = 2; - // (optional URL parameter) The number of results that will be contained in each page. Defaults - // to 128. - uint32 per_page = 3; -} -// MultiAppDuplicationsResponse -message MultiAppDuplicationsResponse { - clarifai.api.status.Status status = 1; - repeated AppDuplication app_duplications = 2; -} -// SingleAppDuplicationResponse -message SingleAppDuplicationResponse { - clarifai.api.status.Status status = 1; - AppDuplication app_duplication = 2; -} -// Request to create Tasks. -message PostTasksRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - repeated Task tasks = 2; -} -// Request to get one task. -message GetTaskRequest { + + + + + + + + + + + + + + + + + + + + + + + + + + +// GetModuleRequest +message GetModuleRequest { clarifai.api.UserAppIDSet user_app_id = 1; - string task_id = 2; + string module_id = 2; + repeated string additional_fields = 3; } -// Request to list multiple tasks. -message ListTasksRequest { +// ListModulesRequest +message ListModulesRequest { clarifai.api.UserAppIDSet user_app_id = 1; // (optional URL parameter) The page number. Pagination is used to split the results into chunks. // Defaults to 1. @@ -4111,78 +6485,119 @@ message ListTasksRequest { // (optional URL parameter) The number of results that will be contained in each page. Defaults // to 128. uint32 per_page = 3; - // Get tasks that have ANY user from this list assigned as worker. - repeated string worker_user_ids = 4; - // Get tasks that have ANY user from this list assigned as reviewer. - repeated string review_user_ids = 5; - // Get label order tasks as well - bool including_label_order_tasks = 6; + + bool starred_only = 4; + + repeated string additional_fields = 5; + + // Sorting opitons: + // Whether to sort in ascending order. If false, will order in descending order. + bool sort_ascending = 6; + oneof sort_by { + // Whether to order by the created_at time. + bool sort_by_created_at = 7; + // Whether to order by the number of users stared the app + bool sort_by_star_count = 8; + // If neither sort option is set to true, will sort by modified_at. + bool sort_by_modified_at = 9; + } + + // Filter modules by bookmark. If set, only return bookmarked modules. Otherwise none bookmarked modules only. + bool bookmark = 10; } -// Request to patch a list of tasks. -message PatchTasksRequest { +// PostModulesRequest +message PostModulesRequest { clarifai.api.UserAppIDSet user_app_id = 1; - repeated Task tasks = 2; + // This allows you to create one or more module by posting it to the API. + repeated Module modules = 3; +} + +// PatchModulesRequest +message PatchModulesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated Module modules = 2; + // The action to perform on the patched objects // For now actions 'merge', 'overwrite', and 'remove' are supported string action = 3; } -// Request to delete a list of tasks. -message DeleteTasksRequest { +// Request to delete several things by the list of ids. +message DeleteModulesRequest { clarifai.api.UserAppIDSet user_app_id = 1; repeated string ids = 2; } -// Response with multiple Tasks. -message MultiTaskResponse { +// SingleModuleResponse +message SingleModuleResponse { clarifai.api.status.Status status = 1; - repeated Task tasks = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + Module module = 2; } -// Response with a single Task. -message SingleTaskResponse { +// MultiModuleResponse +message MultiModuleResponse { clarifai.api.status.Status status = 1; - Task task = 2; + repeated Module modules = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; } -// GetTaskCountRequest can be used for fetching - -// 1. Task annotation count per user, per status -// 1. Task input (anchor annotations) count per user, per status -message GetTaskCountRequest{ +// request for different endpoints currently. +message GetModuleVersionRequest { clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + string module_version_id = 3; +} - // task_id for which count per user per status is needed - string task_id = 2; - - // for given task_id, user_ids to filter on (optional) - repeated string user_ids= 3; +// ListModuleVersionsRequest +message ListModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 3; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 4; } +// PostModuleVersionsRequest +message PostModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + // This allows you to create one or more module by posting it to the API. + repeated ModuleVersion module_versions = 3; +} +// Request to delete several module versions by the list of ids. +message DeleteModuleVersionsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string module_id = 2; + repeated string ids = 3; +} -// SingleTaskCountResponse represent counts of annotations or inputs(anchor annotations) for labelers in given task -message SingleTaskCountResponse { +// SingleModuleVersionResponse +message SingleModuleVersionResponse { clarifai.api.status.Status status = 1; - string app_id = 2; - string task_id = 3; - repeated TaskStatusCountPerUser counts = 4; + ModuleVersion module_version = 2; } -// Request to create label orders. -message PostLabelOrdersRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - repeated LabelOrder label_orders = 2; +// MultiModuleVersionResponse +message MultiModuleVersionResponse { + clarifai.api.status.Status status = 1; + repeated ModuleVersion module_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; } -// Request to get one label order. -message GetLabelOrderRequest { + + +// GetInstalledModuleVersionRequest +message GetInstalledModuleVersionRequest { clarifai.api.UserAppIDSet user_app_id = 1; - string label_order_id = 2; + // the ID to get of the install module version. + string installed_module_version_id = 2; } -// Request to list multiple label orders. -message ListLabelOrdersRequest { +// ListInstalledModuleVersionsRequest +message ListInstalledModuleVersionsRequest { clarifai.api.UserAppIDSet user_app_id = 1; // (optional URL parameter) The page number. Pagination is used to split the results into chunks. // Defaults to 1. @@ -4192,68 +6607,58 @@ message ListLabelOrdersRequest { uint32 per_page = 3; } -// Request to patch a list of label orders. -message PatchLabelOrdersRequest { +// PostInstalledModuleVersionsRequest to install a module version into the app in the URL +message PostInstalledModuleVersionsRequest { clarifai.api.UserAppIDSet user_app_id = 1; + // This allows you to create one or more module by posting it to the API. + repeated InstalledModuleVersion installed_module_versions = 2; +} - repeated LabelOrder label_orders = 2; - - // The action to perform on the patched objects - // For now actions 'merge', 'overwrite', and 'remove' are supported - string action = 3; +// PostInstalledModuleVersionsKeyRequest to associate a key of the caller's to the installed module +// version. +message PostInstalledModuleVersionsKeyRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // the ID to get of the install module version. + string installed_module_version_id = 2; + // Note(zeiler): we don't provide a key to create since it's always deterministic. + // we'll create a PAT, owned by the caller with the scopes that the module requests. + // in the future if we want we can pass in a Key key = 3; field so that the caller + // can adjust the scopes, but for now that doesn't seem necessary. } -// Request to delete a list of tasks. -message DeleteLabelOrdersRequest { +// Request to delete several installed module versions by the list of ids. +message DeleteInstalledModuleVersionsRequest { clarifai.api.UserAppIDSet user_app_id = 1; repeated string ids = 2; } -// Response with multiple label order. -message MultiLabelOrderResponse { +// SingleInstalledModuleVersionResponse +message SingleInstalledModuleVersionResponse { clarifai.api.status.Status status = 1; - repeated LabelOrder label_orders = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; + InstalledModuleVersion installed_module_version = 2; } -// Response with a label order. -message SingleLabelOrderResponse { +// MultiInstalledModuleVersionResponse +message MultiInstalledModuleVersionResponse { clarifai.api.status.Status status = 1; - LabelOrder label_order = 2; -} - -// Request to create Collectors. -message PostCollectorsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - repeated Collector collectors = 2; -} - -// PatchCollectorsRequest -message PatchCollectorsRequest { - clarifai.api.UserAppIDSet user_app_id = 1; - - repeated Collector collectors = 2; - - // The action to perform on the patched objects - // Only 'overwrite' is supported - string action = 3; + repeated InstalledModuleVersion installed_module_versions = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; } -// Request to delete several things by the list of ids. -message DeleteCollectorsRequest { +// ListNextTaskAssignmentsRequest +message ListNextTaskAssignmentsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - repeated string ids = 2; - bool delete_all = 3; + string task_id = 2; } -// Request to GET a single Collector. -message GetCollectorRequest { +// Request to perform bulk operations on a list of inputs based on input source. +message PostBulkOperationsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - //The collecgtor id - string collector_id = 2; + // List of bulk operation(s) to be performed e.g bulk update metadata or tags or labels etc. + repeated clarifai.api.BulkOperation bulk_operations = 2; } -// Request to GET all the Collectors. -message ListCollectorsRequest { +// Request to list all the bulk operations. +message ListBulkOperationsRequest { clarifai.api.UserAppIDSet user_app_id = 1; // (optional URL parameter) The page number. Pagination is used to split the results into chunks. // Defaults to 1. @@ -4263,140 +6668,306 @@ message ListCollectorsRequest { uint32 per_page = 3; } -// Response with multiple Collectors. -message MultiCollectorResponse { - clarifai.api.status.Status status = 1; - repeated Collector collectors = 2; +// Request to get the details of a bulk operation by ID. +message GetBulkOperationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // The bulk operation id + string id = 2; } -// Response with a single Collector. -message SingleCollectorResponse { - clarifai.api.status.Status status = 1; - Collector collector = 2; +// Cancel a list of bulk operation ids +message CancelBulkOperationRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // List of bulk operation ids to be cancelled + repeated string ids = 2; } -// PostStatValuesRequest -message PostStatValuesRequest { - // The user and app information for the request. +// Request to delete the terminated bulk operations by ID +// Only operations in terminated state can be deleted. +message DeleteBulkOperationRequest { clarifai.api.UserAppIDSet user_app_id = 1; - // The stats to post, can post more than one at a time. - repeated StatValue stat_values = 2; + // List of bulk operation ids to be deleted + repeated string ids = 2; } -// MultiStatValueResponse -message MultiStatValueResponse { - // The response status. +// SingleBulkOperationsResponse +message SingleBulkOperationsResponse { clarifai.api.status.Status status = 1; - // The returned stats values. - repeated StatValue stat_values = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; -} - -// PostStatValuesAggregateRequest -message PostStatValuesAggregateRequest { - // Ids present in the url of the request. - clarifai.api.UserAppIDSet user_app_id = 1; - - // Query to retrieve aggregate values. - repeated StatValueAggregateQuery stat_value_aggregate_queries = 2; + clarifai.api.BulkOperation bulk_operation = 2; } -// MultiStatValueAggregateResponse -message MultiStatValueAggregateResponse { - // The response status. +// MultiBulkOperationsResponse +message MultiBulkOperationsResponse { clarifai.api.status.Status status = 1; - - // The aggregate results for each query passedin. - repeated StatValueAggregateResult stat_value_aggregate_results = 2; + repeated clarifai.api.BulkOperation bulk_operation = 2; } +// PutTaskAssignmentsRequest +message PutTaskAssignmentsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string task_id = 2; + string input_id = 3; +} -// PostTrendingMetricsViewRequest -message PostTrendingMetricsViewRequest { - // The user_id and app_id information. - clarifai.api.UserAppIDSet user_app_id = 1; - // For now view types 'apps', 'workflows', and 'models' are supported. - string view_type = 2; - // ID of the views object. - string object_id = 3; -} -// ListTrendingMetricsViewsRequest -message ListTrendingMetricsViewsRequest { - // The user_id and app_id information. +// List all the input ingestion jobs +message ListInputsAddJobsRequest { clarifai.api.UserAppIDSet user_app_id = 1; - // For now view types 'apps', 'workflows', and 'models' are supported. - string view_type = 2; // (optional URL parameter) The page number. Pagination is used to split the results into chunks. // Defaults to 1. - uint32 page = 3; + uint32 page = 2; // (optional URL parameter) The number of results that will be contained in each page. Defaults // to 128. - uint32 per_page = 4; + uint32 per_page = 3; } -// MultiTrendingMetricsViewResponse -message MultiTrendingMetricsViewResponse { - clarifai.api.status.Status status = 1; - repeated TrendingMetric metrics = 2; +message GetInputsAddJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // id of add inputs job + string id = 2; } +message CancelInputsAddJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // id of add inputs job to be cancelled + string id = 2; +} +// MultiInputsAddJobResponse +message MultiInputsAddJobResponse { + clarifai.api.status.Status status = 1; + repeated clarifai.api.InputsAddJob inputs_add_jobs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +// SingleInputsAddJobResponse +message SingleInputsAddJobResponse { + clarifai.api.status.Status status = 1; + clarifai.api.InputsAddJob inputs_add_job = 2; +} +// Start a multipart upload +message PostUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated clarifai.api.Upload uploads = 2; +} +// Stops or deletes multipart upload +message DeleteUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} +message ListUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} +message GetUploadRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // Upload ID + string upload_id = 2; +} +message SingleUploadResponse { + clarifai.api.status.Status status = 1; + clarifai.api.Upload upload = 2; +} +message MultiUploadResponse { + clarifai.api.status.Status status = 1; + repeated clarifai.api.Upload uploads = 2; +} +// Upload a part of a multipart upload. +// Behaviour on completion depends on the endpoint that was used to initiate the upload. +message PutUploadContentPartsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string upload_id = 2; + repeated UploadContentPart content_parts = 3; +} + +// Initiates retrieval of inputs from cloud storage from a user provided data source. +// Will create and return an inputs-add-job for tracking progress. +// Archives will be extracted and their contents will be processed as inputs. +// +// The cloud URL will be treated as a filter prefix. For example s3:/bucket/images_folder/abc will process +// files in the images_folder beginning with abc or in a subfolder beginning with abc. +// For example: +// bucket/images_folder/abcImage.png +// bucket/images_folder/abc-1/Data.zip +// +// If given URL is for a private bucket or file, then credentials should be provided to access the bucket. +// Credentials should include rights to list the objects in the bucket, except when pointed directly at a file archive, +// in which case it only requires rights to access that particular file. +message PostInputsDataSourcesRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated InputsDataSource data_sources = 2; + // If call back url is set, we will send a Post request to this endpoint with job status. + string call_back_url = 3; + // Personal Access Token to the application to which inputs are added + string app_pat = 4; +} +message GetInputsExtractionJobRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string inputs_extraction_job_id = 2; +} +message ListInputsExtractionJobsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} +message SingleInputsExtractionJobResponse { + clarifai.api.status.Status status = 1; + clarifai.api.InputsExtractionJob inputs_extraction_job = 2; +} +message MultiInputsExtractionJobResponse { + clarifai.api.status.Status status = 1; + repeated clarifai.api.InputsExtractionJob inputs_extraction_jobs = 2; +} +// Cancel a list of extraction job ids +message CancelInputsExtractionJobsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // List of extraction job ids to be cancelled + repeated string ids = 2; +} +// Start uploading a file archive containing inputs. +// Will create and return an inputs-add-job for tracking progress. +// +// Associated inputs-add-job contains an upload id which should be completed through `PutUploadContentParts` endpoint. +// Completing the upload will automatically begin unpacking the archive and uploading the contents as inputs. +message PostInputsUploadsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated clarifai.api.InputsUpload inputs_uploads = 2; +} +// GetRunnerRequest +message GetRunnerRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string runner_id = 2; +} +// ListRunnersRequest +message ListRunnersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // (optional URL parameter) The page number. Pagination is used to split the results into chunks. + // Defaults to 1. + uint32 page = 2; + // (optional URL parameter) The number of results that will be contained in each page. Defaults + // to 128. + uint32 per_page = 3; +} +// PostRunnersRequest +message PostRunnersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + // This allows you to create one or more runner by posting it to the API. + repeated Runner runners = 3; +} +// Request to delete several things by the list of ids. +message DeleteRunnersRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + repeated string ids = 2; +} +// SingleRunnerResponse +message SingleRunnerResponse { + clarifai.api.status.Status status = 1; + Runner runner = 2; +} +// MultiRunnerResponse +message MultiRunnerResponse { + clarifai.api.status.Status status = 1; + repeated Runner runners = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message ListRunnerItemsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string runner_id = 2; +} +// PostRunnerItemOutputsRequest +message PostRunnerItemOutputsRequest { + clarifai.api.UserAppIDSet user_app_id = 1; + string runner_id = 2; + string item_id = 3; + // This allows you to create one or more runner by posting it to the API. + repeated RunnerItemOutput runner_item_outputs = 4; +} +// MultiRunnerItemResponse +message MultiRunnerItemResponse { + clarifai.api.status.Status status = 1; + repeated RunnerItem items = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} +message RunnerItem { + // A UUID hash for this work item. + string id = 1; + // A description of the work to be done in case needed for UIs. + string description = 2; + // TODO(zeiler): make these options a oneof. + // first work to do would be an inference runner. + PostModelOutputsRequest post_model_outputs_request = 3; + // training request next. +} +message RunnerItemOutput { + // The output of the first task type. + // TODO(zeiler): should the interface be more like pairs of things wiht request/response in one "item"? + MultiOutputResponse multi_output_response = 1; + // training response ??? or is it a model upload. + // again knowing what to send back from an implementation is goin gto be confusing unless we pair + // up the request and response. +} - - - +message MultiRunnerItemOutputResponse { + clarifai.api.status.Status status = 1; + repeated RunnerItemOutput runner_item_outputs = 2 [(clarifai.api.utils.cl_show_if_empty) = true]; +} diff --git a/proto/clarifai/api/status/status.proto b/proto/clarifai/api/status/status.proto index 6b7366e..c667f81 100644 --- a/proto/clarifai/api/status/status.proto +++ b/proto/clarifai/api/status/status.proto @@ -28,6 +28,19 @@ message Status { string req_id = 7; // Internal Annotation (do not set in production, for internal Clarifai use only). string internal_details = 8 [(clarifai.auth.util.cl_private_field) = true]; + // Resource location info for redirect, when resource location has been changed. + RedirectInfo redirect_info = 9 [(clarifai.auth.util.cl_private_field) = true]; +} + +message RedirectInfo { + // New location for the resource. Used to set response Location header. + string url = 1; + // Resource type + string resource_type = 2; + // Old resource id + string old_resource_id = 3; + // New resource id + string new_resource_id = 4; } // Base message to return when there is a internal server error that diff --git a/proto/clarifai/api/status/status_code.proto b/proto/clarifai/api/status/status_code.proto index 5252fe3..19e51af 100644 --- a/proto/clarifai/api/status/status_code.proto +++ b/proto/clarifai/api/status/status_code.proto @@ -8,7 +8,10 @@ option java_package = "com.clarifai.grpc.api.status"; option objc_class_prefix = "CAIP"; enum StatusCode { - reserved 33000, 33001, 33002, 33100, 33101, 33102, 33103, 33104, 33105, 33106, 33200, 33201, 33203, 33210, 39995, 40018, 40019, 41200, 41201, 41202, 41203, 41204; // deprecated status codes that should not be reused + reserved + 25407, 33000, 33001, 33002, 33100, 33101, 33102, 33103, 33104, 33105, + 33106, 33200, 33201, 33203, 33210, 39995, 40018, 40019, 41200, 41201, + 41202, 41203, 41204, 25500, 25501, 25502, 25503, 25505, 25506; // to be revised and greatly expanded ZERO = 0; @@ -18,6 +21,7 @@ enum StatusCode { FAILURE = 10020; TRY_AGAIN = 10030; NOT_IMPLEMENTED = 10040; + MOVED = 10050; // Resource moved. Respond with Http status 307 and add new Location header to response //SUCCESS_WARNING_API_DEPRECATED = 10001; //SUCCESS_WARNING_CLIENT_DEPRECATED = 10002; @@ -50,17 +54,18 @@ enum StatusCode { MODEL_QUEUED_FOR_TRAINING = 21103; MODEL_UPLOADING = 21104; MODEL_UPLOADING_FAILED = 21105; + MODEL_TRAINING_FAILED = 21106; // generic err msg for any type of model training err. - MODEL_TRAINING_NO_DATA = 21110; // Custom model training had no data. - MODEL_TRAINING_NO_POSITIVES = 21111; // Custom model training had no positive examples. - MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS = 21112; // Custom model training was ONE_VS_N but with a single class. - MODEL_TRAINING_TIMED_OUT = 21113; // Training took longer than hard coded timeouts. - MODEL_TRAINING_WAITING_ERROR = 21114; // Training got error waiting on asset pipeline to finish. + MODEL_TRAINING_NO_DATA = 21110; // Custom model training had no data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg + MODEL_TRAINING_NO_POSITIVES = 21111; // Custom model training had no positive examples. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg + MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS = 21112; // Custom model training was ONE_VS_N but with a single class. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg + MODEL_TRAINING_TIMED_OUT = 21113; // Training took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg + MODEL_TRAINING_WAITING_ERROR = 21114; // Training got error waiting on asset pipeline to finish. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg MODEL_TRAINING_UNKNOWN_ERROR = 21115; // Training threw an unknown exception. - MODEL_TRAINING_MSG_REDELIVER = 21116 [deprecated = true]; // Training message was redelivered. - MODEL_TRAINING_INSUFFICIENT_DATA = 21117; // Training got error due to insufficient labelled data - MODEL_TRAINING_INVALID_PARAMS = 21118; - MODEL_TRAINING_INVALID_DATA_TOLERANCE_EXCEEDED = 21119; // Training is stopped because too much data was dropped + MODEL_TRAINING_MSG_REDELIVER = 21116 [deprecated = true]; // Training message was redelivered. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg + MODEL_TRAINING_INSUFFICIENT_DATA = 21117; // Training got error due to insufficient labelled data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg + MODEL_TRAINING_INVALID_PARAMS = 21118; // FIXME(yang): deprecate this. Use the 21106 + errStatusMsg + MODEL_TRAINING_INVALID_DATA_TOLERANCE_EXCEEDED = 21119; // Training is stopped because too much data was dropped. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg MODEL_MODIFY_SUCCESS = 21150; MODEL_MODIFY_PENDING = 21151; @@ -78,14 +83,15 @@ enum StatusCode { MODEL_NOT_EVALUATED = 21302; MODEL_QUEUED_FOR_EVALUATION = 21303; - MODEL_EVALUATION_TIMED_OUT = 21310; // Evaluation took longer than hard coded timeouts. - MODEL_EVALUATION_WAITING_ERROR = 21311; // Evaluation got error waiting on asset pipeline to finish. + MODEL_EVALUATION_TIMED_OUT = 21310; // Evaluation took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg + MODEL_EVALUATION_WAITING_ERROR = 21311; // Evaluation got error waiting on asset pipeline to finish.FIXME(yang): deprecate this. Use the 21317 + errStatusMsg MODEL_EVALUATION_UNKNOWN_ERROR = 21312; // EVALUATION THREW AN UNKNOWN EXCEPTION. MODEL_PREDICTION_FAILED = 21313; - MODEL_EVALUATION_MSG_REDELIVER = 21314 [deprecated = true]; // Eval message was redelivered. - MODEL_EVALUATION_NEED_LABELS = 21315; // Don't have enough concepts labelled to perform evaluation - MODEL_EVALUATION_NEED_INPUTS = 21316; // Don't have enough inputs per concept to perform evaluation + MODEL_EVALUATION_MSG_REDELIVER = 21314 [deprecated = true]; // Eval message was redelivered. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg + MODEL_EVALUATION_NEED_LABELS = 21315; // Don't have enough concepts labelled to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg + MODEL_EVALUATION_NEED_INPUTS = 21316; // Don't have enough inputs per concept to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg + MODEL_EVALUATION_FAILED = 21317; // Generic err code for eval failure. // Status codes through 21319 (inclusive) reserved for model eval *errors* (per logic in clients) MODEL_DEPLOYMENT_FAILED = 21350; // Used when inference coordinator failed to deploy spire and throws an error @@ -155,7 +161,15 @@ enum StatusCode { DATA_DUMP_PENDING = 25151; DATA_DUMP_FAILED = 25152; DATA_DUMP_IN_PROGRESS = 25153; - DATA_DUMP_NO_DATA = 25154; + // DEPRECATED: Not used anymore. Now for an empty data dump, DATA_DUMP_SUCCESS is returned. To detect an empty data dump, check if the inptus count is 0. + DATA_DUMP_NO_DATA = 25154 [deprecated = true]; + DATA_DUMP_UNEXPECTED_ERROR = 25155; + + DATA_DUMP_EXPORT_SUCCESS = 25170; + DATA_DUMP_EXPORT_PENDING = 25171; + DATA_DUMP_EXPORT_FAILED = 25172; + DATA_DUMP_EXPORT_IN_PROGRESS = 25173; + DATA_DUMP_EXPORT_UNEXPECTED_ERROR = 25174; // Duplicate related 252xx APP_DUPLICATION_SUCCESS = 25200; @@ -170,6 +184,21 @@ enum StatusCode { MODULE_INVALID_ARGUMENT = 25302; MODULE_INVALID_REQUEST = 25303; + // Bulk Operation related codes 254xx + BULK_OPERATION_SUCCESS = 25400; + BULK_OPERATION_FAILED = 25401; + BULK_OPERATION_PENDING = 25402; + BULK_OPERATION_IN_PROGRESS = 25403; + BULK_OPERATION_INVALID_REQUEST = 25404; + BULK_OPERATION_CANCELLED = 25405; + BULK_OPERATION_UNEXPECTED_ERROR = 25406; + + // Runner related codes 256xx + RUNNER_DOES_NOT_EXIST = 25600; + RUNNER_PERMISSION_DENIED = 25601; + RUNNER_INVALID_ARGUMENT = 25602; + RUNNER_INVALID_REQUEST = 25603; + RUNNER_NEEDS_RETRY = 25604; // Input:Image related 30xxx INPUT_DOWNLOAD_SUCCESS = 30000; @@ -185,6 +214,7 @@ enum StatusCode { INPUT_INVALID_ARGUMENT = 30104; INPUT_OVER_LIMIT = 30105; INPUT_INVALID_URL = 30106; + INPUT_MODIFY_SUCCESS = 30200; INPUT_MODIFY_PENDING = 30201; INPUT_MODIFY_FAILED = 30203; @@ -220,9 +250,16 @@ enum StatusCode { ALL_INPUT_VIDEOS_INVALID_BYTES = 31300; + INPUT_VIDEO_PROCESSING_SUCCESS = 31400; + INPUT_VIDEO_PROCESSING_PENDING = 31410; + INPUT_VIDEO_PROCESSING_FAILED = 31420; + INPUT_VIDEO_STORAGE_INCONSISTENCY = 31430; + INPUT_VIDEO_STORAGE_FAILURE = 31440; + INPUT_VIDEO_URL_GENERATION_FAILURE = 31450; + INPUT_CONNECTION_FAILED = 39996; REQUEST_DISABLED_FOR_MAINTENANCE = 39997; - INPUT_WRITES_DISABLED_FOR_MAINTENANCE = 39998; + INPUT_WRITES_DISABLED_FOR_MAINTENANCE = 39998 [deprecated = true]; // deprecate this one. Use REQUEST_DISABLED_FOR_MAINTENANCE INPUT_INVALID_REQUEST = 39999; // API formatting issues 4000x @@ -240,6 +277,7 @@ enum StatusCode { DATABASE_FAIL_TO_GET_CONNECTIONS = 40015; DATABASE_TOO_MANY_CLIENTS = 40016; DATABASE_CONSTRAINT_VIOLATED = 40017; + DATABASE_CANCELED = 40021; ASYNC_WORKER_MULTI_ERRORS = 40020; RPC_REQUEST_QUEUE_FULL = 40030; @@ -253,6 +291,8 @@ enum StatusCode { EXTERNAL_CONNECTION_ERROR = 40034; // could not connect to external services + QUERY_INVALID_SYNTAX = 40050; + // Queue related errors 41xxx QUEUE_CONN_ERROR = 41000; QUEUE_CLOSE_REQUEST_TIMEOUT = 41002; @@ -277,7 +317,9 @@ enum StatusCode { SEARCH_PREDICTION_FAILURE = 43003; SEARCH_BY_NOT_FULLY_INDEXED_INPUT = 43004; SAVED_SEARCH_MODIFY_FAILED = 43005; + SEARCH_COUNTS_UNAVAILABLE = 43006; + // Workflow evaluation err code EVALUATION_QUEUED = 43100; EVALUATION_IN_PROGRESS = 43101; EVALUATION_SUCCESS = 43102; @@ -345,8 +387,10 @@ enum StatusCode { TASK_DONE = 54002; // The task is marked as abandoned. TASK_WONT_DO = 54003; - // An error occurred during add-task-annotations pipeline. - TASK_ADD_ANNOTATIONS_FAILURE = 54005; + // An error occurred during add-task-annotations or add-auto-annotations pipeline. + TASK_FAILED = 54005; + // When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets. + TASK_IDLE = 54006; // The task operation is in conflict with the current state of the server. TASK_CONFLICT = 54100; // Certain task-related scenarios are not implemented. @@ -394,17 +438,55 @@ enum StatusCode { DATASET_VERSION_FAILURE = 64020; // An unexpected error occurred during the dataset version processing. DATASET_VERSION_UNEXPECTED_ERROR = 64025; + // An alteration to dataset version would create a conflict + DATASET_VERSION_CONFLICT = 64030; + + // The dataset input was successfully added. + DATASET_INPUT_SUCCESS = 64100; + // The dataset input is a duplicate. + // Deprecated: Unused. + DATASET_INPUT_DUPLICATE = 64101; + + // The dataset version export is completed. + DATASET_VERSION_EXPORT_SUCCESS = 64200; + // The dataset version is pending to be exported. + DATASET_VERSION_EXPORT_PENDING = 64201; + // An error occurred during the dataset version export. + DATASET_VERSION_EXPORT_FAILED = 64202; + // The dataset version is currently being exported. + DATASET_VERSION_EXPORT_IN_PROGRESS = 64203; + // An unexpected error occurred during the dataset version export. + DATASET_VERSION_EXPORT_UNEXPECTED_ERROR = 64204; // Generic Job status codes JOB_QUEUED = 64000; JOB_RUNNING = 64001; JOB_COMPLETED = 64002; JOB_FAILED = 64003; + JOB_CANCELLED = 64004; + JOB_UNEXPECTED_ERROR = 64006; + JOB_CONFLICT = 64007; //auth issues AUTH_MISSING_IDP_ASSOC = 65000; // TODO: Knowledge graph related 80xxx + LIST_OBJECTS_FAILED = 66000; + + ARCHIVE_EXTRACT_FAILED = 67000; + + // Multipart uploading status codes + UPLOAD_IN_PROGRESS = 68000; + UPLOAD_DONE = 68001; + UPLOAD_FAILED = 68002; + UPLOAD_UNEXPECTED_ERROR = 68003; + UPLOAD_EXPIRED = 68004; + UPLOAD_CANCELED = 68005; + UPLOAD_CONFLICT = 68006; + + // Billing related issues: 69xxx + BILLING_INVALID_INFO = 69000; + // Internal issues: 98xxx INTERNAL_SERVER_ISSUE = 98004; INTERNAL_FETCHING_ISSUE = 98005; @@ -431,4 +513,5 @@ enum StatusCode { BAD_REQUEST = 90400; // Deprecated: migrate off to one of the internal issues SERVER_ERROR = 90500; + } diff --git a/proto/clarifai/api/status/status_code_pb.d.ts b/proto/clarifai/api/status/status_code_pb.d.ts index 916f0bd..486ef91 100644 --- a/proto/clarifai/api/status/status_code_pb.d.ts +++ b/proto/clarifai/api/status/status_code_pb.d.ts @@ -13,6 +13,7 @@ export enum StatusCode { FAILURE = 10020, TRY_AGAIN = 10030, NOT_IMPLEMENTED = 10040, + MOVED = 10050, CONN_ACCOUNT_ISSUES = 11000, CONN_TOKEN_INVALID = 11001, CONN_CREDENTIALS_INVALID = 11002, @@ -35,6 +36,7 @@ export enum StatusCode { MODEL_QUEUED_FOR_TRAINING = 21103, MODEL_UPLOADING = 21104, MODEL_UPLOADING_FAILED = 21105, + MODEL_TRAINING_FAILED = 21106, MODEL_TRAINING_NO_DATA = 21110, MODEL_TRAINING_NO_POSITIVES = 21111, MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS = 21112, @@ -63,6 +65,7 @@ export enum StatusCode { MODEL_EVALUATION_MSG_REDELIVER = 21314, MODEL_EVALUATION_NEED_LABELS = 21315, MODEL_EVALUATION_NEED_INPUTS = 21316, + MODEL_EVALUATION_FAILED = 21317, MODEL_DEPLOYMENT_FAILED = 21350, MODEL_DEPLOYING = 21351, MODEL_QUEUED_FOR_DEPLOYMENT = 21352, @@ -113,6 +116,12 @@ export enum StatusCode { DATA_DUMP_FAILED = 25152, DATA_DUMP_IN_PROGRESS = 25153, DATA_DUMP_NO_DATA = 25154, + DATA_DUMP_UNEXPECTED_ERROR = 25155, + DATA_DUMP_EXPORT_SUCCESS = 25170, + DATA_DUMP_EXPORT_PENDING = 25171, + DATA_DUMP_EXPORT_FAILED = 25172, + DATA_DUMP_EXPORT_IN_PROGRESS = 25173, + DATA_DUMP_EXPORT_UNEXPECTED_ERROR = 25174, APP_DUPLICATION_SUCCESS = 25200, APP_DUPLICATION_FAILED = 25201, APP_DUPLICATION_PENDING = 25202, @@ -122,6 +131,18 @@ export enum StatusCode { MODULE_PERMISSION_DENIED = 25301, MODULE_INVALID_ARGUMENT = 25302, MODULE_INVALID_REQUEST = 25303, + BULK_OPERATION_SUCCESS = 25400, + BULK_OPERATION_FAILED = 25401, + BULK_OPERATION_PENDING = 25402, + BULK_OPERATION_IN_PROGRESS = 25403, + BULK_OPERATION_INVALID_REQUEST = 25404, + BULK_OPERATION_CANCELLED = 25405, + BULK_OPERATION_UNEXPECTED_ERROR = 25406, + RUNNER_DOES_NOT_EXIST = 25600, + RUNNER_PERMISSION_DENIED = 25601, + RUNNER_INVALID_ARGUMENT = 25602, + RUNNER_INVALID_REQUEST = 25603, + RUNNER_NEEDS_RETRY = 25604, INPUT_DOWNLOAD_SUCCESS = 30000, INPUT_DOWNLOAD_PENDING = 30001, INPUT_DOWNLOAD_FAILED = 30002, @@ -163,6 +184,12 @@ export enum StatusCode { INPUT_VIDEO_MODIFY_FAILED = 31203, INPUT_VIDEO_STORAGE_HOST_FAILED = 31210, ALL_INPUT_VIDEOS_INVALID_BYTES = 31300, + INPUT_VIDEO_PROCESSING_SUCCESS = 31400, + INPUT_VIDEO_PROCESSING_PENDING = 31410, + INPUT_VIDEO_PROCESSING_FAILED = 31420, + INPUT_VIDEO_STORAGE_INCONSISTENCY = 31430, + INPUT_VIDEO_STORAGE_FAILURE = 31440, + INPUT_VIDEO_URL_GENERATION_FAILURE = 31450, INPUT_CONNECTION_FAILED = 39996, REQUEST_DISABLED_FOR_MAINTENANCE = 39997, INPUT_WRITES_DISABLED_FOR_MAINTENANCE = 39998, @@ -179,6 +206,7 @@ export enum StatusCode { DATABASE_FAIL_TO_GET_CONNECTIONS = 40015, DATABASE_TOO_MANY_CLIENTS = 40016, DATABASE_CONSTRAINT_VIOLATED = 40017, + DATABASE_CANCELED = 40021, ASYNC_WORKER_MULTI_ERRORS = 40020, RPC_REQUEST_QUEUE_FULL = 40030, RPC_SERVER_UNAVAILABLE = 40031, @@ -189,6 +217,7 @@ export enum StatusCode { REQUEST_CANCELED_BY_USER = 40037, CLUSTER_INTERNAL_FAILURE = 43040, EXTERNAL_CONNECTION_ERROR = 40034, + QUERY_INVALID_SYNTAX = 40050, QUEUE_CONN_ERROR = 41000, QUEUE_CLOSE_REQUEST_TIMEOUT = 41002, QUEUE_CONN_CLOSED = 41003, @@ -208,6 +237,7 @@ export enum StatusCode { SEARCH_PREDICTION_FAILURE = 43003, SEARCH_BY_NOT_FULLY_INDEXED_INPUT = 43004, SAVED_SEARCH_MODIFY_FAILED = 43005, + SEARCH_COUNTS_UNAVAILABLE = 43006, EVALUATION_QUEUED = 43100, EVALUATION_IN_PROGRESS = 43101, EVALUATION_SUCCESS = 43102, @@ -250,7 +280,8 @@ export enum StatusCode { TASK_IN_PROGRESS = 54001, TASK_DONE = 54002, TASK_WONT_DO = 54003, - TASK_ADD_ANNOTATIONS_FAILURE = 54005, + TASK_FAILED = 54005, + TASK_IDLE = 54006, TASK_CONFLICT = 54100, TASK_NOT_IMPLEMENTED = 54101, TASK_MISSING = 54102, @@ -278,11 +309,32 @@ export enum StatusCode { DATASET_VERSION_READY = 64015, DATASET_VERSION_FAILURE = 64020, DATASET_VERSION_UNEXPECTED_ERROR = 64025, + DATASET_VERSION_CONFLICT = 64030, + DATASET_INPUT_SUCCESS = 64100, + DATASET_INPUT_DUPLICATE = 64101, + DATASET_VERSION_EXPORT_SUCCESS = 64200, + DATASET_VERSION_EXPORT_PENDING = 64201, + DATASET_VERSION_EXPORT_FAILED = 64202, + DATASET_VERSION_EXPORT_IN_PROGRESS = 64203, + DATASET_VERSION_EXPORT_UNEXPECTED_ERROR = 64204, JOB_QUEUED = 64000, JOB_RUNNING = 64001, JOB_COMPLETED = 64002, JOB_FAILED = 64003, + JOB_CANCELLED = 64004, + JOB_UNEXPECTED_ERROR = 64006, + JOB_CONFLICT = 64007, AUTH_MISSING_IDP_ASSOC = 65000, + LIST_OBJECTS_FAILED = 66000, + ARCHIVE_EXTRACT_FAILED = 67000, + UPLOAD_IN_PROGRESS = 68000, + UPLOAD_DONE = 68001, + UPLOAD_FAILED = 68002, + UPLOAD_UNEXPECTED_ERROR = 68003, + UPLOAD_EXPIRED = 68004, + UPLOAD_CANCELED = 68005, + UPLOAD_CONFLICT = 68006, + BILLING_INVALID_INFO = 69000, INTERNAL_SERVER_ISSUE = 98004, INTERNAL_FETCHING_ISSUE = 98005, INTERNAL_DATABASE_ISSUE = 98006, diff --git a/proto/clarifai/api/status/status_code_pb.js b/proto/clarifai/api/status/status_code_pb.js index 6eee94a..e5ce2c1 100644 --- a/proto/clarifai/api/status/status_code_pb.js +++ b/proto/clarifai/api/status/status_code_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.clarifai.api.status.StatusCode', null, global); /** @@ -25,6 +32,7 @@ proto.clarifai.api.status.StatusCode = { FAILURE: 10020, TRY_AGAIN: 10030, NOT_IMPLEMENTED: 10040, + MOVED: 10050, CONN_ACCOUNT_ISSUES: 11000, CONN_TOKEN_INVALID: 11001, CONN_CREDENTIALS_INVALID: 11002, @@ -47,6 +55,7 @@ proto.clarifai.api.status.StatusCode = { MODEL_QUEUED_FOR_TRAINING: 21103, MODEL_UPLOADING: 21104, MODEL_UPLOADING_FAILED: 21105, + MODEL_TRAINING_FAILED: 21106, MODEL_TRAINING_NO_DATA: 21110, MODEL_TRAINING_NO_POSITIVES: 21111, MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: 21112, @@ -75,6 +84,7 @@ proto.clarifai.api.status.StatusCode = { MODEL_EVALUATION_MSG_REDELIVER: 21314, MODEL_EVALUATION_NEED_LABELS: 21315, MODEL_EVALUATION_NEED_INPUTS: 21316, + MODEL_EVALUATION_FAILED: 21317, MODEL_DEPLOYMENT_FAILED: 21350, MODEL_DEPLOYING: 21351, MODEL_QUEUED_FOR_DEPLOYMENT: 21352, @@ -125,6 +135,12 @@ proto.clarifai.api.status.StatusCode = { DATA_DUMP_FAILED: 25152, DATA_DUMP_IN_PROGRESS: 25153, DATA_DUMP_NO_DATA: 25154, + DATA_DUMP_UNEXPECTED_ERROR: 25155, + DATA_DUMP_EXPORT_SUCCESS: 25170, + DATA_DUMP_EXPORT_PENDING: 25171, + DATA_DUMP_EXPORT_FAILED: 25172, + DATA_DUMP_EXPORT_IN_PROGRESS: 25173, + DATA_DUMP_EXPORT_UNEXPECTED_ERROR: 25174, APP_DUPLICATION_SUCCESS: 25200, APP_DUPLICATION_FAILED: 25201, APP_DUPLICATION_PENDING: 25202, @@ -134,6 +150,18 @@ proto.clarifai.api.status.StatusCode = { MODULE_PERMISSION_DENIED: 25301, MODULE_INVALID_ARGUMENT: 25302, MODULE_INVALID_REQUEST: 25303, + BULK_OPERATION_SUCCESS: 25400, + BULK_OPERATION_FAILED: 25401, + BULK_OPERATION_PENDING: 25402, + BULK_OPERATION_IN_PROGRESS: 25403, + BULK_OPERATION_INVALID_REQUEST: 25404, + BULK_OPERATION_CANCELLED: 25405, + BULK_OPERATION_UNEXPECTED_ERROR: 25406, + RUNNER_DOES_NOT_EXIST: 25600, + RUNNER_PERMISSION_DENIED: 25601, + RUNNER_INVALID_ARGUMENT: 25602, + RUNNER_INVALID_REQUEST: 25603, + RUNNER_NEEDS_RETRY: 25604, INPUT_DOWNLOAD_SUCCESS: 30000, INPUT_DOWNLOAD_PENDING: 30001, INPUT_DOWNLOAD_FAILED: 30002, @@ -175,6 +203,12 @@ proto.clarifai.api.status.StatusCode = { INPUT_VIDEO_MODIFY_FAILED: 31203, INPUT_VIDEO_STORAGE_HOST_FAILED: 31210, ALL_INPUT_VIDEOS_INVALID_BYTES: 31300, + INPUT_VIDEO_PROCESSING_SUCCESS: 31400, + INPUT_VIDEO_PROCESSING_PENDING: 31410, + INPUT_VIDEO_PROCESSING_FAILED: 31420, + INPUT_VIDEO_STORAGE_INCONSISTENCY: 31430, + INPUT_VIDEO_STORAGE_FAILURE: 31440, + INPUT_VIDEO_URL_GENERATION_FAILURE: 31450, INPUT_CONNECTION_FAILED: 39996, REQUEST_DISABLED_FOR_MAINTENANCE: 39997, INPUT_WRITES_DISABLED_FOR_MAINTENANCE: 39998, @@ -191,6 +225,7 @@ proto.clarifai.api.status.StatusCode = { DATABASE_FAIL_TO_GET_CONNECTIONS: 40015, DATABASE_TOO_MANY_CLIENTS: 40016, DATABASE_CONSTRAINT_VIOLATED: 40017, + DATABASE_CANCELED: 40021, ASYNC_WORKER_MULTI_ERRORS: 40020, RPC_REQUEST_QUEUE_FULL: 40030, RPC_SERVER_UNAVAILABLE: 40031, @@ -201,6 +236,7 @@ proto.clarifai.api.status.StatusCode = { REQUEST_CANCELED_BY_USER: 40037, CLUSTER_INTERNAL_FAILURE: 43040, EXTERNAL_CONNECTION_ERROR: 40034, + QUERY_INVALID_SYNTAX: 40050, QUEUE_CONN_ERROR: 41000, QUEUE_CLOSE_REQUEST_TIMEOUT: 41002, QUEUE_CONN_CLOSED: 41003, @@ -220,6 +256,7 @@ proto.clarifai.api.status.StatusCode = { SEARCH_PREDICTION_FAILURE: 43003, SEARCH_BY_NOT_FULLY_INDEXED_INPUT: 43004, SAVED_SEARCH_MODIFY_FAILED: 43005, + SEARCH_COUNTS_UNAVAILABLE: 43006, EVALUATION_QUEUED: 43100, EVALUATION_IN_PROGRESS: 43101, EVALUATION_SUCCESS: 43102, @@ -262,7 +299,8 @@ proto.clarifai.api.status.StatusCode = { TASK_IN_PROGRESS: 54001, TASK_DONE: 54002, TASK_WONT_DO: 54003, - TASK_ADD_ANNOTATIONS_FAILURE: 54005, + TASK_FAILED: 54005, + TASK_IDLE: 54006, TASK_CONFLICT: 54100, TASK_NOT_IMPLEMENTED: 54101, TASK_MISSING: 54102, @@ -290,11 +328,32 @@ proto.clarifai.api.status.StatusCode = { DATASET_VERSION_READY: 64015, DATASET_VERSION_FAILURE: 64020, DATASET_VERSION_UNEXPECTED_ERROR: 64025, + DATASET_VERSION_CONFLICT: 64030, + DATASET_INPUT_SUCCESS: 64100, + DATASET_INPUT_DUPLICATE: 64101, + DATASET_VERSION_EXPORT_SUCCESS: 64200, + DATASET_VERSION_EXPORT_PENDING: 64201, + DATASET_VERSION_EXPORT_FAILED: 64202, + DATASET_VERSION_EXPORT_IN_PROGRESS: 64203, + DATASET_VERSION_EXPORT_UNEXPECTED_ERROR: 64204, JOB_QUEUED: 64000, JOB_RUNNING: 64001, JOB_COMPLETED: 64002, JOB_FAILED: 64003, + JOB_CANCELLED: 64004, + JOB_UNEXPECTED_ERROR: 64006, + JOB_CONFLICT: 64007, AUTH_MISSING_IDP_ASSOC: 65000, + LIST_OBJECTS_FAILED: 66000, + ARCHIVE_EXTRACT_FAILED: 67000, + UPLOAD_IN_PROGRESS: 68000, + UPLOAD_DONE: 68001, + UPLOAD_FAILED: 68002, + UPLOAD_UNEXPECTED_ERROR: 68003, + UPLOAD_EXPIRED: 68004, + UPLOAD_CANCELED: 68005, + UPLOAD_CONFLICT: 68006, + BILLING_INVALID_INFO: 69000, INTERNAL_SERVER_ISSUE: 98004, INTERNAL_FETCHING_ISSUE: 98005, INTERNAL_DATABASE_ISSUE: 98006, diff --git a/proto/clarifai/api/status/status_pb.d.ts b/proto/clarifai/api/status/status_pb.d.ts index 017e680..712d6ef 100644 --- a/proto/clarifai/api/status/status_pb.d.ts +++ b/proto/clarifai/api/status/status_pb.d.ts @@ -11,30 +11,27 @@ import * as proto_clarifai_api_status_status_code_pb from "../../../../proto/cla export class Status extends jspb.Message { getCode(): proto_clarifai_api_status_status_code_pb.StatusCode; setCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): Status; - getDescription(): string; setDescription(value: string): Status; - getDetails(): string; setDetails(value: string): Status; - clearStackTraceList(): void; getStackTraceList(): Array; setStackTraceList(value: Array): Status; addStackTrace(value: string, index?: number): string; - getPercentCompleted(): number; setPercentCompleted(value: number): Status; - getTimeRemaining(): number; setTimeRemaining(value: number): Status; - getReqId(): string; setReqId(value: string): Status; - getInternalDetails(): string; setInternalDetails(value: string): Status; + hasRedirectInfo(): boolean; + clearRedirectInfo(): void; + getRedirectInfo(): RedirectInfo | undefined; + setRedirectInfo(value?: RedirectInfo): Status; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Status.AsObject; @@ -56,6 +53,36 @@ export namespace Status { timeRemaining: number, reqId: string, internalDetails: string, + redirectInfo?: RedirectInfo.AsObject, + } +} + +export class RedirectInfo extends jspb.Message { + getUrl(): string; + setUrl(value: string): RedirectInfo; + getResourceType(): string; + setResourceType(value: string): RedirectInfo; + getOldResourceId(): string; + setOldResourceId(value: string): RedirectInfo; + getNewResourceId(): string; + setNewResourceId(value: string): RedirectInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RedirectInfo.AsObject; + static toObject(includeInstance: boolean, msg: RedirectInfo): RedirectInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RedirectInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RedirectInfo; + static deserializeBinaryFromReader(message: RedirectInfo, reader: jspb.BinaryReader): RedirectInfo; +} + +export namespace RedirectInfo { + export type AsObject = { + url: string, + resourceType: string, + oldResourceId: string, + newResourceId: string, } } @@ -66,7 +93,6 @@ export class BaseResponse extends jspb.Message { getStatus(): Status | undefined; setStatus(value?: Status): BaseResponse; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): BaseResponse.AsObject; static toObject(includeInstance: boolean, msg: BaseResponse): BaseResponse.AsObject; diff --git a/proto/clarifai/api/status/status_pb.js b/proto/clarifai/api/status/status_pb.js index cb1b8de..a4416c5 100644 --- a/proto/clarifai/api/status/status_pb.js +++ b/proto/clarifai/api/status/status_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,13 +13,20 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js'); goog.object.extend(proto, proto_clarifai_auth_util_extension_pb); var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js'); goog.object.extend(proto, proto_clarifai_api_status_status_code_pb); goog.exportSymbol('proto.clarifai.api.status.BaseResponse', null, global); +goog.exportSymbol('proto.clarifai.api.status.RedirectInfo', null, global); goog.exportSymbol('proto.clarifai.api.status.Status', null, global); /** * Generated by JsPbCodeGenerator. @@ -41,6 +49,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.clarifai.api.status.RedirectInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.status.RedirectInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.status.RedirectInfo.displayName = 'proto.clarifai.api.status.RedirectInfo'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -108,7 +137,8 @@ proto.clarifai.api.status.Status.toObject = function(includeInstance, msg) { percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0), timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0), reqId: jspb.Message.getFieldWithDefault(msg, 7, ""), - internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "") + internalDetails: jspb.Message.getFieldWithDefault(msg, 8, ""), + redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -177,6 +207,11 @@ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function(msg, rea var value = /** @type {string} */ (reader.readString()); msg.setInternalDetails(value); break; + case 9: + var value = new proto.clarifai.api.status.RedirectInfo; + reader.readMessage(value,proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader); + msg.setRedirectInfo(value); + break; default: reader.skipField(); break; @@ -262,6 +297,14 @@ proto.clarifai.api.status.Status.serializeBinaryToWriter = function(message, wri f ); } + f = message.getRedirectInfo(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter + ); + } }; @@ -428,6 +471,263 @@ proto.clarifai.api.status.Status.prototype.setInternalDetails = function(value) }; +/** + * optional RedirectInfo redirect_info = 9; + * @return {?proto.clarifai.api.status.RedirectInfo} + */ +proto.clarifai.api.status.Status.prototype.getRedirectInfo = function() { + return /** @type{?proto.clarifai.api.status.RedirectInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.status.RedirectInfo, 9)); +}; + + +/** + * @param {?proto.clarifai.api.status.RedirectInfo|undefined} value + * @return {!proto.clarifai.api.status.Status} returns this +*/ +proto.clarifai.api.status.Status.prototype.setRedirectInfo = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.status.Status} returns this + */ +proto.clarifai.api.status.Status.prototype.clearRedirectInfo = function() { + return this.setRedirectInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.status.Status.prototype.hasRedirectInfo = function() { + return jspb.Message.getField(this, 9) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.clarifai.api.status.RedirectInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.status.RedirectInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.status.RedirectInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.status.RedirectInfo.toObject = function(includeInstance, msg) { + var f, obj = { + url: jspb.Message.getFieldWithDefault(msg, 1, ""), + resourceType: jspb.Message.getFieldWithDefault(msg, 2, ""), + oldResourceId: jspb.Message.getFieldWithDefault(msg, 3, ""), + newResourceId: jspb.Message.getFieldWithDefault(msg, 4, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.clarifai.api.status.RedirectInfo} + */ +proto.clarifai.api.status.RedirectInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.status.RedirectInfo; + return proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.status.RedirectInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.status.RedirectInfo} + */ +proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setResourceType(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setOldResourceId(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setNewResourceId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.status.RedirectInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.clarifai.api.status.RedirectInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getResourceType(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getOldResourceId(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getNewResourceId(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } +}; + + +/** + * optional string url = 1; + * @return {string} + */ +proto.clarifai.api.status.RedirectInfo.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.status.RedirectInfo} returns this + */ +proto.clarifai.api.status.RedirectInfo.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string resource_type = 2; + * @return {string} + */ +proto.clarifai.api.status.RedirectInfo.prototype.getResourceType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.status.RedirectInfo} returns this + */ +proto.clarifai.api.status.RedirectInfo.prototype.setResourceType = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string old_resource_id = 3; + * @return {string} + */ +proto.clarifai.api.status.RedirectInfo.prototype.getOldResourceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.status.RedirectInfo} returns this + */ +proto.clarifai.api.status.RedirectInfo.prototype.setOldResourceId = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string new_resource_id = 4; + * @return {string} + */ +proto.clarifai.api.status.RedirectInfo.prototype.getNewResourceId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.status.RedirectInfo} returns this + */ +proto.clarifai.api.status.RedirectInfo.prototype.setNewResourceId = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + diff --git a/proto/clarifai/api/utils/extensions_pb.js b/proto/clarifai/api/utils/extensions_pb.js index 3325a35..4e3074b 100644 --- a/proto/clarifai/api/utils/extensions_pb.js +++ b/proto/clarifai/api/utils/extensions_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); goog.object.extend(proto, google_protobuf_descriptor_pb); diff --git a/proto/clarifai/api/utils/matrix.proto b/proto/clarifai/api/utils/matrix.proto new file mode 100644 index 0000000..9bd5eb7 --- /dev/null +++ b/proto/clarifai/api/utils/matrix.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api/utils"; +option java_package = "com.clarifai.grpc.api.utils"; + +// Store matrix of uint64s values. +// It is recommended to store the matrix as a 1D array +// because it produces less bytes during serialization than a 2D array. +// The matrix does store the number of columns, but it does not store the number of rows. +// The number of rows can automatically be calculated as length(data)/n_cols. +message MatrixUint64 { + // Number of columns + uint64 n_cols = 1; + + // Matrix data stored as an array. + // In order to access matrix element at row i & column j, use data[i*n_cols+j]. + repeated uint64 data = 2; +} diff --git a/proto/clarifai/api/utils/matrix_grpc_pb.js b/proto/clarifai/api/utils/matrix_grpc_pb.js new file mode 100644 index 0000000..97b3a24 --- /dev/null +++ b/proto/clarifai/api/utils/matrix_grpc_pb.js @@ -0,0 +1 @@ +// GENERATED CODE -- NO SERVICES IN PROTO \ No newline at end of file diff --git a/proto/clarifai/api/utils/matrix_pb.d.ts b/proto/clarifai/api/utils/matrix_pb.d.ts new file mode 100644 index 0000000..f988554 --- /dev/null +++ b/proto/clarifai/api/utils/matrix_pb.d.ts @@ -0,0 +1,32 @@ +// package: +// file: proto/clarifai/api/utils/matrix.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; + +export class MatrixUint64 extends jspb.Message { + getNCols(): number; + setNCols(value: number): MatrixUint64; + clearDataList(): void; + getDataList(): Array; + setDataList(value: Array): MatrixUint64; + addData(value: number, index?: number): number; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MatrixUint64.AsObject; + static toObject(includeInstance: boolean, msg: MatrixUint64): MatrixUint64.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MatrixUint64, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MatrixUint64; + static deserializeBinaryFromReader(message: MatrixUint64, reader: jspb.BinaryReader): MatrixUint64; +} + +export namespace MatrixUint64 { + export type AsObject = { + nCols: number, + dataList: Array, + } +} diff --git a/proto/clarifai/api/utils/matrix_pb.js b/proto/clarifai/api/utils/matrix_pb.js new file mode 100644 index 0000000..d837c82 --- /dev/null +++ b/proto/clarifai/api/utils/matrix_pb.js @@ -0,0 +1,234 @@ +// source: proto/clarifai/api/utils/matrix.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.MatrixUint64', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.MatrixUint64 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.MatrixUint64.repeatedFields_, null); +}; +goog.inherits(proto.MatrixUint64, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.MatrixUint64.displayName = 'proto.MatrixUint64'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.MatrixUint64.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.MatrixUint64.prototype.toObject = function(opt_includeInstance) { + return proto.MatrixUint64.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.MatrixUint64} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.MatrixUint64.toObject = function(includeInstance, msg) { + var f, obj = { + nCols: jspb.Message.getFieldWithDefault(msg, 1, 0), + dataList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.MatrixUint64} + */ +proto.MatrixUint64.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.MatrixUint64; + return proto.MatrixUint64.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.MatrixUint64} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.MatrixUint64} + */ +proto.MatrixUint64.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNCols(value); + break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]); + for (var i = 0; i < values.length; i++) { + msg.addData(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.MatrixUint64.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.MatrixUint64.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.MatrixUint64} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.MatrixUint64.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNCols(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getDataList(); + if (f.length > 0) { + writer.writePackedUint64( + 2, + f + ); + } +}; + + +/** + * optional uint64 n_cols = 1; + * @return {number} + */ +proto.MatrixUint64.prototype.getNCols = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.MatrixUint64} returns this + */ +proto.MatrixUint64.prototype.setNCols = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated uint64 data = 2; + * @return {!Array} + */ +proto.MatrixUint64.prototype.getDataList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.MatrixUint64} returns this + */ +proto.MatrixUint64.prototype.setDataList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.MatrixUint64} returns this + */ +proto.MatrixUint64.prototype.addData = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.MatrixUint64} returns this + */ +proto.MatrixUint64.prototype.clearDataList = function() { + return this.setDataList([]); +}; + + +goog.object.extend(exports, proto); diff --git a/proto/clarifai/api/utils/test_proto_pb.d.ts b/proto/clarifai/api/utils/test_proto_pb.d.ts index 41db9f1..178661c 100644 --- a/proto/clarifai/api/utils/test_proto_pb.d.ts +++ b/proto/clarifai/api/utils/test_proto_pb.d.ts @@ -10,37 +10,30 @@ import * as proto_clarifai_api_utils_extensions_pb from "../../../../proto/clari export class TestProto extends jspb.Message { getId(): string; setId(value: string): TestProto; - getMessage(): string; setMessage(value: string): TestProto; - getValue(): number; setValue(value: number): TestProto; - getImageBytes(): Uint8Array | string; getImageBytes_asU8(): Uint8Array; getImageBytes_asB64(): string; setImageBytes(value: Uint8Array | string): TestProto; - hasStringOneof(): boolean; clearStringOneof(): void; getStringOneof(): string; setStringOneof(value: string): TestProto; - hasBoolOneof(): boolean; clearBoolOneof(): void; getBoolOneof(): boolean; setBoolOneof(value: boolean): TestProto; - hasMessageOneof(): boolean; clearMessageOneof(): void; getMessageOneof(): TestProto2 | undefined; setMessageOneof(value?: TestProto2): TestProto; - getOneOfFieldCase(): TestProto.OneOfFieldCase; serializeBinary(): Uint8Array; @@ -66,13 +59,9 @@ export namespace TestProto { export enum OneOfFieldCase { ONE_OF_FIELD_NOT_SET = 0, - - STRING_ONEOF = 5, - - BOOL_ONEOF = 6, - - MESSAGE_ONEOF = 7, - + STRING_ONEOF = 5, + BOOL_ONEOF = 6, + MESSAGE_ONEOF = 7, } } @@ -80,11 +69,9 @@ export namespace TestProto { export class TestProto2 extends jspb.Message { getId(): string; setId(value: string): TestProto2; - getFlip(): boolean; setFlip(value: boolean): TestProto2; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TestProto2.AsObject; static toObject(includeInstance: boolean, msg: TestProto2): TestProto2.AsObject; diff --git a/proto/clarifai/api/utils/test_proto_pb.js b/proto/clarifai/api/utils/test_proto_pb.js index cc086d4..9bd8c25 100644 --- a/proto/clarifai/api/utils/test_proto_pb.js +++ b/proto/clarifai/api/utils/test_proto_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var proto_clarifai_api_utils_extensions_pb = require('../../../../proto/clarifai/api/utils/extensions_pb.js'); goog.object.extend(proto, proto_clarifai_api_utils_extensions_pb); diff --git a/proto/clarifai/auth/scope/scope.proto b/proto/clarifai/auth/scope/scope.proto index c6fdd50..91e3fe2 100644 --- a/proto/clarifai/auth/scope/scope.proto +++ b/proto/clarifai/auth/scope/scope.proto @@ -26,6 +26,7 @@ message ScopeList { // cannot make a key that would be useless. Beyond the key creation they are not enforced // but rather the scopes are enforce when data is accessed. // +// // There is the following conventions in place, make sure you add them to the scopes for all new // resource types: // @@ -33,8 +34,19 @@ message ScopeList { // 2. *_Delete requires the corresponding _Add and _Get. // 3. *_Patch is deprecated and not check anywhere. // +// Think of the dependencies in this file at the DB level. If you cannot make a DB call to Get, Add +// or Delete a resource without having access to another resource then you should add it here. That +// should for the most part be the same resource type. In service.proto for the API level you will +// also specify cl_depending_scopes for each API endpoint. Those cover cases where an endpoint +// might need to access more than just that one resource type in order to operate (ie. API handlers +// that make multiple DB calls of various resource types likely have more cl_depending_scopes than +// the ones listed below). For example: PostCollectors to create a collector we make sure that you +// can do model predictions, get concepts, etc. so that you don't have a collector that would be +// useless at the end of that API handler but below you can see that the dependencies of Collector +// scopes are only on other Collector scopes. +// enum S { - reserved 30, 31, 32, 33, 34; + reserved 30, 31, 32, 33, 34, 125, 126; // introduce undef so that the zero (default/unset) value of the enum is not a real // permission. undef is only present for this purpose and should not be used // to indicate any "real" value. @@ -44,8 +56,6 @@ enum S { // Make an rpc to our prediction services. Predict = 2 [(clarfai_exposed) = true]; - // Make an rpc to our search services. - Search = 3 [(clarfai_exposed) = true]; // Write to the inputs table in the DB. Inputs_Add = 4 [(clarfai_exposed) = true, @@ -316,14 +326,100 @@ enum S { (clarifai_depending_scopes) = FindDuplicateAnnotationsJobs_Get]; + Datasets_Get = 105 [(clarfai_exposed) = true]; + Datasets_Add = 106 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Datasets_Get]; + Datasets_Delete = 107 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Datasets_Get, + (clarifai_depending_scopes) = Datasets_Add]; + + // Write to the modules DB tables. + Modules_Add = 108 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Modules_Get]; + + // Read from the modules and modules versions DB tables. + Modules_Get = 109 [(clarfai_exposed) = true]; + + // To delete we need read/write. + Modules_Delete = 110 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Modules_Add, + (clarifai_depending_scopes) = Modules_Get]; + + + // Write to the InstalledModuleVersions DB tables. + InstalledModuleVersions_Add = 111 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = InstalledModuleVersions_Get, + (clarifai_depending_scopes) = Modules_Get]; + + // Read from the InstalledModuleVersions and InstalledModuleVersions versions DB tables. + InstalledModuleVersions_Get = 112 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Modules_Get]; + + // To delete we need read/write. + InstalledModuleVersions_Delete = 113 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = InstalledModuleVersions_Add, + (clarifai_depending_scopes) = InstalledModuleVersions_Get, + (clarifai_depending_scopes) = Modules_Get]; + + // Make an rpc to our search services. + Search = 3 [(clarfai_exposed) = true]; + + // To get a saved search. + SavedSearch_Get = 114 [(clarfai_exposed) = true]; + + // To add a saved search + SavedSearch_Add = 115 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = SavedSearch_Get]; + + // To delete a saved search + SavedSearch_Delete=116 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = SavedSearch_Get, + (clarifai_depending_scopes) = SavedSearch_Add]; + + ModelVersionPublications_Add=117 [(clarfai_exposed) = true]; + ModelVersionPublications_Delete=118 [(clarfai_exposed) = true]; + + WorkflowPublications_Add=119 [(clarfai_exposed) = true]; + WorkflowPublications_Delete=120 [(clarfai_exposed) = true]; + + // To write bulk operations to the DB + BulkOperation_Add = 121 [(clarfai_exposed) = true, (clarifai_depending_scopes) = BulkOperation_Get]; + + // To Read Bulk Operations from the DB + BulkOperation_Get = 122 [(clarfai_exposed) = true]; + + // To Delete Bulk Operations from the DB + BulkOperation_Delete = 123 [(clarfai_exposed) = true, (clarifai_depending_scopes) = BulkOperation_Add, + (clarifai_depending_scopes) = BulkOperation_Get]; + + // To read historical usage from usage.dashboard_items table + HistoricalUsage_Get = 124; + // To read uploaded files and archives info from Uploads endpoints + Uploads_Get = 128 [(clarfai_exposed) = true]; + // To upload files or archives through the Uploads endpoints + Uploads_Add = 129 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Uploads_Get]; + Uploads_Delete = 130 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Uploads_Get, + (clarifai_depending_scopes) = Uploads_Add]; + // To read allo control over remote runners + Runners_Get = 131 [(clarfai_exposed) = true]; + Runners_Add = 132 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Runners_Get]; + Runners_Delete = 133 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = Runners_Get, + (clarifai_depending_scopes) = Runners_Add]; + RunnerItems_Get = 134 [(clarfai_exposed) = true]; + RunnerItems_Add = 135 [(clarfai_exposed) = true, + (clarifai_depending_scopes) = RunnerItems_Get]; } extend google.protobuf.EnumValueOptions { diff --git a/proto/clarifai/auth/scope/scope_pb.d.ts b/proto/clarifai/auth/scope/scope_pb.d.ts index d2c2ed6..57f4459 100644 --- a/proto/clarifai/auth/scope/scope_pb.d.ts +++ b/proto/clarifai/auth/scope/scope_pb.d.ts @@ -12,13 +12,11 @@ export class ScopeList extends jspb.Message { getScopesList(): Array; setScopesList(value: Array): ScopeList; addScopes(value: S, index?: number): S; - clearEndpointsList(): void; getEndpointsList(): Array; setEndpointsList(value: Array): ScopeList; addEndpoints(value: string, index?: number): string; - serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ScopeList.AsObject; static toObject(includeInstance: boolean, msg: ScopeList): ScopeList.AsObject; @@ -44,7 +42,6 @@ export enum S { UNDEF = 0, ALL = 1, PREDICT = 2, - SEARCH = 3, INPUTS_ADD = 4, INPUTS_GET = 5, INPUTS_PATCH = 7, @@ -101,4 +98,33 @@ export enum S { FINDDUPLICATEANNOTATIONSJOBS_ADD = 102, FINDDUPLICATEANNOTATIONSJOBS_GET = 103, FINDDUPLICATEANNOTATIONSJOBS_DELETE = 104, + DATASETS_GET = 105, + DATASETS_ADD = 106, + DATASETS_DELETE = 107, + MODULES_ADD = 108, + MODULES_GET = 109, + MODULES_DELETE = 110, + INSTALLEDMODULEVERSIONS_ADD = 111, + INSTALLEDMODULEVERSIONS_GET = 112, + INSTALLEDMODULEVERSIONS_DELETE = 113, + SEARCH = 3, + SAVEDSEARCH_GET = 114, + SAVEDSEARCH_ADD = 115, + SAVEDSEARCH_DELETE = 116, + MODELVERSIONPUBLICATIONS_ADD = 117, + MODELVERSIONPUBLICATIONS_DELETE = 118, + WORKFLOWPUBLICATIONS_ADD = 119, + WORKFLOWPUBLICATIONS_DELETE = 120, + BULKOPERATION_ADD = 121, + BULKOPERATION_GET = 122, + BULKOPERATION_DELETE = 123, + HISTORICALUSAGE_GET = 124, + UPLOADS_GET = 128, + UPLOADS_ADD = 129, + UPLOADS_DELETE = 130, + RUNNERS_GET = 131, + RUNNERS_ADD = 132, + RUNNERS_DELETE = 133, + RUNNERITEMS_GET = 134, + RUNNERITEMS_ADD = 135, } diff --git a/proto/clarifai/auth/scope/scope_pb.js b/proto/clarifai/auth/scope/scope_pb.js index 1ca6be0..53f72f6 100644 --- a/proto/clarifai/auth/scope/scope_pb.js +++ b/proto/clarifai/auth/scope/scope_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); goog.object.extend(proto, google_protobuf_descriptor_pb); @@ -255,7 +262,6 @@ proto.clarifai.auth.scope.S = { UNDEF: 0, ALL: 1, PREDICT: 2, - SEARCH: 3, INPUTS_ADD: 4, INPUTS_GET: 5, INPUTS_PATCH: 7, @@ -311,7 +317,36 @@ proto.clarifai.auth.scope.S = { USERFEATURECONFIGS_GET: 71, FINDDUPLICATEANNOTATIONSJOBS_ADD: 102, FINDDUPLICATEANNOTATIONSJOBS_GET: 103, - FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104 + FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104, + DATASETS_GET: 105, + DATASETS_ADD: 106, + DATASETS_DELETE: 107, + MODULES_ADD: 108, + MODULES_GET: 109, + MODULES_DELETE: 110, + INSTALLEDMODULEVERSIONS_ADD: 111, + INSTALLEDMODULEVERSIONS_GET: 112, + INSTALLEDMODULEVERSIONS_DELETE: 113, + SEARCH: 3, + SAVEDSEARCH_GET: 114, + SAVEDSEARCH_ADD: 115, + SAVEDSEARCH_DELETE: 116, + MODELVERSIONPUBLICATIONS_ADD: 117, + MODELVERSIONPUBLICATIONS_DELETE: 118, + WORKFLOWPUBLICATIONS_ADD: 119, + WORKFLOWPUBLICATIONS_DELETE: 120, + BULKOPERATION_ADD: 121, + BULKOPERATION_GET: 122, + BULKOPERATION_DELETE: 123, + HISTORICALUSAGE_GET: 124, + UPLOADS_GET: 128, + UPLOADS_ADD: 129, + UPLOADS_DELETE: 130, + RUNNERS_GET: 131, + RUNNERS_ADD: 132, + RUNNERS_DELETE: 133, + RUNNERITEMS_GET: 134, + RUNNERITEMS_ADD: 135 }; diff --git a/proto/clarifai/auth/types/types.proto b/proto/clarifai/auth/types/types.proto index 3a07aef..741428f 100644 --- a/proto/clarifai/auth/types/types.proto +++ b/proto/clarifai/auth/types/types.proto @@ -7,6 +7,7 @@ option java_multiple_files = true; option java_package = "com.clarifai.grpc.auth.types"; option objc_class_prefix = "CAIP"; + // Authorization type for endpoints. enum AuthType { // introduce undef so that the zero (default/unset) value of the enum is not a real diff --git a/proto/clarifai/auth/types/types_pb.js b/proto/clarifai/auth/types/types_pb.js index 0b0e24c..0002457 100644 --- a/proto/clarifai/auth/types/types_pb.js +++ b/proto/clarifai/auth/types/types_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); goog.exportSymbol('proto.clarifai.auth.types.AuthType', null, global); /** diff --git a/proto/clarifai/auth/util/extension_pb.js b/proto/clarifai/auth/util/extension_pb.js index 898af64..04c127e 100644 --- a/proto/clarifai/auth/util/extension_pb.js +++ b/proto/clarifai/auth/util/extension_pb.js @@ -2,6 +2,7 @@ /** * @fileoverview * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public @@ -12,7 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = Function('return this')(); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var proto_clarifai_auth_scope_scope_pb = require('../../../../proto/clarifai/auth/scope/scope_pb.js'); goog.object.extend(proto, proto_clarifai_auth_scope_scope_pb); diff --git a/proto/clarifai/commands/commands.proto b/proto/clarifai/commands/commands.proto old mode 100755 new mode 100644 index 9980456..145ca6e --- a/proto/clarifai/commands/commands.proto +++ b/proto/clarifai/commands/commands.proto @@ -4,7 +4,7 @@ import "google/protobuf/timestamp.proto"; package clarifai.commands; -option go_package = "commands"; +option go_package = "clarifai/commands"; option java_multiple_files = true; option java_package = "com.clarifai.grpc.commands"; option objc_class_prefix = "CAIP"; diff --git a/src/index.js b/src/index.js index 3ddbe08..57e1c93 100644 --- a/src/index.js +++ b/src/index.js @@ -20,6 +20,7 @@ const packageDefinition = protoLoader.loadSync( PROTO_PATH + "/clarifai/api/status/status.proto", PROTO_PATH + "/clarifai/api/resources.proto", PROTO_PATH + "/clarifai/api/service_processed.proto", + PROTO_PATH + "/clarifai/api/utils/matrix.proto", ], { keepCase: true,