Skip to content

Commit

Permalink
GRPC clients version 9.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Sep 5, 2023
1 parent 6b9c5f8 commit da7afd9
Show file tree
Hide file tree
Showing 6 changed files with 626 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.7.3
9.8.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
24 changes: 24 additions & 0 deletions proto/clarifai/api/resources_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -617,6 +622,7 @@ export namespace Concept {
visibility?: Visibility.AsObject,
userId: string,
keypointInfo?: KeypointInfo.AsObject,
extraInfo?: ConceptExtraInfo.AsObject,
}
}

Expand Down Expand Up @@ -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;
Expand Down
205 changes: 204 additions & 1 deletion proto/clarifai/api/resources_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
);
}
};


Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @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.
Expand Down
Loading

0 comments on commit da7afd9

Please sign in to comment.