Skip to content

Commit

Permalink
GRPC clients version 10.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Apr 8, 2024
1 parent 75babd7 commit 9b6c587
Show file tree
Hide file tree
Showing 20 changed files with 5,028 additions and 871 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.2.1
10.3.0
118 changes: 115 additions & 3 deletions google/api/client_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ 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.apiVersion', 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);
Expand Down Expand Up @@ -287,7 +288,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor
*/
proto.google.api.MethodSettings = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MethodSettings.repeatedFields_, null);
};
goog.inherits(proto.google.api.MethodSettings, jspb.Message);
if (goog.DEBUG && !COMPILED) {
Expand Down Expand Up @@ -1154,7 +1155,8 @@ proto.google.api.Publishing.toObject = function(includeInstance, msg) {
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, "")
protoReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 110, ""),
restReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 111, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -1233,6 +1235,10 @@ proto.google.api.Publishing.deserializeBinaryFromReader = function(msg, reader)
var value = /** @type {string} */ (reader.readString());
msg.setProtoReferenceDocumentationUri(value);
break;
case 111:
var value = /** @type {string} */ (reader.readString());
msg.setRestReferenceDocumentationUri(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -1334,6 +1340,13 @@ proto.google.api.Publishing.serializeBinaryToWriter = function(message, writer)
f
);
}
f = message.getRestReferenceDocumentationUri();
if (f.length > 0) {
writer.writeString(
111,
f
);
}
};


Expand Down Expand Up @@ -1576,6 +1589,24 @@ proto.google.api.Publishing.prototype.setProtoReferenceDocumentationUri = functi
};


/**
* optional string rest_reference_documentation_uri = 111;
* @return {string}
*/
proto.google.api.Publishing.prototype.getRestReferenceDocumentationUri = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 111, ""));
};


/**
* @param {string} value
* @return {!proto.google.api.Publishing} returns this
*/
proto.google.api.Publishing.prototype.setRestReferenceDocumentationUri = function(value) {
return jspb.Message.setProto3StringField(this, 111, value);
};





Expand Down Expand Up @@ -3071,6 +3102,13 @@ proto.google.api.GoSettings.prototype.hasCommon = function() {



/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.MethodSettings.repeatedFields_ = [3];



if (jspb.Message.GENERATE_TO_OBJECT) {
Expand Down Expand Up @@ -3103,7 +3141,8 @@ proto.google.api.MethodSettings.prototype.toObject = function(opt_includeInstanc
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)
longRunning: (f = msg.getLongRunning()) && proto.google.api.MethodSettings.LongRunning.toObject(includeInstance, f),
autoPopulatedFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -3149,6 +3188,10 @@ proto.google.api.MethodSettings.deserializeBinaryFromReader = function(msg, read
reader.readMessage(value,proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader);
msg.setLongRunning(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addAutoPopulatedFields(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -3193,6 +3236,13 @@ proto.google.api.MethodSettings.serializeBinaryToWriter = function(message, writ
proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter
);
}
f = message.getAutoPopulatedFieldsList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
};


Expand Down Expand Up @@ -3534,6 +3584,43 @@ proto.google.api.MethodSettings.prototype.hasLongRunning = function() {
};


/**
* repeated string auto_populated_fields = 3;
* @return {!Array<string>}
*/
proto.google.api.MethodSettings.prototype.getAutoPopulatedFieldsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
* @param {!Array<string>} value
* @return {!proto.google.api.MethodSettings} returns this
*/
proto.google.api.MethodSettings.prototype.setAutoPopulatedFieldsList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};


/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.google.api.MethodSettings} returns this
*/
proto.google.api.MethodSettings.prototype.addAutoPopulatedFields = 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.MethodSettings} returns this
*/
proto.google.api.MethodSettings.prototype.clearAutoPopulatedFieldsList = function() {
return this.setAutoPopulatedFieldsList([]);
};


/**
* @enum {number}
*/
Expand Down Expand Up @@ -3632,4 +3719,29 @@ google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1050] = new jspb.E
// toObject() will function correctly.
google_protobuf_descriptor_pb.ServiceOptions.extensions[1050] = proto.google.api.oauthScopes;


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

google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[525000001] = new jspb.ExtensionFieldBinaryInfo(
proto.google.api.apiVersion,
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[525000001] = proto.google.api.apiVersion;

goog.object.extend(exports, proto.google.api);
3 changes: 2 additions & 1 deletion google/api/error_reason_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ proto.google.api.ErrorReason = {
ORG_RESTRICTION_VIOLATION: 27,
ORG_RESTRICTION_HEADER_INVALID: 28,
SERVICE_NOT_VISIBLE: 29,
GCP_SUSPENDED: 30
GCP_SUSPENDED: 30,
LOCATION_POLICY_VIOLATED: 31
};

goog.object.extend(exports, proto.google.api);
6 changes: 3 additions & 3 deletions google/api/field_behavior_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ proto.google.api.fieldBehaviorList = new jspb.ExtensionFieldInfo(

google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1052] = new jspb.ExtensionFieldBinaryInfo(
proto.google.api.fieldBehaviorList,
jspb.BinaryReader.prototype.readPackedEnum,
jspb.BinaryWriter.prototype.writePackedEnum,
jspb.BinaryReader.prototype.readEnum,
jspb.BinaryWriter.prototype.writeRepeatedEnum,
undefined,
undefined,
true);
false);
// 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;
Expand Down
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": "10.2.1",
"version": "10.3.0",
"description": "The official Clarifai Node.js gRPC client",
"main": "src/index.js",
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",
Expand Down
Loading

0 comments on commit 9b6c587

Please sign in to comment.