From da7afd920d40776c68759955ccd6f2a0de3a503f Mon Sep 17 00:00:00 2001 From: clarifai-prod Date: Tue, 5 Sep 2023 13:26:14 -0400 Subject: [PATCH] GRPC clients version 9.8.0 --- VERSION | 2 +- package.json | 2 +- proto/clarifai/api/resources_pb.d.ts | 24 ++ proto/clarifai/api/resources_pb.js | 205 ++++++++++++++- proto/clarifai/api/service_pb.d.ts | 40 +++ proto/clarifai/api/service_pb.js | 360 ++++++++++++++++++++++++++- 6 files changed, 626 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 23ca8cda..834eb3fa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.7.3 +9.8.0 diff --git a/package.json b/package.json index 5e232d23..5241a5f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clarifai-web-grpc", - "version": "9.7.3", + "version": "9.8.0", "description": "The official Clarifai gRPC-web client", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/proto/clarifai/api/resources_pb.d.ts b/proto/clarifai/api/resources_pb.d.ts index 8d38b4a5..d9544b71 100644 --- a/proto/clarifai/api/resources_pb.d.ts +++ b/proto/clarifai/api/resources_pb.d.ts @@ -596,6 +596,11 @@ export class Concept extends jspb.Message { hasKeypointInfo(): boolean; clearKeypointInfo(): Concept; + getExtraInfo(): ConceptExtraInfo | undefined; + setExtraInfo(value?: ConceptExtraInfo): Concept; + hasExtraInfo(): boolean; + clearExtraInfo(): Concept; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Concept.AsObject; static toObject(includeInstance: boolean, msg: Concept): Concept.AsObject; @@ -617,6 +622,7 @@ export namespace Concept { visibility?: Visibility.AsObject, userId: string, keypointInfo?: KeypointInfo.AsObject, + extraInfo?: ConceptExtraInfo.AsObject, } } @@ -668,6 +674,24 @@ export namespace KeypointEdge { } } +export class ConceptExtraInfo extends jspb.Message { + getIsRankable(): boolean; + setIsRankable(value: boolean): ConceptExtraInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConceptExtraInfo.AsObject; + static toObject(includeInstance: boolean, msg: ConceptExtraInfo): ConceptExtraInfo.AsObject; + static serializeBinaryToWriter(message: ConceptExtraInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConceptExtraInfo; + static deserializeBinaryFromReader(message: ConceptExtraInfo, reader: jspb.BinaryReader): ConceptExtraInfo; +} + +export namespace ConceptExtraInfo { + export type AsObject = { + isRankable: boolean, + } +} + export class ConceptCount extends jspb.Message { getId(): string; setId(value: string): ConceptCount; diff --git a/proto/clarifai/api/resources_pb.js b/proto/clarifai/api/resources_pb.js index 447ca07f..16927a89 100644 --- a/proto/clarifai/api/resources_pb.js +++ b/proto/clarifai/api/resources_pb.js @@ -72,6 +72,7 @@ goog.exportSymbol('proto.clarifai.api.CollectorSource', null, global); goog.exportSymbol('proto.clarifai.api.Color', null, global); goog.exportSymbol('proto.clarifai.api.Concept', null, global); goog.exportSymbol('proto.clarifai.api.ConceptCount', null, global); +goog.exportSymbol('proto.clarifai.api.ConceptExtraInfo', null, global); goog.exportSymbol('proto.clarifai.api.ConceptLanguage', null, global); goog.exportSymbol('proto.clarifai.api.ConceptMappingJob', null, global); goog.exportSymbol('proto.clarifai.api.ConceptQuery', null, global); @@ -598,6 +599,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.KeypointEdge.displayName = 'proto.clarifai.api.KeypointEdge'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ConceptExtraInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ConceptExtraInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ConceptExtraInfo.displayName = 'proto.clarifai.api.ConceptExtraInfo'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -8576,7 +8598,8 @@ proto.clarifai.api.Concept.toObject = function(includeInstance, msg) { 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) + keypointInfo: (f = msg.getKeypointInfo()) && proto.clarifai.api.KeypointInfo.toObject(includeInstance, f), + extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfo.toObject(includeInstance, f) }; if (includeInstance) { @@ -8660,6 +8683,11 @@ proto.clarifai.api.Concept.deserializeBinaryFromReader = function(msg, reader) { reader.readMessage(value,proto.clarifai.api.KeypointInfo.deserializeBinaryFromReader); msg.setKeypointInfo(value); break; + case 12: + var value = new proto.clarifai.api.ConceptExtraInfo; + reader.readMessage(value,proto.clarifai.api.ConceptExtraInfo.deserializeBinaryFromReader); + msg.setExtraInfo(value); + break; default: reader.skipField(); break; @@ -8769,6 +8797,14 @@ proto.clarifai.api.Concept.serializeBinaryToWriter = function(message, writer) { proto.clarifai.api.KeypointInfo.serializeBinaryToWriter ); } + f = message.getExtraInfo(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.clarifai.api.ConceptExtraInfo.serializeBinaryToWriter + ); + } }; @@ -9027,6 +9063,43 @@ proto.clarifai.api.Concept.prototype.hasKeypointInfo = function() { }; +/** + * optional ConceptExtraInfo extra_info = 12; + * @return {?proto.clarifai.api.ConceptExtraInfo} + */ +proto.clarifai.api.Concept.prototype.getExtraInfo = function() { + return /** @type{?proto.clarifai.api.ConceptExtraInfo} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptExtraInfo, 12)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptExtraInfo|undefined} value + * @return {!proto.clarifai.api.Concept} returns this +*/ +proto.clarifai.api.Concept.prototype.setExtraInfo = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.Concept} returns this + */ +proto.clarifai.api.Concept.prototype.clearExtraInfo = function() { + return this.setExtraInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.Concept.prototype.hasExtraInfo = function() { + return jspb.Message.getField(this, 12) != null; +}; + + /** * List of repeated fields within this message type. @@ -9399,6 +9472,136 @@ proto.clarifai.api.KeypointEdge.prototype.setK2 = function(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.ConceptExtraInfo.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptExtraInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptExtraInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptExtraInfo.toObject = function(includeInstance, msg) { + var f, obj = { + isRankable: jspb.Message.getBooleanFieldWithDefault(msg, 1, 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.ConceptExtraInfo} + */ +proto.clarifai.api.ConceptExtraInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptExtraInfo; + return proto.clarifai.api.ConceptExtraInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptExtraInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptExtraInfo} + */ +proto.clarifai.api.ConceptExtraInfo.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.setIsRankable(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptExtraInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptExtraInfo.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.ConceptExtraInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptExtraInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsRankable(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool is_rankable = 1; + * @return {boolean} + */ +proto.clarifai.api.ConceptExtraInfo.prototype.getIsRankable = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ConceptExtraInfo} returns this + */ +proto.clarifai.api.ConceptExtraInfo.prototype.setIsRankable = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + + + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. diff --git a/proto/clarifai/api/service_pb.d.ts b/proto/clarifai/api/service_pb.d.ts index 04981379..ca14491d 100644 --- a/proto/clarifai/api/service_pb.d.ts +++ b/proto/clarifai/api/service_pb.d.ts @@ -431,6 +431,9 @@ export class ListAppsRequest extends jspb.Message { getName(): string; setName(value: string): ListAppsRequest; + getId(): string; + setId(value: string): ListAppsRequest; + getFeaturedOnly(): boolean; setFeaturedOnly(value: boolean): ListAppsRequest; @@ -464,6 +467,7 @@ export namespace ListAppsRequest { sortByStarCount: boolean, query: string, name: string, + id: string, featuredOnly: boolean, starredOnly: boolean, additionalFieldsList: Array, @@ -1095,6 +1099,11 @@ export class PostConceptsSearchesRequest extends jspb.Message { hasConceptQuery(): boolean; clearConceptQuery(): PostConceptsSearchesRequest; + getExtraInfo(): ConceptExtraInfoRequest | undefined; + setExtraInfo(value?: ConceptExtraInfoRequest): PostConceptsSearchesRequest; + hasExtraInfo(): boolean; + clearExtraInfo(): PostConceptsSearchesRequest; + getPagination(): Pagination | undefined; setPagination(value?: Pagination): PostConceptsSearchesRequest; hasPagination(): boolean; @@ -1112,10 +1121,31 @@ export namespace PostConceptsSearchesRequest { export type AsObject = { userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject, conceptQuery?: proto_clarifai_api_resources_pb.ConceptQuery.AsObject, + extraInfo?: ConceptExtraInfoRequest.AsObject, pagination?: Pagination.AsObject, } } +export class ConceptExtraInfoRequest extends jspb.Message { + getRankableModel(): proto_clarifai_api_resources_pb.Model | undefined; + setRankableModel(value?: proto_clarifai_api_resources_pb.Model): ConceptExtraInfoRequest; + hasRankableModel(): boolean; + clearRankableModel(): ConceptExtraInfoRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConceptExtraInfoRequest.AsObject; + static toObject(includeInstance: boolean, msg: ConceptExtraInfoRequest): ConceptExtraInfoRequest.AsObject; + static serializeBinaryToWriter(message: ConceptExtraInfoRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConceptExtraInfoRequest; + static deserializeBinaryFromReader(message: ConceptExtraInfoRequest, reader: jspb.BinaryReader): ConceptExtraInfoRequest; +} + +export namespace ConceptExtraInfoRequest { + export type AsObject = { + rankableModel?: proto_clarifai_api_resources_pb.Model.AsObject, + } +} + export class PostConceptsRequest extends jspb.Message { getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined; setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostConceptsRequest; @@ -2158,6 +2188,9 @@ export class ListDatasetsRequest extends jspb.Message { getSortByModifiedAt(): boolean; setSortByModifiedAt(value: boolean): ListDatasetsRequest; + getSortById(): boolean; + setSortById(value: boolean): ListDatasetsRequest; + getBookmark(): boolean; setBookmark(value: boolean): ListDatasetsRequest; @@ -2182,6 +2215,7 @@ export namespace ListDatasetsRequest { sortByCreatedAt: boolean, sortByStarCount: boolean, sortByModifiedAt: boolean, + sortById: boolean, bookmark: boolean, } @@ -2190,6 +2224,7 @@ export namespace ListDatasetsRequest { SORT_BY_CREATED_AT = 7, SORT_BY_STAR_COUNT = 8, SORT_BY_MODIFIED_AT = 9, + SORT_BY_ID = 11, } } @@ -7904,6 +7939,9 @@ export class ListModulesRequest extends jspb.Message { getSortByModifiedAt(): boolean; setSortByModifiedAt(value: boolean): ListModulesRequest; + getSortById(): boolean; + setSortById(value: boolean): ListModulesRequest; + getBookmark(): boolean; setBookmark(value: boolean): ListModulesRequest; @@ -7928,6 +7966,7 @@ export namespace ListModulesRequest { sortByCreatedAt: boolean, sortByStarCount: boolean, sortByModifiedAt: boolean, + sortById: boolean, bookmark: boolean, } @@ -7936,6 +7975,7 @@ export namespace ListModulesRequest { SORT_BY_CREATED_AT = 7, SORT_BY_STAR_COUNT = 8, SORT_BY_MODIFIED_AT = 9, + SORT_BY_ID = 11, } } diff --git a/proto/clarifai/api/service_pb.js b/proto/clarifai/api/service_pb.js index 487aa92c..27684e8b 100644 --- a/proto/clarifai/api/service_pb.js +++ b/proto/clarifai/api/service_pb.js @@ -44,6 +44,7 @@ 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.ConceptExtraInfoRequest', 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); @@ -1122,6 +1123,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.clarifai.api.PostConceptsSearchesRequest.displayName = 'proto.clarifai.api.PostConceptsSearchesRequest'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.ConceptExtraInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.clarifai.api.ConceptExtraInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.clarifai.api.ConceptExtraInfoRequest.displayName = 'proto.clarifai.api.ConceptExtraInfoRequest'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -10131,6 +10153,7 @@ proto.clarifai.api.ListAppsRequest.toObject = function(includeInstance, msg) { sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), query: jspb.Message.getFieldWithDefault(msg, 8, ""), name: jspb.Message.getFieldWithDefault(msg, 4, ""), + id: jspb.Message.getFieldWithDefault(msg, 14, ""), featuredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), starredOnly: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), additionalFieldsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f @@ -10211,6 +10234,10 @@ proto.clarifai.api.ListAppsRequest.deserializeBinaryFromReader = function(msg, r var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; + case 14: + var value = /** @type {string} */ (reader.readString()); + msg.setId(value); + break; case 9: var value = /** @type {boolean} */ (reader.readBool()); msg.setFeaturedOnly(value); @@ -10323,6 +10350,13 @@ proto.clarifai.api.ListAppsRequest.serializeBinaryToWriter = function(message, w f ); } + f = message.getId(); + if (f.length > 0) { + writer.writeString( + 14, + f + ); + } f = message.getFeaturedOnly(); if (f) { writer.writeBool( @@ -10618,6 +10652,24 @@ proto.clarifai.api.ListAppsRequest.prototype.setName = function(value) { }; +/** + * optional string id = 14; + * @return {string} + */ +proto.clarifai.api.ListAppsRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); +}; + + +/** + * @param {string} value + * @return {!proto.clarifai.api.ListAppsRequest} returns this + */ +proto.clarifai.api.ListAppsRequest.prototype.setId = function(value) { + return jspb.Message.setProto3StringField(this, 14, value); +}; + + /** * optional bool featured_only = 9; * @return {boolean} @@ -15467,6 +15519,7 @@ proto.clarifai.api.PostConceptsSearchesRequest.toObject = function(includeInstan 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), + extraInfo: (f = msg.getExtraInfo()) && proto.clarifai.api.ConceptExtraInfoRequest.toObject(includeInstance, f), pagination: (f = msg.getPagination()) && proto.clarifai.api.Pagination.toObject(includeInstance, f) }; @@ -15514,6 +15567,11 @@ proto.clarifai.api.PostConceptsSearchesRequest.deserializeBinaryFromReader = fun reader.readMessage(value,proto_clarifai_api_resources_pb.ConceptQuery.deserializeBinaryFromReader); msg.setConceptQuery(value); break; + case 4: + var value = new proto.clarifai.api.ConceptExtraInfoRequest; + reader.readMessage(value,proto.clarifai.api.ConceptExtraInfoRequest.deserializeBinaryFromReader); + msg.setExtraInfo(value); + break; case 3: var value = new proto.clarifai.api.Pagination; reader.readMessage(value,proto.clarifai.api.Pagination.deserializeBinaryFromReader); @@ -15564,6 +15622,14 @@ proto.clarifai.api.PostConceptsSearchesRequest.serializeBinaryToWriter = functio proto_clarifai_api_resources_pb.ConceptQuery.serializeBinaryToWriter ); } + f = message.getExtraInfo(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.clarifai.api.ConceptExtraInfoRequest.serializeBinaryToWriter + ); + } f = message.getPagination(); if (f != null) { writer.writeMessage( @@ -15649,6 +15715,43 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasConceptQuery = funct }; +/** + * optional ConceptExtraInfoRequest extra_info = 4; + * @return {?proto.clarifai.api.ConceptExtraInfoRequest} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.getExtraInfo = function() { + return /** @type{?proto.clarifai.api.ConceptExtraInfoRequest} */ ( + jspb.Message.getWrapperField(this, proto.clarifai.api.ConceptExtraInfoRequest, 4)); +}; + + +/** + * @param {?proto.clarifai.api.ConceptExtraInfoRequest|undefined} value + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this +*/ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.setExtraInfo = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.PostConceptsSearchesRequest} returns this + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.clearExtraInfo = function() { + return this.setExtraInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasExtraInfo = function() { + return jspb.Message.getField(this, 4) != null; +}; + + /** * optional Pagination pagination = 3; * @return {?proto.clarifai.api.Pagination} @@ -15687,6 +15790,157 @@ proto.clarifai.api.PostConceptsSearchesRequest.prototype.hasPagination = functio + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @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.ConceptExtraInfoRequest.prototype.toObject = function(opt_includeInstance) { + return proto.clarifai.api.ConceptExtraInfoRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.clarifai.api.ConceptExtraInfoRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptExtraInfoRequest.toObject = function(includeInstance, msg) { + var f, obj = { + rankableModel: (f = msg.getRankableModel()) && 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.ConceptExtraInfoRequest} + */ +proto.clarifai.api.ConceptExtraInfoRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.clarifai.api.ConceptExtraInfoRequest; + return proto.clarifai.api.ConceptExtraInfoRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.clarifai.api.ConceptExtraInfoRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.clarifai.api.ConceptExtraInfoRequest} + */ +proto.clarifai.api.ConceptExtraInfoRequest.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.Model; + reader.readMessage(value,proto_clarifai_api_resources_pb.Model.deserializeBinaryFromReader); + msg.setRankableModel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.clarifai.api.ConceptExtraInfoRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.clarifai.api.ConceptExtraInfoRequest.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.ConceptExtraInfoRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.clarifai.api.ConceptExtraInfoRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRankableModel(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto_clarifai_api_resources_pb.Model.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Model rankable_model = 1; + * @return {?proto.clarifai.api.Model} + */ +proto.clarifai.api.ConceptExtraInfoRequest.prototype.getRankableModel = function() { + return /** @type{?proto.clarifai.api.Model} */ ( + jspb.Message.getWrapperField(this, proto_clarifai_api_resources_pb.Model, 1)); +}; + + +/** + * @param {?proto.clarifai.api.Model|undefined} value + * @return {!proto.clarifai.api.ConceptExtraInfoRequest} returns this +*/ +proto.clarifai.api.ConceptExtraInfoRequest.prototype.setRankableModel = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.clarifai.api.ConceptExtraInfoRequest} returns this + */ +proto.clarifai.api.ConceptExtraInfoRequest.prototype.clearRankableModel = function() { + return this.setRankableModel(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ConceptExtraInfoRequest.prototype.hasRankableModel = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + /** * List of repeated fields within this message type. * @private {!Array} @@ -23644,7 +23898,7 @@ proto.clarifai.api.ListDatasetsRequest.repeatedFields_ = [5]; * @private {!Array>} * @const */ -proto.clarifai.api.ListDatasetsRequest.oneofGroups_ = [[7,8,9]]; +proto.clarifai.api.ListDatasetsRequest.oneofGroups_ = [[7,8,9,11]]; /** * @enum {number} @@ -23653,7 +23907,8 @@ 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 + SORT_BY_MODIFIED_AT: 9, + SORT_BY_ID: 11 }; /** @@ -23703,6 +23958,7 @@ proto.clarifai.api.ListDatasetsRequest.toObject = function(includeInstance, msg) sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + sortById: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) }; @@ -23777,6 +24033,10 @@ proto.clarifai.api.ListDatasetsRequest.deserializeBinaryFromReader = function(ms var value = /** @type {boolean} */ (reader.readBool()); msg.setSortByModifiedAt(value); break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortById(value); + break; case 10: var value = /** @type {boolean} */ (reader.readBool()); msg.setBookmark(value); @@ -23874,6 +24134,13 @@ proto.clarifai.api.ListDatasetsRequest.serializeBinaryToWriter = function(messag f ); } + f = /** @type {boolean} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeBool( + 11, + f + ); + } f = message.getBookmark(); if (f) { writer.writeBool( @@ -24138,6 +24405,42 @@ proto.clarifai.api.ListDatasetsRequest.prototype.hasSortByModifiedAt = function( }; +/** + * optional bool sort_by_id = 11; + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.getSortById = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListDatasetsRequest} returns this + */ +proto.clarifai.api.ListDatasetsRequest.prototype.setSortById = function(value) { + return jspb.Message.setOneofField(this, 11, 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.clearSortById = function() { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListDatasetsRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListDatasetsRequest.prototype.hasSortById = function() { + return jspb.Message.getField(this, 11) != null; +}; + + /** * optional bool bookmark = 10; * @return {boolean} @@ -68964,7 +69267,7 @@ proto.clarifai.api.ListModulesRequest.repeatedFields_ = [5]; * @private {!Array>} * @const */ -proto.clarifai.api.ListModulesRequest.oneofGroups_ = [[7,8,9]]; +proto.clarifai.api.ListModulesRequest.oneofGroups_ = [[7,8,9,11]]; /** * @enum {number} @@ -68973,7 +69276,8 @@ 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 + SORT_BY_MODIFIED_AT: 9, + SORT_BY_ID: 11 }; /** @@ -69023,6 +69327,7 @@ proto.clarifai.api.ListModulesRequest.toObject = function(includeInstance, msg) sortByCreatedAt: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), sortByStarCount: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), sortByModifiedAt: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), + sortById: jspb.Message.getBooleanFieldWithDefault(msg, 11, false), bookmark: jspb.Message.getBooleanFieldWithDefault(msg, 10, false) }; @@ -69097,6 +69402,10 @@ proto.clarifai.api.ListModulesRequest.deserializeBinaryFromReader = function(msg var value = /** @type {boolean} */ (reader.readBool()); msg.setSortByModifiedAt(value); break; + case 11: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSortById(value); + break; case 10: var value = /** @type {boolean} */ (reader.readBool()); msg.setBookmark(value); @@ -69194,6 +69503,13 @@ proto.clarifai.api.ListModulesRequest.serializeBinaryToWriter = function(message f ); } + f = /** @type {boolean} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeBool( + 11, + f + ); + } f = message.getBookmark(); if (f) { writer.writeBool( @@ -69458,6 +69774,42 @@ proto.clarifai.api.ListModulesRequest.prototype.hasSortByModifiedAt = function() }; +/** + * optional bool sort_by_id = 11; + * @return {boolean} + */ +proto.clarifai.api.ListModulesRequest.prototype.getSortById = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.clarifai.api.ListModulesRequest} returns this + */ +proto.clarifai.api.ListModulesRequest.prototype.setSortById = function(value) { + return jspb.Message.setOneofField(this, 11, 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.clearSortById = function() { + return jspb.Message.setOneofField(this, 11, proto.clarifai.api.ListModulesRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.clarifai.api.ListModulesRequest.prototype.hasSortById = function() { + return jspb.Message.getField(this, 11) != null; +}; + + /** * optional bool bookmark = 10; * @return {boolean}