Skip to content

Commit

Permalink
GRPC clients version 10.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Nov 19, 2024
1 parent d7c4475 commit 4fd4b7e
Show file tree
Hide file tree
Showing 17 changed files with 1,993 additions and 1,414 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.9.8
10.10.0
263 changes: 261 additions & 2 deletions google/api/client_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ goog.exportSymbol('proto.google.api.Publishing', null, global);
goog.exportSymbol('proto.google.api.PythonSettings', null, global);
goog.exportSymbol('proto.google.api.PythonSettings.ExperimentalFeatures', null, global);
goog.exportSymbol('proto.google.api.RubySettings', null, global);
goog.exportSymbol('proto.google.api.SelectiveGapicGeneration', 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);
Expand Down Expand Up @@ -341,6 +342,27 @@ if (goog.DEBUG && !COMPILED) {
*/
proto.google.api.MethodSettings.LongRunning.displayName = 'proto.google.api.MethodSettings.LongRunning';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed 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.SelectiveGapicGeneration = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.SelectiveGapicGeneration.repeatedFields_, null);
};
goog.inherits(proto.google.api.SelectiveGapicGeneration, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.google.api.SelectiveGapicGeneration.displayName = 'proto.google.api.SelectiveGapicGeneration';
}

/**
* List of repeated fields within this message type.
Expand Down Expand Up @@ -381,7 +403,8 @@ proto.google.api.CommonLanguageSettings.prototype.toObject = function(opt_includ
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
destinationsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
selectiveGapicGeneration: (f = msg.getSelectiveGapicGeneration()) && proto.google.api.SelectiveGapicGeneration.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -428,6 +451,11 @@ proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader = function(m
msg.addDestinations(values[i]);
}
break;
case 3:
var value = new proto.google.api.SelectiveGapicGeneration;
reader.readMessage(value,proto.google.api.SelectiveGapicGeneration.deserializeBinaryFromReader);
msg.setSelectiveGapicGeneration(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -471,6 +499,14 @@ proto.google.api.CommonLanguageSettings.serializeBinaryToWriter = function(messa
f
);
}
f = message.getSelectiveGapicGeneration();
if (f != null) {
writer.writeMessage(
3,
f,
proto.google.api.SelectiveGapicGeneration.serializeBinaryToWriter
);
}
};


Expand Down Expand Up @@ -529,6 +565,43 @@ proto.google.api.CommonLanguageSettings.prototype.clearDestinationsList = functi
};


/**
* optional SelectiveGapicGeneration selective_gapic_generation = 3;
* @return {?proto.google.api.SelectiveGapicGeneration}
*/
proto.google.api.CommonLanguageSettings.prototype.getSelectiveGapicGeneration = function() {
return /** @type{?proto.google.api.SelectiveGapicGeneration} */ (
jspb.Message.getWrapperField(this, proto.google.api.SelectiveGapicGeneration, 3));
};


/**
* @param {?proto.google.api.SelectiveGapicGeneration|undefined} value
* @return {!proto.google.api.CommonLanguageSettings} returns this
*/
proto.google.api.CommonLanguageSettings.prototype.setSelectiveGapicGeneration = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.google.api.CommonLanguageSettings} returns this
*/
proto.google.api.CommonLanguageSettings.prototype.clearSelectiveGapicGeneration = function() {
return this.setSelectiveGapicGeneration(undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.google.api.CommonLanguageSettings.prototype.hasSelectiveGapicGeneration = function() {
return jspb.Message.getField(this, 3) != null;
};





Expand Down Expand Up @@ -2306,7 +2379,8 @@ proto.google.api.PythonSettings.ExperimentalFeatures.prototype.toObject = functi
*/
proto.google.api.PythonSettings.ExperimentalFeatures.toObject = function(includeInstance, msg) {
var f, obj = {
restAsyncIoEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
restAsyncIoEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
protobufPythonicTypesEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
};

if (includeInstance) {
Expand Down Expand Up @@ -2347,6 +2421,10 @@ proto.google.api.PythonSettings.ExperimentalFeatures.deserializeBinaryFromReader
var value = /** @type {boolean} */ (reader.readBool());
msg.setRestAsyncIoEnabled(value);
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setProtobufPythonicTypesEnabled(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -2383,6 +2461,13 @@ proto.google.api.PythonSettings.ExperimentalFeatures.serializeBinaryToWriter = f
f
);
}
f = message.getProtobufPythonicTypesEnabled();
if (f) {
writer.writeBool(
2,
f
);
}
};


Expand All @@ -2404,6 +2489,24 @@ proto.google.api.PythonSettings.ExperimentalFeatures.prototype.setRestAsyncIoEna
};


/**
* optional bool protobuf_pythonic_types_enabled = 2;
* @return {boolean}
*/
proto.google.api.PythonSettings.ExperimentalFeatures.prototype.getProtobufPythonicTypesEnabled = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};


/**
* @param {boolean} value
* @return {!proto.google.api.PythonSettings.ExperimentalFeatures} returns this
*/
proto.google.api.PythonSettings.ExperimentalFeatures.prototype.setProtobufPythonicTypesEnabled = function(value) {
return jspb.Message.setProto3BooleanField(this, 2, value);
};


/**
* optional CommonLanguageSettings common = 1;
* @return {?proto.google.api.CommonLanguageSettings}
Expand Down Expand Up @@ -3824,6 +3927,162 @@ proto.google.api.MethodSettings.prototype.clearAutoPopulatedFieldsList = functio
};



/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.SelectiveGapicGeneration.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_<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.SelectiveGapicGeneration.prototype.toObject = function(opt_includeInstance) {
return proto.google.api.SelectiveGapicGeneration.toObject(opt_includeInstance, this);
};


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


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


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


/**
* repeated string methods = 1;
* @return {!Array<string>}
*/
proto.google.api.SelectiveGapicGeneration.prototype.getMethodsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};


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


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


/**
* @enum {number}
*/
Expand Down
4 changes: 3 additions & 1 deletion google/api/error_reason_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ proto.google.api.ErrorReason = {
ORG_RESTRICTION_HEADER_INVALID: 28,
SERVICE_NOT_VISIBLE: 29,
GCP_SUSPENDED: 30,
LOCATION_POLICY_VIOLATED: 31
LOCATION_POLICY_VIOLATED: 31,
MISSING_ORIGIN: 33,
OVERLOADED_CREDENTIALS: 34
};

goog.object.extend(exports, proto.google.api);
Loading

0 comments on commit 4fd4b7e

Please sign in to comment.