To configure the RetrySettings of a Long Running Operation method, create an * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java index b258773b4c5..718b90fcc57 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/DatabaseAdminStubSettings.java @@ -159,8 +159,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. * *
To configure the RetrySettings of a Long Running Operation method, create an * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to @@ -1412,7 +1412,7 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) @@ -1461,7 +1461,7 @@ private static Builder initDefaults(Builder builder) { .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(20000L)) + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) .setRetryDelayMultiplier(1.5) .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) .setInitialRpcTimeoutDuration(Duration.ZERO) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java index 3290eb9f98e..3b4af74269f 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminSettings.java @@ -127,8 +127,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. * *
To configure the RetrySettings of a Long Running Operation method, create an * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java index de11f2f3a3b..469f73fbeea 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/InstanceAdminStubSettings.java @@ -149,8 +149,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. * *
To configure the RetrySettings of a Long Running Operation method, create an
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java
index a9ad8d51c50..49b7de0cd9f 100644
--- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java
+++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerSettings.java
@@ -107,8 +107,8 @@
* }
*
* Please refer to the [Client Side Retry
- * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
- * additional support in setting retries.
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
*/
@Generated("by gapic-generator-java")
public class SpannerSettings extends ClientSettings
- * Required. The target high priority cpu utilization percentage that the
+ * Optional. The target high priority cpu utilization percentage that the
* autoscaler should be trying to achieve for the instance. This number is
* on a scale from 0 (no utilization) to 100 (full utilization). The valid
- * range is [10, 90] inclusive.
+ * range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
+ * skips scaling based on high priority CPU utilization.
*
*
*
- * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The highPriorityCpuUtilizationPercent.
*/
int getHighPriorityCpuUtilizationPercent();
+ /**
+ *
+ *
+ *
+ * Optional. The target total CPU utilization percentage that the autoscaler
+ * should be trying to achieve for the instance. This number is on a scale
+ * from 0 (no utilization) to 100 (full utilization). The valid range is
+ * [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
+ * scaling based on total CPU utilization. If both
+ * `high_priority_cpu_utilization_percent` and
+ * `total_cpu_utilization_percent` are specified, the autoscaler provisions
+ * the larger of the two required compute capacities to satisfy both
+ * targets.
+ *
+ *
+ * int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The totalCpuUtilizationPercent.
+ */
+ int getTotalCpuUtilizationPercent();
+
/**
*
*
@@ -1488,14 +1511,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The target high priority cpu utilization percentage that the
+ * Optional. The target high priority cpu utilization percentage that the
* autoscaler should be trying to achieve for the instance. This number is
* on a scale from 0 (no utilization) to 100 (full utilization). The valid
- * range is [10, 90] inclusive.
+ * range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
+ * skips scaling based on high priority CPU utilization.
*
*
*
- * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The highPriorityCpuUtilizationPercent.
@@ -1505,6 +1529,34 @@ public int getHighPriorityCpuUtilizationPercent() {
return highPriorityCpuUtilizationPercent_;
}
+ public static final int TOTAL_CPU_UTILIZATION_PERCENT_FIELD_NUMBER = 4;
+ private int totalCpuUtilizationPercent_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. The target total CPU utilization percentage that the autoscaler
+ * should be trying to achieve for the instance. This number is on a scale
+ * from 0 (no utilization) to 100 (full utilization). The valid range is
+ * [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
+ * scaling based on total CPU utilization. If both
+ * `high_priority_cpu_utilization_percent` and
+ * `total_cpu_utilization_percent` are specified, the autoscaler provisions
+ * the larger of the two required compute capacities to satisfy both
+ * targets.
+ *
+ *
+ * int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The totalCpuUtilizationPercent.
+ */
+ @java.lang.Override
+ public int getTotalCpuUtilizationPercent() {
+ return totalCpuUtilizationPercent_;
+ }
+
public static final int STORAGE_UTILIZATION_PERCENT_FIELD_NUMBER = 2;
private int storageUtilizationPercent_ = 0;
@@ -1547,6 +1599,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (storageUtilizationPercent_ != 0) {
output.writeInt32(2, storageUtilizationPercent_);
}
+ if (totalCpuUtilizationPercent_ != 0) {
+ output.writeInt32(4, totalCpuUtilizationPercent_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1565,6 +1620,10 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeInt32Size(2, storageUtilizationPercent_);
}
+ if (totalCpuUtilizationPercent_ != 0) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(4, totalCpuUtilizationPercent_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1584,6 +1643,7 @@ public boolean equals(final java.lang.Object obj) {
if (getHighPriorityCpuUtilizationPercent() != other.getHighPriorityCpuUtilizationPercent())
return false;
+ if (getTotalCpuUtilizationPercent() != other.getTotalCpuUtilizationPercent()) return false;
if (getStorageUtilizationPercent() != other.getStorageUtilizationPercent()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
@@ -1598,6 +1658,8 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HIGH_PRIORITY_CPU_UTILIZATION_PERCENT_FIELD_NUMBER;
hash = (53 * hash) + getHighPriorityCpuUtilizationPercent();
+ hash = (37 * hash) + TOTAL_CPU_UTILIZATION_PERCENT_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalCpuUtilizationPercent();
hash = (37 * hash) + STORAGE_UTILIZATION_PERCENT_FIELD_NUMBER;
hash = (53 * hash) + getStorageUtilizationPercent();
hash = (29 * hash) + getUnknownFields().hashCode();
@@ -1752,6 +1814,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
highPriorityCpuUtilizationPercent_ = 0;
+ totalCpuUtilizationPercent_ = 0;
storageUtilizationPercent_ = 0;
return this;
}
@@ -1798,6 +1861,9 @@ private void buildPartial0(
result.highPriorityCpuUtilizationPercent_ = highPriorityCpuUtilizationPercent_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.totalCpuUtilizationPercent_ = totalCpuUtilizationPercent_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
result.storageUtilizationPercent_ = storageUtilizationPercent_;
}
}
@@ -1857,6 +1923,9 @@ public Builder mergeFrom(
if (other.getHighPriorityCpuUtilizationPercent() != 0) {
setHighPriorityCpuUtilizationPercent(other.getHighPriorityCpuUtilizationPercent());
}
+ if (other.getTotalCpuUtilizationPercent() != 0) {
+ setTotalCpuUtilizationPercent(other.getTotalCpuUtilizationPercent());
+ }
if (other.getStorageUtilizationPercent() != 0) {
setStorageUtilizationPercent(other.getStorageUtilizationPercent());
}
@@ -1895,9 +1964,15 @@ public Builder mergeFrom(
case 16:
{
storageUtilizationPercent_ = input.readInt32();
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
break;
} // case 16
+ case 32:
+ {
+ totalCpuUtilizationPercent_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 32
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1923,14 +1998,15 @@ public Builder mergeFrom(
*
*
*
- * Required. The target high priority cpu utilization percentage that the
+ * Optional. The target high priority cpu utilization percentage that the
* autoscaler should be trying to achieve for the instance. This number is
* on a scale from 0 (no utilization) to 100 (full utilization). The valid
- * range is [10, 90] inclusive.
+ * range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
+ * skips scaling based on high priority CPU utilization.
*
*
*
- * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The highPriorityCpuUtilizationPercent.
@@ -1944,14 +2020,15 @@ public int getHighPriorityCpuUtilizationPercent() {
*
*
*
- * Required. The target high priority cpu utilization percentage that the
+ * Optional. The target high priority cpu utilization percentage that the
* autoscaler should be trying to achieve for the instance. This number is
* on a scale from 0 (no utilization) to 100 (full utilization). The valid
- * range is [10, 90] inclusive.
+ * range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
+ * skips scaling based on high priority CPU utilization.
*
*
*
- * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The highPriorityCpuUtilizationPercent to set.
@@ -1969,14 +2046,15 @@ public Builder setHighPriorityCpuUtilizationPercent(int value) {
*
*
*
- * Required. The target high priority cpu utilization percentage that the
+ * Optional. The target high priority cpu utilization percentage that the
* autoscaler should be trying to achieve for the instance. This number is
* on a scale from 0 (no utilization) to 100 (full utilization). The valid
- * range is [10, 90] inclusive.
+ * range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
+ * skips scaling based on high priority CPU utilization.
*
*
*
- * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = REQUIRED];
+ * int32 high_priority_cpu_utilization_percent = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return This builder for chaining.
@@ -1988,6 +2066,89 @@ public Builder clearHighPriorityCpuUtilizationPercent() {
return this;
}
+ private int totalCpuUtilizationPercent_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The target total CPU utilization percentage that the autoscaler
+ * should be trying to achieve for the instance. This number is on a scale
+ * from 0 (no utilization) to 100 (full utilization). The valid range is
+ * [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
+ * scaling based on total CPU utilization. If both
+ * `high_priority_cpu_utilization_percent` and
+ * `total_cpu_utilization_percent` are specified, the autoscaler provisions
+ * the larger of the two required compute capacities to satisfy both
+ * targets.
+ *
+ *
+ * int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The totalCpuUtilizationPercent.
+ */
+ @java.lang.Override
+ public int getTotalCpuUtilizationPercent() {
+ return totalCpuUtilizationPercent_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The target total CPU utilization percentage that the autoscaler
+ * should be trying to achieve for the instance. This number is on a scale
+ * from 0 (no utilization) to 100 (full utilization). The valid range is
+ * [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
+ * scaling based on total CPU utilization. If both
+ * `high_priority_cpu_utilization_percent` and
+ * `total_cpu_utilization_percent` are specified, the autoscaler provisions
+ * the larger of the two required compute capacities to satisfy both
+ * targets.
+ *
+ *
+ * int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The totalCpuUtilizationPercent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTotalCpuUtilizationPercent(int value) {
+
+ totalCpuUtilizationPercent_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The target total CPU utilization percentage that the autoscaler
+ * should be trying to achieve for the instance. This number is on a scale
+ * from 0 (no utilization) to 100 (full utilization). The valid range is
+ * [10, 90] inclusive. If not specified or set to 0, the autoscaler skips
+ * scaling based on total CPU utilization. If both
+ * `high_priority_cpu_utilization_percent` and
+ * `total_cpu_utilization_percent` are specified, the autoscaler provisions
+ * the larger of the two required compute capacities to satisfy both
+ * targets.
+ *
+ *
+ * int32 total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTotalCpuUtilizationPercent() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ totalCpuUtilizationPercent_ = 0;
+ onChanged();
+ return this;
+ }
+
private int storageUtilizationPercent_;
/**
@@ -2029,7 +2190,7 @@ public int getStorageUtilizationPercent() {
public Builder setStorageUtilizationPercent(int value) {
storageUtilizationPercent_ = value;
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -2050,7 +2211,7 @@ public Builder setStorageUtilizationPercent(int value) {
* @return This builder for chaining.
*/
public Builder clearStorageUtilizationPercent() {
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
storageUtilizationPercent_ = 0;
onChanged();
return this;
@@ -2343,6 +2504,92 @@ public interface AutoscalingConfigOverridesOrBuilder
* @return The autoscalingTargetHighPriorityCpuUtilizationPercent.
*/
int getAutoscalingTargetHighPriorityCpuUtilizationPercent();
+
+ /**
+ *
+ *
+ *
+ * Optional. If specified, overrides the
+ * autoscaling target `total_cpu_utilization_percent`
+ * in the top-level autoscaling configuration for the selected replicas.
+ *
+ *
+ *
+ * int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The autoscalingTargetTotalCpuUtilizationPercent.
+ */
+ int getAutoscalingTargetTotalCpuUtilizationPercent();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables high priority CPU autoscaling for the
+ * selected replicas and ignores
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ *
+ * bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The disableHighPriorityCpuAutoscaling.
+ */
+ boolean getDisableHighPriorityCpuAutoscaling();
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables total CPU autoscaling for the selected
+ * replicas and ignores
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ * bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The disableTotalCpuAutoscaling.
+ */
+ boolean getDisableTotalCpuAutoscaling();
}
/**
@@ -2488,6 +2735,110 @@ public int getAutoscalingTargetHighPriorityCpuUtilizationPercent() {
return autoscalingTargetHighPriorityCpuUtilizationPercent_;
}
+ public static final int AUTOSCALING_TARGET_TOTAL_CPU_UTILIZATION_PERCENT_FIELD_NUMBER = 4;
+ private int autoscalingTargetTotalCpuUtilizationPercent_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Optional. If specified, overrides the
+ * autoscaling target `total_cpu_utilization_percent`
+ * in the top-level autoscaling configuration for the selected replicas.
+ *
+ *
+ *
+ * int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The autoscalingTargetTotalCpuUtilizationPercent.
+ */
+ @java.lang.Override
+ public int getAutoscalingTargetTotalCpuUtilizationPercent() {
+ return autoscalingTargetTotalCpuUtilizationPercent_;
+ }
+
+ public static final int DISABLE_HIGH_PRIORITY_CPU_AUTOSCALING_FIELD_NUMBER = 5;
+ private boolean disableHighPriorityCpuAutoscaling_ = false;
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables high priority CPU autoscaling for the
+ * selected replicas and ignores
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ *
+ * bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The disableHighPriorityCpuAutoscaling.
+ */
+ @java.lang.Override
+ public boolean getDisableHighPriorityCpuAutoscaling() {
+ return disableHighPriorityCpuAutoscaling_;
+ }
+
+ public static final int DISABLE_TOTAL_CPU_AUTOSCALING_FIELD_NUMBER = 6;
+ private boolean disableTotalCpuAutoscaling_ = false;
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables total CPU autoscaling for the selected
+ * replicas and ignores
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ * bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The disableTotalCpuAutoscaling.
+ */
+ @java.lang.Override
+ public boolean getDisableTotalCpuAutoscaling() {
+ return disableTotalCpuAutoscaling_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2508,6 +2859,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (autoscalingTargetHighPriorityCpuUtilizationPercent_ != 0) {
output.writeInt32(2, autoscalingTargetHighPriorityCpuUtilizationPercent_);
}
+ if (autoscalingTargetTotalCpuUtilizationPercent_ != 0) {
+ output.writeInt32(4, autoscalingTargetTotalCpuUtilizationPercent_);
+ }
+ if (disableHighPriorityCpuAutoscaling_ != false) {
+ output.writeBool(5, disableHighPriorityCpuAutoscaling_);
+ }
+ if (disableTotalCpuAutoscaling_ != false) {
+ output.writeBool(6, disableTotalCpuAutoscaling_);
+ }
getUnknownFields().writeTo(output);
}
@@ -2526,6 +2886,20 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeInt32Size(
2, autoscalingTargetHighPriorityCpuUtilizationPercent_);
}
+ if (autoscalingTargetTotalCpuUtilizationPercent_ != 0) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(
+ 4, autoscalingTargetTotalCpuUtilizationPercent_);
+ }
+ if (disableHighPriorityCpuAutoscaling_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
+ 5, disableHighPriorityCpuAutoscaling_);
+ }
+ if (disableTotalCpuAutoscaling_ != false) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableTotalCpuAutoscaling_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2555,6 +2929,11 @@ public boolean equals(final java.lang.Object obj) {
}
if (getAutoscalingTargetHighPriorityCpuUtilizationPercent()
!= other.getAutoscalingTargetHighPriorityCpuUtilizationPercent()) return false;
+ if (getAutoscalingTargetTotalCpuUtilizationPercent()
+ != other.getAutoscalingTargetTotalCpuUtilizationPercent()) return false;
+ if (getDisableHighPriorityCpuAutoscaling() != other.getDisableHighPriorityCpuAutoscaling())
+ return false;
+ if (getDisableTotalCpuAutoscaling() != other.getDisableTotalCpuAutoscaling()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2572,6 +2951,15 @@ public int hashCode() {
}
hash = (37 * hash) + AUTOSCALING_TARGET_HIGH_PRIORITY_CPU_UTILIZATION_PERCENT_FIELD_NUMBER;
hash = (53 * hash) + getAutoscalingTargetHighPriorityCpuUtilizationPercent();
+ hash = (37 * hash) + AUTOSCALING_TARGET_TOTAL_CPU_UTILIZATION_PERCENT_FIELD_NUMBER;
+ hash = (53 * hash) + getAutoscalingTargetTotalCpuUtilizationPercent();
+ hash = (37 * hash) + DISABLE_HIGH_PRIORITY_CPU_AUTOSCALING_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashBoolean(getDisableHighPriorityCpuAutoscaling());
+ hash = (37 * hash) + DISABLE_TOTAL_CPU_AUTOSCALING_FIELD_NUMBER;
+ hash =
+ (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTotalCpuAutoscaling());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2760,6 +3148,9 @@ public Builder clear() {
autoscalingLimitsBuilder_ = null;
}
autoscalingTargetHighPriorityCpuUtilizationPercent_ = 0;
+ autoscalingTargetTotalCpuUtilizationPercent_ = 0;
+ disableHighPriorityCpuAutoscaling_ = false;
+ disableTotalCpuAutoscaling_ = false;
return this;
}
@@ -2823,6 +3214,16 @@ private void buildPartial0(
result.autoscalingTargetHighPriorityCpuUtilizationPercent_ =
autoscalingTargetHighPriorityCpuUtilizationPercent_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.autoscalingTargetTotalCpuUtilizationPercent_ =
+ autoscalingTargetTotalCpuUtilizationPercent_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.disableHighPriorityCpuAutoscaling_ = disableHighPriorityCpuAutoscaling_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.disableTotalCpuAutoscaling_ = disableTotalCpuAutoscaling_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -2891,6 +3292,16 @@ public Builder mergeFrom(
setAutoscalingTargetHighPriorityCpuUtilizationPercent(
other.getAutoscalingTargetHighPriorityCpuUtilizationPercent());
}
+ if (other.getAutoscalingTargetTotalCpuUtilizationPercent() != 0) {
+ setAutoscalingTargetTotalCpuUtilizationPercent(
+ other.getAutoscalingTargetTotalCpuUtilizationPercent());
+ }
+ if (other.getDisableHighPriorityCpuAutoscaling() != false) {
+ setDisableHighPriorityCpuAutoscaling(other.getDisableHighPriorityCpuAutoscaling());
+ }
+ if (other.getDisableTotalCpuAutoscaling() != false) {
+ setDisableTotalCpuAutoscaling(other.getDisableTotalCpuAutoscaling());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2930,6 +3341,24 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 16
+ case 32:
+ {
+ autoscalingTargetTotalCpuUtilizationPercent_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 32
+ case 40:
+ {
+ disableHighPriorityCpuAutoscaling_ = input.readBool();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 40
+ case 48:
+ {
+ disableTotalCpuAutoscaling_ = input.readBool();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 48
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3252,6 +3681,315 @@ public Builder clearAutoscalingTargetHighPriorityCpuUtilizationPercent() {
return this;
}
+ private int autoscalingTargetTotalCpuUtilizationPercent_;
+
+ /**
+ *
+ *
+ *
+ * Optional. If specified, overrides the
+ * autoscaling target `total_cpu_utilization_percent`
+ * in the top-level autoscaling configuration for the selected replicas.
+ *
+ *
+ *
+ * int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The autoscalingTargetTotalCpuUtilizationPercent.
+ */
+ @java.lang.Override
+ public int getAutoscalingTargetTotalCpuUtilizationPercent() {
+ return autoscalingTargetTotalCpuUtilizationPercent_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If specified, overrides the
+ * autoscaling target `total_cpu_utilization_percent`
+ * in the top-level autoscaling configuration for the selected replicas.
+ *
+ *
+ *
+ * int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The autoscalingTargetTotalCpuUtilizationPercent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutoscalingTargetTotalCpuUtilizationPercent(int value) {
+
+ autoscalingTargetTotalCpuUtilizationPercent_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If specified, overrides the
+ * autoscaling target `total_cpu_utilization_percent`
+ * in the top-level autoscaling configuration for the selected replicas.
+ *
+ *
+ *
+ * int32 autoscaling_target_total_cpu_utilization_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAutoscalingTargetTotalCpuUtilizationPercent() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ autoscalingTargetTotalCpuUtilizationPercent_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean disableHighPriorityCpuAutoscaling_;
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables high priority CPU autoscaling for the
+ * selected replicas and ignores
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ *
+ * bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The disableHighPriorityCpuAutoscaling.
+ */
+ @java.lang.Override
+ public boolean getDisableHighPriorityCpuAutoscaling() {
+ return disableHighPriorityCpuAutoscaling_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables high priority CPU autoscaling for the
+ * selected replicas and ignores
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ *
+ * bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The disableHighPriorityCpuAutoscaling to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisableHighPriorityCpuAutoscaling(boolean value) {
+
+ disableHighPriorityCpuAutoscaling_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables high priority CPU autoscaling for the
+ * selected replicas and ignores
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ *
+ * bool disable_high_priority_cpu_autoscaling = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisableHighPriorityCpuAutoscaling() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ disableHighPriorityCpuAutoscaling_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean disableTotalCpuAutoscaling_;
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables total CPU autoscaling for the selected
+ * replicas and ignores
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ * bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The disableTotalCpuAutoscaling.
+ */
+ @java.lang.Override
+ public boolean getDisableTotalCpuAutoscaling() {
+ return disableTotalCpuAutoscaling_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables total CPU autoscaling for the selected
+ * replicas and ignores
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ * bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The disableTotalCpuAutoscaling to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisableTotalCpuAutoscaling(boolean value) {
+
+ disableTotalCpuAutoscaling_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. If true, disables total CPU autoscaling for the selected
+ * replicas and ignores
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * in the top-level autoscaling configuration.
+ *
+ * When setting this field to true, setting
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field to a non-zero value for the same replica is not supported.
+ *
+ * If false, the
+ * [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
+ * field in the replica will be used if set to a non-zero value.
+ * Otherwise, the
+ * [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
+ * field in the top-level autoscaling configuration will be used.
+ *
+ * Setting both
+ * [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
+ * and
+ * [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
+ * to true for the same replica is not supported.
+ *
+ *
+ * bool disable_total_cpu_autoscaling = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisableTotalCpuAutoscaling() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ disableTotalCpuAutoscaling_ = false;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java
index e67cff53064..26f7274e682 100644
--- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java
+++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java
@@ -893,7 +893,7 @@ public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index) {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @return A list containing the referencingBackups.
*/
@java.lang.Deprecated
@@ -917,7 +917,7 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @return The count of referencingBackups.
*/
@java.lang.Deprecated
@@ -941,7 +941,7 @@ public int getReferencingBackupsCount() {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @param index The index of the element to return.
* @return The referencingBackups at the given index.
*/
@@ -966,7 +966,7 @@ public java.lang.String getReferencingBackups(int index) {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @param index The index of the value to return.
* @return The bytes of the referencingBackups at the given index.
*/
@@ -3389,7 +3389,7 @@ private void ensureReferencingBackupsIsMutable() {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @return A list containing the referencingBackups.
*/
@java.lang.Deprecated
@@ -3414,7 +3414,7 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @return The count of referencingBackups.
*/
@java.lang.Deprecated
@@ -3438,7 +3438,7 @@ public int getReferencingBackupsCount() {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @param index The index of the element to return.
* @return The referencingBackups at the given index.
*/
@@ -3463,7 +3463,7 @@ public java.lang.String getReferencingBackups(int index) {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @param index The index of the value to return.
* @return The bytes of the referencingBackups at the given index.
*/
@@ -3488,7 +3488,7 @@ public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @param index The index to set the value at.
* @param value The referencingBackups to set.
* @return This builder for chaining.
@@ -3521,7 +3521,7 @@ public Builder setReferencingBackups(int index, java.lang.String value) {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @param value The referencingBackups to add.
* @return This builder for chaining.
*/
@@ -3553,7 +3553,7 @@ public Builder addReferencingBackups(java.lang.String value) {
*
*
* @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is
- * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1788
+ * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1855
* @param values The referencingBackups to add.
* @return This builder for chaining.
*/
@@ -3582,7 +3582,7 @@ public Builder addAllReferencingBackups(java.lang.Iterable
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ int getSecureContextCount();
+
+ /**
+ *
+ *
+ *
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ boolean containsSecureContext(java.lang.String key);
+
+ /** Use {@link #getSecureContextMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ /* nullable */
+ com.google.protobuf.Value getSecureContextOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.protobuf.Value defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.Value getSecureContextOrThrow(java.lang.String key);
+ }
+
+ /**
+ *
+ *
+ *
+ * Container for various pieces of client-owned context attached to a request.
+ *
+ *
+ * Protobuf type {@code google.spanner.v1.RequestOptions.ClientContext}
+ */
+ public static final class ClientContext extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.spanner.v1.RequestOptions.ClientContext)
+ ClientContextOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ // Use ClientContext.newBuilder() to construct.
+ private ClientContext(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ClientContext() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ClientContext();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.spanner.v1.SpannerProto
+ .internal_static_google_spanner_v1_RequestOptions_ClientContext_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 1:
+ return internalGetSecureContext();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.spanner.v1.SpannerProto
+ .internal_static_google_spanner_v1_RequestOptions_ClientContext_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.spanner.v1.RequestOptions.ClientContext.class,
+ com.google.spanner.v1.RequestOptions.ClientContext.Builder.class);
+ }
+
+ public static final int SECURE_CONTEXT_FIELD_NUMBER = 1;
+
+ private static final class SecureContextDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsSecureContext(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetSecureContext().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getSecureContextMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.protobuf.Value getSecureContextOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.protobuf.Value defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.Value getSecureContextOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ * Container for various pieces of client-owned context attached to a request.
+ *
+ *
+ * Protobuf type {@code google.spanner.v1.RequestOptions.ClientContext}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public boolean containsSecureContext(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetSecureContext().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getSecureContextMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.protobuf.Value getSecureContextOrDefault(
+ java.lang.String key,
+ /* nullable */
+ com.google.protobuf.Value defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.Value getSecureContextOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeSecureContext(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableSecureContext().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putSecureContext(java.lang.String key, com.google.protobuf.Value value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableSecureContext().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder putAllSecureContext(
+ java.util.Map
+ * Optional. Map of parameter name to value for this request. These values
+ * will be returned by any SECURE_CONTEXT() calls invoked by this request
+ * (e.g., by queries against Parameterized Secure Views).
+ *
+ *
+ *
+ * map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Value.Builder putSecureContextBuilderIfAbsent(
+ java.lang.String key) {
+ java.util.Map
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clientContext field is set.
+ */
+ @java.lang.Override
+ public boolean hasClientContext() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clientContext.
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.RequestOptions.ClientContext getClientContext() {
+ return clientContext_ == null
+ ? com.google.spanner.v1.RequestOptions.ClientContext.getDefaultInstance()
+ : clientContext_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.RequestOptions.ClientContextOrBuilder getClientContextOrBuilder() {
+ return clientContext_ == null
+ ? com.google.spanner.v1.RequestOptions.ClientContext.getDefaultInstance()
+ : clientContext_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -468,6 +1519,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionTag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transactionTag_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getClientContext());
+ }
getUnknownFields().writeTo(output);
}
@@ -487,6 +1541,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionTag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionTag_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClientContext());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -505,6 +1562,10 @@ public boolean equals(final java.lang.Object obj) {
if (priority_ != other.priority_) return false;
if (!getRequestTag().equals(other.getRequestTag())) return false;
if (!getTransactionTag().equals(other.getTransactionTag())) return false;
+ if (hasClientContext() != other.hasClientContext()) return false;
+ if (hasClientContext()) {
+ if (!getClientContext().equals(other.getClientContext())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -522,6 +1583,10 @@ public int hashCode() {
hash = (53 * hash) + getRequestTag().hashCode();
hash = (37 * hash) + TRANSACTION_TAG_FIELD_NUMBER;
hash = (53 * hash) + getTransactionTag().hashCode();
+ if (hasClientContext()) {
+ hash = (37 * hash) + CLIENT_CONTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getClientContext().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -651,10 +1716,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.spanner.v1.RequestOptions.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getClientContextFieldBuilder();
+ }
}
@java.lang.Override
@@ -664,6 +1738,11 @@ public Builder clear() {
priority_ = 0;
requestTag_ = "";
transactionTag_ = "";
+ clientContext_ = null;
+ if (clientContextBuilder_ != null) {
+ clientContextBuilder_.dispose();
+ clientContextBuilder_ = null;
+ }
return this;
}
@@ -708,6 +1787,13 @@ private void buildPartial0(com.google.spanner.v1.RequestOptions result) {
if (((from_bitField0_ & 0x00000004) != 0)) {
result.transactionTag_ = transactionTag_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.clientContext_ =
+ clientContextBuilder_ == null ? clientContext_ : clientContextBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -768,6 +1854,9 @@ public Builder mergeFrom(com.google.spanner.v1.RequestOptions other) {
bitField0_ |= 0x00000004;
onChanged();
}
+ if (other.hasClientContext()) {
+ mergeClientContext(other.getClientContext());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -812,6 +1901,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00000004;
break;
} // case 26
+ case 34:
+ {
+ input.readMessage(getClientContextFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1243,6 +2338,220 @@ public Builder setTransactionTagBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.spanner.v1.RequestOptions.ClientContext clientContext_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.v1.RequestOptions.ClientContext,
+ com.google.spanner.v1.RequestOptions.ClientContext.Builder,
+ com.google.spanner.v1.RequestOptions.ClientContextOrBuilder>
+ clientContextBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clientContext field is set.
+ */
+ public boolean hasClientContext() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clientContext.
+ */
+ public com.google.spanner.v1.RequestOptions.ClientContext getClientContext() {
+ if (clientContextBuilder_ == null) {
+ return clientContext_ == null
+ ? com.google.spanner.v1.RequestOptions.ClientContext.getDefaultInstance()
+ : clientContext_;
+ } else {
+ return clientContextBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClientContext(com.google.spanner.v1.RequestOptions.ClientContext value) {
+ if (clientContextBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ clientContext_ = value;
+ } else {
+ clientContextBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setClientContext(
+ com.google.spanner.v1.RequestOptions.ClientContext.Builder builderForValue) {
+ if (clientContextBuilder_ == null) {
+ clientContext_ = builderForValue.build();
+ } else {
+ clientContextBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeClientContext(com.google.spanner.v1.RequestOptions.ClientContext value) {
+ if (clientContextBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && clientContext_ != null
+ && clientContext_
+ != com.google.spanner.v1.RequestOptions.ClientContext.getDefaultInstance()) {
+ getClientContextBuilder().mergeFrom(value);
+ } else {
+ clientContext_ = value;
+ }
+ } else {
+ clientContextBuilder_.mergeFrom(value);
+ }
+ if (clientContext_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearClientContext() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ clientContext_ = null;
+ if (clientContextBuilder_ != null) {
+ clientContextBuilder_.dispose();
+ clientContextBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.spanner.v1.RequestOptions.ClientContext.Builder getClientContextBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getClientContextFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.spanner.v1.RequestOptions.ClientContextOrBuilder getClientContextOrBuilder() {
+ if (clientContextBuilder_ != null) {
+ return clientContextBuilder_.getMessageOrBuilder();
+ } else {
+ return clientContext_ == null
+ ? com.google.spanner.v1.RequestOptions.ClientContext.getDefaultInstance()
+ : clientContext_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.v1.RequestOptions.ClientContext,
+ com.google.spanner.v1.RequestOptions.ClientContext.Builder,
+ com.google.spanner.v1.RequestOptions.ClientContextOrBuilder>
+ getClientContextFieldBuilder() {
+ if (clientContextBuilder_ == null) {
+ clientContextBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.v1.RequestOptions.ClientContext,
+ com.google.spanner.v1.RequestOptions.ClientContext.Builder,
+ com.google.spanner.v1.RequestOptions.ClientContextOrBuilder>(
+ getClientContext(), getParentForChildren(), isClean());
+ clientContext_ = null;
+ }
+ return clientContextBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java
index 2412301279f..cf5ce31a91b 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/RequestOptionsOrBuilder.java
@@ -139,4 +139,47 @@ public interface RequestOptionsOrBuilder
* @return The bytes for transactionTag.
*/
com.google.protobuf.ByteString getTransactionTagBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the clientContext field is set.
+ */
+ boolean hasClientContext();
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The clientContext.
+ */
+ com.google.spanner.v1.RequestOptions.ClientContext getClientContext();
+
+ /**
+ *
+ *
+ *
+ * Optional. Optional context that may be needed for some requests.
+ *
+ *
+ *
+ * .google.spanner.v1.RequestOptions.ClientContext client_context = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.spanner.v1.RequestOptions.ClientContextOrBuilder getClientContextOrBuilder();
}
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
index c852dd8fd7e..20a566bd04f 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
@@ -68,6 +68,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_spanner_v1_RequestOptions_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_spanner_v1_RequestOptions_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_v1_RequestOptions_ClientContext_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_v1_RequestOptions_ClientContext_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_v1_RequestOptions_ClientContext_SecureContextEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_v1_RequestOptions_ClientContext_SecureContextEntry_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_spanner_v1_DirectedReadOptions_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -225,36 +233,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017next_page_token\030\002 \001(\t\"L\n"
+ "\024DeleteSessionRequest\0224\n"
+ "\004name\030\001 \001(\tB&\340A\002\372A \n"
- + "\036spanner.googleapis.com/Session\"\334\001\n"
+ + "\036spanner.googleapis.com/Session\"\353\003\n"
+ "\016RequestOptions\022<\n"
+ "\010priority\030\001 \001(\0162*.google.spanner.v1.RequestOptions.Priority\022\023\n"
+ "\013request_tag\030\002 \001(\t\022\027\n"
- + "\017transaction_tag\030\003 \001(\t\"^\n"
+ + "\017transaction_tag\030\003 \001(\t\022L\n"
+ + "\016client_context\030\004 \001(\013"
+ + "2/.google.spanner.v1.RequestOptions.ClientContextB\003\340A\001\032\276\001\n\r"
+ + "ClientContext\022_\n"
+ + "\016secure_context\030\001 \003(\0132B.google.spanner.v1.Req"
+ + "uestOptions.ClientContext.SecureContextEntryB\003\340A\001\032L\n"
+ + "\022SecureContextEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022%\n"
+ + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"^\n"
+ "\010Priority\022\030\n"
+ "\024PRIORITY_UNSPECIFIED\020\000\022\020\n"
+ "\014PRIORITY_LOW\020\001\022\023\n"
+ "\017PRIORITY_MEDIUM\020\002\022\021\n\r"
+ "PRIORITY_HIGH\020\003\"\352\004\n"
+ "\023DirectedReadOptions\022R\n"
- + "\020include_replicas\030\001 \001"
- + "(\01326.google.spanner.v1.DirectedReadOptions.IncludeReplicasH\000\022R\n"
- + "\020exclude_replicas\030\002"
- + " \001(\01326.google.spanner.v1.DirectedReadOptions.ExcludeReplicasH\000\032\255\001\n"
+ + "\020include_replicas\030\001 \001(\01326.goog"
+ + "le.spanner.v1.DirectedReadOptions.IncludeReplicasH\000\022R\n"
+ + "\020exclude_replicas\030\002 \001(\01326."
+ + "google.spanner.v1.DirectedReadOptions.ExcludeReplicasH\000\032\255\001\n"
+ "\020ReplicaSelection\022\020\n"
+ "\010location\030\001 \001(\t\022J\n"
- + "\004type\030\002 \001(\0162<."
- + "google.spanner.v1.DirectedReadOptions.ReplicaSelection.Type\";\n"
+ + "\004type\030\002 \001(\0162<.google.sp"
+ + "anner.v1.DirectedReadOptions.ReplicaSelection.Type\";\n"
+ "\004Type\022\024\n"
+ "\020TYPE_UNSPECIFIED\020\000\022\016\n\n"
+ "READ_WRITE\020\001\022\r\n"
+ "\tREAD_ONLY\020\002\032\206\001\n"
+ "\017IncludeReplicas\022S\n"
- + "\022replica_selections\030\001"
- + " \003(\01327.google.spanner.v1.DirectedReadOptions.ReplicaSelection\022\036\n"
+ + "\022replica_selections\030\001 \003(\0132"
+ + "7.google.spanner.v1.DirectedReadOptions.ReplicaSelection\022\036\n"
+ "\026auto_failover_disabled\030\002 \001(\010\032f\n"
+ "\017ExcludeReplicas\022S\n"
- + "\022replica_selections\030\001 \003(\01327.google.spanne"
- + "r.v1.DirectedReadOptions.ReplicaSelectionB\n\n"
+ + "\022replica_selections\030\001"
+ + " \003(\01327.google.spanner.v1.DirectedReadOptions.ReplicaSelectionB\n\n"
+ "\010replicas\"\310\007\n"
+ "\021ExecuteSqlRequest\0227\n"
+ "\007session\030\001 \001(\tB&\340A\002\372A \n"
@@ -262,8 +278,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\013transaction\030\002 \001(\0132&.google.spanner.v1.TransactionSelector\022\020\n"
+ "\003sql\030\003 \001(\tB\003\340A\002\022\'\n"
+ "\006params\030\004 \001(\0132\027.google.protobuf.Struct\022I\n"
- + "\013param_types\030\005 \003(\01324.goog"
- + "le.spanner.v1.ExecuteSqlRequest.ParamTypesEntry\022\024\n"
+ + "\013param_types\030\005 \003(\01324.google.spanne"
+ + "r.v1.ExecuteSqlRequest.ParamTypesEntry\022\024\n"
+ "\014resume_token\030\006 \001(\014\022B\n\n"
+ "query_mode\030\007 \001(\0162..google.spanner.v1.ExecuteSqlRequest.QueryMode\022\027\n"
+ "\017partition_token\030\010 \001(\014\022\r\n"
@@ -292,26 +308,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\026ExecuteBatchDmlRequest\0227\n"
+ "\007session\030\001 \001(\tB&\340A\002\372A \n"
+ "\036spanner.googleapis.com/Session\022@\n"
- + "\013transaction\030\002"
- + " \001(\0132&.google.spanner.v1.TransactionSelectorB\003\340A\002\022L\n\n"
- + "statements\030\003 \003(\01323.goo"
- + "gle.spanner.v1.ExecuteBatchDmlRequest.StatementB\003\340A\002\022\022\n"
+ + "\013transaction\030\002 \001(\013"
+ + "2&.google.spanner.v1.TransactionSelectorB\003\340A\002\022L\n\n"
+ + "statements\030\003 \003(\01323.google.spann"
+ + "er.v1.ExecuteBatchDmlRequest.StatementB\003\340A\002\022\022\n"
+ "\005seqno\030\004 \001(\003B\003\340A\002\022:\n"
+ "\017request_options\030\005 \001(\0132!.google.spanner.v1.RequestOptions\022\034\n"
+ "\017last_statements\030\006 \001(\010B\003\340A\001\032\354\001\n"
+ "\tStatement\022\020\n"
+ "\003sql\030\001 \001(\tB\003\340A\002\022\'\n"
+ "\006params\030\002 \001(\0132\027.google.protobuf.Struct\022X\n"
- + "\013param_types\030\003 \003(\0132C.google.spanner.v1.Exe"
- + "cuteBatchDmlRequest.Statement.ParamTypesEntry\032J\n"
+ + "\013param_types\030\003"
+ + " \003(\0132C.google.spanner.v1.ExecuteBatchDmlRequest.Statement.ParamTypesEntry\032J\n"
+ "\017ParamTypesEntry\022\013\n"
+ "\003key\030\001 \001(\t\022&\n"
+ "\005value\030\002 \001(\0132\027.google.spanner.v1.Type:\0028\001\"\303\001\n"
+ "\027ExecuteBatchDmlResponse\0221\n"
+ "\013result_sets\030\001 \003(\0132\034.google.spanner.v1.ResultSet\022\"\n"
+ "\006status\030\002 \001(\0132\022.google.rpc.Status\022Q\n"
- + "\017precommit_token\030\003 \001(\01323.google.spanner.v"
- + "1.MultiplexedSessionPrecommitTokenB\003\340A\001\"H\n"
+ + "\017precommit_token\030\003"
+ + " \001(\01323.google.spanner.v1.MultiplexedSessionPrecommitTokenB\003\340A\001\"H\n"
+ "\020PartitionOptions\022\034\n"
+ "\024partition_size_bytes\030\001 \001(\003\022\026\n"
+ "\016max_partitions\030\002 \001(\003\"\243\003\n"
@@ -354,11 +370,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017partition_token\030\n"
+ " \001(\014\022:\n"
+ "\017request_options\030\013 \001(\0132!.google.spanner.v1.RequestOptions\022E\n"
- + "\025directed_read_options\030\016 \001(\0132&"
- + ".google.spanner.v1.DirectedReadOptions\022\032\n"
+ + "\025directed_read_options\030\016"
+ + " \001(\0132&.google.spanner.v1.DirectedReadOptions\022\032\n"
+ "\022data_boost_enabled\030\017 \001(\010\022=\n"
- + "\010order_by\030\020"
- + " \001(\0162&.google.spanner.v1.ReadRequest.OrderByB\003\340A\001\022?\n"
+ + "\010order_by\030\020 \001(\0162&.go"
+ + "ogle.spanner.v1.ReadRequest.OrderByB\003\340A\001\022?\n"
+ "\tlock_hint\030\021"
+ " \001(\0162\'.google.spanner.v1.ReadRequest.LockHintB\003\340A\001\0229\n"
+ "\014routing_hint\030\022"
@@ -374,8 +390,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\027BeginTransactionRequest\0227\n"
+ "\007session\030\001 \001(\tB&\340A\002\372A \n"
+ "\036spanner.googleapis.com/Session\022;\n"
- + "\007options\030\002"
- + " \001(\0132%.google.spanner.v1.TransactionOptionsB\003\340A\002\022:\n"
+ + "\007options\030\002 \001(\0132%"
+ + ".google.spanner.v1.TransactionOptionsB\003\340A\002\022:\n"
+ "\017request_options\030\003 \001(\0132!.google.spanner.v1.RequestOptions\0226\n"
+ "\014mutation_key\030\004"
+ " \001(\0132\033.google.spanner.v1.MutationB\003\340A\001\"\320\003\n\r"
@@ -390,8 +406,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\020max_commit_delay\030\010"
+ " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022:\n"
+ "\017request_options\030\006 \001(\0132!.google.spanner.v1.RequestOptions\022Q\n"
- + "\017precommit_token\030\t \001("
- + "\01323.google.spanner.v1.MultiplexedSessionPrecommitTokenB\003\340A\001B\r\n"
+ + "\017precommit_token\030\t \001(\01323.googl"
+ + "e.spanner.v1.MultiplexedSessionPrecommitTokenB\003\340A\001B\r\n"
+ "\013transaction\"g\n"
+ "\017RollbackRequest\0227\n"
+ "\007session\030\001 \001(\tB&\340A\002\372A \n"
@@ -401,9 +417,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\007session\030\001 \001(\tB&\340A\002\372A \n"
+ "\036spanner.googleapis.com/Session\022:\n"
+ "\017request_options\030\003 \001(\0132!.google.spanner.v1.RequestOptions\022P\n"
- + "\017mutation_groups\030\004 \003(\01322.google.spanner"
- + ".v1.BatchWriteRequest.MutationGroupB\003\340A\002\022,\n"
- + "\037exclude_txn_from_change_streams\030\005 \001(\010B\003\340A\001\032D\n\r"
+ + "\017mutation_groups\030\004"
+ + " \003(\01322.google.spanner.v1.BatchWriteRequest.MutationGroupB\003\340A\002\022,\n"
+ + "\037exclude_txn_from_change_streams\030\005 \001(\010B\003\340A\001\032D\n"
+ + "\r"
+ "MutationGroup\0223\n"
+ "\tmutations\030\001 \003(\0132\033.google.spanner.v1.MutationB\003\340A\002\"\177\n"
+ "\022BatchWriteResponse\022\017\n"
@@ -411,73 +428,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\006status\030\002 \001(\0132\022.google.rpc.Status\0224\n"
+ "\020commit_timestamp\030\003 \001(\0132\032.google.protobuf.Timestamp2\213\030\n"
+ "\007Spanner\022\246\001\n\r"
- + "CreateSession\022\'.google.spanner.v1.CreateSessionRequest\032\032.g"
- + "oogle.spanner.v1.Session\"P\332A\010database\202\323\344"
- + "\223\002?\":/v1/{database=projects/*/instances/*/databases/*}/sessions:\001*\022\340\001\n"
- + "\023BatchCreateSessions\022-.google.spanner.v1.BatchCrea"
- + "teSessionsRequest\032..google.spanner.v1.Ba"
- + "tchCreateSessionsResponse\"j\332A\026database,s"
- + "ession_count\202\323\344\223\002K\"F/v1/{database=projec"
- + "ts/*/instances/*/databases/*}/sessions:batchCreate:\001*\022\227\001\n\n"
- + "GetSession\022$.google.spanner.v1.GetSessionRequest\032\032.google.span"
- + "ner.v1.Session\"G\332A\004name\202\323\344\223\002:\0228/v1/{name"
- + "=projects/*/instances/*/databases/*/sessions/*}\022\256\001\n"
- + "\014ListSessions\022&.google.spanner.v1.ListSessionsRequest\032\'.google.spanne"
- + "r.v1.ListSessionsResponse\"M\332A\010database\202\323"
- + "\344\223\002<\022:/v1/{database=projects/*/instances/*/databases/*}/sessions\022\231\001\n\r"
- + "DeleteSession\022\'.google.spanner.v1.DeleteSessionRequ"
- + "est\032\026.google.protobuf.Empty\"G\332A\004name\202\323\344\223"
- + "\002:*8/v1/{name=projects/*/instances/*/databases/*/sessions/*}\022\243\001\n\n"
- + "ExecuteSql\022$.google.spanner.v1.ExecuteSqlRequest\032\034.goog"
- + "le.spanner.v1.ResultSet\"Q\202\323\344\223\002K\"F/v1/{se"
- + "ssion=projects/*/instances/*/databases/*/sessions/*}:executeSql:\001*\022\276\001\n"
- + "\023ExecuteStreamingSql\022$.google.spanner.v1.ExecuteSq"
- + "lRequest\032#.google.spanner.v1.PartialResu"
- + "ltSet\"Z\202\323\344\223\002T\"O/v1/{session=projects/*/i"
- + "nstances/*/databases/*/sessions/*}:executeStreamingSql:\001*0\001\022\300\001\n"
- + "\017ExecuteBatchDml\022).google.spanner.v1.ExecuteBatchDmlReque"
- + "st\032*.google.spanner.v1.ExecuteBatchDmlRe"
- + "sponse\"V\202\323\344\223\002P\"K/v1/{session=projects/*/"
- + "instances/*/databases/*/sessions/*}:executeBatchDml:\001*\022\221\001\n"
- + "\004Read\022\036.google.spanner.v1.ReadRequest\032\034.google.spanner.v1.Resu"
- + "ltSet\"K\202\323\344\223\002E\"@/v1/{session=projects/*/i"
- + "nstances/*/databases/*/sessions/*}:read:\001*\022\254\001\n\r"
- + "StreamingRead\022\036.google.spanner.v1.ReadRequest\032#.google.spanner.v1.Partial"
- + "ResultSet\"T\202\323\344\223\002N\"I/v1/{session=projects"
- + "/*/instances/*/databases/*/sessions/*}:streamingRead:\001*0\001\022\311\001\n"
- + "\020BeginTransaction\022*.google.spanner.v1.BeginTransactionReque"
- + "st\032\036.google.spanner.v1.Transaction\"i\332A\017s"
- + "ession,options\202\323\344\223\002Q\"L/v1/{session=proje"
- + "cts/*/instances/*/databases/*/sessions/*}:beginTransaction:\001*\022\353\001\n"
- + "\006Commit\022 .googl"
- + "e.spanner.v1.CommitRequest\032!.google.spanner.v1.CommitResponse\"\233\001\332A"
- + " session,transaction_id,mutations\332A(session,single_use"
- + "_transaction,mutations\202\323\344\223\002G\"B/v1/{sessi"
- + "on=projects/*/instances/*/databases/*/sessions/*}:commit:\001*\022\260\001\n"
- + "\010Rollback\022\".google.spanner.v1.RollbackRequest\032\026.google.pr"
- + "otobuf.Empty\"h\332A\026session,transaction_id\202"
- + "\323\344\223\002I\"D/v1/{session=projects/*/instances"
- + "/*/databases/*/sessions/*}:rollback:\001*\022\267\001\n"
- + "\016PartitionQuery\022(.google.spanner.v1.Pa"
- + "rtitionQueryRequest\032$.google.spanner.v1."
- + "PartitionResponse\"U\202\323\344\223\002O\"J/v1/{session="
- + "projects/*/instances/*/databases/*/sessions/*}:partitionQuery:\001*\022\264\001\n\r"
- + "PartitionRead\022\'.google.spanner.v1.PartitionReadRequ"
- + "est\032$.google.spanner.v1.PartitionRespons"
- + "e\"T\202\323\344\223\002N\"I/v1/{session=projects/*/insta"
- + "nces/*/databases/*/sessions/*}:partitionRead:\001*\022\310\001\n\n"
- + "BatchWrite\022$.google.spanner.v1.BatchWriteRequest\032%.google.spanner.v1"
- + ".BatchWriteResponse\"k\332A\027session,mutation"
- + "_groups\202\323\344\223\002K\"F/v1/{session=projects/*/i"
- + "nstances/*/databases/*/sessions/*}:batch"
- + "Write:\001*0\001\032w\312A\026spanner.googleapis.com\322A["
- + "https://www.googleapis.com/auth/cloud-pl"
- + "atform,https://www.googleapis.com/auth/spanner.dataB\221\002\n"
- + "\025com.google.spanner.v1B\014SpannerProtoP\001Z5cloud.google.com/go/spann"
- + "er/apiv1/spannerpb;spannerpb\252\002\027Google.Cl"
- + "oud.Spanner.V1\312\002\027Google\\Cloud\\Spanner\\V1\352\002\032Google::Cloud::Spanner::V1\352A_\n"
- + "\037spanner.googleapis.com/Database\022