Skip to content

Commit

Permalink
chore: generate libraries at Sat Oct 19 02:27:07 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-java-bot committed Oct 19, 2024
1 parent 2c39e7f commit 2057e8c
Show file tree
Hide file tree
Showing 24 changed files with 607 additions and 199 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3711,6 +3711,41 @@ public com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig getRou
: routingConfig_;
}

public static final int AUDIO_TIMESTAMP_FIELD_NUMBER = 20;
private boolean audioTimestamp_ = false;
/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return Whether the audioTimestamp field is set.
*/
@java.lang.Override
public boolean hasAudioTimestamp() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return The audioTimestamp.
*/
@java.lang.Override
public boolean getAudioTimestamp() {
return audioTimestamp_;
}

private byte memoizedIsInitialized = -1;

@java.lang.Override
Expand Down Expand Up @@ -3767,6 +3802,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(18, responseLogprobs_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeBool(20, audioTimestamp_);
}
getUnknownFields().writeTo(output);
}

Expand Down Expand Up @@ -3823,6 +3861,9 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, audioTimestamp_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
Expand Down Expand Up @@ -3894,6 +3935,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasRoutingConfig()) {
if (!getRoutingConfig().equals(other.getRoutingConfig())) return false;
}
if (hasAudioTimestamp() != other.hasAudioTimestamp()) return false;
if (hasAudioTimestamp()) {
if (getAudioTimestamp() != other.getAudioTimestamp()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
Expand Down Expand Up @@ -3959,6 +4004,10 @@ public int hashCode() {
hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRoutingConfig().hashCode();
}
if (hasAudioTimestamp()) {
hash = (37 * hash) + AUDIO_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAudioTimestamp());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
Expand Down Expand Up @@ -4130,6 +4179,7 @@ public Builder clear() {
routingConfigBuilder_.dispose();
routingConfigBuilder_ = null;
}
audioTimestamp_ = false;
return this;
}

Expand Down Expand Up @@ -4224,6 +4274,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GenerationConfig
routingConfigBuilder_ == null ? routingConfig_ : routingConfigBuilder_.build();
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.audioTimestamp_ = audioTimestamp_;
to_bitField0_ |= 0x00001000;
}
result.bitField0_ |= to_bitField0_;
}

Expand Down Expand Up @@ -4324,6 +4378,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenerationConfig ot
if (other.hasRoutingConfig()) {
mergeRoutingConfig(other.getRoutingConfig());
}
if (other.hasAudioTimestamp()) {
setAudioTimestamp(other.getAudioTimestamp());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
Expand Down Expand Up @@ -4435,6 +4492,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
break;
} // case 144
case 160:
{
audioTimestamp_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 160
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
Expand Down Expand Up @@ -5915,6 +5978,78 @@ public Builder clearRoutingConfig() {
return routingConfigBuilder_;
}

private boolean audioTimestamp_;
/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return Whether the audioTimestamp field is set.
*/
@java.lang.Override
public boolean hasAudioTimestamp() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return The audioTimestamp.
*/
@java.lang.Override
public boolean getAudioTimestamp() {
return audioTimestamp_;
}
/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @param value The audioTimestamp to set.
* @return This builder for chaining.
*/
public Builder setAudioTimestamp(boolean value) {

audioTimestamp_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return This builder for chaining.
*/
public Builder clearAudioTimestamp() {
bitField0_ = (bitField0_ & ~0x00004000);
audioTimestamp_ = false;
onChanged();
return this;
}

@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,4 +462,31 @@ public interface GenerationConfigOrBuilder
*/
com.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfigOrBuilder
getRoutingConfigOrBuilder();

/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return Whether the audioTimestamp field is set.
*/
boolean hasAudioTimestamp();
/**
*
*
* <pre>
* Optional. If enabled, audio timestamp will be included in the request to
* the model.
* </pre>
*
* <code>optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return The audioTimestamp.
*/
boolean getAudioTimestamp();
}
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ message GenerationConfig {
// Optional. Routing configuration.
optional RoutingConfig routing_config = 17
[(google.api.field_behavior) = OPTIONAL];

// Optional. If enabled, audio timestamp will be included in the request to
// the model.
optional bool audio_timestamp = 20 [(google.api.field_behavior) = OPTIONAL];
}

// Safety settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,9 @@ public static class Builder
"retry_policy_0_codes",
ImmutableSet.copyOf(
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
StatusCode.Code.DEADLINE_EXCEEDED,
StatusCode.Code.UNAVAILABLE,
StatusCode.Code.RESOURCE_EXHAUSTED)));
definitions.put(
"retry_policy_1_codes",
ImmutableSet.copyOf(
Expand All @@ -1110,9 +1112,9 @@ public static class Builder
RetrySettings settings = null;
settings =
RetrySettings.newBuilder()
.setInitialRetryDelay(Duration.ofMillis(100L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(60000L))
.setInitialRetryDelay(Duration.ofMillis(1000L))
.setRetryDelayMultiplier(9.0)
.setMaxRetryDelay(Duration.ofMillis(90000L))
.setInitialRpcTimeout(Duration.ofMillis(300000L))
.setRpcTimeoutMultiplier(1.0)
.setMaxRpcTimeout(Duration.ofMillis(300000L))
Expand All @@ -1121,8 +1123,8 @@ public static class Builder
definitions.put("retry_policy_0_params", settings);
settings =
RetrySettings.newBuilder()
.setInitialRetryDelay(Duration.ofMillis(100L))
.setRetryDelayMultiplier(1.3)
.setInitialRetryDelay(Duration.ofMillis(1000L))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelay(Duration.ofMillis(60000L))
.setInitialRpcTimeout(Duration.ofMillis(120000L))
.setRpcTimeoutMultiplier(1.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@ public void getDatasetSchemaTest() throws Exception {
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -530,6 +532,8 @@ public void getDatasetSchemaTest2() throws Exception {
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -577,13 +581,17 @@ public void updateDatasetSchemaTest() throws Exception {
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
mockService.addResponse(expectedResponse);

DatasetSchema datasetSchema =
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -617,6 +625,8 @@ public void updateDatasetSchemaExceptionTest() throws Exception {
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateDatasetSchema(datasetSchema, updateMask);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ public void getDatasetSchemaTest() throws Exception {
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
mockDocumentService.addResponse(expectedResponse);

Expand Down Expand Up @@ -479,6 +481,8 @@ public void getDatasetSchemaTest2() throws Exception {
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
mockDocumentService.addResponse(expectedResponse);

Expand Down Expand Up @@ -518,6 +522,8 @@ public void updateDatasetSchemaTest() throws Exception {
DatasetSchema.newBuilder()
.setName(DatasetSchemaName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
.setDocumentSchema(DocumentSchema.newBuilder().build())
.setSatisfiesPzs(true)
.setSatisfiesPzi(true)
.build();
mockDocumentService.addResponse(expectedResponse);

Expand Down
Loading

0 comments on commit 2057e8c

Please sign in to comment.