Skip to content

Commit

Permalink
GRPC clients version 9.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Oct 4, 2023
1 parent 06d9a39 commit d04180a
Show file tree
Hide file tree
Showing 7 changed files with 462 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.8.5
9.9.0
1 change: 1 addition & 0 deletions google/api/field_info_grpc_pb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// GENERATED CODE -- NO SERVICES IN PROTO
216 changes: 216 additions & 0 deletions google/api/field_info_pb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
// source: google/api/field_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_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
goog.object.extend(proto, google_protobuf_descriptor_pb);
goog.exportSymbol('proto.google.api.FieldInfo', null, global);
goog.exportSymbol('proto.google.api.FieldInfo.Format', null, global);
goog.exportSymbol('proto.google.api.fieldInfo', 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.FieldInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.FieldInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.google.api.FieldInfo.displayName = 'proto.google.api.FieldInfo';
}



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will 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.google.api.FieldInfo.prototype.toObject = function(opt_includeInstance) {
return proto.google.api.FieldInfo.toObject(opt_includeInstance, this);
};


/**
* Static version of the {@see toObject} 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.FieldInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.api.FieldInfo.toObject = function(includeInstance, msg) {
var f, obj = {
format: 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.google.api.FieldInfo}
*/
proto.google.api.FieldInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.api.FieldInfo;
return proto.google.api.FieldInfo.deserializeBinaryFromReader(msg, reader);
};


/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.api.FieldInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.api.FieldInfo}
*/
proto.google.api.FieldInfo.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.FieldInfo.Format} */ (reader.readEnum());
msg.setFormat(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};


/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.FieldInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.api.FieldInfo.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.FieldInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.api.FieldInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFormat();
if (f !== 0.0) {
writer.writeEnum(
1,
f
);
}
};


/**
* @enum {number}
*/
proto.google.api.FieldInfo.Format = {
FORMAT_UNSPECIFIED: 0,
UUID4: 1,
IPV4: 2,
IPV6: 3,
IPV4_OR_IPV6: 4
};

/**
* optional Format format = 1;
* @return {!proto.google.api.FieldInfo.Format}
*/
proto.google.api.FieldInfo.prototype.getFormat = function() {
return /** @type {!proto.google.api.FieldInfo.Format} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};


/**
* @param {!proto.google.api.FieldInfo.Format} value
* @return {!proto.google.api.FieldInfo} returns this
*/
proto.google.api.FieldInfo.prototype.setFormat = function(value) {
return jspb.Message.setProto3EnumField(this, 1, value);
};



/**
* A tuple of {field number, class constructor} for the extension
* field named `fieldInfo`.
* @type {!jspb.ExtensionFieldInfo<!proto.google.api.FieldInfo>}
*/
proto.google.api.fieldInfo = new jspb.ExtensionFieldInfo(
291403980,
{fieldInfo: 0},
proto.google.api.FieldInfo,
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
proto.google.api.FieldInfo.toObject),
0);

google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[291403980] = new jspb.ExtensionFieldBinaryInfo(
proto.google.api.fieldInfo,
jspb.BinaryReader.prototype.readMessage,
jspb.BinaryWriter.prototype.writeMessage,
proto.google.api.FieldInfo.serializeBinaryToWriter,
proto.google.api.FieldInfo.deserializeBinaryFromReader,
false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.FieldOptions.extensions[291403980] = proto.google.api.fieldInfo;

goog.object.extend(exports, proto.google.api);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarifai-nodejs-grpc",
"version": "9.8.5",
"version": "9.9.0",
"description": "The official Clarifai Node.js gRPC client",
"main": "src/index.js",
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",
Expand Down
13 changes: 13 additions & 0 deletions proto/clarifai/api/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ message App {

// Representative image for this app
Image image = 22;

AppExtraInfo extra_info = 24;
}

message AppExtraInfo {
// Revision marker for this application.
// The value of the revision changes when
// * inputs are added, updated or deleted
// * annotations are added, updated or deleted
// * inputs are added to or removed from datasets
// For example, this value can be used to detect if client side caches related to searching should be invalidated.
// Field not filled in for list endpoints, use GetApp
string search_revision_marker = 1;
}

// App query
Expand Down
26 changes: 26 additions & 0 deletions proto/clarifai/api/resources_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ export class App extends jspb.Message {
getImage(): Image | undefined;
setImage(value?: Image): App;

hasExtraInfo(): boolean;
clearExtraInfo(): void;
getExtraInfo(): AppExtraInfo | undefined;
setExtraInfo(value?: AppExtraInfo): App;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): App.AsObject;
static toObject(includeInstance: boolean, msg: App): App.AsObject;
Expand Down Expand Up @@ -225,6 +230,27 @@ export namespace App {
starCount: number,
notes: string,
image?: Image.AsObject,
extraInfo?: AppExtraInfo.AsObject,
}
}

export class AppExtraInfo extends jspb.Message {
getSearchRevisionMarker(): string;
setSearchRevisionMarker(value: string): AppExtraInfo;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): AppExtraInfo.AsObject;
static toObject(includeInstance: boolean, msg: AppExtraInfo): AppExtraInfo.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: AppExtraInfo, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): AppExtraInfo;
static deserializeBinaryFromReader(message: AppExtraInfo, reader: jspb.BinaryReader): AppExtraInfo;
}

export namespace AppExtraInfo {
export type AsObject = {
searchRevisionMarker: string,
}
}

Expand Down
Loading

0 comments on commit d04180a

Please sign in to comment.